query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
return minimum value in array
public static double getMin(double[] array) { double min = Double.POSITIVE_INFINITY; for (int i = 0; i < array.length; i++) if (min > array[i]) min = array[i]; return min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }", "int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the first term in the array --> first term should be min if\n\t\t// sorted\n\t\tint x = array[0];\n\t\treturn x;\n\t}", "public static int getMin(int[] inputArray){\n int minValue = inputArray[0];\n for(int i=1; i<inputArray.length;i++){\n if(inputArray[i] < minValue){\n minValue=inputArray[i];\n }\n }\n return minValue;\n }", "public static int findMin(){\n int min = array[0];\n for(int x = 1; x<array.length; x++ ){\n if(array[x]<min){\n min=array[x];\n }\n }\n return min;\n}", "public static double min(double[] array) { \r\n \r\n double minNum = array[0];\r\n for(int i = 0; i < array.length; i++) {\r\n if(minNum > array[i]) {\r\n minNum = array[i];\r\n }\r\n }\r\n return minNum;\r\n }", "public double min(){\r\n\t\t//variable for min val\r\n\t\tdouble min = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the minimum is more than the current index, change min to that value\r\n\t\t\tif (min > this.data[i]){\r\n\t\t\t\tmin = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the minimum val\r\n\t\treturn min;\r\n\t}", "public static int getMin(int[] array) {\n //TODO: write code here\n int min = array[0];\n for(int a : array) {\n min = a < min ? a : min;\n }\n return min;\n }", "public static float min(float [] array)\r\n\t{\r\n\t\tfloat minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValue)\r\n\t\t\t{\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValue;\r\n\t}", "public static double min(double[] array) {\n\t\tif (array.length==0) return Double.POSITIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.min(re, array[i]);\n\t\treturn re;\n\t}", "public static int Min(int[] array) {\r\n\t\tint minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++) {\r\n\t\t\tif (array[i] < minValue) {\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minValue;\r\n\t}", "public static int min(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n if( m > a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}", "public int min(int[] array) {\n if (array == null || array.length == 0){\n return 0;\n }\n int min = array[0];\n for(int i = 0; i < array.length; i++){\n if (array[i] < min){\n min = array[i];\n }\n }\n return min;\n }", "private static int getMin(int[] original) {\n int min =original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] < min) min = original[i];\n }\n return min;\n }", "public long min() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] < result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find min of empty array\");\n\t\t}\n\t}", "public static double min(double[] array, double min) {\n for (int i = 1; i < array.length; i++) {\n if (array[i] <= min) {\n min = array[i];\n }\n }\n return min;\n }", "private static double min(Double[] darray){\n\t\tdouble min = darray[0];\n\t\tfor ( double dd : darray){\n\t\t\tmin = Math.min(min,dd);\n\t\t}\n\t\treturn min;\n\t}", "int findMin(int[] arr){\n\t\tint minimum=1000;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]<minimum) {\n\t\t\t\tminimum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public static int min(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n \n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }", "private static void min(int[] a) {\n int min = a[0];\n for(int i=1; i<a.length; i++){\n if(min > a[i]){\n min = a[i];\n }\n }\n System.out.println(\"Min\" + min);\n\n }", "public static int min(int[] theArray) {\n\n //sets a starting value is used if use the alternative code.\n int smallest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n Collections.min(values);\n\n //get the smallest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the smallest values\n smallest = values.stream().min(Integer::compare).get();\n\n ////Alternative code does the same thing.\n// for (int number : theArray) {\n//\n// if (smallest > number) {\n// smallest = number;\n// }\n// }\n\n return smallest;\n\n }", "private void regularMinDemo() {\n int min = numbers[0];\n for(int i = 1; i < numbers.length; i++) {\n if (numbers[i] < min) min = numbers[i];\n }\n System.out.println(min);\n }", "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 static float min(float[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n float min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Float.isNaN(array[i])){\n return Float.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }", "private Double getMin(Double[] values) {\n Double ret = null;\n for (Double d: values) {\n if (d != null) ret = (ret == null) ? d : Math.min(d, ret);\n }\n return ret;\n }", "private int getMin(int[] times) {\n\n\t\t//Initially set min to the first value\n\t\tint min = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Set the minimum\n\t\t\tif (times[i]<min) {\n\n\t\t\t\tmin = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}", "public static int minValue(int[] numArr) {\r\n\t\tint temp = numArr[0] < numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp < numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "public static int findMinimum(int[] array) {\n\n int min;\n\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n } else {\n min = array[0];\n for (int i= 0; i<array.length; i++) {\n if (min > array[i]) {\n min = array[i];\n }\n }\n return min;\n }\n \n }", "public static double min(double[]array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n double min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(Double.isNaN(array[i])){\n return Double.NaN;\n }\n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }", "public static int argmin(double[] array) {\n\t\tdouble min = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]<min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "public static int findMinimum(int[] array) {\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n }\n int left = 0;\n int right = array.length -1;\n int element = findPivot(array, left, right);\n return element;\n }", "static int minValues(int[] x) {\n\t\tint min = 0;\n\n\t\tfor (int y : x) {\n\t\t\tif (y < min) {\n\t\t\t\tmin = y;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}", "public double[] getMin(){\n double[] min = new double[3];\n for (Triangle i : triangles) {\n double[] tempmin = i.minCor();\n min[0] = Math.min( min[0], tempmin[0]);\n min[1] = Math.min( min[1], tempmin[1]);\n min[2] = Math.min( min[2], tempmin[2]);\n }\n return min;\n }", "public double getMinValue() {\n double min = Double.POSITIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] < min)\n min = data[i][j];\n }\n }\n return min;\n }", "public static int minArray(int[] arr) {\n int min_value = Integer.MAX_VALUE;\n for (int i = 0; i < arr.length; i++) {\n if (min_value > arr[i]) {\n min_value = arr[i];\n }\n }\n return min_value;\n }", "private static int findMinInArr(int[] arr) {\n\t\tint min = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem < min) {\n\t\t\t\tmin = elem;\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}", "public static int getMinIndex(double[] array)\r\n\t{\r\n\t\tdouble min = Double.POSITIVE_INFINITY;\r\n\t\tint minIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (min > array[i]) {\r\n\t\t\t\tmin = array[i];\r\n\t\t\t\tminIndex = i;\r\n\t\t\t}\r\n\t\treturn minIndex;\r\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 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 void minimum(int[] arr){\n int min = arr[0];\n for(int i = 1; i< arr.length-1; i++){ //why i = 1 means because we have already taken the arr[0] as minimum\n if(arr[i] < min){\n min = arr[i];\n }\n } \n System.out.println(\"The minimum Element in the array is : \"+min);\n }", "public int cariMinimum(int[] min) {\n\t\tint minimum = min[0];\n\t\tint jumlah = min.length;\n\t\tfor (int i = 0; i < jumlah; i++) {\n\t\t\tif (min[i] < minimum) {\n\t\t\t\tminimum = min[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public static float min(final float[] data) {\r\n float min = Float.MAX_VALUE;\r\n for (final float element : data) {\r\n if (min > element) {\r\n min = element;\r\n }\r\n }\r\n return min;\r\n }", "public static int min(int[] a) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n int min = a[0];\n \n if (a.length > 1) {\n for (int i = 1; i < a.length; i++) {\n if (a[i] < min) {\n min = a[i];\n }\n }\n }\n return min;\n }", "private double[] getMin(double[][] res) {\r\n\t\tdouble min[] = new double [3];\r\n\t\t\tmin[0] = res[0][0];\r\n\t\tfor(int i = 0 ; i < res.length ; i ++){\r\n\t\t\tfor(int j = 0 ; j < res.length ; j++)\r\n\t\tif(res[i][j] < min[0] && res[i][j] != -1){\r\n\t\t\tmin[0] = res[i][j];\r\n\t\t\tmin[1] = i;\r\n\t\t\tmin[2] = j;\r\n\t\tSystem.out.println(\"test\" + res[i][j]);\r\n\t\t}\r\n\t\t}\r\n\t\treturn min;\r\n\t}", "private double min(double[] vector){\n if (vector.length == 0)\n throw new IllegalStateException();\n double min = Double.MAX_VALUE;\n for(double e : vector){\n if(!Double.isNaN(e) && e < min)\n min = e;\n }\n return min;\n }", "private double getMin() {\n return Collections.min(values.values());\n }", "public int findMin(int[] num) {\n \t\n \tif (num.length == 1) {\n \t return num[0];\n \t}\n \t\n \tint up = num.length - 1,\n \t low = 0,\n \t mid = (up + low) / 2;\n \twhile (up > low) {\n \t if (mid + 1 < num.length && mid - 1 >= 0 && num[mid] < num[mid - 1] && num[mid] < num[mid + 1]) {\n \t return num[mid];\n \t }\n \t if (num[mid] > num[up]) {\n \t low = mid + 1;\n \t } else {\n \t up = mid - 1;\n \t }\n \t \n \t mid = (up + low) / 2;\n \t}\n \treturn num[mid];\n\t}", "Double getMinimumValue();", "public static double min(double... values) {\n/* 86 */ Objects.requireNonNull(values, \"The specified value array must not be null.\");\n/* 87 */ if (values.length == 0) {\n/* 88 */ throw new IllegalArgumentException(\"The specified value array must contain at least one element.\");\n/* */ }\n/* 90 */ double min = Double.MAX_VALUE;\n/* 91 */ for (double value : values)\n/* 92 */ min = Math.min(value, min); \n/* 93 */ return min;\n/* */ }", "int minPriority(){\n if (priorities.length == 0)\n return -1;\n\n int index = 0;\n int min = priorities[index];\n\n for (int i = 1; i < priorities.length; i++){\n if ((priorities[i]!=(-1))&&(priorities[i]<min)){\n min = priorities[i];\n index = i;\n }\n }\n return values[index];\n }", "public int findMinimum(int[] numbers, int length)\n {\n }", "public static int getIndexOfMin(double[] x) {\n Objects.requireNonNull(x, \"The supplied array was null\");\n int index = 0;\n double min = Double.MAX_VALUE;\n for (int i = 0; i < x.length; i++) {\n if (x[i] < min) {\n min = x[i];\n index = i;\n }\n }\n return (index);\n }", "public T findMin();", "public static int getMin(int arr[][]) {\n\t\tint minNum;\n\t\t\n\t\tminNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] < minNum) {\n\t\t\t\t\tminNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn minNum;\n\t}", "public static double findMin(double[] da) {\n\n\t\t// fjern = \"0.0\" når metoden implementeres for ikke få forkert minimum\n\t\tdouble min = da[0];\n\t\t\n\t\t// TODO\n\t\t// OPPGAVE - START\n\t\tfor(double d : da) {\n\t\t\tif(d < min) {\n\t\t\t\tmin = d;\n\t\t\t}\n\t\t}\n\t\t// OPPGAVE - SLUT\n\t\treturn min;\n\t}", "public static int min(int[] mainArray) {\r\n\t\tint min1 = 0;\r\n\t\tfor(int lessThan = 1; lessThan < mainArray.length; lessThan ++) {\r\n\r\n\t\t\tif(mainArray[lessThan]<mainArray[min1]) {\r\n\t\t\t\tmin1 = lessThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn min1;\r\n\t}", "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 int getMinimumScore(){\n\n /*\n * creating variable of type int name it lowestScore go in to index 0 and sub 0\n * and lowestScore is refering to instance variable scores\n */\n int lowestScore = scores[0][0]; // assume this value is the smallest score value\n\n /* enhanced for loop with array of type int named gameScores and it will go trough scores array*/\n for (int[] gameScores : scores){\n\n /*\n * and another enhanced for loop inside first for loop\n * int variable, name score and it will iterate(go/repeat) through array gameScores\n *\n */\n for (int score : gameScores){\n if (score < lowestScore){\n lowestScore = score;\n }\n }\n }\n return lowestScore;\n }", "E minVal();", "int min();", "public static int min(int[] values) throws MathsException {\r\n\t\tif(values.length < Integer.MIN_VALUE || values.length > Integer.MAX_VALUE)\r\n\t\t\tthrow new MathsException(\"Not ok\");\r\n\t\tint minimum = values[0];\r\n\t\tfor(int i=1;i<values.length;i++)\r\n\t\t\tif(minimum > values[i])\r\n\t\t\t\tminimum = values[i];\r\n\t\treturn minimum;\r\n\t}", "public double minXp(){\n\t\tmin = xp[0];\n\t\tfor(int i=1;i<xp.length;i++){\n\t\t\tif(xp[i]<min){\n\t\t\t\tmin=xp[i];\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}", "public static int findMin(int[] A) {\n\t\tint ans = 0;\n\t\tfor(int i=1; i<A.length; i++) {\n\t\t\tif(ans > A[i]) {\n\t\t\t\tans = A[i];\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}", "public static float min(float [] array, boolean [] isValid)\r\n\t{\r\n\t\tfloat minValude = Float.MAX_VALUE;\r\n\t\tfor (int i = 0; i < isValid.length; i++)\r\n\t\t{\r\n\t\t\tif (isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] < minValude && isValid[i])\r\n\t\t\t{\r\n\t\t\t\tminValude = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn minValude;\r\n\t}", "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 CalculateLowest(int[] LowestArray){\n LowestInArray l1 = new LowestInArray();\n l1.LowestNumber = LowestArray[0];\n if (LowestArray.length>1){\n System.out.println(\"Many Elements in Array\");\n for (int i=0; i<LowestArray.length;i++){\n if (LowestArray[i]< l1.LowestNumber){\n l1.LowestNumber = LowestArray[i];\n }\n }\n }\n return l1.LowestNumber;\n }", "public double min() {\n/* 305 */ Preconditions.checkState((this.count != 0L));\n/* 306 */ return this.min;\n/* */ }", "double getMin();", "double getMin();", "public int getMin() {\n\t\t\treturn harr[0];\n\t\t}", "public static int findMinElement(int[] array) {\n if(array.length < 1) {\n throw new IllegalArgumentException(\"array is empty\");\n }\n int left = 0;\n int right = array.length - 1;\n int mid = (left + right) / 2;\n while(left < right) {\n if(array[(mid - 1) % array.length] > array[mid]) {\n return array[mid];\n } else if (array[mid] < array[right]) {\n right = mid - 1;\n } else {\n left = mid + 1;\n }\n mid = (left + right) / 2;\n }\n return array[mid];\n }", "public DHeap_Item Get_Min()\n {\n\treturn array[0];\n }", "public T getMin()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn array[0];\n\t}", "@Override\n\tpublic T findMin(T[] ob) {\n\t\treturn null;\n\t}", "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}", "private double getMinNumber(ArrayList<Double> provinceValues)\n {\n Double min = 999999999.0;\n\n for (Double type : provinceValues)\n {\n if (type < min)\n {\n min = type;\n }\n }\n return min;\n }", "public static int min(int[] values) {\n return min(values, 0, values.length);\n }", "private static int findMin(int startPos,int[] x){\n\t\tint result = startPos;\n\t\tfor(int i= startPos;i<x.length;i++){\n\t\t\tif(x[i]<x[result]){\n\t\t\t\tresult = i;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public double min() {\n\t\tif (count() > 0) {\n\t\t\treturn _min.get();\n\t\t}\n\t\treturn 0.0;\n\t}", "public static <T> T getMin(T[] arr, _GetFloat_T<T> getV) {\n\n float min = Float.POSITIVE_INFINITY;\n T res = null;\n\n for (T t : arr) {\n float v = getV.val(t);\n if (v < min) {\n min = v;\n res = t;\n }\n }\n\n return res;\n }", "public abstract int getMinimumValue();", "private static int indexOfSmallest(int[] a, int start) {\n int minNum = a[start];\n int minIndex = start;\n for(int i=start; i<a.length; i++){\n if(a[i]<minNum){\n minNum = a[i];\n minIndex = i;\n }\n\n }\n return minIndex;\n }", "public static float waveDataGetLowestValue(ArrayList<Float> wave){\r\n float lowestWaveValue = Collections.min(wave);\r\n return lowestWaveValue;\r\n\r\n }", "int getMin() {\n\t\tif (stack.size() > 0) {\n\t\t\treturn minEle;\n\t\t} else {\n\t\t\treturn -1;\n\t\t}\n\t}", "public int extractMinimum() {\n if (size == 0) {\n return Integer.MIN_VALUE;\n }\n if (size == 1) {\n size--;\n return arr[0];\n }\n\n MathUtil.swap(arr, 0, size - 1);\n size--;\n minHeapify(0);\n return arr[size];\n }", "public static int indexOfSmallestElement(int[] array) {\n\t\tint min = array[0];\n\t\tint minIndex = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (array[i] < min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tminIndex = i;\n\t\t\t}\n\t\t}\n\t\treturn minIndex;\t\n\t}", "int getMin() \n\t{ \n\t\tint x = min.pop(); \n\t\tmin.push(x); \n\t\treturn x; \n\t}", "int getMin( int min );", "Object getMinimumValue(Object elementID) throws Exception;", "public T min();", "public Integer getMin() { \n\t\treturn getMinElement().getValue();\n\t}", "int getXMin();", "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 float min(Collection<Float> data){\r\n return Collections.min(data);\r\n }", "public int findMin(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n if (nums.length == 1) {\n return nums[0];\n }\n int l = 0;\n int r = nums.length - 1;\n while (l < r) {\n int m = (l + r) / 2;\n if (m > 0 && nums[m] < nums[m - 1]) {\n return nums[m];\n }\n if (nums[l] <= nums[m] && nums[m] > nums[r]) {\n l = m + 1;\n } else {\n r = m - 1;\n }\n }\n return nums[l];\n }", "public int eightMin(int[] array) {\n\t\tcountMin++;\n\t\tif (array.length != 8)\n\t\t\treturn -1;\n\t\telse {\n\t\t\tint min = array[0];\n\t\t\tint pos = 0;\n\n\t\t\tfor (int i = 1; i < array.length; i++) {\n\t\t\t\tif (array[i] < min) {\n\t\t\t\t\tpos = i;\n\t\t\t\t\tmin = array[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn pos;\n\t\t}\n\t}", "public static int getMin(int[] scores) {\r\n\t\t\r\n\t\tint temp = 100;\r\n\t\tfor(int i = 0; i < scores.length; ++i) {\r\n\t\t\t\r\n\t\t\tif (scores[i] < temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}", "public E returnMinElement(){\r\n if (theData.size() <= 0) return null;\r\n\r\n E min = theData.get(0).getData();\r\n\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n }\r\n }\r\n return min;\r\n }", "protected ValuePosition getMinimum() {\n\t\t// Calcule la position et la durée d'exécution de la requête la plus courte dans le tableau des requêtes\n\t\tValuePosition minimum = new ValuePosition();\n\t\tminimum.position = 0;\n\t\tfor(int pos=0; pos<requests.length; pos++) {\n\t\t\tRequest request = requests[pos];\n\t\t\tif(request == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(minimum.value == null || request.getElapsedTime() < minimum.value) {\n\t\t\t\tminimum.position = pos;\n\t\t\t\tminimum.value = request.getElapsedTime();\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public int findMin(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n \n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }", "int min() {\n return min;\r\n }" ]
[ "0.8258345", "0.8235842", "0.8206324", "0.81420803", "0.8139456", "0.8030514", "0.8023208", "0.8000933", "0.7977515", "0.79550433", "0.79449433", "0.79378635", "0.7874683", "0.780895", "0.77605677", "0.7745962", "0.773721", "0.7696803", "0.7643702", "0.7601886", "0.75965637", "0.7594789", "0.7584691", "0.7578876", "0.75688934", "0.75631005", "0.7553982", "0.75482494", "0.7545729", "0.74896216", "0.74880886", "0.7481099", "0.7456046", "0.74534255", "0.74473876", "0.7443535", "0.7433671", "0.7425917", "0.7373477", "0.73723143", "0.7360162", "0.7352189", "0.7318622", "0.7306194", "0.7295829", "0.72665155", "0.7231208", "0.72266644", "0.722606", "0.71632516", "0.71473604", "0.71468246", "0.71448904", "0.71438265", "0.71358573", "0.7122537", "0.7121556", "0.71133506", "0.7088308", "0.7085619", "0.7083239", "0.707551", "0.70747876", "0.70738405", "0.70732474", "0.7073061", "0.7049397", "0.7049397", "0.7045614", "0.69791126", "0.69573027", "0.69542485", "0.6944558", "0.6944482", "0.6924699", "0.6924173", "0.6919721", "0.69077265", "0.69004554", "0.6899621", "0.6886094", "0.6884296", "0.687939", "0.68419796", "0.6839", "0.6835608", "0.68316305", "0.68292576", "0.68162966", "0.6810415", "0.68026865", "0.67984366", "0.6784187", "0.6774247", "0.6765553", "0.6764239", "0.67548025", "0.6743068", "0.6729676", "0.6727286" ]
0.79994476
8
return index of maximum value in array
public static int getMinIndex(double[] array) { double min = Double.POSITIVE_INFINITY; int minIndex = 0; for (int i = 0; i < array.length; i++) if (min > array[i]) { min = array[i]; minIndex = i; } return minIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getIndexOfMax(double[] array){\n\n int largest = 0;\n for ( int i = 1; i < array.length; i++ )\n {\n if ( array[i] > array[largest] ) largest = i;\n }\n return largest;\n\n }", "private int maxIndex(int[] values){\n int curMaxIndex = 0;\n int curMax = values[0];\n for(int i = 1; i < values.length; i++){\n if(values[i] > curMax){\n curMaxIndex = i;\n curMax = values[i];\n }\n }\n return curMaxIndex;\n }", "public static int getMaxIndex(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tint maxIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i]) {\r\n\t\t\t\tmax = array[i];\r\n\t\t\t\tmaxIndex = i;\r\n\t\t\t}\r\n\t\treturn maxIndex;\r\n\t}", "private static int maxIndex(int[] vals) {\n \n int indOfMax = 0;\n int maxSoFar = vals[0];\n \n for (int i=1;i<vals.length;i++){\n \n if (vals[i]>maxSoFar) {\n maxSoFar = vals[i];\n indOfMax = i;\n }\n }\n \n return indOfMax;\n }", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "public static int indexOfMax(int[] array)\n {\n int max = array[0];\n int maxIndex = 0;\n for(int i = 1; i < array.length; i++)\n {\n if(array[i] > max)\n {\n max = array[i];\n maxIndex = i;\n }\n }\n return maxIndex;\n }", "public int calculateMaximumPosition() {\n\t\tdouble[] maxVal = { inputArray[0], 0 };\n\t\tfor (int i = 0; i < inputArray.length; i++) {\n\t\t\tif (inputArray[i] > maxVal[0]) {\n\t\t\t\tmaxVal[0] = inputArray[i];\n\t\t\t\tmaxVal[1] = i;\n\t\t\t}\n\t\t}\n\t\treturn (int) maxVal[1];\n\t}", "public static int getIndexOfMax(double[] x) {\n Objects.requireNonNull(x, \"The supplied array was null\");\n int index = 0;\n double max = Double.MIN_VALUE;\n for (int i = 0; i < x.length; i++) {\n if (x[i] > max) {\n max = x[i];\n index = i;\n }\n }\n return (index);\n }", "public int getMaxIndex(int[] paraArray) {\r\n\t\tint maxIndex = 0;\r\n\t\tint tempIndex = 0;\r\n\t\tint max = paraArray[0];\r\n\r\n\t\tfor (int i = 0; i < paraArray.length; i++) {\r\n\t\t\tif (paraArray[i] > max) {\r\n\t\t\t\tmax = paraArray[i];\r\n\t\t\t\ttempIndex = i;\r\n\t\t\t} // of if\r\n\t\t} // of for i\r\n\t\tmaxIndex = tempIndex;\r\n\t\treturn maxIndex;\r\n\t}", "public int findMax(int[] arr) {\n return 0;\n }", "int max(){\r\n int auxMax = array[0];\r\n for (int i=1;i<array.length;i++){\r\n if(array[i] > auxMax){\r\n auxMax = array[i];\r\n }\r\n }\r\n return auxMax;\r\n }", "public static int max(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n\t\t\tif( m < a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}", "public static int getMaximum(int[] array) {\n int length = array.length;\n int max = array[0];\n for (int i = 1; i < length; i++) {\n if(max < array[i]) {\n max = array[i];\n }\n }\n\n Arrays.sort(array);\n// return array[length - 1];\n return max;\n }", "public int getIndexOfMaxNumber(int[] array) {\n\t\tint left = 0, right = array.length - 1;\n\t\twhile (left < right - 1) {\n\t\t\tint mid = left + (right - left) / 2;\n\t\t\tif (array[mid - 1] > array[mid]) {\n\t\t\t\treturn mid - 1;\n\t\t\t}\n\t\t\tif (array[mid] > array[mid + 1]) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\t// up to this point,\n\t\t\t// mid == right || array[mid] < array[mid + 1] ||\n\t\t\t// mid == left || array[mid - 1] < array[mid]\n\t\t\tif (array[mid] <= array[left]) {\n\t\t\t\tright = mid;\n\t\t\t} else {\n\t\t\t\tleft = mid;\n\t\t\t}\n\t\t}\n\t\t// up to this point, left == right - 1;\n\t\treturn array[left] >= array[right] ? left : right;\n\t}", "public static int get_max(Integer[] a){\n int max = Integer.MIN_VALUE;\n\n for (int i = 0; i < a.length; i++){\n if (a[i] > max);\n max = a[i];\n }\n return max;\n }", "public static int maximo (int[] array) {\n\t\tint max = array[0], i;\n\t\t\n\t\tfor (i = 1; i < array.length; i++) {\n\t\t\tif (array[i] > max) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}", "private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }", "public static int argmax(float[] array) {\n\t\tfloat max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "static int getMax(int[] array) {\n\n\t\tif (array.length > 6 && array.length < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"There is no that index in this array.\");\n\t\t}\n\t\tint max = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (max < array[i]) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\n\t}", "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}", "public int max()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint maxNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] > maxNumber)\n\t\t\t\t{\n\t\t\t\t\tmaxNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn maxNumber;\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "private static Pair<Double, Integer> findMaxEntry(double[] array) {\n int index = 0;\n double max = array[0];\n for (int i = 1; i < array.length; i++) {\n if ( array[i] > max ) {\n max = array[i];\n index = i;\n }\n }\n return new Pair<Double, Integer>(max, index);\n }", "private int findIndexOfMax(){\n\t\tint value=0;\n\t\tint indexlocation=0;\n\t\tfor(int i=0; i<myFreqs.size();i++){\n\t\t\tif(myFreqs.get(i)>value){\n\t\t\t\tvalue = myFreqs.get(i);\n\t\t\t\tindexlocation =i;\n\t\t\t}\n\t\t}\n\t\treturn indexlocation;\n\t}", "public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }", "public static int max(int[] a) {\n\t\tint b=a[0];\r\n\t\tfor(int i=0;i<a.length;i++) {\r\n\t\t\tif(a[i]>b) {\r\n\t\t\t\tb=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn b;\r\n\t}", "public static int max(int[] arr){\n return maxInRange(arr, 0, arr.length-1);\n }", "public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }", "public static int getMax(int[] inputArray){ \n int maxValue = inputArray[0]; \n for(int i=1;i < inputArray.length;i++){ \n if(inputArray[i] > maxValue){ \n maxValue = inputArray[i]; \n } \n } \n return maxValue; \n }", "public abstract int maxIndex();", "public static int argmax(double[] array) {\n\t\tdouble max = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "public static int getMax(int[] array) {\n //TODO: write code here\n int max = array[0];\n for(int a : array) {\n max = a > max ? a : max;\n }\n return max;\n }", "public static <T extends Comparable<T>> int findMaxIndex(T[] arr) {\n if (arr.length == 0 || arr == null) {\n throw new IllegalArgumentException(\"Array null or empty.\");\n }\n return findMaxIndexInRange(arr, arr.length);\n }", "public void findMax(int[] arr){\n int max = arr[0];\n for(int val : arr){\n if(max < val){\n max = val;\n }\n }\n System.out.println( \"Maximum values: \" + max );\n }", "private int maxIndex(int[] sums) {\n\t\tint index = 0;\n\t\tint max = 0;\n\t\tfor(int i = 0; i < sums.length-1; i++) {\n\t\t\tif(sums[i] > max) {\n\t\t\t\tmax = sums[i];\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "public int findHighestTemp() {\n\t\t\n\t\tint max = 0;\n\t\tint indexHigh = 0;\n\t\tfor (int i=0; i<temps.length; i++)\n\t\t\tif (temps[i][0] > max) {\n\t\t\t\tmax = temps[i][0];\n\t\t\t\tindexHigh = i;\n\t\t\t}\n\t\t\n\t\treturn indexHigh;\n\t\t\n\t}", "public int getMaximumIndexDifference() {\n int maxIndexDiff = 0;\n \n for(int i = 0; i < array.size() - 1; i++) {\n for(int j = i + 1; j < array.size(); j++) {\n if(array.get(i) <= array.get(j) && maxIndexDiff < j - i) {\n maxIndexDiff = j - i; \n }\n }\n }\n \n return maxIndexDiff;\n }", "int findMax(int[] arr){\n\t\tint maximum=0;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]>maximum) {\n\t\t\t\tmaximum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn maximum;\n\t}", "public static int maxValue(int [] array){\n int hold = array[0];\n for(int i = 1; i < array.length; i++){\n if(array[i] > hold){\n hold = array[i];\n }\n }\n return hold;\n }", "static public long max(long[] valarray) {\r\n long max = 0;\r\n for (long i : valarray) {\r\n if (i > max)\r\n max = i;\r\n }\r\n return max;\r\n }", "public int findMax() {\n\t\tint max = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ( (int)data.get(count) > max)\n\t\t\t\tmax = (int)data.get(count);\n\t\treturn max;\n\t}", "public static int findMax(int arr[]){\n int max =Integer.MIN_VALUE;\n\n //find max\n for(int i =0;i<arr.length;i++){\n if (arr[i]>max){\n max=arr[i];\n }\n }\n return max;\n }", "private static int findIndexOfLargest(float[] vector) {\n\t\tint index = -1;\n\t\tfloat value = Float.NEGATIVE_INFINITY;\n\t\tfloat temp;\n\t\tfor (int d=0; d<Constants.ACCEL_DIM; ++d) {\n\t\t\ttemp = vector[d];\n\t\t\tif (temp<0.0f)\n\t\t\t\ttemp = -temp;\n\t\t\t\n\t\t\tif (temp>value) {\n\t\t\t\tvalue = temp;\n\t\t\t\tindex = d;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "static double getMax(double[] array) {\n\t\tif (array.length < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Arrays start from index 0\");\n\t\t}\n\t\tdouble max = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (max < array[i]) {\n\t\t\t\tmax = array[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public long findMax(long[] incomes) {\n long current_max_index = 0;\n long current_max = incomes[0];\n for (long income : incomes)\n if (current_max < income)\n current_max = income;\n return current_max;\n }", "private static int maxValue(int[] a) {\n\t\tint max_value =0;\r\n\t\tint current_max=0;\r\n\t\t\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tcurrent_max += a[i];\r\n\t\t\tmax_value= Math.max(max_value, current_max);\r\n\t\t\tif(a[i]<0)\r\n\t\t\t\tcurrent_max=0;\r\n\t\t}\r\n\t\t\r\n\t\treturn max_value;\r\n\t}", "private static int findMaxInArr(int[] arr) {\n\n\t\tint max = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem > max) {\n\t\t\t\tmax = elem;\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public static int getMax(float[][] storage) {\n float []arr=new float[WINDOW];\n for (int i = 0;i<WINDOW;i++){\n arr[i]=storage[i][1];\n }\n\n if(arr==null||arr.length==0){\n return 0;//如果数组为空 或者是长度为0 就返回null\n }\n int maxIndex=0;//假设第一个元素为最小值 那么下标设为0\n int[] arrnew=new int[2];//设置一个 长度为2的数组 用作记录 规定第一个元素存储最小值 第二个元素存储下标\n for(int i =0;i<arr.length-1;i++){\n if(arr[maxIndex]<arr[i+1]){\n maxIndex=i+1;\n }\n }\n arrnew[0]=(int)arr[maxIndex];\n arrnew[1]=maxIndex;\n\n return arrnew[0];\n }", "int select(int arr[], int i) {\n\t\t// Your code here\n\t\tint index_of_max;\n\t\tindex_of_max = i;\n\t\t//linear search\n\t\tfor (int j = 0; j <= i; j++) {\n\t\t\tif (arr[j] > arr[index_of_max]) {\n\t\t\t\tindex_of_max = j;\n\t\t\t}\n\t\t}\n\t\treturn index_of_max;\n\t}", "public static int max(int[] theArray) {\n\n int biggest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n //get the biggest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the biggest values\n biggest= values.stream().max(Integer::compare).get();\n\n// //Alternative code does the samething\n// for (int number : theArray) {\n//\n// if (biggest < number) {\n// biggest = number;\n// }\n// }\n\n return biggest;\n\n }", "@Override\n public int iamax(INDArray x) {\n return NativeBlas.isamax(x.length(), x.data(), x.offset(), x.stride()[0]) - 1;\n }", "public static int maxValue(int[] numArr) {\r\n\t\tint temp = numArr[0] > numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp > numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}", "private int getBestGuess(double values[]){\n int maxIndex=0;\n double max=0;\n for(int i=0;i<4;i++){\n if(values[i]>max) {\n max = values[i];\n maxIndex=i;\n }\n }\n return maxIndex+1;\n }", "private int findLargestIndex(int[] widths) {\n int largestIndex = 0;\n int largestValue = 0;\n for (int i = 0; i < widths.length; i++) {\n if (widths[i] > largestValue) {\n largestIndex = i;\n largestValue = widths[i];\n }\n }\n return largestIndex;\n }", "public static int findMaxSubarray(int[] array) {\r\n\t\tint max = Integer.MIN_VALUE;\r\n//\t\tint index = 0;\r\n\t\tint currMax = 0;\r\n\t\tfor(int v : array) {\r\n\t\t\tcurrMax += v;\r\n\t\t\tif(currMax > max) {\r\n\t\t\t\tmax = currMax;\r\n\t\t\t} \r\n\t\t\tif(currMax < 0) {\r\n\t\t\t\tcurrMax = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public static int max(int[] m) {\n int x = 1;\n int ret = m[0];\n while (x < m.length) {\n if (m[x] > ret) {\n ret = m[x];\n }\n x = x + 1;\n }\n return ret;\n }", "private static int getMax(int[] arr, int i) {\n\t\tif (i == 0) {\n\t\t\treturn arr[0];\n\t\t}\n\t\treturn Math.max(getMax(arr,i-1),arr[i]);\n\t}", "public static int secondaryArgmax(double[] a) {\n\t\tint mi = argmax(a);\n\t\t// scan left until increasing\n\t\tint i;\n\t\tfor (i=mi-1; i>=0 && a[i]<=a[i+1]; i--);\n\t\tint l = argmax(a,0,i+1);\n\t\tfor (i=mi+1; i<a.length && a[i]<=a[i-1]; i++);\n\t\tint r = argmax(a,i,a.length);\n\t\tif (l==-1) return r;\n\t\tif (r==-1) return l;\n\t\treturn a[l]>=a[r]?l:r;\n\t}", "double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}", "public static int getMax(int arr[][]) {\n\t\tint maxNum;\n\t\t\n\t\tmaxNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] > maxNum) {\n\t\t\t\t\tmaxNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn maxNum;\n\t}", "public long max() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] > result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find max of empty array\");\n\t\t}\n\t}", "public T getMax()\n\t{\n\t\tif(size == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\telse if(size == 1)\n\t\t{\n\t\t\treturn array[0];\n\t\t}\n\t\telse if(size == 2)\n\t\t{\n\t\t\treturn array[1];\n\t\t}\n\n\t\telse\n\t\t{\n\t\t\tif(object.compare(array[1], array[2]) < 0)\n\t\t\t{\n\t\t\t\treturn array[2];\n\t\t\t}\n\t\t\telse if(object.compare(array[1], array[2]) > 0)\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn array[1];\n\t\t\t}\n\n\t\t}\n\t}", "static int findHighestNumber(int [] array){\n int highestNumber = array [0];\n for (int x=0; x< array.length; x++){\n if (highestNumber<array[x]){\n highestNumber=array[x];\n }\n }\nreturn highestNumber;\n}", "public static void main(String[] args) {\nint arr[]=new int[] {10,20,36,50,30};\nint max=0,i;\nfor(i=0;i<arr.length;i++)\n{\n\tif(arr[i]>max)\n\t{\n\t\tmax=arr[i];\n\t}\n}\nSystem.out.println(max);\n\t}", "private static int getMax(int[] original) {\n int max = original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] > max) max = original[i];\n }\n return max;\n }", "public static int max(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int max = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n if(array[i] > max){\n max = array[i];\n }\n }\n return max;\n }", "public static double getMax(double[] arr) \n { \n double max = arr[0]; \n for(int i=1;i<arr.length;i++) \n { \n if(arr[i]>max) \n max = arr[i]; \n } \n return max; \n }", "public static int getMax(int[] arr) {\r\n\r\n\t\tint max = arr[0];\r\n\r\n\t\tfor (int x = 1; x < arr.length; x++) {\r\n\t\t\tif (arr[x] > max)\r\n\t\t\t\tmax = arr[x];\r\n\r\n\t\t}\r\n\t\treturn max;\r\n\r\n\t}", "public static int maxindex(Random rng, int[] values) {\n\t\tint max = 0;\n\t\tList<Integer> maxindices = Lists.newArrayList();\n\t\t\n\t\tfor (int index = 0; index < values.length; index++) {\n\t\t\tif (values[index] > max) {\n\t\t\t\tmax = values[index];\n\t\t\t\tmaxindices.clear();\n\t\t\t\tmaxindices.add(index);\n\t\t\t} else if (values[index] == max) {\n\t\t\t\tmaxindices.add(index);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn maxindices.size() > 1 ? maxindices.get(rng.nextInt(maxindices.size())) : maxindices.get(0);\n\t}", "private void getMaxValue(){\n maxValue = array[0];\n for(int preIndex = -1; preIndex<number; preIndex++){\n for(int sufIndex = preIndex+1; sufIndex<=number;sufIndex++){\n long maxTmp = getPrefixValue(preIndex)^getSuffixCValue(sufIndex);\n if(maxTmp>maxValue){\n maxValue = maxTmp;\n }\n }\n }\n System.out.println(maxValue);\n }", "private int getYmax(int[] yt){\n\t\tint max = -1;\n\t\tfor(int i = 0;i<=3;i++){\n\t\t\tif(max < yt[i]){\n\t\t\t\tmax = yt[i];\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "private int postprocess() {\n // Index with highest probability\n int maxIndex = -1;\n float maxProb = 0.0f;\n for (int i = 0; i < outputArray[0].length; i++) {\n if (outputArray[0][i] > maxProb) {\n maxProb = outputArray[0][i];\n maxIndex = i;\n }\n }\n return maxIndex;\n }", "@Override\n public int iamax(IComplexNDArray x) {\n return NativeBlas.icamax(x.length(), x.data(), x.offset(), 1) - 1;\n }", "private static int findIndexOfMaxInside(final int[] hist, int i, final int j) {\n int index = -1;\n for (int max = Integer.MIN_VALUE; ++i < j; ) {\n if (hist[i] > max) {\n max = hist[index = i];\n }\n }\n return index;\n }", "public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}", "public static int getMax(int[] scores) {\r\n\t\r\n\t\tint temp = scores[0];\r\n\t\tfor(int i = 1; i < scores.length; ++i) {\r\n\t\t\r\n\t\t\tif (scores[i] > temp) {\r\n\t\t\t\ttemp = scores[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn temp;\r\n\t\r\n\t}", "public static int getMaxValue(int[] numberArray)\n\t{\n\t\tint maxValue = numberArray[0];\n\t\tfor (int i = 1; i < numberArray.length; i++)\n\t\t{\n\t\t\tif (numberArray[i] > maxValue)\n\t\t\t\tmaxValue = numberArray[i];\n\t\t}\n\t\treturn maxValue;\n\t}", "public int highestInterIndex(){\r\n\t\tint index = -1;\r\n\t\tfor (int i = 0; i < this.interVec.length; i++) {\r\n\t\t\tif (index == -1 && this.interVec[i] == true \r\n\t\t\t\t\t&& this.getSwitchState(Model.getInterAt(i).getIRQ()) == true)\r\n\t\t\t\tindex = i;\r\n\t\t\telse if(this.interVec[i] == true &&\r\n\t\t\t\t\t\tthis.getSwitchState(Model.getInterAt(i).getIRQ()) == true &&\r\n\t\t\t\t\t\t\tModel.getInterAt(i).getPriority() < Model.getInterAt(index).getPriority())\r\n\t\t\t\tindex = i;\r\n\t\t}\r\n\t\treturn index;\r\n\t}", "public static int max(int[] m) {\n int max_num = m[0];\n int index = 1;\n\n while(index < m.length) {\n if(m[index] > max_num){\n max_num = m[index];\n }\n index += 1;\n }\n\n return max_num;\n }", "public static int findMax(Integer[] X, int low, int high)\n\t\t{if (low + 1 > high) {return X[low];}\n\t\telse {return Math.max(Math.abs(X[low]), Math.abs(findMax(X, low + 1, high)));}\n\t\t}", "int arraykey(int max);", "public static int max(int[] mainArray) {\r\n\t\tint max1 = 0;\r\n\t\tfor(int greaterThan = 1; greaterThan < mainArray.length; greaterThan ++) {\r\n\r\n\t\t\tif(mainArray[greaterThan]>mainArray[max1]) {\r\n\t\t\t\tmax1 = greaterThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max1;\r\n\t}", "static int question1(int[] arr) {\r\n\t\tint index = -1;\r\n\t\tint max = arr[0];\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tif(arr[i]>=max) {\r\n\t\t\t\tmax = arr[i];\r\n\t\t\t\tindex = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn index;\r\n\t}", "public static int argmax(double[] array, int from, int to) {\n\t\tif (from>=to) return -1;\n\t\tdouble max = array[from];\n\t\tint re = from;\n\t\tfor (int i=from+1; i<to; i++) {\n\t\t\tif (array[i]>max) {\n\t\t\t\tmax = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}", "public static double max(double[] array) {\n\t\tif (array.length==0) return Double.NEGATIVE_INFINITY;\n\t\tdouble re = array[0];\n\t\tfor (int i=1; i<array.length; i++)\n\t\t\tre = Math.max(re, array[i]);\n\t\treturn re;\n\t}", "public int maxValue( int[ ] n ) {\n int max = Integer.MIN_VALUE;\n for(int each: n){\n if(each > max){\n max = each;\n }\n }\n return max;\n }", "public Integer findLargestNumber() {\r\n\t\t// take base index element as largest number\r\n\t\tInteger largestNumber = 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] > largestNumber) {\r\n\t\t\t\tlargestNumber = 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 largestNumber;\r\n\t}", "public static void main(String[] args) {\n int[] nums = {24, 32, 1, 0, -57, 982, 446, 11, 177, 390, 2923, 7648, 242, 234, 1123, 875};\n int maxValue = nums[0];\n\n for(int i = 0; i < nums.length; i++) {\n if (nums[i] > maxValue) {\n maxValue = nums[i];\n }\n }\n System.out.println(\"Max Value in Array: \" + maxValue);\n }", "public static float max(float [] array)\r\n\t{\r\n\t\tfloat maxValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++)\r\n\t\t{\r\n\t\t\tif (array[i] > maxValue)\r\n\t\t\t{\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn maxValue;\r\n\t}", "public static int max(int[] a) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n int max = a[0];\n \n if (a.length > 1) {\n for (int i = 1; i < a.length; i++) {\n if (a[i] > max) {\n max = a[i];\n }\n }\n }\n return max;\n }", "include<stdio.h>\nint main()\n{\n int arr_size;\n scanf(\"%d\",&arr_size);\n int arr[10];\n // Get the array elements\n for(int idx = 0; idx <= arr_size - 1; idx++)\n {\n scanf(\"%d\",&arr[idx]);\n }\n // Get the searching element 1\n int max;\n if(arr[0]>arr[1])\n {\n max=arr[0];\n }\n else\n {\n max=arr[1];\n }\n \n for(int idx = 2; idx <= arr_size - 1; idx++)\n {\n if(max< arr[idx])\n {\n max= arr[idx];\n }\n }\n printf(\"%d\\n\",max);\n return 0;\n}", "public static double max(double[] v) {\n double max = v[0];\n for (int ktr = 0; ktr < v.length; ktr++) {\n if (v[ktr] > max) {\n max = v[ktr];\n }\n }\n return max;\n}", "public static void main(String[] args) {\n int[] arr={24,34,56,98,2,59};\r\n int val =arr [0];\r\n for(int i=0;i<arr.length;i++){\r\n \t if(arr[i]>val){\r\n \t\t val=arr[i];\r\n \t }\r\n }\r\n System.out.println(\"largest value\"+ val);\r\n\t}", "public static void main(String[] args) {\n int[] arr = {123,100,200,345,456,678,89,90,10,56};\n Arrays.sort(arr);\n System.out.println(Arrays.toString(arr));\n int lastIndex = arr.length-1;\n int secondIndexNUm =lastIndex-1; //arr.length-1-1;\n int secondMaxNum = arr[secondIndexNUm];\n System.out.println(secondMaxNum);\n\n int[]arr2 = {1,2,3,4,5,6};\n int num2 =secondMax(arr2);\n System.out.println(num2 );\n\n }", "public static void arrayMax(){\n int [] array={12,3,4,5,6,1,0,3};\n //using the for loop to iterate through the numbers in the array\n int max=array[0];\n int size=array.length;\n\n for(int i = 0; i<size; i++){\n if(array[i]>max){\n max=array[i];\n }\n }\n System.out.println(new StringBuilder().append(max).append(\": is the maximum number in the given array.\").toString());\n\n }", "E maxVal();", "public static int findLargest(int[] data){\n\t\tint lo=0, hi=data.length-1;\n\t\tint mid = (lo+hi)/2;\n\t\tint N = data.length-1;\n\t\twhile (lo <= hi){\n\t\t\tint val = data[mid];\n\t\t\tif(mid == 0 ) return (val > data[mid+1]) ? mid : -1;\n\t\t\telse if(mid == N) return (val > data[mid-1]) ? mid : -1;\n\t\t\telse{\n\t\t\t\tint prev = data[mid-1];\n\t\t\t\tint next = data[mid+1];\n\t\t\t\tif(prev < val && val < next) lo=mid+1;\n\t\t\t\telse if(prev > val && val > next) hi = mid-1;\n\t\t\t\telse return mid; // prev > val && val > next // is the only other case\n\t\t\t\tmid = (lo+hi)/2;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}", "public static int getMax(int arr[], int n)\n {\n int mx = arr[0];\n for (int i = 1; i < n; i++)\n {\n if (arr[i] > mx)\n {\n mx = arr[i];\n }\n }\n return mx;\n }", "public static double getMax(double[] array)\r\n\t{\r\n\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (max < array[i])\r\n\t\t\t\tmax = array[i];\r\n\t\treturn max;\r\n\t}", "public Object[] argmax(float[] array) {\n int best = -1;\n float best_confidence = 0.0f;\n\n for (int i = 0; i < array.length; i++) {\n\n float value = array[i];\n\n if (value > best_confidence) {\n\n best_confidence = value;\n best = i;\n }\n }\n return new Object[]{best, best_confidence};\n }", "public int getMax(){\n return tab[rangMax()];\n }", "public static int findMax(int[] elements) {\n int max = 0;\n for (int i = 0; i < elements.length; i++) {\n int element = elements[i];\n\n if (element > max) {\n max = element;\n }\n }\n return max;\n }" ]
[ "0.8491328", "0.8191792", "0.81650126", "0.8074583", "0.7982504", "0.7862536", "0.785015", "0.7734283", "0.7668454", "0.76619464", "0.76464134", "0.7639457", "0.7633786", "0.7618259", "0.75976264", "0.7591709", "0.75806844", "0.75755584", "0.7567648", "0.75409913", "0.75250435", "0.752162", "0.75171554", "0.75150603", "0.75054634", "0.74879396", "0.7474433", "0.7464887", "0.7455383", "0.74402213", "0.74378484", "0.7418811", "0.73698324", "0.7360829", "0.7344845", "0.7335511", "0.73181725", "0.73152936", "0.7302138", "0.7246184", "0.7234051", "0.72120833", "0.7209311", "0.720885", "0.71879035", "0.7168265", "0.7152774", "0.71387357", "0.7136868", "0.7130525", "0.7127808", "0.71178675", "0.70984435", "0.7094668", "0.7081605", "0.7076859", "0.7067587", "0.70570576", "0.70509857", "0.7050081", "0.7041929", "0.70368254", "0.70112956", "0.7009734", "0.70090914", "0.7001852", "0.7001675", "0.6989521", "0.69772756", "0.6976219", "0.69283783", "0.69266194", "0.69244426", "0.69165725", "0.6905246", "0.6894026", "0.6892465", "0.6889127", "0.68891215", "0.68829805", "0.6872483", "0.6859256", "0.67828345", "0.6782451", "0.6770634", "0.67679983", "0.6764029", "0.67519945", "0.6740554", "0.6739783", "0.6730325", "0.6728969", "0.67237073", "0.6715394", "0.6703979", "0.670355", "0.6698369", "0.66897535", "0.6686072", "0.6685456", "0.66800106" ]
0.0
-1
TODO I don't know correctly mean normalization
public static void normalization(double[] array) { double sum = Σ(array); if (sum == 0 || array.length == 0) return; for (int i = 0; i < array.length; i++) array[i] = array[i] / sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void normalize() {\n // YOUR CODE HERE\n String w1, w2;\n for (int i = 0; i < row; i++) {\n w1 = NDTokens.get(i);\n for (int j = 0; j < column; j++) {\n w2 = NDTokens.get(j);\n if(smooth) {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = (getCount(w1, w2))/(uni_grams[NDTokens.indexOf(w1)] + NDTokens_size);\n }else {\n bi_grams_normalized[NDTokens.indexOf(w1)][NDTokens.indexOf(w2)] = getCount(w1, w2)/(uni_grams[NDTokens.indexOf(w1)]);\n }\n }\n }\n }", "public abstract void recalcNormalizationExtrema();", "private static double[] normalize(double[] data)\n {\n double sum = 0;\n \n for (double d : data)\n sum += d;\n \n if (sum != 1 && sum != 0)\n {\n for (int i = 0; i < data.length; i++)\n data[i] /= sum;\n }\n \n return data;\n }", "private double[] normalize(double[] p) {\n double sum = 0;\n double[] output = new double[p.length];\n for (double i : p) {\n sum += i;\n }\n for (int i = 0; i < output.length; i++) {\n output[i] = p[i]/sum;\n }\n return output;\n }", "private double denormalizePrediction(double normalizedPrediction) {\n\t\t\t\n\t\t\tif (this.statsTarget.getCounter()==0)\n\t\t\t\treturn 0 ;\n\t\t\t\n\t\t\tdouble value = 0;\n\t\t\tif (normalizeationOption.getChosenIndex() == 0 || normalizeationOption.getChosenIndex() == 1) {\n\t\t\t\tvalue = normalizedPrediction * this.statsTarget.getStandardDeviation()\n\t\t\t\t\t\t+ this.statsTarget.getCurrentMean();\n\t\t\t} else if (normalizeationOption.getChosenIndex() == 2) {\n\t\t\t\tvalue = normalizedPrediction * this.statsTarget.getRange() + this.statsTarget.getMin();\n\t\t\t}else {\n\t\t\t\tvalue = normalizedPrediction ;\n\t\t\t}\n\t\t\treturn value;\n\t\t}", "private double[][] normalize (float[][] in) {\n\n\t\tdouble[][] temp = new double[in.length][2];\n\n\t\t// Get centroid\n\t\tfloat[] centroid = getCentroid(in);\n\n\t\t// Normalize\n\t\tfor(int i = 0; i < in.length; i++) {\n\t\t\ttemp[i][0] = in[i][0] - centroid[0];\n\t\t\ttemp[i][1] = in[i][1] - centroid[1];\n\t\t}\n\n\t\treturn temp;\n\t}", "public void normalize() {}", "float norm();", "private void zScoreNormalize(List<Double> data)\n\t{\n\t\tdouble mean=Statistics.mean(data);\n\t\tdouble sd=Statistics.sd(data);\n\t\tfor(int i=0; i!= data.size(); ++i)\n\t\t{\n\t\t\tdata.set(i, (data.get(i)-mean)/sd);\n\t\t}\n\n\t}", "@Override\n\tpublic double mean() {\n\t\treturn 0;\n\t}", "IVec3 normalized();", "@Override\n\tpublic double\n\tnormalize()\n\t{\n\t\tdouble len = length();\n\n\t\tif( len != 0 )\n\t\t{\n\t\t\tdata[0] /= len;\n\t\t\tdata[1] /= len;\n\t\t\tdata[2] /= len;\n\t\t}\n\t\t\n\t\treturn len;\n\t}", "private static double meanVal(double[] arrayOfSamples){\n\t\tdouble total = 0;\n\t\t for (double i :arrayOfSamples){\n\t\t \ttotal += i;\n\t\t }\n\t return total/arrayOfSamples.length;\n\t}", "public void normalize() {\r\n\t\tfloat length = (float) this.lenght();\r\n\t\tif (length > 0) {\r\n\t\t\tx /= length;\r\n\t\t\ty /= length;\r\n\t\t\tz /= length;\r\n\t\t}\r\n\t}", "private void normalize() {\r\n // GET MAX PRICE \r\n for (Alternative alt : alternatives) {\r\n if (alt.getPrice() > 0 && alt.getPrice() < minPrice) {\r\n minPrice = alt.getPrice();\r\n }\r\n }\r\n\r\n for (Alternative alt : alternatives) {\r\n // NORMALIZE PRICE - NON BENIFICIAL using max - min \r\n double price = alt.getPrice();\r\n double value = minPrice / price;\r\n alt.setPrice(value);\r\n // BENITIFICIAL v[i,j] = x[i,j] / x[max,j]\r\n double wood = alt.getWood();\r\n value = wood / maxWood;\r\n alt.setWood(value);\r\n\r\n double brand = alt.getBrand();\r\n value = wood / maxBrand;\r\n alt.setBrand(value);\r\n\r\n double origin = alt.getOrigin();\r\n value = origin / maxOrigin;\r\n alt.setOrigin(value);\r\n\r\n }\r\n }", "public void normalize(List<RankList> samples) {\n/* 667 */ for (RankList sample : samples) nml.normalize(sample);\n/* */ \n/* */ }", "public void normalize() {\n float length = (float)Math.sqrt(nx * nx + ny * ny);\n nx/=length;\n ny/=length;\n }", "public Vector normalize ( );", "private void updateMean() {\r\n double tmp = 0.0;\r\n for (Tweet t : members) {\r\n tmp += t.getDateLong();\r\n }\r\n tmp = tmp / (double) members.size();\r\n this.mean = tmp;\r\n }", "public void normalize(){\r\n /*//cambios 30 de agosto\r\n if (firstExtreme<0&&secondExtreme<0){\r\n firstExtreme=-firstExtreme;\r\n secondExtreme=-secondExtreme;\r\n }\r\n //fin cambios 30 de agosto*/\r\n if (firstExtreme>secondExtreme){\r\n double auxExtreme = firstExtreme;\r\n char auxLimit = feIncluded;\r\n firstExtreme = secondExtreme;\r\n secondExtreme = auxExtreme;\r\n feIncluded = seIncluded==']'?'[':'(';\r\n seIncluded = auxLimit=='['?']':')';\r\n }\r\n }", "public double getMean(){\n\t\treturn (double)sampleSize * type1Size / populationSize;\n\t}", "public double mean() {\r\n\t\treturn mean;\r\n\t}", "static void normalize(double[] state) {\r\n double norm = 1/Math.sqrt(state[0]*state[0]+state[2]*state[2]+state[4]*state[4]+state[6]*state[6]);\r\n state[0] *= norm;\r\n state[2] *= norm;\r\n state[4] *= norm;\r\n state[6] *= norm;\r\n }", "public static void normalize()\n {\n int sum;\n\n for(int i=0;i<12;i++)\n {\n for(int j=0;j<12;j++) {\n sum = sumAll(i,j);\n if (sum != 0)\n for (int n = 0; n < 12; n++)\n weights[i][j][n] /= sum;\n }\n }\n }", "public void normalize(){\n\tstrength = 50;\n\tdefense = 55;\n\tattRating = 0.4\t;\n }", "public double getMean(){\n\t\treturn Math.exp(location + scale * scale / 2);\n\t}", "private Double getMean(Double[] values) {\n double sum = 0;\n int count = 0;\n for (Double d: values) {\n if (d != null) {\n sum += d;\n ++count;\n }\n }\n return count == 0 ? null : (sum / count);\n }", "public double mean() {\n\t\treturn mean;\n\t}", "public double mean() {\n\t\treturn mean;\n\t}", "public double[] Normalizar01(int[] v){\n double[] result=new double[v.length];\n double s=v[0];\n double max=v[0];\n double min=v[0];\n for (int i=1;i<v.length;i++){\n s+=v[i];\n //minimo\n if (v[i]<min)\n min=v[i];\n if (v[i]>max)\n max=v[i];\n //maximo\n }\n for (int i=0;i<v.length;i++){\n result[i]=((double)v[i]-min)/(max-min);\n }\n\n return result;\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "public void normalize(){\r\n \tif(!normal){\r\n\t attack/=2;\r\n\t defense*=2;\r\n\t normal=true;\r\n\t}\r\n }", "@Override\r\n\t\tpublic void normalize()\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public double mean() {\n return StdStats.mean(stats);\r\n }", "private double norm(IDictionary<String, Double> vector) {\n\t\t double output = 0.0;\n\t\t for (KVPair<String, Double> pair : vector) {\n\t\t\t double score = pair.getValue();\n\t\t output = output + (score * score);\n\t\t }\n\t return Math.sqrt(output);\t \n }", "public double mean() {\n/* 179 */ Preconditions.checkState((this.count != 0L));\n/* 180 */ return this.mean;\n/* */ }", "public Vector3D normalize()\r\n {\r\n float oneOverMagnitude = 0;\r\n float mag = magnitude();\r\n \r\n if (mag!=0) {\r\n oneOverMagnitude = 1 / mag;\r\n }\r\n\r\n return this.product(oneOverMagnitude);\r\n }", "public double arithmeticalMean(double[] arr) {\n return 0;\n }", "public void normalize(){\n\t_defense = originalDefense;\n\t_strength = originalStrength;\n }", "public Double[][] normalize(Double[][] dataSet) {\n Double maxVal = Collections.max(DataClean.twoDArrToArrList(dataSet));\n Double minVal = Collections.min(DataClean.twoDArrToArrList(dataSet)); \n \n Double[][] newData = new Double[dataSet.length][dataSet[0].length];\n for (int i=0; i<dataSet.length; i++) {\n for (int j=0; j<dataSet[0].length; j++) {\n newData[i][j]= (dataSet[i][j]-minVal)/(maxVal-minVal);\n }\n }\n return newData;\n }", "public double mean(double data[]) {\r\n\t\tdouble mean = 0;\r\n\t\ttry {\r\n\t\t\tfor(int i=0;i<data.length;i++) {\r\n\t\t\t\tmean =mean+data[i];\r\n\t\t\t}\r\n\t\t\tmean = mean / data.length;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tDataMaster.logger.warning(e.toString());\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\treturn mean;\r\n\t}", "public T mean();", "public double geoMean() {\n\t\tint product = 1;\n\t\tfor (Animal a : animals) {\n\t\t\tproduct *= a.getSize();\n\t\t}\n\t\treturn Math.pow(product, 1.0 / animals.size());\n\t}", "public static void normalise(double[] v) {\n double tot = 0;\r\n for (int i=0; i<v.length; i++) {\r\n tot += v[i] * v[i];\r\n }\r\n double div = Math.sqrt(tot);\r\n if (div > 0) {\r\n for (int i=0; i<v.length; i++) {\r\n v[i] /= div;\r\n }\r\n }\r\n }", "public double mean() { \n return StdStats.mean(result);\n\n }", "public double getNormalizedCount(String word1, String word2) {\n// double normalizedCount = 0;\n// // YOUR CODE HERE\n// return normalizedCount;\n \n double normalizedCount = 0;\n // YOUR CODE HERE\n if (KnownWord(word1) && KnownWord(word2)) {\n normalizedCount = bi_grams_normalized[NDTokens.indexOf(word1)][NDTokens.indexOf(word2)];\n } else {\n if(smooth) {\n double temp = (!KnownWord(word1)) ? 0 : uni_grams[NDTokens.indexOf(word1)];\n double sum = temp+NDTokens_size;\n normalizedCount = 1/sum;\n }\n }\n return normalizedCount;\n \n }", "private void PeriodMeanEvaluation () {\n\n float x = 0;\n for(int i = 0; i < 3; i++)\n {\n for(int j = 0; j < numberOfSample; j++)\n {\n x = x + singleFrame[j][i];\n }\n meanOfPeriodCoord[i] = (x/numberOfSample);\n x = 0;\n }\n }", "public double mean (List<? extends Number> a){\n\t\tint sum = sum(a);\n\t\tdouble mean = 0;\n\t\tmean = sum / (a.size() * 1.0);\n\t\treturn mean;\n\t}", "public double mean()\n {\n double sum = 0.0;\n for(int t = 0; t<size; t++)\n sum += x[t];\n return sum/size;\n }", "public float[] normalisePNs(int[] image) {\n double sum = 0;\n float[] float_image = new float[image.length];\n for ( int i = 0; i < image.length; ++i ){ sum+=image[i]; }\n sum = Math.sqrt(sum);\n for ( int i = 0; i < image.length; ++i ){ float_image[i] = (float) image[i] / (float) sum; }\n\n return float_image;\n }", "float norm2();", "private float meanDifference(float arr1[], int i1, float arr2[], int i2,\n\t\t\tint length) {\n\t\tfloat value = 0f;\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tvalue += arr1[i1 + i] - arr2[i2 + i];\n\t\t}\n\t\treturn value / length;\n\t}", "public double oneNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}", "public double[] getNormalizedInputValues( InstanceAttributes instAttributes ){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = instAttributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public void checkNormalized() {\n double tot = 0.0;\n int i;\n for (i = 0; i < histogram_proportions.size(); i++)\n tot += histogram_proportions.elementAt(i).doubleValue();\n if (!Statistics.APPROXIMATELY_EQUAL(tot, 1.0, EPS))\n Dataset.perror(\"Histogram.class :: not normalized \");\n }", "private void updateMuVariance() {\n\t\tmu = train.getLocalMean(); \n\t\tsigma = train.getLocalVariance(); \n\t\t\n\t\t/*\n\t\t * If the ratio of data variance between dimensions is too small, it \n\t\t * will cause numerical errors. To address this, we artificially boost\n\t\t * the variance by epsilon, a small fraction of the standard deviation\n\t\t * of the largest dimension. \n\t\t * */\n\t\tupdateEpsilon(); \n\t\tsigma = MathUtils.add(sigma, epsilon); \n\t\t\n\t}", "public double mean() {\n return mean;\n }", "public final double getMean()\r\n\t{\r\n\t\treturn mean;\r\n\t}", "public double[] getNormalizedInputValues(){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = Attributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public double mean() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\t\t\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tsum += v;\n\t\t}\n\t\t\n\t\treturn sum / (double)n;\n\t}", "public void normalize() {\r\n\t\tfor (int i = 0; i<no_goods; i++) {\t\t\t\r\n\t\t\tfor (IntegerArray r : prob[i].keySet()) {\t\t\t\t\r\n\t\t\t\tdouble[] p = prob[i].get(r);\r\n\t\t\t\tint s = sum[i].get(r);\r\n\t\t\t\t\r\n\t\t\t\tfor (int j = 0; j<p.length; j++)\r\n\t\t\t\t\tp[j] /= s;\r\n\t\t\t}\r\n\r\n\t\t\t// compute the marginal distribution for this good\r\n\t\t\tfor (int j = 0; j<no_bins; j++)\r\n\t\t\t\tmarg_prob[i][j] /= marg_sum;\r\n\t\t}\r\n\t\t\r\n\t\tready = true;\r\n\t}", "public double getMeanCenterDifferenceFromStart(){\n double[] meanCenter = getMeanCenter();\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n Log.e(\"Points\",\"Actual (X,Y) = \"+\"(\"+((center.getX()*CONSTANT)+trans[0])+\",\"+((center.getY()*CONSTANT)+trans[1])+\")\");\n Log.e(\"Points\",\"Mean (X,Y) = \" + \"(\"+meanCenter[0]+\",\"+meanCenter[1]+\")\");\n double result = Math.sqrt(\n Math.pow(((center.getX()*CONSTANT)+trans[0]) - meanCenter[0],2)+\n Math.pow(((center.getY()*CONSTANT)+trans[1]) - meanCenter[1],2)\n );\n return result;\n }", "void changeMean(double a) {\n mean = mean + (buffer - mean) * a;\n }", "public void histNormalize() {\n\n double max = max();\n double min = min();\n max = max - min;\n for (int i = 0; i < pixelData.length; i++) {\n double value = pixelData[i] & 0xff;\n pixelData[i] = (byte) Math.floor((value - min) * 255 / max);\n }\n }", "public double mean() {\n return mu;\n }", "public double getMean() \r\n\t{\r\n\t\tlong tmp = lastSampleTime - firstSampleTime;\r\n\t\treturn ( tmp > 0 ? sumPowerOne / (double) tmp : 0);\r\n\t}", "public void normalize(double normalizingFactor) {\n //System.out.println(\"norm: \" + normalizingFactor);\n for (T value : getFirstDimension()) {\n for (T secondValue : getMatches(value)) {\n double d = get(value, secondValue) / normalizingFactor;\n set(value, secondValue, d);\n }\n }\n }", "public double[] Normalizar(int[] v){\n double[] result=new double[v.length];\n double s=0;\n for (int i=0;i<v.length;i++){\n s+=v[i];\n }\n for (int i=0;i<v.length;i++){\n result[i]=(double)v[i]/(double)s;\n }\n\n return result;\n }", "public double[] mean() {\n\t\tdouble[] mean = null;\n\t\tif(instances != null) {\n\t\t\tmean = new double[instances.get(0).length];\n\t\t\tfor(double[] instance : instances) {\n\t\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\t\tmean[d] += instance[d];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble n = instances.size();\n\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\tmean[d] /= n;\n\t\t\t}\n\t\t}\n\t\treturn mean;\n\t}", "private double[] normalizeHistogram(double[] inputHistogram, int totalPixels) {\n\t\tdouble[] normalized=new double[inputHistogram.length];\n\t\tfor(int i=0;i<inputHistogram.length&&start;i++){\n\t\t\tnormalized[i]=inputHistogram[i]/totalPixels;\n\t\t}\n\t\treturn normalized;\n\t}", "private double normalizeImageValue(double value){\n return value/(31);\n }", "public void normalize() {\n // determine the maximum value\n \n Double max = getMaxValue();\n \n if(max!=null) {\n normalize(max);\n }\n }", "@Override\r\n protected BigDecimal getArithmeticMean(int numberOfDecimalPlaces) {\r\n BigDecimal sum = getSum();\r\n long n = getN();\r\n BigInteger nBI = BigInteger.valueOf(n);\r\n if (n != 0) {\r\n return Generic_BigDecimal.divideRoundIfNecessary(sum, nBI,\r\n numberOfDecimalPlaces, RoundingMode.HALF_EVEN);\r\n }\r\n return null;\r\n }", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}", "@Override \n public double[] fastApply(double[] x) {\n double d = dot.norm(x);\n scale.fastDivide(x, d);\n return x;\n }", "public double mean() {\n return StdStats.mean(fraction);\n }", "private double normaliseRating(double boundedRating) {\n return (boundedRating - MIN_RATING) / RANGE;\n }", "public ArrayList<DataPoint> normalizeFeatures(ArrayList<DataPoint> datapoints) {\n\t\t\n\t\tdouble[] vector = new double[featureCount];\n\t\t// now normalize ALL the points!\n\t\tfor (DataPoint aPoint : datapoints) {\n\t\t\tvector = aPoint.vector;\n\t\t\tfor (int i = 0; i < featureCount; ++i) {\n\t\t\t\tvector[i] = (vector[i] - meansOfFeatures.get(i))\n\t\t\t\t\t\t/ stdevOfFeatures.get(i);\n\t\t\t}\n\t\t\taPoint.setVector(vector);\n\t\t}\n\t\treturn datapoints;\n\t}", "public double getMean() {\n return mean;\n }", "public double mean() {\n\t\tif (count() > 0) {\n\t\t\treturn _sum.get() / (double) count();\n\t\t}\n\t\treturn 0.0;\n\t}", "@Override\n\tpublic double getMean() {\n\t\treturn 1/this.lambda;\n\t}", "public void normalize() { sets length to 1\n //\n double length = Math.sqrt(x * x + y * y);\n\n if (length != 0.0) {\n float s = 1.0f / (float) length;\n x = x * s;\n y = y * s;\n }\n }", "public Vector2f normalize (Vector2f result)\n {\n return mult(1f / length(), result);\n }", "private void normalize(DMatrixRMaj M) {\n double suma=0;\n Equation eq = new Equation();\n eq.alias(M, \"M\");\n eq.alias(suma,\"s\");\n\n// for (int i=0;i<M.numRows;i++) {\n// for (int j = 0; j < M.numCols; j++) {\n// eq.alias(i, \"i\");\n// eq.alias(j, \"j\");\n// eq.process(\"s = s + M(i,j)\");\n//// suma = suma + M.get(i,j);\n// }\n// }\n// for (int i=0;i<M.numRows;i++){\n// for (int j=0;j<M.numCols;j++){\n//// eq.alias(i,\"i\");\n//// eq.alias(j,\"j\");\n//// eq.process(\"s = s + M(i,j)\");\n// M.set(i,j,M.get(i,j)/suma);\n// }\n for(int i=0; i < M.numRows; i++){\n eq.alias(i, \"i\");\n //eq.process(\"M(i,:) = exp(M(i,:) - max(M(i,:)))\"); // to prevent high values in exp(M)\n //eq.process(\"M(i,:) = M(i,:) / sum(M(i,:))\");\n eq.process(\"M(i,:) = M(i,:) / sum(M(i,:))\");\n// eq.process(\"M(i,:) = M(i,:) / s\");\n }\n }", "private double[] getMeanCenter(){\n double[] meanXY = new double[2];\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n // Plot points\n for (MeasurementService.DataPoint p: list) {\n meanXY[0] += (p.getX()*CONSTANT)+trans[0];\n meanXY[1] += (p.getY()*CONSTANT)+trans[1];\n }\n\n meanXY[0] = meanXY[0] / list.size();\n meanXY[1] = meanXY[1] / list.size();\n return meanXY;\n }", "private double getAbsoluteAverage(double [] inputs){\n double result = 0;\n for (int i = 0; i < inputs.length; i++) {\n result+= Math.abs(inputs[i]);\n }\n result = result/inputs.length;\n return result;\n }", "public double sampleVarianceOfMean() {\n\t\treturn sampleVariance() * getWeight();\n\t}", "public float getMean() {\r\n int sum = getSum(rbt.root);\r\n float mean = sum / rbt.size();\r\n return mean;\r\n }", "public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}", "public void normalize()\n\t{\n\t\tif (this.getDenom() < 0)\n\t\t{\n\t\t\tthis.setDenom(this.getDenom() * (-1));\n\t\t\tthis.setNumer(this.getNumer() * (-1));\n\t\t}\n\t}", "private void calculateMaxTemperatureNormalisation() {\n maxTemperatureNormalisation = (temperatureMax - temperatureMin) / 2;\n }", "public float getAverageBetweenPoint(){\n return getMetric()/list.size();\n }", "public double getMeanSquare() {\n return sumQ / count;\n }", "public Double getMean() {\n return mean;\n }", "public double computeAverageJointEntropy() {\r\n\t\tdouble entropy = 0.0;\r\n\t\tfor (int b = 0; b < totalObservations; b++) {\r\n\t\t\tdouble prob = mvkeJoint.getCount(observations[b], b);\r\n\t\t\tdouble cont = 0.0;\r\n\t\t\tif (prob > 0.0) {\r\n\t\t\t\tcont = - Math.log(prob);\r\n\t\t\t}\r\n\t\t\tentropy += cont;\r\n\t\t\tif (debug) {\r\n\t\t\t\tSystem.out.println(b + \": \" + prob\r\n\t\t\t\t\t\t+ \" -> \" + cont/Math.log(2.0) + \" -> sum: \" + (entropy/Math.log(2.0)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn entropy / (double) totalObservations / Math.log(2.0);\r\n\t}", "Boolean isOmitNorms();", "public static double[] normalize(double[] v) {\n double[] tmp = new double[3];\n tmp[0] = v[0] / VectorMath.length(v); \n tmp[1] = v[1] / VectorMath.length(v); \n tmp[2] = v[2] / VectorMath.length(v); \n return tmp; \n }", "protected Float additionalTransformation(String term, Float value){\n\t\tif(!ENABLE_ADD_NORMALIZATION) return value;\n\t\t\n\t\tFloat result = value;\n\t\t//result *= this.weightTermUniqeness(term); \n\t\tresult = this.sigmoidSmoothing(result);\n\t\t\n\t\treturn result;\n\t}", "public double mean()\n {\n return StdStats.mean(open);\n// return StdStats.sum(open) / count;\n }", "public Double[][] standardize(Double[][] dataSet) {\n Double sum=0.0;\n for (int i=0;i<dataSet.length;i++){\n for (int j=0; j<dataSet[0].length;j++){\n sum += dataSet[i][j];\n }\n }\n Double mean = sum/(dataSet.length*dataSet[0].length);\n Double std = 0.0;\n //compute standard deviation\n for (Double[] i: dataSet) {\n for (Double ij: i) {\n std += Math.pow(ij-mean,2.0); \n }\n }\n std = Math.sqrt(std/ (dataSet.length * dataSet[0].length));\n\n \n Double[][] newData = new Double[dataSet.length][dataSet[0].length];\n for (int i=0; i<dataSet.length; i++) {\n for (int j=0; j<dataSet[0].length; j++) {\n newData[i][j]= (dataSet[i][j]-mean)/std;\n }\n }\n return newData;\n }" ]
[ "0.68159056", "0.6622086", "0.65804726", "0.65162367", "0.6391303", "0.63813645", "0.6349556", "0.6332682", "0.6262885", "0.62061256", "0.6187069", "0.61762047", "0.61583906", "0.6132098", "0.6118648", "0.6102996", "0.6083297", "0.60616475", "0.60416585", "0.60342383", "0.60323894", "0.6020129", "0.60177207", "0.6017423", "0.6002539", "0.60000056", "0.59629565", "0.59552056", "0.59552056", "0.5954102", "0.59391445", "0.59391445", "0.5931396", "0.5930969", "0.59285134", "0.592762", "0.59184086", "0.59090865", "0.590542", "0.5902178", "0.5899457", "0.5897259", "0.5888928", "0.58716553", "0.58664", "0.5865334", "0.585196", "0.58516186", "0.5850413", "0.58477217", "0.58236516", "0.5818269", "0.5813043", "0.58128166", "0.5810819", "0.58089197", "0.57992303", "0.5799079", "0.5797141", "0.57936555", "0.5788955", "0.5786544", "0.5784722", "0.5780855", "0.57808304", "0.5768619", "0.5765362", "0.5764804", "0.5760372", "0.57532525", "0.5742319", "0.57422984", "0.5741441", "0.5738277", "0.57374287", "0.5713874", "0.5713545", "0.5708379", "0.57078284", "0.570326", "0.569464", "0.5690802", "0.56804866", "0.5672951", "0.56643635", "0.5664083", "0.56633455", "0.5660259", "0.5649594", "0.56476635", "0.5637566", "0.56331927", "0.56320477", "0.5622126", "0.56220317", "0.56169426", "0.5611144", "0.5610953", "0.5610205", "0.5602987" ]
0.5859815
46
returns String that contains all data in array. it is likely toString() method
public static String toString(double[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) str += String.valueOf(array[i]) + " "; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n }\n \n return arrString;\n }", "public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }", "public String toString()\n\t{\n\t\t// For empty array\n\t\tif(length() < 1)\n\t\t\tSystem.out.print(\"\");\n\t\tString output = \"\";\n\n\t\tfor(int index = 0; index < length(); index++)\n\t\t{\n\t\t\toutput = output + data[index];\n\t\t\tif(index+1 < length())\n\t\t\t{\n\t\t\t\toutput = output + \" \";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }", "public synchronized String toString()\n\t{\n\t\treturn Arrays.toString(array);\n\t}", "public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }", "public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}", "@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}", "public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}", "public String toString() {\n int[] d = new int[size];\n for (int k=0; k<size; k++)\n d[k] = data[k];\n return Arrays.toString(d);\n }", "public String toString()\r\n {\r\n String result = \"\";\r\n for ( int i = 0; i < SIZE; i++)\r\n {\r\n result = myArray[i] + result;\r\n }\r\n return result;\r\n \r\n }", "public String toString() {\n\t\tString s = \"\";\n\t\tfor (Coord x : array)\n\t\t\ts += x;\n\t\treturn s;\n\t}", "public String toString()\n {\n // create a counter called count\n int count = 0;\n // create empty string for concatenation purposes\n String retString = \"\";\n while(count < size)\n {\n // appending to retString\n retString += arr[count] + \" \";\n // increment count\n count++;\n }\n return retString;\n }", "@Override\n public String toString(){\n String result = \"\";\n for(int i = 0; i < numItems; i++){\n result += arr[i] + \" \";\n }\n return result;\n }", "public String toString(){\n\treturn Arrays.toString(a);\n }", "public String toString(){\r\n\t \tString str = \"\";\r\n\t \tint i=0;\r\n\t \tfor(; i < numElems-1; i++){\r\n\t \t\tstr += array[i].toString();\r\n\t \t\tstr += \", \";\r\n\t \t}\r\n\t \tstr += array[numElems-1];\r\n\t \treturn str;\r\n\t }", "public String toString() {\n String result = \"[\";\n if (!isEmpty()) {\n result += elementData[1];\n for (int i = 2; i <= size; i++) {\n result += \", \" + elementData[i];\n }\n }\n return result + \"]\";\n }", "@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }", "public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}", "public String toString() {\n\t \tif(size == 0) {\n\t \t\treturn \"[]\";\n\t \t}else {\n\t \t\t\n\t \t\tString result = \"[\" + elementData[0];\n\t \t\tfor(int i = 1; i < size; i++) {\n\t \t\t\tresult += \", \" + elementData[i];\n\t \t\t}\n\t \t\t\n\t \t\tresult += \"]\";\n\t \t\t\n\t \t\treturn result;\n\t \t}\n\t }", "public String toString() {\r\n\t\tString elements = \"<\";\r\n\t\t\r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + array[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t\telements += \" >\";\r\n\t\t\treturn elements;\r\n\t }", "@Override\n\tpublic String toString() {\n\t\tif (size() == 0) {\n\t\t\treturn \"[]\";\n\t\t} else if (size() == 1) {\n\t\t\treturn \"[\" + arr[0] + \"]\";\n\t\t} else {\n\t\t\t// size() >= 2\n\t\t\tString result = \"[\" + arr[0];\n\t\t\tfor (int i = 1; i < end; ++i) {\n\t\t\t\tresult += \", \" + arr[i];\n\t\t\t}\n\t\t\treturn result + \"]\";\n\t\t}\n\t}", "public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}", "@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }", "public String toString()\n {\n\t return \"[\" + data + \"]\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}", "public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}", "@Override\n public final String toString() {\n final int[] temp = new int[size];\n for (int i = 0; i < size; i++) {\n temp[i] = arrayList[i];\n }\n return Arrays.toString(temp);\n }", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "public String toString() {\n return \"\" + data;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nContents of SimpleArray:\\n\" + Arrays.toString(array);\n\t}", "public String toString()\n {\n\n String str = \"[\";\n Iterator<E> iterate = iterator();\n if (size == 0)\n {\n return \"[]\";\n }\n while (iterate.hasNext())\n {\n str += (iterate.next() + \", \");\n }\n return str.substring(0, str.length() - 2) + \"]\";\n }", "@Override\n public String toString() {\n double[][] temp = matx.getArray();\n String tempstr = \"[\";\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp.length; j++) {\n tempstr += (int) temp[i][j] + \", \";\n }\n tempstr = tempstr.substring(0, tempstr.length() - 2);\n tempstr += \"]\\n[\";\n }\n return tempstr.substring(0, tempstr.length() - 2);\n }", "public String toString(){\r\n\t\treturn Arrays.toString(ray)+\"\";\r\n\t}", "public String toString() {\n String temp = \"\";\n temp += \"[ \";\n for (int i = 0; i < elements.length - 1; i++) {\n temp += elements[i] + \",\";\n }\n temp += elements[this.elements.length - 1];\n temp += \" ]\\n\";\n return temp;\n }", "public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n\t\treturn data.toString();\n }", "public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tfor(int i = 0; i < size(); i++) {\n\t\t\tif( i != size()-1)\n\t\t\t\tsb.append(get(i) + \" , \");\n\t\t\telse\n\t\t\t\tsb.append(get(i));\n\t\t}\n\t\tsb.append(\"]\");\n\t\tsb.append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}", "public String toString()\n {\n\n String elem;\n StringBuilder s = new StringBuilder();\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array1[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n s.append('|');\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array2[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n return s.toString();\n }", "public String toString() {\n if (N == 0) return \"[ ]\";\n String s = \"\";\n s = s + \"[ \";\n for (int i = 0; i <= N; i++)\n s = s + a[i] + \" \";\n s = s + \"]\";\n return s;\n }", "public String[] toStrings();", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }", "public String toString() {\n StringBuffer buf = new StringBuffer();\n\n //for(int k=0; k<numPages; k++) {\n //buf.append(\"Page: \" + k + \"\\n\");\n for (int i = 0; i < numRows; i++) {\n buf.append(\"[ \");\n for (int j = 0; j < numCols; j++) {\n buf.append(data[i][j] + \", \");\n }\n buf.append(\" ]\\n\");\n }\n //}\n return buf.toString();\n }", "public String toString() {\r\n\t\tString Array = (\"Matricola:\" + matricola + \" mediaVoti: \" + mediaVoti + \" nroEsamiSostenuti: \" + nroEsamiSostenuti\r\n\t\t\t\t+ \" nroLodi: \" + nroLodi);\r\n\t\treturn Array;\r\n\t}", "public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }", "public String toString() {\r\n\treturn data;\r\n }", "@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tif (size == 0) {\r\n\t\t\treturn \"[]\";\r\n\t\t}\r\n\r\n\t\tString s = \"[\";\r\n\r\n\t\tint currentRow = 0;\r\n\t\twhile (table[currentRow] == null) {\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += table[currentRow].toString();\r\n\t\ts += rowOfEntriesToString(table[currentRow].next);\r\n\r\n\t\tcurrentRow++;\r\n\r\n\t\twhile (currentRow < table.length) {\r\n\t\t\ts += rowOfEntriesToString(table[currentRow]);\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += \"]\";\r\n\t\treturn s;\r\n\t}", "public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}", "public String toString() {\n String sorted = \"[\";\n for (int i = 0; i < size - 1; i++) {\n sorted = sorted + array[i] + \", \";\n }\n sorted = sorted + array[size - 1] + \"]\";\n return sorted;\n }", "public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor(int i = 0; i<this.size; i++){\n\t\t\tfor(int j=0; j<this.size; j++){\n\t\t\t\toutput.append(this.numbers[i][j] + \"\\t\");\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ts+=a[i]+\" \";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public String toString() {\r\n StringBuilder result= new StringBuilder();\r\n for(int x=0;x<8;x++){\r\n for(int y=0;y<8;y++){\r\n result.append(checks[x][y]).append(\",\");\r\n }\r\n result.append(\"\\n\");\r\n }\r\n return result.toString();\r\n }", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}", "@Override\n public String toString()\n {\n StringBuffer sb = new StringBuffer();\n\n for (int i = 0; i < dice.length; i++)\n {\n sb.append(dice[i][0]);\n }\n\n return sb.toString();\n }", "private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString();\n }", "public String toString() {\n if (size > 0) {\n String display = \"[\";\n for (int i = 0; i < size - 1; i++) {\n display += list[i] + \",\";\n } display += list[size - 1] + \"]\";\n return display;\n }\n return \"[]\";\n }", "@Override\n public String toString() {\n StringBuilder string = new StringBuilder();\n string.append(\"size=\").append(size).append(\", [\");\n for (int i = 0; i < size; i++) {\n if (i != 0) {\n string.append(\", \");\n }\n\n string.append(elements[i]);\n\n//\t\t\tif (i != size - 1) {\n//\t\t\t\tstring.append(\", \");\n//\t\t\t}\n }\n string.append(\"]\");\n return string.toString();\n }", "public String toString()\n {\n String print = \"\";\n for (int x = 0; x < items.length; x++)\n if (items[x] != null)\n print = print + items[x] + \" \";\n return print;\n }", "public String toString(){\r\n\t\tString ret = \"MatrixArray:\\n\";\r\n\t\tfor (int i = 0; i < this.MA.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.MA[i].length; j++){\r\n\t\t\t\tif (j > 0) {\r\n\t\t\t\t\tret += \", \";\r\n\t\t }\r\n\t\t ret += String.valueOf(this.MA[i][j]);\r\n\t\t\t}\r\n\t\t\tret += \"\\n\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}", "public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }", "@Override\n\tpublic String toString() {\n\t\tString s = \"[\";\n\t\tif(this.vector != null) {\n\t\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\t\ts = s + this.vector.get(i);\n\t\t\t\tif(i != this.vector.size()-1) s = s + \",\";\n\t\t\t}\n\t\t}\n\t\ts = s + \"]\";\n\t\treturn s;\n\t}", "public String toString()\n\t{\n\t\tString output = \"\";\n\t\tfor(String[] at:atMat){\n\t\t\tfor(String a:at){\n\t\t\t\toutput += a+ \" \";\n\t\t\t}\n\t\t\toutput += \"\\n\";\n\t\t}\n\t\treturn output;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (byte m = 0; m < 9; m++) {\n\t\t\tfor (byte n = 0; n < 9; n++) {\n\t\t\t\tsb.append(cells[m][n].getValue());\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\r\n\t\tString salida = \"El inicio de la subsecuencia maxima es \" + izq\r\n\t\t\t\t+ \", el final \" + der + \", la suma maxima es \" + sumaMax\r\n\t\t\t\t+ \" y los datos son \";\r\n\t\tfor (int a : array)\r\n\t\t\tsalida += a + \" \";\r\n\t\treturn salida;\r\n\t}", "public String[] asStringArray() {\n\t\tString array[] = new String[4];\n\t\tarray[0] = \"Name: \" + this.name;\n\t\tarray[1] = \"Money: \" + Double.toString(this.money);\n\t\tarray[2] = \"On table: \" + Double.toString(onTable);\n\t\tif (this.getBlind() == Blind.NONE) {\n\t\t\tarray[3] = \"\";\n\t\t} else {\n\t\t\tarray[3] = \"Blind \" + this.blind.name();\n\t\t}\n\t\treturn array;\n\t}", "public String toString() {\n String s = \"\";\n for (int i = 0; i < size; i++) {\n s += taskarr[i].gettitle() + \", \" + taskarr[i].getassignedTo()\n + \", \" + taskarr[i].gettimetocomplete()\n + \", \" + taskarr[i].getImportant() + \", \" + taskarr[i].getUrgent()\n + \", \" + taskarr[i].getStatus() + \"\\n\";\n }\n return s;\n }", "public String toString(){\n String string = new String();\n for(int i = 0; i < axis.length; i++){\n string += axis[i];\n if(i != (axis.length - 1)){\n string += \" / \";\n }\n }\n return string;\n }", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "public String toString() {\n String result = \"[]\";\n if (length == 0) return result;\n result = \"[\" + head.getNext().getData();\n DoublyLinkedList temp = head.getNext().getNext();\n while (temp != tail) {\n result += \",\" + temp.getData();\n temp = temp.getNext();\n }\n return result + \"]\";\n }", "public String toString() {\n String res = \"\";\n \n for ( int[] row : img ) {\n for ( int x : row )\n res += x + \" \";\n res += \"\\n\";\n }\n return res;\n }", "@Override\n public String toString() {\n return \"array read on \" + System.identityHashCode(array) + \"; index=\" + index + \"; stream=\" + getStream().getStreamNumber();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "public String toString() {\n\t\tString temp = \"{\"; // String declaration\n\t\t\n\t\tfor(int i=0; i < stringArray.size(); i++) {\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t// If the element is not an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += stringArray.get(i) + \", \"; // If the last item, do add commas in between\n\t\t\t\telse temp += stringArray.get(i); // If the last item, only add the string and not a comma\n\t\t\t}\n\t\t\t\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\")) {\n\t\t\t// If the element is an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += \", \"; // If the last item, then do not add a comma\n\t\t\t}\n\t\t}\n\t\t\n\t\ttemp += \"}\"; // Concatenate to string\n\t\t\n\t\treturn temp; // Return the final string\n\t}", "public String toString()\r\n\t{\r\n\t\tString s = \"Volume Name: \" + volumeName + \" \" + \"Number of Books: \" + numberOfBooks + \"\\n\";\r\n\r\n\t\ts = s + getBookArray();\r\n\t\treturn s;\r\n\t}", "public String toString() \n\t{\n\t\tString toReturn = \"\";\n\t\t\n\t\t\n\t\tfor(Vertex v : vertices) \n\t\t{\n\t\t\tHashMap<Vertex, Integer> E = getEdges(v);\n\t\t\t\n\t\t\tif(!E.isEmpty())\n\t\t\t{\n\t\t\t\ttoReturn = toReturn + v + \"(\";\n\t\t\t\tfor(Vertex edge : E.keySet()) \n\t\t\t\t{\n\t\t\t\t\ttoReturn = toReturn + edge.getName() + \", \";\n\t\t\t\t}\n\t\t\t\ttoReturn = toReturn.trim().substring(0, toReturn.length() - 2);\n\t\t\t\ttoReturn = toReturn + \")\\n\";\n\t\t\t}\n\t\t\telse {toReturn = toReturn + v + \"[]\\n\";}\n\t\t}\n\t\treturn toReturn;\n\t}", "public String toString() {\n StringBuilder output = new StringBuilder();\n output.append(\"{\\n\");\n for (int i=0; i<rows; i++) {\n output.append(Arrays.toString(matrix.get(i)) + \",\\n\");\n }\n output.append(\"}\\n\");\n return output.toString();\n }", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }", "public String toString() {\n \n StringBuffer buffer = new StringBuffer();\n \n buffer.append( String.format( \"Size=%d, A = [ \", size ) );\n \n if ( !isEmpty() ) {\n \n for ( int i=0; i<size-1; i++ ) {\n buffer.append( String.format( \"%d, \", get(i) ) ); \n }\n \n buffer.append( String.format( \"%d ]\", get(size-1 ) ) );\n \n } else {\n \n buffer.append( \"] \" );\n }\n \n return buffer.toString();\n \n }", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString str = new String();\r\n\t\tfor(Cell2048[] a : game) {\r\n\t\t\tfor(Cell2048 b : a)\r\n\t\t\t\tstr += b.getValue();\r\n\t\t}\r\n\t\treturn Integer.toString(rows_size) + \",\" + Integer.toString(columns_size) +\",\" +str;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}", "@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"[\");\n\t\tstringBuilder.append(a);\n\t\tstringBuilder.append(\",\");\n\t\tstringBuilder.append(b);\n\t\tstringBuilder.append(\"]\");\n\t\treturn stringBuilder.toString();\n\t\t}" ]
[ "0.8657636", "0.85958254", "0.85550153", "0.85541713", "0.8466541", "0.84621257", "0.84189713", "0.8348402", "0.8292712", "0.82229847", "0.81696725", "0.8148786", "0.81439054", "0.8080732", "0.8037397", "0.80146796", "0.7997889", "0.7943237", "0.7920312", "0.78717774", "0.78691405", "0.7845308", "0.78367424", "0.7814041", "0.7798534", "0.7707121", "0.768859", "0.76854503", "0.7667993", "0.7636529", "0.7553858", "0.75362617", "0.7535469", "0.75251627", "0.74905473", "0.7479614", "0.74607223", "0.74557966", "0.74267185", "0.7424796", "0.7410612", "0.73949534", "0.7377682", "0.73514163", "0.7341093", "0.73302734", "0.73183674", "0.73052716", "0.73052716", "0.7282154", "0.72758496", "0.72606444", "0.7248337", "0.7238044", "0.72108626", "0.7205201", "0.7189415", "0.71883947", "0.7185037", "0.7183874", "0.7165913", "0.71474415", "0.7142523", "0.71423423", "0.71383786", "0.7131588", "0.71266145", "0.7126441", "0.71064264", "0.71049815", "0.7078062", "0.7047795", "0.70441395", "0.7038924", "0.70375323", "0.7034737", "0.7030891", "0.7020997", "0.70204896", "0.70093226", "0.7000991", "0.69911045", "0.6987344", "0.6986496", "0.69785756", "0.6955284", "0.6955284", "0.6955244", "0.6950933", "0.69418496", "0.693973", "0.6939303", "0.69381344", "0.69295466", "0.69289184", "0.69255996", "0.69241", "0.6919912", "0.6916836", "0.69141793" ]
0.7010501
79
returns String that contains all data in array. it is likely toString() method
public static String toString(boolean[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) if (array[i]) str += "1" + ""; else str += "0" + ""; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n }\n \n return arrString;\n }", "public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }", "public String toString()\n\t{\n\t\t// For empty array\n\t\tif(length() < 1)\n\t\t\tSystem.out.print(\"\");\n\t\tString output = \"\";\n\n\t\tfor(int index = 0; index < length(); index++)\n\t\t{\n\t\t\toutput = output + data[index];\n\t\t\tif(index+1 < length())\n\t\t\t{\n\t\t\t\toutput = output + \" \";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }", "public synchronized String toString()\n\t{\n\t\treturn Arrays.toString(array);\n\t}", "public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }", "public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}", "@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}", "public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}", "public String toString() {\n int[] d = new int[size];\n for (int k=0; k<size; k++)\n d[k] = data[k];\n return Arrays.toString(d);\n }", "public String toString()\r\n {\r\n String result = \"\";\r\n for ( int i = 0; i < SIZE; i++)\r\n {\r\n result = myArray[i] + result;\r\n }\r\n return result;\r\n \r\n }", "public String toString() {\n\t\tString s = \"\";\n\t\tfor (Coord x : array)\n\t\t\ts += x;\n\t\treturn s;\n\t}", "public String toString()\n {\n // create a counter called count\n int count = 0;\n // create empty string for concatenation purposes\n String retString = \"\";\n while(count < size)\n {\n // appending to retString\n retString += arr[count] + \" \";\n // increment count\n count++;\n }\n return retString;\n }", "@Override\n public String toString(){\n String result = \"\";\n for(int i = 0; i < numItems; i++){\n result += arr[i] + \" \";\n }\n return result;\n }", "public String toString(){\n\treturn Arrays.toString(a);\n }", "public String toString(){\r\n\t \tString str = \"\";\r\n\t \tint i=0;\r\n\t \tfor(; i < numElems-1; i++){\r\n\t \t\tstr += array[i].toString();\r\n\t \t\tstr += \", \";\r\n\t \t}\r\n\t \tstr += array[numElems-1];\r\n\t \treturn str;\r\n\t }", "public String toString() {\n String result = \"[\";\n if (!isEmpty()) {\n result += elementData[1];\n for (int i = 2; i <= size; i++) {\n result += \", \" + elementData[i];\n }\n }\n return result + \"]\";\n }", "@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }", "public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}", "public String toString() {\n\t \tif(size == 0) {\n\t \t\treturn \"[]\";\n\t \t}else {\n\t \t\t\n\t \t\tString result = \"[\" + elementData[0];\n\t \t\tfor(int i = 1; i < size; i++) {\n\t \t\t\tresult += \", \" + elementData[i];\n\t \t\t}\n\t \t\t\n\t \t\tresult += \"]\";\n\t \t\t\n\t \t\treturn result;\n\t \t}\n\t }", "public String toString() {\r\n\t\tString elements = \"<\";\r\n\t\t\r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + array[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t\telements += \" >\";\r\n\t\t\treturn elements;\r\n\t }", "@Override\n\tpublic String toString() {\n\t\tif (size() == 0) {\n\t\t\treturn \"[]\";\n\t\t} else if (size() == 1) {\n\t\t\treturn \"[\" + arr[0] + \"]\";\n\t\t} else {\n\t\t\t// size() >= 2\n\t\t\tString result = \"[\" + arr[0];\n\t\t\tfor (int i = 1; i < end; ++i) {\n\t\t\t\tresult += \", \" + arr[i];\n\t\t\t}\n\t\t\treturn result + \"]\";\n\t\t}\n\t}", "public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}", "@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }", "public String toString()\n {\n\t return \"[\" + data + \"]\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}", "public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}", "@Override\n public final String toString() {\n final int[] temp = new int[size];\n for (int i = 0; i < size; i++) {\n temp[i] = arrayList[i];\n }\n return Arrays.toString(temp);\n }", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "public String toString() {\n return \"\" + data;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nContents of SimpleArray:\\n\" + Arrays.toString(array);\n\t}", "public String toString()\n {\n\n String str = \"[\";\n Iterator<E> iterate = iterator();\n if (size == 0)\n {\n return \"[]\";\n }\n while (iterate.hasNext())\n {\n str += (iterate.next() + \", \");\n }\n return str.substring(0, str.length() - 2) + \"]\";\n }", "@Override\n public String toString() {\n double[][] temp = matx.getArray();\n String tempstr = \"[\";\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp.length; j++) {\n tempstr += (int) temp[i][j] + \", \";\n }\n tempstr = tempstr.substring(0, tempstr.length() - 2);\n tempstr += \"]\\n[\";\n }\n return tempstr.substring(0, tempstr.length() - 2);\n }", "public String toString(){\r\n\t\treturn Arrays.toString(ray)+\"\";\r\n\t}", "public String toString() {\n String temp = \"\";\n temp += \"[ \";\n for (int i = 0; i < elements.length - 1; i++) {\n temp += elements[i] + \",\";\n }\n temp += elements[this.elements.length - 1];\n temp += \" ]\\n\";\n return temp;\n }", "public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n\t\treturn data.toString();\n }", "public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tfor(int i = 0; i < size(); i++) {\n\t\t\tif( i != size()-1)\n\t\t\t\tsb.append(get(i) + \" , \");\n\t\t\telse\n\t\t\t\tsb.append(get(i));\n\t\t}\n\t\tsb.append(\"]\");\n\t\tsb.append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}", "public String toString()\n {\n\n String elem;\n StringBuilder s = new StringBuilder();\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array1[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n s.append('|');\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array2[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n return s.toString();\n }", "public String toString() {\n if (N == 0) return \"[ ]\";\n String s = \"\";\n s = s + \"[ \";\n for (int i = 0; i <= N; i++)\n s = s + a[i] + \" \";\n s = s + \"]\";\n return s;\n }", "public String[] toStrings();", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }", "public String toString() {\n StringBuffer buf = new StringBuffer();\n\n //for(int k=0; k<numPages; k++) {\n //buf.append(\"Page: \" + k + \"\\n\");\n for (int i = 0; i < numRows; i++) {\n buf.append(\"[ \");\n for (int j = 0; j < numCols; j++) {\n buf.append(data[i][j] + \", \");\n }\n buf.append(\" ]\\n\");\n }\n //}\n return buf.toString();\n }", "public String toString() {\r\n\t\tString Array = (\"Matricola:\" + matricola + \" mediaVoti: \" + mediaVoti + \" nroEsamiSostenuti: \" + nroEsamiSostenuti\r\n\t\t\t\t+ \" nroLodi: \" + nroLodi);\r\n\t\treturn Array;\r\n\t}", "public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }", "public String toString() {\r\n\treturn data;\r\n }", "@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tif (size == 0) {\r\n\t\t\treturn \"[]\";\r\n\t\t}\r\n\r\n\t\tString s = \"[\";\r\n\r\n\t\tint currentRow = 0;\r\n\t\twhile (table[currentRow] == null) {\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += table[currentRow].toString();\r\n\t\ts += rowOfEntriesToString(table[currentRow].next);\r\n\r\n\t\tcurrentRow++;\r\n\r\n\t\twhile (currentRow < table.length) {\r\n\t\t\ts += rowOfEntriesToString(table[currentRow]);\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += \"]\";\r\n\t\treturn s;\r\n\t}", "public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}", "public String toString() {\n String sorted = \"[\";\n for (int i = 0; i < size - 1; i++) {\n sorted = sorted + array[i] + \", \";\n }\n sorted = sorted + array[size - 1] + \"]\";\n return sorted;\n }", "public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor(int i = 0; i<this.size; i++){\n\t\t\tfor(int j=0; j<this.size; j++){\n\t\t\t\toutput.append(this.numbers[i][j] + \"\\t\");\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ts+=a[i]+\" \";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public String toString() {\r\n StringBuilder result= new StringBuilder();\r\n for(int x=0;x<8;x++){\r\n for(int y=0;y<8;y++){\r\n result.append(checks[x][y]).append(\",\");\r\n }\r\n result.append(\"\\n\");\r\n }\r\n return result.toString();\r\n }", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}", "@Override\n public String toString()\n {\n StringBuffer sb = new StringBuffer();\n\n for (int i = 0; i < dice.length; i++)\n {\n sb.append(dice[i][0]);\n }\n\n return sb.toString();\n }", "private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString();\n }", "public String toString() {\n if (size > 0) {\n String display = \"[\";\n for (int i = 0; i < size - 1; i++) {\n display += list[i] + \",\";\n } display += list[size - 1] + \"]\";\n return display;\n }\n return \"[]\";\n }", "@Override\n public String toString() {\n StringBuilder string = new StringBuilder();\n string.append(\"size=\").append(size).append(\", [\");\n for (int i = 0; i < size; i++) {\n if (i != 0) {\n string.append(\", \");\n }\n\n string.append(elements[i]);\n\n//\t\t\tif (i != size - 1) {\n//\t\t\t\tstring.append(\", \");\n//\t\t\t}\n }\n string.append(\"]\");\n return string.toString();\n }", "public String toString()\n {\n String print = \"\";\n for (int x = 0; x < items.length; x++)\n if (items[x] != null)\n print = print + items[x] + \" \";\n return print;\n }", "public String toString(){\r\n\t\tString ret = \"MatrixArray:\\n\";\r\n\t\tfor (int i = 0; i < this.MA.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.MA[i].length; j++){\r\n\t\t\t\tif (j > 0) {\r\n\t\t\t\t\tret += \", \";\r\n\t\t }\r\n\t\t ret += String.valueOf(this.MA[i][j]);\r\n\t\t\t}\r\n\t\t\tret += \"\\n\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}", "public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }", "@Override\n\tpublic String toString() {\n\t\tString s = \"[\";\n\t\tif(this.vector != null) {\n\t\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\t\ts = s + this.vector.get(i);\n\t\t\t\tif(i != this.vector.size()-1) s = s + \",\";\n\t\t\t}\n\t\t}\n\t\ts = s + \"]\";\n\t\treturn s;\n\t}", "public String toString()\n\t{\n\t\tString output = \"\";\n\t\tfor(String[] at:atMat){\n\t\t\tfor(String a:at){\n\t\t\t\toutput += a+ \" \";\n\t\t\t}\n\t\t\toutput += \"\\n\";\n\t\t}\n\t\treturn output;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (byte m = 0; m < 9; m++) {\n\t\t\tfor (byte n = 0; n < 9; n++) {\n\t\t\t\tsb.append(cells[m][n].getValue());\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\r\n\t\tString salida = \"El inicio de la subsecuencia maxima es \" + izq\r\n\t\t\t\t+ \", el final \" + der + \", la suma maxima es \" + sumaMax\r\n\t\t\t\t+ \" y los datos son \";\r\n\t\tfor (int a : array)\r\n\t\t\tsalida += a + \" \";\r\n\t\treturn salida;\r\n\t}", "public String[] asStringArray() {\n\t\tString array[] = new String[4];\n\t\tarray[0] = \"Name: \" + this.name;\n\t\tarray[1] = \"Money: \" + Double.toString(this.money);\n\t\tarray[2] = \"On table: \" + Double.toString(onTable);\n\t\tif (this.getBlind() == Blind.NONE) {\n\t\t\tarray[3] = \"\";\n\t\t} else {\n\t\t\tarray[3] = \"Blind \" + this.blind.name();\n\t\t}\n\t\treturn array;\n\t}", "public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}", "public String toString() {\n String s = \"\";\n for (int i = 0; i < size; i++) {\n s += taskarr[i].gettitle() + \", \" + taskarr[i].getassignedTo()\n + \", \" + taskarr[i].gettimetocomplete()\n + \", \" + taskarr[i].getImportant() + \", \" + taskarr[i].getUrgent()\n + \", \" + taskarr[i].getStatus() + \"\\n\";\n }\n return s;\n }", "public String toString(){\n String string = new String();\n for(int i = 0; i < axis.length; i++){\n string += axis[i];\n if(i != (axis.length - 1)){\n string += \" / \";\n }\n }\n return string;\n }", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "public String toString() {\n String result = \"[]\";\n if (length == 0) return result;\n result = \"[\" + head.getNext().getData();\n DoublyLinkedList temp = head.getNext().getNext();\n while (temp != tail) {\n result += \",\" + temp.getData();\n temp = temp.getNext();\n }\n return result + \"]\";\n }", "public String toString() {\n String res = \"\";\n \n for ( int[] row : img ) {\n for ( int x : row )\n res += x + \" \";\n res += \"\\n\";\n }\n return res;\n }", "@Override\n public String toString() {\n return \"array read on \" + System.identityHashCode(array) + \"; index=\" + index + \"; stream=\" + getStream().getStreamNumber();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "public String toString() {\n\t\tString temp = \"{\"; // String declaration\n\t\t\n\t\tfor(int i=0; i < stringArray.size(); i++) {\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t// If the element is not an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += stringArray.get(i) + \", \"; // If the last item, do add commas in between\n\t\t\t\telse temp += stringArray.get(i); // If the last item, only add the string and not a comma\n\t\t\t}\n\t\t\t\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\")) {\n\t\t\t// If the element is an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += \", \"; // If the last item, then do not add a comma\n\t\t\t}\n\t\t}\n\t\t\n\t\ttemp += \"}\"; // Concatenate to string\n\t\t\n\t\treturn temp; // Return the final string\n\t}", "public String toString()\r\n\t{\r\n\t\tString s = \"Volume Name: \" + volumeName + \" \" + \"Number of Books: \" + numberOfBooks + \"\\n\";\r\n\r\n\t\ts = s + getBookArray();\r\n\t\treturn s;\r\n\t}", "public String toString() \n\t{\n\t\tString toReturn = \"\";\n\t\t\n\t\t\n\t\tfor(Vertex v : vertices) \n\t\t{\n\t\t\tHashMap<Vertex, Integer> E = getEdges(v);\n\t\t\t\n\t\t\tif(!E.isEmpty())\n\t\t\t{\n\t\t\t\ttoReturn = toReturn + v + \"(\";\n\t\t\t\tfor(Vertex edge : E.keySet()) \n\t\t\t\t{\n\t\t\t\t\ttoReturn = toReturn + edge.getName() + \", \";\n\t\t\t\t}\n\t\t\t\ttoReturn = toReturn.trim().substring(0, toReturn.length() - 2);\n\t\t\t\ttoReturn = toReturn + \")\\n\";\n\t\t\t}\n\t\t\telse {toReturn = toReturn + v + \"[]\\n\";}\n\t\t}\n\t\treturn toReturn;\n\t}", "public String toString() {\n StringBuilder output = new StringBuilder();\n output.append(\"{\\n\");\n for (int i=0; i<rows; i++) {\n output.append(Arrays.toString(matrix.get(i)) + \",\\n\");\n }\n output.append(\"}\\n\");\n return output.toString();\n }", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }", "public String toString() {\n \n StringBuffer buffer = new StringBuffer();\n \n buffer.append( String.format( \"Size=%d, A = [ \", size ) );\n \n if ( !isEmpty() ) {\n \n for ( int i=0; i<size-1; i++ ) {\n buffer.append( String.format( \"%d, \", get(i) ) ); \n }\n \n buffer.append( String.format( \"%d ]\", get(size-1 ) ) );\n \n } else {\n \n buffer.append( \"] \" );\n }\n \n return buffer.toString();\n \n }", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString str = new String();\r\n\t\tfor(Cell2048[] a : game) {\r\n\t\t\tfor(Cell2048 b : a)\r\n\t\t\t\tstr += b.getValue();\r\n\t\t}\r\n\t\treturn Integer.toString(rows_size) + \",\" + Integer.toString(columns_size) +\",\" +str;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}", "@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"[\");\n\t\tstringBuilder.append(a);\n\t\tstringBuilder.append(\",\");\n\t\tstringBuilder.append(b);\n\t\tstringBuilder.append(\"]\");\n\t\treturn stringBuilder.toString();\n\t\t}" ]
[ "0.8657636", "0.85958254", "0.85550153", "0.85541713", "0.8466541", "0.84621257", "0.84189713", "0.8348402", "0.8292712", "0.82229847", "0.81696725", "0.8148786", "0.81439054", "0.8080732", "0.8037397", "0.80146796", "0.7997889", "0.7943237", "0.7920312", "0.78717774", "0.78691405", "0.7845308", "0.78367424", "0.7814041", "0.7798534", "0.7707121", "0.768859", "0.76854503", "0.7667993", "0.7636529", "0.7553858", "0.75362617", "0.7535469", "0.75251627", "0.74905473", "0.7479614", "0.74607223", "0.74557966", "0.74267185", "0.7424796", "0.7410612", "0.73949534", "0.7377682", "0.73514163", "0.7341093", "0.73302734", "0.73183674", "0.73052716", "0.73052716", "0.7282154", "0.72758496", "0.72606444", "0.7248337", "0.7238044", "0.72108626", "0.7205201", "0.7189415", "0.71883947", "0.7185037", "0.7183874", "0.7165913", "0.71474415", "0.7142523", "0.71423423", "0.71383786", "0.7131588", "0.71266145", "0.7126441", "0.71064264", "0.71049815", "0.7078062", "0.7047795", "0.70441395", "0.7038924", "0.70375323", "0.7034737", "0.7030891", "0.7020997", "0.70204896", "0.7010501", "0.70093226", "0.7000991", "0.69911045", "0.6987344", "0.6986496", "0.69785756", "0.6955284", "0.6955284", "0.6955244", "0.6950933", "0.69418496", "0.693973", "0.6939303", "0.69381344", "0.69295466", "0.69289184", "0.69255996", "0.69241", "0.6919912", "0.6916836", "0.69141793" ]
0.0
-1
returns String that contains all data in array. it is likely toString() method
public static String toString(String format, int[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) str += String.format(format, array[i]) + " "; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n }\n \n return arrString;\n }", "public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }", "public String toString()\n\t{\n\t\t// For empty array\n\t\tif(length() < 1)\n\t\t\tSystem.out.print(\"\");\n\t\tString output = \"\";\n\n\t\tfor(int index = 0; index < length(); index++)\n\t\t{\n\t\t\toutput = output + data[index];\n\t\t\tif(index+1 < length())\n\t\t\t{\n\t\t\t\toutput = output + \" \";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }", "public synchronized String toString()\n\t{\n\t\treturn Arrays.toString(array);\n\t}", "public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }", "public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}", "@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}", "public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}", "public String toString() {\n int[] d = new int[size];\n for (int k=0; k<size; k++)\n d[k] = data[k];\n return Arrays.toString(d);\n }", "public String toString()\r\n {\r\n String result = \"\";\r\n for ( int i = 0; i < SIZE; i++)\r\n {\r\n result = myArray[i] + result;\r\n }\r\n return result;\r\n \r\n }", "public String toString() {\n\t\tString s = \"\";\n\t\tfor (Coord x : array)\n\t\t\ts += x;\n\t\treturn s;\n\t}", "public String toString()\n {\n // create a counter called count\n int count = 0;\n // create empty string for concatenation purposes\n String retString = \"\";\n while(count < size)\n {\n // appending to retString\n retString += arr[count] + \" \";\n // increment count\n count++;\n }\n return retString;\n }", "@Override\n public String toString(){\n String result = \"\";\n for(int i = 0; i < numItems; i++){\n result += arr[i] + \" \";\n }\n return result;\n }", "public String toString(){\n\treturn Arrays.toString(a);\n }", "public String toString(){\r\n\t \tString str = \"\";\r\n\t \tint i=0;\r\n\t \tfor(; i < numElems-1; i++){\r\n\t \t\tstr += array[i].toString();\r\n\t \t\tstr += \", \";\r\n\t \t}\r\n\t \tstr += array[numElems-1];\r\n\t \treturn str;\r\n\t }", "public String toString() {\n String result = \"[\";\n if (!isEmpty()) {\n result += elementData[1];\n for (int i = 2; i <= size; i++) {\n result += \", \" + elementData[i];\n }\n }\n return result + \"]\";\n }", "@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }", "public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}", "public String toString() {\n\t \tif(size == 0) {\n\t \t\treturn \"[]\";\n\t \t}else {\n\t \t\t\n\t \t\tString result = \"[\" + elementData[0];\n\t \t\tfor(int i = 1; i < size; i++) {\n\t \t\t\tresult += \", \" + elementData[i];\n\t \t\t}\n\t \t\t\n\t \t\tresult += \"]\";\n\t \t\t\n\t \t\treturn result;\n\t \t}\n\t }", "public String toString() {\r\n\t\tString elements = \"<\";\r\n\t\t\r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + array[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t\telements += \" >\";\r\n\t\t\treturn elements;\r\n\t }", "@Override\n\tpublic String toString() {\n\t\tif (size() == 0) {\n\t\t\treturn \"[]\";\n\t\t} else if (size() == 1) {\n\t\t\treturn \"[\" + arr[0] + \"]\";\n\t\t} else {\n\t\t\t// size() >= 2\n\t\t\tString result = \"[\" + arr[0];\n\t\t\tfor (int i = 1; i < end; ++i) {\n\t\t\t\tresult += \", \" + arr[i];\n\t\t\t}\n\t\t\treturn result + \"]\";\n\t\t}\n\t}", "public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}", "@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }", "public String toString()\n {\n\t return \"[\" + data + \"]\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}", "public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}", "@Override\n public final String toString() {\n final int[] temp = new int[size];\n for (int i = 0; i < size; i++) {\n temp[i] = arrayList[i];\n }\n return Arrays.toString(temp);\n }", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "public String toString() {\n return \"\" + data;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nContents of SimpleArray:\\n\" + Arrays.toString(array);\n\t}", "public String toString()\n {\n\n String str = \"[\";\n Iterator<E> iterate = iterator();\n if (size == 0)\n {\n return \"[]\";\n }\n while (iterate.hasNext())\n {\n str += (iterate.next() + \", \");\n }\n return str.substring(0, str.length() - 2) + \"]\";\n }", "@Override\n public String toString() {\n double[][] temp = matx.getArray();\n String tempstr = \"[\";\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp.length; j++) {\n tempstr += (int) temp[i][j] + \", \";\n }\n tempstr = tempstr.substring(0, tempstr.length() - 2);\n tempstr += \"]\\n[\";\n }\n return tempstr.substring(0, tempstr.length() - 2);\n }", "public String toString(){\r\n\t\treturn Arrays.toString(ray)+\"\";\r\n\t}", "public String toString() {\n String temp = \"\";\n temp += \"[ \";\n for (int i = 0; i < elements.length - 1; i++) {\n temp += elements[i] + \",\";\n }\n temp += elements[this.elements.length - 1];\n temp += \" ]\\n\";\n return temp;\n }", "public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n\t\treturn data.toString();\n }", "public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tfor(int i = 0; i < size(); i++) {\n\t\t\tif( i != size()-1)\n\t\t\t\tsb.append(get(i) + \" , \");\n\t\t\telse\n\t\t\t\tsb.append(get(i));\n\t\t}\n\t\tsb.append(\"]\");\n\t\tsb.append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}", "public String toString()\n {\n\n String elem;\n StringBuilder s = new StringBuilder();\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array1[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n s.append('|');\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array2[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n return s.toString();\n }", "public String toString() {\n if (N == 0) return \"[ ]\";\n String s = \"\";\n s = s + \"[ \";\n for (int i = 0; i <= N; i++)\n s = s + a[i] + \" \";\n s = s + \"]\";\n return s;\n }", "public String[] toStrings();", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }", "public String toString() {\n StringBuffer buf = new StringBuffer();\n\n //for(int k=0; k<numPages; k++) {\n //buf.append(\"Page: \" + k + \"\\n\");\n for (int i = 0; i < numRows; i++) {\n buf.append(\"[ \");\n for (int j = 0; j < numCols; j++) {\n buf.append(data[i][j] + \", \");\n }\n buf.append(\" ]\\n\");\n }\n //}\n return buf.toString();\n }", "public String toString() {\r\n\t\tString Array = (\"Matricola:\" + matricola + \" mediaVoti: \" + mediaVoti + \" nroEsamiSostenuti: \" + nroEsamiSostenuti\r\n\t\t\t\t+ \" nroLodi: \" + nroLodi);\r\n\t\treturn Array;\r\n\t}", "public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }", "public String toString() {\r\n\treturn data;\r\n }", "@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tif (size == 0) {\r\n\t\t\treturn \"[]\";\r\n\t\t}\r\n\r\n\t\tString s = \"[\";\r\n\r\n\t\tint currentRow = 0;\r\n\t\twhile (table[currentRow] == null) {\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += table[currentRow].toString();\r\n\t\ts += rowOfEntriesToString(table[currentRow].next);\r\n\r\n\t\tcurrentRow++;\r\n\r\n\t\twhile (currentRow < table.length) {\r\n\t\t\ts += rowOfEntriesToString(table[currentRow]);\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += \"]\";\r\n\t\treturn s;\r\n\t}", "public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}", "public String toString() {\n String sorted = \"[\";\n for (int i = 0; i < size - 1; i++) {\n sorted = sorted + array[i] + \", \";\n }\n sorted = sorted + array[size - 1] + \"]\";\n return sorted;\n }", "public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor(int i = 0; i<this.size; i++){\n\t\t\tfor(int j=0; j<this.size; j++){\n\t\t\t\toutput.append(this.numbers[i][j] + \"\\t\");\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ts+=a[i]+\" \";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public String toString() {\r\n StringBuilder result= new StringBuilder();\r\n for(int x=0;x<8;x++){\r\n for(int y=0;y<8;y++){\r\n result.append(checks[x][y]).append(\",\");\r\n }\r\n result.append(\"\\n\");\r\n }\r\n return result.toString();\r\n }", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}", "@Override\n public String toString()\n {\n StringBuffer sb = new StringBuffer();\n\n for (int i = 0; i < dice.length; i++)\n {\n sb.append(dice[i][0]);\n }\n\n return sb.toString();\n }", "private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString();\n }", "@Override\n public String toString() {\n StringBuilder string = new StringBuilder();\n string.append(\"size=\").append(size).append(\", [\");\n for (int i = 0; i < size; i++) {\n if (i != 0) {\n string.append(\", \");\n }\n\n string.append(elements[i]);\n\n//\t\t\tif (i != size - 1) {\n//\t\t\t\tstring.append(\", \");\n//\t\t\t}\n }\n string.append(\"]\");\n return string.toString();\n }", "public String toString() {\n if (size > 0) {\n String display = \"[\";\n for (int i = 0; i < size - 1; i++) {\n display += list[i] + \",\";\n } display += list[size - 1] + \"]\";\n return display;\n }\n return \"[]\";\n }", "public String toString()\n {\n String print = \"\";\n for (int x = 0; x < items.length; x++)\n if (items[x] != null)\n print = print + items[x] + \" \";\n return print;\n }", "public String toString(){\r\n\t\tString ret = \"MatrixArray:\\n\";\r\n\t\tfor (int i = 0; i < this.MA.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.MA[i].length; j++){\r\n\t\t\t\tif (j > 0) {\r\n\t\t\t\t\tret += \", \";\r\n\t\t }\r\n\t\t ret += String.valueOf(this.MA[i][j]);\r\n\t\t\t}\r\n\t\t\tret += \"\\n\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}", "public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }", "@Override\n\tpublic String toString() {\n\t\tString s = \"[\";\n\t\tif(this.vector != null) {\n\t\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\t\ts = s + this.vector.get(i);\n\t\t\t\tif(i != this.vector.size()-1) s = s + \",\";\n\t\t\t}\n\t\t}\n\t\ts = s + \"]\";\n\t\treturn s;\n\t}", "public String toString()\n\t{\n\t\tString output = \"\";\n\t\tfor(String[] at:atMat){\n\t\t\tfor(String a:at){\n\t\t\t\toutput += a+ \" \";\n\t\t\t}\n\t\t\toutput += \"\\n\";\n\t\t}\n\t\treturn output;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (byte m = 0; m < 9; m++) {\n\t\t\tfor (byte n = 0; n < 9; n++) {\n\t\t\t\tsb.append(cells[m][n].getValue());\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\r\n\t\tString salida = \"El inicio de la subsecuencia maxima es \" + izq\r\n\t\t\t\t+ \", el final \" + der + \", la suma maxima es \" + sumaMax\r\n\t\t\t\t+ \" y los datos son \";\r\n\t\tfor (int a : array)\r\n\t\t\tsalida += a + \" \";\r\n\t\treturn salida;\r\n\t}", "public String[] asStringArray() {\n\t\tString array[] = new String[4];\n\t\tarray[0] = \"Name: \" + this.name;\n\t\tarray[1] = \"Money: \" + Double.toString(this.money);\n\t\tarray[2] = \"On table: \" + Double.toString(onTable);\n\t\tif (this.getBlind() == Blind.NONE) {\n\t\t\tarray[3] = \"\";\n\t\t} else {\n\t\t\tarray[3] = \"Blind \" + this.blind.name();\n\t\t}\n\t\treturn array;\n\t}", "public String toString() {\n String s = \"\";\n for (int i = 0; i < size; i++) {\n s += taskarr[i].gettitle() + \", \" + taskarr[i].getassignedTo()\n + \", \" + taskarr[i].gettimetocomplete()\n + \", \" + taskarr[i].getImportant() + \", \" + taskarr[i].getUrgent()\n + \", \" + taskarr[i].getStatus() + \"\\n\";\n }\n return s;\n }", "public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}", "public String toString(){\n String string = new String();\n for(int i = 0; i < axis.length; i++){\n string += axis[i];\n if(i != (axis.length - 1)){\n string += \" / \";\n }\n }\n return string;\n }", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "public String toString() {\n String result = \"[]\";\n if (length == 0) return result;\n result = \"[\" + head.getNext().getData();\n DoublyLinkedList temp = head.getNext().getNext();\n while (temp != tail) {\n result += \",\" + temp.getData();\n temp = temp.getNext();\n }\n return result + \"]\";\n }", "public String toString() {\n String res = \"\";\n \n for ( int[] row : img ) {\n for ( int x : row )\n res += x + \" \";\n res += \"\\n\";\n }\n return res;\n }", "@Override\n public String toString() {\n return \"array read on \" + System.identityHashCode(array) + \"; index=\" + index + \"; stream=\" + getStream().getStreamNumber();\n }", "public String toString() {\n\t\tString temp = \"{\"; // String declaration\n\t\t\n\t\tfor(int i=0; i < stringArray.size(); i++) {\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t// If the element is not an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += stringArray.get(i) + \", \"; // If the last item, do add commas in between\n\t\t\t\telse temp += stringArray.get(i); // If the last item, only add the string and not a comma\n\t\t\t}\n\t\t\t\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\")) {\n\t\t\t// If the element is an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += \", \"; // If the last item, then do not add a comma\n\t\t\t}\n\t\t}\n\t\t\n\t\ttemp += \"}\"; // Concatenate to string\n\t\t\n\t\treturn temp; // Return the final string\n\t}", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "public String toString()\r\n\t{\r\n\t\tString s = \"Volume Name: \" + volumeName + \" \" + \"Number of Books: \" + numberOfBooks + \"\\n\";\r\n\r\n\t\ts = s + getBookArray();\r\n\t\treturn s;\r\n\t}", "public String toString() \n\t{\n\t\tString toReturn = \"\";\n\t\t\n\t\t\n\t\tfor(Vertex v : vertices) \n\t\t{\n\t\t\tHashMap<Vertex, Integer> E = getEdges(v);\n\t\t\t\n\t\t\tif(!E.isEmpty())\n\t\t\t{\n\t\t\t\ttoReturn = toReturn + v + \"(\";\n\t\t\t\tfor(Vertex edge : E.keySet()) \n\t\t\t\t{\n\t\t\t\t\ttoReturn = toReturn + edge.getName() + \", \";\n\t\t\t\t}\n\t\t\t\ttoReturn = toReturn.trim().substring(0, toReturn.length() - 2);\n\t\t\t\ttoReturn = toReturn + \")\\n\";\n\t\t\t}\n\t\t\telse {toReturn = toReturn + v + \"[]\\n\";}\n\t\t}\n\t\treturn toReturn;\n\t}", "public String toString() {\n StringBuilder output = new StringBuilder();\n output.append(\"{\\n\");\n for (int i=0; i<rows; i++) {\n output.append(Arrays.toString(matrix.get(i)) + \",\\n\");\n }\n output.append(\"}\\n\");\n return output.toString();\n }", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }", "public String toString() {\n \n StringBuffer buffer = new StringBuffer();\n \n buffer.append( String.format( \"Size=%d, A = [ \", size ) );\n \n if ( !isEmpty() ) {\n \n for ( int i=0; i<size-1; i++ ) {\n buffer.append( String.format( \"%d, \", get(i) ) ); \n }\n \n buffer.append( String.format( \"%d ]\", get(size-1 ) ) );\n \n } else {\n \n buffer.append( \"] \" );\n }\n \n return buffer.toString();\n \n }", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString str = new String();\r\n\t\tfor(Cell2048[] a : game) {\r\n\t\t\tfor(Cell2048 b : a)\r\n\t\t\t\tstr += b.getValue();\r\n\t\t}\r\n\t\treturn Integer.toString(rows_size) + \",\" + Integer.toString(columns_size) +\",\" +str;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}", "@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"[\");\n\t\tstringBuilder.append(a);\n\t\tstringBuilder.append(\",\");\n\t\tstringBuilder.append(b);\n\t\tstringBuilder.append(\"]\");\n\t\treturn stringBuilder.toString();\n\t\t}" ]
[ "0.8658066", "0.85963506", "0.8556182", "0.8554783", "0.84678346", "0.84634256", "0.84197086", "0.83498305", "0.82933545", "0.8223137", "0.8171434", "0.8150009", "0.8144831", "0.80820537", "0.80373776", "0.80150104", "0.79986745", "0.79443073", "0.7921216", "0.7871728", "0.78697556", "0.784569", "0.78378487", "0.7814972", "0.7799338", "0.7708114", "0.7689718", "0.76857984", "0.7668642", "0.76374745", "0.7555027", "0.7537095", "0.75356597", "0.75252205", "0.7492309", "0.7480024", "0.7460985", "0.7456576", "0.74278855", "0.7425333", "0.7411401", "0.7396515", "0.7378485", "0.7351598", "0.73418325", "0.7331512", "0.7318966", "0.73061293", "0.73061293", "0.7281398", "0.72770303", "0.7261157", "0.7249007", "0.7238304", "0.7211568", "0.7206069", "0.71909297", "0.71897066", "0.71860504", "0.71851027", "0.71667355", "0.7148361", "0.714415", "0.7143998", "0.71396685", "0.71317434", "0.71276796", "0.71275127", "0.7107241", "0.7105704", "0.7078486", "0.70492303", "0.7045053", "0.70395166", "0.7038866", "0.7034984", "0.70322585", "0.70222527", "0.7021174", "0.7011449", "0.7011246", "0.70018953", "0.69930875", "0.6988626", "0.6987405", "0.697918", "0.69561154", "0.6955069", "0.6955069", "0.69518954", "0.6943015", "0.6941374", "0.6939785", "0.69392735", "0.6930113", "0.692971", "0.69270056", "0.69252425", "0.692027", "0.6917973", "0.69147253" ]
0.0
-1
returns String that contains all data in array. it is likely toString() method
public static String toString(String format, double[] array) { String str = "[ "; for (int i = 0; i < array.length; i++) str += String.format(format, array[i]) + " "; return str + "]"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n\t\treturn Arrays.toString(data);\n\t}", "@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n }\n \n return arrString;\n }", "public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }", "public String toString()\n\t{\n\t\t// For empty array\n\t\tif(length() < 1)\n\t\t\tSystem.out.print(\"\");\n\t\tString output = \"\";\n\n\t\tfor(int index = 0; index < length(); index++)\n\t\t{\n\t\t\toutput = output + data[index];\n\t\t\tif(index+1 < length())\n\t\t\t{\n\t\t\t\toutput = output + \" \";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}", "public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }", "public synchronized String toString()\n\t{\n\t\treturn Arrays.toString(array);\n\t}", "public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }", "public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}", "@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}", "public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}", "public String toString() {\n int[] d = new int[size];\n for (int k=0; k<size; k++)\n d[k] = data[k];\n return Arrays.toString(d);\n }", "public String toString()\r\n {\r\n String result = \"\";\r\n for ( int i = 0; i < SIZE; i++)\r\n {\r\n result = myArray[i] + result;\r\n }\r\n return result;\r\n \r\n }", "public String toString() {\n\t\tString s = \"\";\n\t\tfor (Coord x : array)\n\t\t\ts += x;\n\t\treturn s;\n\t}", "public String toString()\n {\n // create a counter called count\n int count = 0;\n // create empty string for concatenation purposes\n String retString = \"\";\n while(count < size)\n {\n // appending to retString\n retString += arr[count] + \" \";\n // increment count\n count++;\n }\n return retString;\n }", "@Override\n public String toString(){\n String result = \"\";\n for(int i = 0; i < numItems; i++){\n result += arr[i] + \" \";\n }\n return result;\n }", "public String toString(){\n\treturn Arrays.toString(a);\n }", "public String toString(){\r\n\t \tString str = \"\";\r\n\t \tint i=0;\r\n\t \tfor(; i < numElems-1; i++){\r\n\t \t\tstr += array[i].toString();\r\n\t \t\tstr += \", \";\r\n\t \t}\r\n\t \tstr += array[numElems-1];\r\n\t \treturn str;\r\n\t }", "public String toString() {\n String result = \"[\";\n if (!isEmpty()) {\n result += elementData[1];\n for (int i = 2; i <= size; i++) {\n result += \", \" + elementData[i];\n }\n }\n return result + \"]\";\n }", "@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }", "public String getArrayValues(){\n String tempString = \"\";\r\n for(int y = 0; y < this.arraySize; y++){\r\n tempString += \" \"+this.arr[y]+\" \";\r\n }\r\n return tempString;\r\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor(int i = 0;i < data.length;i++) {\n\t\t\tstr = str + data[i];\n\t\t}\n\t\tif(overflow) {\n\t\t\treturn \"Overflow\";\n\t\t}else {\n\t\t\treturn str;\n\t\t}\n\t}", "public String toString() {\n\t \tif(size == 0) {\n\t \t\treturn \"[]\";\n\t \t}else {\n\t \t\t\n\t \t\tString result = \"[\" + elementData[0];\n\t \t\tfor(int i = 1; i < size; i++) {\n\t \t\t\tresult += \", \" + elementData[i];\n\t \t\t}\n\t \t\t\n\t \t\tresult += \"]\";\n\t \t\t\n\t \t\treturn result;\n\t \t}\n\t }", "public String toString() {\r\n\t\tString elements = \"<\";\r\n\t\t\r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + array[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t\telements += \" >\";\r\n\t\t\treturn elements;\r\n\t }", "@Override\n\tpublic String toString() {\n\t\tif (size() == 0) {\n\t\t\treturn \"[]\";\n\t\t} else if (size() == 1) {\n\t\t\treturn \"[\" + arr[0] + \"]\";\n\t\t} else {\n\t\t\t// size() >= 2\n\t\t\tString result = \"[\" + arr[0];\n\t\t\tfor (int i = 1; i < end; ++i) {\n\t\t\t\tresult += \", \" + arr[i];\n\t\t\t}\n\t\t\treturn result + \"]\";\n\t\t}\n\t}", "public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}", "@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }", "public String toString()\n {\n\t return \"[\" + data + \"]\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}", "public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}", "@Override\n public final String toString() {\n final int[] temp = new int[size];\n for (int i = 0; i < size; i++) {\n temp[i] = arrayList[i];\n }\n return Arrays.toString(temp);\n }", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "public String toString() {\n return \"\" + data;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\\nContents of SimpleArray:\\n\" + Arrays.toString(array);\n\t}", "public String toString()\n {\n\n String str = \"[\";\n Iterator<E> iterate = iterator();\n if (size == 0)\n {\n return \"[]\";\n }\n while (iterate.hasNext())\n {\n str += (iterate.next() + \", \");\n }\n return str.substring(0, str.length() - 2) + \"]\";\n }", "@Override\n public String toString() {\n double[][] temp = matx.getArray();\n String tempstr = \"[\";\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp.length; j++) {\n tempstr += (int) temp[i][j] + \", \";\n }\n tempstr = tempstr.substring(0, tempstr.length() - 2);\n tempstr += \"]\\n[\";\n }\n return tempstr.substring(0, tempstr.length() - 2);\n }", "public String toString(){\r\n\t\treturn Arrays.toString(ray)+\"\";\r\n\t}", "public String toString() {\n String temp = \"\";\n temp += \"[ \";\n for (int i = 0; i < elements.length - 1; i++) {\n temp += elements[i] + \",\";\n }\n temp += elements[this.elements.length - 1];\n temp += \" ]\\n\";\n return temp;\n }", "public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n\t\treturn data.toString();\n }", "public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"[\");\n\t\tfor(int i = 0; i < size(); i++) {\n\t\t\tif( i != size()-1)\n\t\t\t\tsb.append(get(i) + \" , \");\n\t\t\telse\n\t\t\t\tsb.append(get(i));\n\t\t}\n\t\tsb.append(\"]\");\n\t\tsb.append(\"\\n\");\n\t\t\n\t\treturn sb.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\treturn data.toString();\r\n\t}", "public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}", "public String toString()\n {\n\n String elem;\n StringBuilder s = new StringBuilder();\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array1[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n s.append('|');\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array2[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n return s.toString();\n }", "public String toString() {\n if (N == 0) return \"[ ]\";\n String s = \"\";\n s = s + \"[ \";\n for (int i = 0; i <= N; i++)\n s = s + a[i] + \" \";\n s = s + \"]\";\n return s;\n }", "public String[] toStrings();", "public String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\treturn data.toString();\n\t}", "@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }", "public String toString() {\n StringBuffer buf = new StringBuffer();\n\n //for(int k=0; k<numPages; k++) {\n //buf.append(\"Page: \" + k + \"\\n\");\n for (int i = 0; i < numRows; i++) {\n buf.append(\"[ \");\n for (int j = 0; j < numCols; j++) {\n buf.append(data[i][j] + \", \");\n }\n buf.append(\" ]\\n\");\n }\n //}\n return buf.toString();\n }", "public String toString() {\r\n\t\tString Array = (\"Matricola:\" + matricola + \" mediaVoti: \" + mediaVoti + \" nroEsamiSostenuti: \" + nroEsamiSostenuti\r\n\t\t\t\t+ \" nroLodi: \" + nroLodi);\r\n\t\treturn Array;\r\n\t}", "public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }", "public String toString() {\r\n\treturn data;\r\n }", "@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tif (size == 0) {\r\n\t\t\treturn \"[]\";\r\n\t\t}\r\n\r\n\t\tString s = \"[\";\r\n\r\n\t\tint currentRow = 0;\r\n\t\twhile (table[currentRow] == null) {\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += table[currentRow].toString();\r\n\t\ts += rowOfEntriesToString(table[currentRow].next);\r\n\r\n\t\tcurrentRow++;\r\n\r\n\t\twhile (currentRow < table.length) {\r\n\t\t\ts += rowOfEntriesToString(table[currentRow]);\r\n\t\t\tcurrentRow++;\r\n\t\t}\r\n\r\n\t\ts += \"]\";\r\n\t\treturn s;\r\n\t}", "public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}", "public String toString() {\n String sorted = \"[\";\n for (int i = 0; i < size - 1; i++) {\n sorted = sorted + array[i] + \", \";\n }\n sorted = sorted + array[size - 1] + \"]\";\n return sorted;\n }", "public String toString(){\n\t\tStringBuilder output = new StringBuilder();\n\t\tfor(int i = 0; i<this.size; i++){\n\t\t\tfor(int j=0; j<this.size; j++){\n\t\t\t\toutput.append(this.numbers[i][j] + \"\\t\");\n\t\t\t}\n\t\t\toutput.append(\"\\n\");\n\t\t}\n\t\treturn output.toString();\n\t}", "public String toString()\r\n\t{\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ts+=a[i]+\" \";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public String toString() {\r\n StringBuilder result= new StringBuilder();\r\n for(int x=0;x<8;x++){\r\n for(int y=0;y<8;y++){\r\n result.append(checks[x][y]).append(\",\");\r\n }\r\n result.append(\"\\n\");\r\n }\r\n return result.toString();\r\n }", "public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}", "@Override\n public String toString()\n {\n StringBuffer sb = new StringBuffer();\n\n for (int i = 0; i < dice.length; i++)\n {\n sb.append(dice[i][0]);\n }\n\n return sb.toString();\n }", "private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString();\n }", "public String toString() {\n if (size > 0) {\n String display = \"[\";\n for (int i = 0; i < size - 1; i++) {\n display += list[i] + \",\";\n } display += list[size - 1] + \"]\";\n return display;\n }\n return \"[]\";\n }", "@Override\n public String toString() {\n StringBuilder string = new StringBuilder();\n string.append(\"size=\").append(size).append(\", [\");\n for (int i = 0; i < size; i++) {\n if (i != 0) {\n string.append(\", \");\n }\n\n string.append(elements[i]);\n\n//\t\t\tif (i != size - 1) {\n//\t\t\t\tstring.append(\", \");\n//\t\t\t}\n }\n string.append(\"]\");\n return string.toString();\n }", "public String toString()\n {\n String print = \"\";\n for (int x = 0; x < items.length; x++)\n if (items[x] != null)\n print = print + items[x] + \" \";\n return print;\n }", "public String toString(){\r\n\t\tString ret = \"MatrixArray:\\n\";\r\n\t\tfor (int i = 0; i < this.MA.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.MA[i].length; j++){\r\n\t\t\t\tif (j > 0) {\r\n\t\t\t\t\tret += \", \";\r\n\t\t }\r\n\t\t ret += String.valueOf(this.MA[i][j]);\r\n\t\t\t}\r\n\t\t\tret += \"\\n\";\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}", "public String toString()\n {\n\tif (data() == null) {\n\t return \"null\";\n\t} else {\n\t return data().toString();\n\t}\n }", "@Override\n\tpublic String toString() {\n\t\tString s = \"[\";\n\t\tif(this.vector != null) {\n\t\t\tfor(int i = 0; i < this.vector.size(); i++) {\n\t\t\t\ts = s + this.vector.get(i);\n\t\t\t\tif(i != this.vector.size()-1) s = s + \",\";\n\t\t\t}\n\t\t}\n\t\ts = s + \"]\";\n\t\treturn s;\n\t}", "public String toString()\n\t{\n\t\tString output = \"\";\n\t\tfor(String[] at:atMat){\n\t\t\tfor(String a:at){\n\t\t\t\toutput += a+ \" \";\n\t\t\t}\n\t\t\toutput += \"\\n\";\n\t\t}\n\t\treturn output;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn data;\r\n\t}", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (byte m = 0; m < 9; m++) {\n\t\t\tfor (byte n = 0; n < 9; n++) {\n\t\t\t\tsb.append(cells[m][n].getValue());\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\r\n\t\tString salida = \"El inicio de la subsecuencia maxima es \" + izq\r\n\t\t\t\t+ \", el final \" + der + \", la suma maxima es \" + sumaMax\r\n\t\t\t\t+ \" y los datos son \";\r\n\t\tfor (int a : array)\r\n\t\t\tsalida += a + \" \";\r\n\t\treturn salida;\r\n\t}", "public String[] asStringArray() {\n\t\tString array[] = new String[4];\n\t\tarray[0] = \"Name: \" + this.name;\n\t\tarray[1] = \"Money: \" + Double.toString(this.money);\n\t\tarray[2] = \"On table: \" + Double.toString(onTable);\n\t\tif (this.getBlind() == Blind.NONE) {\n\t\t\tarray[3] = \"\";\n\t\t} else {\n\t\t\tarray[3] = \"Blind \" + this.blind.name();\n\t\t}\n\t\treturn array;\n\t}", "public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}", "public String toString() {\n String s = \"\";\n for (int i = 0; i < size; i++) {\n s += taskarr[i].gettitle() + \", \" + taskarr[i].getassignedTo()\n + \", \" + taskarr[i].gettimetocomplete()\n + \", \" + taskarr[i].getImportant() + \", \" + taskarr[i].getUrgent()\n + \", \" + taskarr[i].getStatus() + \"\\n\";\n }\n return s;\n }", "public String toString(){\n String string = new String();\n for(int i = 0; i < axis.length; i++){\n string += axis[i];\n if(i != (axis.length - 1)){\n string += \" / \";\n }\n }\n return string;\n }", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "public String toString() {\n String result = \"[]\";\n if (length == 0) return result;\n result = \"[\" + head.getNext().getData();\n DoublyLinkedList temp = head.getNext().getNext();\n while (temp != tail) {\n result += \",\" + temp.getData();\n temp = temp.getNext();\n }\n return result + \"]\";\n }", "public String toString() {\n String res = \"\";\n \n for ( int[] row : img ) {\n for ( int x : row )\n res += x + \" \";\n res += \"\\n\";\n }\n return res;\n }", "@Override\n public String toString() {\n return \"array read on \" + System.identityHashCode(array) + \"; index=\" + index + \"; stream=\" + getStream().getStreamNumber();\n }", "public String toString() {\n\t\tString temp = \"{\"; // String declaration\n\t\t\n\t\tfor(int i=0; i < stringArray.size(); i++) {\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t// If the element is not an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += stringArray.get(i) + \", \"; // If the last item, do add commas in between\n\t\t\t\telse temp += stringArray.get(i); // If the last item, only add the string and not a comma\n\t\t\t}\n\t\t\t\n\t\t\tif (stringArray.get(i).equals(\"emptyElement\")) {\n\t\t\t// If the element is an empty string (a string that contains the phrase \"emptyElement\")\n\t\t\t\tif (i < stringArray.size()-1) temp += \", \"; // If the last item, then do not add a comma\n\t\t\t}\n\t\t}\n\t\t\n\t\ttemp += \"}\"; // Concatenate to string\n\t\t\n\t\treturn temp; // Return the final string\n\t}", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }", "public String toString()\r\n\t{\r\n\t\tString s = \"Volume Name: \" + volumeName + \" \" + \"Number of Books: \" + numberOfBooks + \"\\n\";\r\n\r\n\t\ts = s + getBookArray();\r\n\t\treturn s;\r\n\t}", "public String toString() \n\t{\n\t\tString toReturn = \"\";\n\t\t\n\t\t\n\t\tfor(Vertex v : vertices) \n\t\t{\n\t\t\tHashMap<Vertex, Integer> E = getEdges(v);\n\t\t\t\n\t\t\tif(!E.isEmpty())\n\t\t\t{\n\t\t\t\ttoReturn = toReturn + v + \"(\";\n\t\t\t\tfor(Vertex edge : E.keySet()) \n\t\t\t\t{\n\t\t\t\t\ttoReturn = toReturn + edge.getName() + \", \";\n\t\t\t\t}\n\t\t\t\ttoReturn = toReturn.trim().substring(0, toReturn.length() - 2);\n\t\t\t\ttoReturn = toReturn + \")\\n\";\n\t\t\t}\n\t\t\telse {toReturn = toReturn + v + \"[]\\n\";}\n\t\t}\n\t\treturn toReturn;\n\t}", "public String toString() {\n StringBuilder output = new StringBuilder();\n output.append(\"{\\n\");\n for (int i=0; i<rows; i++) {\n output.append(Arrays.toString(matrix.get(i)) + \",\\n\");\n }\n output.append(\"}\\n\");\n return output.toString();\n }", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < employees.length; i++) {\n result.append(employees[i] + \"\\n\");\n }\n return result.toString();\n }", "public String toString() {\n \n StringBuffer buffer = new StringBuffer();\n \n buffer.append( String.format( \"Size=%d, A = [ \", size ) );\n \n if ( !isEmpty() ) {\n \n for ( int i=0; i<size-1; i++ ) {\n buffer.append( String.format( \"%d, \", get(i) ) ); \n }\n \n buffer.append( String.format( \"%d ]\", get(size-1 ) ) );\n \n } else {\n \n buffer.append( \"] \" );\n }\n \n return buffer.toString();\n \n }", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString str = new String();\r\n\t\tfor(Cell2048[] a : game) {\r\n\t\t\tfor(Cell2048 b : a)\r\n\t\t\t\tstr += b.getValue();\r\n\t\t}\r\n\t\treturn Integer.toString(rows_size) + \",\" + Integer.toString(columns_size) +\",\" +str;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn data.toString();\n\t}", "public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}", "@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"[\");\n\t\tstringBuilder.append(a);\n\t\tstringBuilder.append(\",\");\n\t\tstringBuilder.append(b);\n\t\tstringBuilder.append(\"]\");\n\t\treturn stringBuilder.toString();\n\t\t}" ]
[ "0.86575735", "0.85960174", "0.85548025", "0.8554292", "0.8466717", "0.846176", "0.84193736", "0.8348719", "0.8292632", "0.8223549", "0.8169842", "0.8148907", "0.81441617", "0.8081132", "0.80377865", "0.8014697", "0.7997775", "0.79433995", "0.79208976", "0.7871564", "0.7870188", "0.784582", "0.7836757", "0.78139585", "0.7798238", "0.7706858", "0.7689197", "0.7685785", "0.7668216", "0.76365423", "0.75537986", "0.75370467", "0.7536102", "0.75247836", "0.7491006", "0.7479897", "0.7460521", "0.7456151", "0.7427685", "0.74255216", "0.7411218", "0.7395632", "0.7378287", "0.73517793", "0.7341225", "0.73303866", "0.73193187", "0.730584", "0.730584", "0.72826344", "0.727631", "0.7260784", "0.7248565", "0.7238678", "0.72115433", "0.72060984", "0.71899986", "0.7188521", "0.71847427", "0.7184376", "0.71665466", "0.7148404", "0.7143189", "0.71431446", "0.71376836", "0.71321446", "0.71267956", "0.71267235", "0.7106714", "0.7105122", "0.7078703", "0.7048718", "0.70447206", "0.7039599", "0.7038395", "0.7035353", "0.70315534", "0.702122", "0.7020884", "0.70104104", "0.70103514", "0.7001533", "0.69921154", "0.6987771", "0.69865865", "0.6978018", "0.69556606", "0.695564", "0.695564", "0.6951544", "0.69429004", "0.69404316", "0.69401765", "0.6938642", "0.6929505", "0.6929308", "0.6926255", "0.6924319", "0.69204664", "0.6917306", "0.691482" ]
0.0
-1
Instantiates a new NAT action.
public NATAction(NATActionType NATAction, ConditionClause transformation) { super(transformation); this.NATAction = NATAction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Action createAction();", "Action createAction();", "Action createAction();", "public NewTunnelAction() {\r\n putValue(Action.NAME, \"New Tunnel\");\r\n putValue(Action.SMALL_ICON,\r\n new ResourceIcon(ActiveTunnelsSessionPanel.class,\r\n \"add.png\"));\r\n putValue(Action.SHORT_DESCRIPTION, \"New Tunnel\");\r\n putValue(Action.LONG_DESCRIPTION,\r\n \"Create a new secure tunnel\");\r\n putValue(Action.MNEMONIC_KEY, new Integer('n'));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_T, Keyboard_Modifier));\r\n putValue(Action.ACTION_COMMAND_KEY, \"new-tunnel-command\");\r\n putValue(StandardAction.ON_MENUBAR, new Boolean(true));\r\n putValue(StandardAction.MENU_NAME, \"Tunnel\");\r\n putValue(StandardAction.MENU_ITEM_GROUP, new Integer(50));\r\n putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(10));\r\n putValue(StandardAction.ON_TOOLBAR, new Boolean(true));\r\n putValue(StandardAction.TOOLBAR_GROUP, new Integer(5));\r\n putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(5));\r\n putValue(StandardAction.HIDE_TOOLBAR_TEXT, new Boolean(false));\r\n putValue(StandardAction.ON_CONTEXT_MENU, new Boolean(true));\r\n putValue(StandardAction.CONTEXT_MENU_GROUP, new Integer(5));\r\n putValue(StandardAction.CONTEXT_MENU_WEIGHT, new Integer(5));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_N, Keyboard_Modifier));\r\n }", "SendAction createSendAction();", "TurnAction createTurnAction();", "public CreateIndividualPreAction() {\n }", "public void createAction() {\n }", "public ScheduledActionAction() {\n\n }", "private PSAAClientActionFactory()\n {\n }", "protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }", "public Action newAction(Object data) throws Exception;", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "public RoutingCommandImpl() {\n }", "public NatPolicy createNatPolicy();", "ForwardAction createForwardAction();", "public ClientNaiveAgent(String ip) {\n ar = new ClientActionRobotJava(ip);\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n\n }", "DomainAction createDomainAction();", "public NATActionType getNATAction() {\n\t\treturn NATAction;\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$Asintactico$actions(this);\n }", "public NewNetworkAction(IWorkbenchWindow window) {\r\n\t\t// this.window = window;\r\n\t\tsetId(ID);\r\n\t\tsetText(\"&New\");\r\n\t\tsetToolTipText(\"Opens dialog to get network configuration file\");\r\n\t\tActionContainer.add(ID, this);\r\n\t}", "ActionDefinition createActionDefinition();", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "ForwardMinAction createForwardMinAction();", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "private Action initializeAction(final String classname) {\n\t\tAction action = null;\n\t\tif (classname != null && !\"\".equals(classname)) {\n\t\t\tClass<?> clazz = null;\n\t\t\ttry {\n\t\t\t\tclazz = Class.forName(classname);\n\t\t\t\taction = (Action) clazz.newInstance();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.error(\"Cannot instantiate action class: \" + classname);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.error(\"Not privileged to access action instance: \"\n\t\t\t\t\t\t+ classname);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlog.error(\"Cannot load action class: \" + classname);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (action == null) {\n\t\t\t// Instantiate a mock action such that menu item can\n\t\t\t// be displayed.\n\t\t\taction = new DummyAction();\n\t\t\tlog.warn(\"Instantiated mock action class.\");\n\t\t}\n\t\treturn action;\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$A4Parser$actions(this);\n }", "public Action(long id) {\n this(id, \"\");\n }", "public VisitAction() {\n }", "protected void init_actions()\n {\n action_obj = new CUP$Sintactico$actions(this);\n }", "Instruction createInstruction();", "public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }", "public HSRCreateDraftRequestProcessorAction() {\n\t\tlogger.warn(\"***** This constructor is for Test Cases only *****\");\n\t\t\n\t}", "public MemberAction() {\n\t\tsuper();\n\t}", "CaseAction createCaseAction();", "NoAction createNoAction();", "public EthernetStaticIP() {\n }", "public AddApplicationReleaseAction() {\r\n }", "public void create(NetworkNode networkNode);", "public UpcomingContestsManagerAction() {\r\n }", "public GetMarkerSetMembershipAction() {\n }", "public ItsNatImpl()\r\n {\r\n }", "public AETinteractions() {\r\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "public ConfigAction()\n {\n this(null, null, true);\n }", "ActionType createActionType();", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "public static Action buildShip(int id, char type) {\n\t\treturn new Action(id, type);\n\t}", "protected PMBaseAction() {\r\n super();\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$FractalParser$actions(this);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$MJParser$actions(this);\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$XPathParser$actions(this);\n }", "public Action(String name) {\n this.name = name;\n }", "public RepeaterActionDefinition() {\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$SintaxAnalysis$actions(this);\r\n }", "private ActionPackage() {}", "public RoutePacket(net.tinyos.message.Message msg, int base_offset) {\n super(msg, base_offset, DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }", "public void create(Object target, NodeDescriptor node, AssertionDescriptor assertion) {\r\n ActionTypeDescriptor actionType = getActionType(Actions.create.toString());\r\n if (actionType != null) {\r\n evaluateAction(Actions.create.toString(), target, null, node, assertion);\r\n }\r\n }", "public Reaction(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$AnalizadorSintactico$actions(this);\r\n }", "protected void init_actions() {\r\n action_obj = new CUP$SintacticoH$actions(this);\r\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$LuaGrammarCup$actions(this);\r\n }", "ActionNew()\n {\n super(\"New\");\n this.setShortcut(UtilGUI.createKeyStroke('N', true));\n }", "LogAction createLogAction();", "public Action(String id) {\n\t\tthis.id = id;\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$analisis_sintactico_re$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CompParser$actions(this);\n }", "private AliasAction() {\n\n\t}", "public void testCtor() throws Exception {\n PasteAssociationAction pasteAction = new PasteAssociationAction(transferable, namespace);\n\n assertEquals(\"Should return Association instance.\", association, pasteAction.getModelElement());\n }", "public NimAIPlayer() {\n\t\t\t\t\n\t}", "public RoutePacket() {\n super(DEFAULT_MESSAGE_SIZE);\n amTypeSet(AM_TYPE);\n }", "public ExecuteAction()\n {\n this(null);\n }", "public ActionManager() {\n\t\tsuper();\n\t}", "public InitiateAttackNonCreatureAction() {\n super(new CreatureAttacksNonCreatureRule());\n }", "public ActionState createActionState();", "Pin createPin();", "public NewAction() {\n\t\tsuper(\"New...\", null);\n\t\tputValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, MAIN_MENU_MASK));\n\t}", "private Instantiation(){}" ]
[ "0.63177425", "0.63177425", "0.63177425", "0.58976436", "0.5822141", "0.5814938", "0.56787014", "0.5638126", "0.5601499", "0.5599835", "0.553146", "0.5431116", "0.54291254", "0.54243314", "0.5400414", "0.5379669", "0.5371934", "0.5370237", "0.5347013", "0.5315661", "0.52801603", "0.5276674", "0.5259074", "0.5259074", "0.5259074", "0.5259074", "0.5259074", "0.5248954", "0.524838", "0.52394515", "0.52359796", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.52355254", "0.51727164", "0.51727164", "0.51714957", "0.516685", "0.51381075", "0.511585", "0.5107378", "0.51066566", "0.5104154", "0.5101841", "0.5087587", "0.5085137", "0.50717384", "0.50678825", "0.50652325", "0.50495523", "0.5044663", "0.5043039", "0.50381577", "0.5037958", "0.50263566", "0.502574", "0.502574", "0.5021933", "0.50120413", "0.49928063", "0.49911427", "0.49822614", "0.49795538", "0.49677676", "0.4965776", "0.4963491", "0.49567226", "0.49551716", "0.49532464", "0.49485958", "0.49475938", "0.4938254", "0.49343315", "0.49186522", "0.49110755", "0.49103972", "0.48885956", "0.48876786", "0.4884427", "0.4869991", "0.4867939", "0.48632026", "0.48553607", "0.48513693", "0.48482594", "0.4847616", "0.48435047", "0.48267955" ]
0.6666064
0
Gets the NAT action.
public NATActionType getNATAction() { return NATAction; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAction() {\n return action_;\n }", "public int getAction() {\n return action_;\n }", "public int getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action.get();\n\t}", "public int getAction() {\n return action;\n }", "public int getAction()\n {\n return m_action;\n }", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\n\t\treturn action;\n\t}", "public String getAction() {\r\n\t\treturn action;\r\n\t}", "public String getAction () {\n return action;\n }", "public Action getAction() {\n return action;\n }", "public String getAction() {\n return this.action;\n }", "public A getAction() {\r\n\t\treturn action;\r\n\t}", "public Action getAction() {\n\treturn action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "public String getAction() {\n return action;\n }", "@NonNull\n public Action getAction() {\n return this.action;\n }", "public String getAction() {\n Object ref = action_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getAction() {\n Object ref = action_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n action_ = s;\n return s;\n }\n }", "public com.vmware.converter.AlarmAction getAction() {\r\n return action;\r\n }", "public int getActionCommand() {\n return actionCommand_;\n }", "public int getActionCommand() {\n return actionCommand_;\n }", "public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }", "String getOnAction();", "public com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction() {\n com.cantor.drop.aggregator.model.CFTrade.TradeAction result = com.cantor.drop.aggregator.model.CFTrade.TradeAction.valueOf(action_);\n return result == null ? com.cantor.drop.aggregator.model.CFTrade.TradeAction.EXECUTED : result;\n }", "public int getActionType();", "public NetworkRuleAction defaultAction() {\n return this.defaultAction;\n }", "public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getActionBytes() {\n Object ref = action_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n action_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tpublic String getAction() {\n\t\treturn action;\n\t}", "public RepositoryActionType getAction() {\n\t\t\treturn action;\n\t\t}", "public Integer getActiontype() {\n return actiontype;\n }", "public RateLimiterAction getAction() {\n return action;\n }", "public int getUserAction()\n {\n return userAction;\n }", "public String getActionArg() {\n\t\treturn actionArg;\n\t}", "public Integer getactioncode() {\n return (Integer) getAttributeInternal(ACTIONCODE);\n }", "public javax.accessibility.AccessibleAction getAccessibleAction() {\n try {\n XAccessibleAction unoAccessibleAction = (XAccessibleAction)\n UnoRuntime.queryInterface(XAccessibleAction.class, unoAccessibleContext);\n return (unoAccessibleAction != null) ? \n new AccessibleActionImpl(unoAccessibleAction) : null;\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }", "public String getActionId() {\n\t\treturn actionId;\n\t}", "public Class<?> getActionClass() {\n return this.action;\n }", "public PDAction getPC() {\n/* 278 */ COSDictionary pc = (COSDictionary)this.actions.getDictionaryObject(\"PC\");\n/* 279 */ PDAction retval = null;\n/* 280 */ if (pc != null)\n/* */ {\n/* 282 */ retval = PDActionFactory.createAction(pc);\n/* */ }\n/* 284 */ return retval;\n/* */ }", "public Method getActionMethod() {\n return this.method;\n }", "public String getActionWindowID() {\n String[] values = (String[]) pathParams.get(ACTION);\n if (values != null && values.length > 0) {\n return values[0];\n }\n return null;\n }", "public Integer getActionType() {\n return actionType;\n }", "public CayenneAction getAction(String key) {\n return (CayenneAction) actionMap.get(key);\n }", "public abstract String getIntentActionString();", "public String getActionId() {\n return actionId;\n }", "private String getActionAddress() \n\t{\n\t\treturn pageContext.getRequest().getParameter(ACTION_ADDRESS_PARAMETER);\n\t}", "public Action getAction(String name) { return actions.get(name); }", "public Long getActionId() {\n return actionId;\n }", "public String getUserAction() {\n return userAction;\n }", "public Method getMethod() {\n\t\treturn this.currentAction.getMethod();\n\t}", "final public String getActionCommand() {\n return command;\n }", "public IPSAAClientAction getAction(String actionType)\n {\n IPSAAClientAction action = m_actions.get(actionType);\n if(action == null)\n {\n // Use reflection to instantiate the class\n String pack = getClass().getPackage().getName();\n String className = pack + \".impl.PS\" + actionType + \"Action\";\n \n try\n {\n Class clazz = Class.forName(className);\n action = (IPSAAClientAction) clazz.newInstance();\n m_actions.put(actionType, action);\n }\n catch (ClassNotFoundException ignore)\n {\n // ignore\n }\n catch (InstantiationException e)\n {\n ms_log.error(e.getLocalizedMessage(), e);\n }\n catch (IllegalAccessException e)\n {\n ms_log.error(e.getLocalizedMessage(), e);\n }\n \n }\n return action;\n }", "public Action getAction(int index) { return actions.get(index); }", "String getAction();", "String getAction();", "@NonNull\n public String getAction() {\n return \"GET\";\n }", "com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();", "public Action getAction(Object key) {\n\t\treturn (Action) get(key);\n\t}", "public RvSnoopAction getAction(String command);", "Action getType();", "public static AttributedURIType getAction(Message message) {\n String action = null;\n LOG.fine(\"Determining action\");\n Exception fault = message.getContent(Exception.class);\n\n // REVISIT: add support for @{Fault}Action annotation (generated\n // from the wsaw:Action WSDL element). For the moment we just\n // pick up the wsaw:Action attribute by walking the WSDL model\n // directly \n action = getActionFromServiceModel(message, fault);\n LOG.fine(\"action: \" + action);\n return action != null ? getAttributedURI(action) : null;\n }", "public String getActionName() {\n\t\treturn this.function;\n\t}", "public abstract Action getAction();", "public Type getActionType() {\n return actionType;\n }", "public TSetAclAction getAction() {\n return this.action;\n }", "private static String getActionFromMessageAttributes(MessageInfo msgInfo) {\n String action = null;\n if (msgInfo != null\n && msgInfo.getExtensionAttributes() != null) {\n String attr = getAction(msgInfo);\n if (attr != null) {\n action = attr;\n msgInfo.setProperty(ACTION, action);\n }\n }\n return action;\n }", "public String getActionInfo() {\n\n String\taction\t= getAction();\n\n if (ACTION_AppsProcess.equals(action)) {\n return \"Process:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_DocumentAction.equals(action)) {\n return \"DocumentAction=\" + getDocAction();\n } else if (ACTION_AppsReport.equals(action)) {\n return \"Report:AD_Process_ID=\" + getAD_Process_ID();\n } else if (ACTION_AppsTask.equals(action)) {\n return \"Task:AD_Task_ID=\" + getAD_Task_ID();\n } else if (ACTION_SetVariable.equals(action)) {\n return \"SetVariable:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_SubWorkflow.equals(action)) {\n return \"Workflow:MPC_Order_Workflow_ID=\" + getMPC_Order_Workflow_ID();\n } else if (ACTION_UserChoice.equals(action)) {\n return \"UserChoice:AD_Column_ID=\" + getAD_Column_ID();\n } else if (ACTION_UserWorkbench.equals(action)) {\n return \"Workbench:?\";\n } else if (ACTION_UserForm.equals(action)) {\n return \"Form:AD_Form_ID=\" + getAD_Form_ID();\n } else if (ACTION_UserWindow.equals(action)) {\n return \"Window:AD_Window_ID=\" + getAD_Window_ID();\n }\n\n /*\n * else if (ACTION_WaitSleep.equals(action))\n * return \"Sleep:WaitTime=\" + getWaitTime();\n */\n return \"??\";\n\n }", "int getAction();", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "@Override\n\tpublic int getActionId() {\n\t\treturn actionId;\n\t}", "public int getAction(int state) {\n return explorationPolicy.ChooseAction(qvalues[state]);\n }", "public boolean[] getAction()\n {\n cleanActions();\n \n //Execute BT to get the action to do.\n m_behaviorTree.execute();\n \n //keep track of last set of actions.\n //recordActions();\n\n if(m_resetThisCycle)\n {\n resetAgent();\n }\n\n //And this is the action that must be taken:\n return action;\n }", "public int getActionIndex() {\n return actionIndex;\n }", "public String getTransactionRoutingRetrieveActionResponse() {\n return transactionRoutingRetrieveActionResponse;\n }", "public String getActionType() {\n return actionType;\n }", "public String getActionType() {\n return actionType;\n }", "com.google.protobuf.ByteString\n getActionBytes();", "public String getDocAction() {\n\t\treturn (String) get_Value(\"DocAction\");\n\t}", "@Override\n\tpublic Action getAction(int i) {\n\t\treturn this.actions.get(i);\n\t}", "public GrouperActivemqPermissionAction getAction() {\r\n return this.action;\r\n }", "public PDAction getE() {\n/* 71 */ COSDictionary e = (COSDictionary)this.actions.getDictionaryObject(\"E\");\n/* 72 */ PDAction retval = null;\n/* 73 */ if (e != null)\n/* */ {\n/* 75 */ retval = PDActionFactory.createAction(e);\n/* */ }\n/* 77 */ return retval;\n/* */ }", "public Action getSelectedAction() {\n return selectedAction;\n }", "public int getTouchAction()\n\t{\n\t\treturn touchAction;\n\t}", "public Action getExecuteAction() {\n return this.data.getExecuteAction();\n }", "POGOProtos.Rpc.CombatActionProto getCurrentAction();", "@Override\r\n\tpublic String getAction() {\n\t\tString action = null;\r\n\t\tif(caction.getSelectedIndex() == -1) {\r\n\t\t\treturn null;\r\n\t}\r\n\tif(caction.getSelectedIndex() >= 0) {\r\n\t\t\taction = caction.getSelectedItem().toString();\r\n\t}\r\n\t\treturn action;\r\n\t\r\n\t}", "int getActionCommand();", "POGOProtos.Rpc.CombatActionProto getMinigameAction();", "public PDAction getPO() {\n/* 247 */ COSDictionary po = (COSDictionary)this.actions.getDictionaryObject(\"PO\");\n/* 248 */ PDAction retval = null;\n/* 249 */ if (po != null)\n/* */ {\n/* 251 */ retval = PDActionFactory.createAction(po);\n/* */ }\n/* 253 */ return retval;\n/* */ }", "@Nullable\n @Generated\n @Selector(\"action\")\n public native SEL action();", "public static String getSoapAction(String action) {\r\n\t\treturn \"http://www.multispeak.org/Version_3.0/\" + action;\r\n\t}", "public POGOProtos.Rpc.CombatActionProto getMinigameAction() {\n if (minigameActionBuilder_ == null) {\n return minigameAction_ == null ? POGOProtos.Rpc.CombatActionProto.getDefaultInstance() : minigameAction_;\n } else {\n return minigameActionBuilder_.getMessage();\n }\n }", "public Class getActionClass() {\n return actionClass;\n }", "public POGOProtos.Rpc.CombatActionProto getCurrentAction() {\n if (currentActionBuilder_ == null) {\n return currentAction_ == null ? POGOProtos.Rpc.CombatActionProto.getDefaultInstance() : currentAction_;\n } else {\n return currentActionBuilder_.getMessage();\n }\n }", "public String getId() {\n return (String) getValue(ACTION_ID);\n }" ]
[ "0.690549", "0.6871654", "0.68621325", "0.68244815", "0.6706785", "0.6630043", "0.66139144", "0.66139144", "0.66139144", "0.66139144", "0.65683067", "0.65583926", "0.6528136", "0.6520208", "0.6519468", "0.64938074", "0.6470046", "0.6470046", "0.6470046", "0.64437044", "0.6405114", "0.6299228", "0.62617177", "0.6260595", "0.6227872", "0.6203978", "0.6123447", "0.611794", "0.60895187", "0.6085566", "0.6065458", "0.60475194", "0.6041406", "0.6022559", "0.59685344", "0.5961968", "0.5930426", "0.59227055", "0.592025", "0.5892956", "0.57890904", "0.57738143", "0.5768683", "0.5752268", "0.57436484", "0.5743346", "0.5737444", "0.5729494", "0.57194966", "0.57053983", "0.57052904", "0.5698273", "0.56911176", "0.56815296", "0.56724477", "0.56573117", "0.5656777", "0.56491953", "0.56430435", "0.56430435", "0.56356734", "0.5620795", "0.56136006", "0.56116575", "0.56005573", "0.5589125", "0.5577807", "0.55714506", "0.55484915", "0.554604", "0.5540717", "0.5535995", "0.5520982", "0.55148757", "0.5498137", "0.5497801", "0.5490381", "0.5481462", "0.5480766", "0.5464005", "0.54399973", "0.5432611", "0.5426811", "0.54247653", "0.53823614", "0.5377461", "0.53700113", "0.536835", "0.53641915", "0.53585523", "0.5345288", "0.53407425", "0.5338517", "0.5320867", "0.53122514", "0.5312137", "0.5307383", "0.53020555", "0.52915305", "0.52897143" ]
0.814044
0
Make sure that all static fields in C are part of C:Static
@RegionEffects("writes Static") // GOOD public void m1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testStaticFieldWithInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public void visitGETSTATIC(GETSTATIC o){\n\t\t// Field must be static: see Pass 3a.\n\t}", "@Test\n public void testStaticFieldWithoutInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldNotInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldNotInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldNotInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "@SuppressWarnings(\"UnusedDeclaration\")\n public static void __staticInitializer__() {\n }", "private JCBlock makeInitStaticAttributesBlock(DiagnosticPosition diagPos, \n JFXClassDeclaration cDecl,\n List<TranslatedAttributeInfo> translatedAttrInfo) {\n // Add the initialization of this class' attributesa\n ListBuffer<JCStatement> stmts = ListBuffer.lb();\n for (TranslatedAttributeInfo tai : translatedAttrInfo) {\n assert tai.attribute != null && tai.attribute.getTag() == JavafxTag.VAR_DEF && tai.attribute.pos != Position.NOPOS;\n if (tai.isStatic()) {\n if (tai.isDirectOwner()) {\n stmts.append(tai.getDefaultInitializtionStatement());\n stmts.append( toJava.callStatement(diagPos, make.at(diagPos).Ident(tai.getName()), locationInitializeName));\n }\n JCStatement stat = makeStaticChangeListenerCall(tai);\n if (stat != null) {\n stmts.append(stat);\n }\n }\n }\n return make.Block(Flags.STATIC, stmts.toList());\n }", "@Test\n public void testReflectionStatics() {\n final ReflectionStaticFieldsFixture instance1 = new ReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString,staticTransientInt=54321,staticTransientString=staticTransientString,transientInt=98765,transientString=transientString]\",\n ReflectionToStringBuilder.toString(instance1, null, true, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n }", "public boolean isStatic() {\n\t\treturn (access & Opcodes.ACC_STATIC) != 0;\n\t}", "boolean isContextStatic(){\r\n\t\tif(curField == null) {\r\n\t\t\treturn curOperation.isStaticElement();\r\n\t\t} else {\r\n\t\t\treturn curField.isStaticElement();\r\n\t\t}\r\n\t}", "private StaticProperty() {}", "boolean isStatic();", "boolean isStatic();", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 2)\n public static void printSpecificStaticFieldConcise (final DynamicContext dc) {\n final String format = \"disl: concise %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_TYPE\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_NAME\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_RAND\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_MATH\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "@Override\n\tpublic boolean isStatic() {\n\t\treturn false;\n\t}", "public static void isStatic() {\n\n }", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "@Test\n public void testInheritedReflectionStatics() {\n final InheritedReflectionStaticFieldsFixture instance1 = new InheritedReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, InheritedReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n }", "boolean getIsStatic();", "public static List<Field> getStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "private StaticData() {\n\n }", "@Override\n\t/**\n\t * does nothing because a class cannot be static\n\t */\n\tpublic void setStatic(boolean b) {\n\n\t}", "@AfterReturning(marker = BytecodeMarker.class, args = \"GETSTATIC\", scope = \"TargetClass.printStaticFields\", order = 0)\n public static void printStaticFieldsRead (final FieldAccessStaticContext fasc, final DynamicContext dc) {\n if (\"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\".equals (fasc.getOwnerInternalName ())) {\n System.out.printf (\"disl: %s=%s\\n\", fasc.getName (), dc.getStaticFieldValue (\n fasc.getOwnerInternalName (), fasc.getName (), fasc.getDescriptor (), Object.class\n ));\n }\n }", "public default boolean isStatic() {\n\t\treturn false;\n\t}", "private Constantes() {\r\n\t\t// No way\r\n\t}", "private void validateConstants(final Class c) throws IDLTypeException {\n/* 564 */ Field[] arrayOfField = null;\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 569 */ arrayOfField = AccessController.<Field[]>doPrivileged(new PrivilegedExceptionAction<Field>() {\n/* */ public Object run() throws Exception {\n/* 571 */ return c.getFields();\n/* */ }\n/* */ });\n/* 574 */ } catch (PrivilegedActionException privilegedActionException) {\n/* 575 */ IDLTypeException iDLTypeException = new IDLTypeException();\n/* 576 */ iDLTypeException.initCause(privilegedActionException);\n/* 577 */ throw iDLTypeException;\n/* */ } \n/* */ \n/* 580 */ for (byte b = 0; b < arrayOfField.length; b++) {\n/* 581 */ Field field = arrayOfField[b];\n/* 582 */ Class<?> clazz = field.getType();\n/* 583 */ if (clazz != String.class && \n/* 584 */ !isPrimitive(clazz)) {\n/* */ \n/* */ \n/* 587 */ String str = \"Constant field '\" + field.getName() + \"' in class '\" + field.getDeclaringClass().getName() + \"' has invalid type' \" + field.getType() + \"'. Constants in RMI/IIOP interfaces can only have primitive types and java.lang.String types.\";\n/* */ \n/* */ \n/* 590 */ throw new IDLTypeException(str);\n/* */ } \n/* */ } \n/* */ }", "private List<Node> getStaticInitializers(ClassBody nd) {\n List<Node> nodes = new ArrayList<>();\n for (MemberDefinition<?> node : nd.getBody()) {\n if (node instanceof FieldDefinition && ((FieldDefinition)node).isStatic()) nodes.add(node);\n if (node instanceof StaticInitializer) nodes.add(node.getValue());\n }\n return nodes;\n }", "void testLocalStaticClass() {\n // static class LocalStaticClass {\n // }\n }", "final public boolean isStatic ()\n {\n\treturn myIsStatic;\n }", "@Override\n\t/**\n\t * returns a false because a class cannot be static\n\t * \n\t * @return false\n\t */\n\tpublic boolean getStatic() {\n\t\treturn false;\n\t}", "boolean inStaticContext();", "static void init() {}", "public void visitPUTSTATIC(PUTSTATIC o){\n\t\tString field_name = o.getFieldName(cpg);\n\t\tJavaClass jc = Repository.lookupClass(o.getClassType(cpg).getClassName());\n\t\tField[] fields = jc.getFields();\n\t\tField f = null;\n\t\tfor (int i=0; i<fields.length; i++){\n\t\t\tif (fields[i].getName().equals(field_name)){\n\t\t\t\tf = fields[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (f == null){\n\t\t\tthrow new AssertionViolatedException(\"Field not found?!?\");\n\t\t}\n\t\tType value = stack().peek();\n\t\tType t = Type.getType(f.getSignature());\n\t\tType shouldbe = t;\n\t\tif (shouldbe == Type.BOOLEAN ||\n\t\t\t\tshouldbe == Type.BYTE ||\n\t\t\t\tshouldbe == Type.CHAR ||\n\t\t\t\tshouldbe == Type.SHORT){\n\t\t\tshouldbe = Type.INT;\n\t\t}\n\t\tif (t instanceof ReferenceType){\n\t\t\tReferenceType rvalue = null;\n\t\t\tif (value instanceof ReferenceType){\n\t\t\t\trvalue = (ReferenceType) value;\n\t\t\t\treferenceTypeIsInitialized(o, rvalue);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not of a reference type as expected.\");\n\t\t\t}\n\t\t\t// TODO: This can possibly only be checked using Staerk-et-al's \"set-of-object types\", not\n\t\t\t// using \"wider cast object types\" created during verification.\n\t\t\t// Comment it out if you encounter problems. See also the analogon at visitPUTFIELD.\n\t\t\tif (!(rvalue.isAssignmentCompatibleWith(shouldbe))){\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not assignment compatible with '\"+shouldbe+\"'.\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif (shouldbe != value){\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not of type '\"+shouldbe+\"' as expected.\");\n\t\t\t}\n\t\t}\n\t\t// TODO: Interface fields may be assigned to only once. (Hard to implement in\n\t\t// JustIce's execution model). This may only happen in <clinit>, see Pass 3a.\n\t}", "private static boolean hasFieldProperModifier(Object object, Field field) {\n return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers()))\n || ((object instanceof Class<?> == false && Modifier.isStatic(field.getModifiers()) == false)));\n }", "private static void staticFun()\n {\n }", "public boolean isStatic()\n {\n ensureLoaded();\n return m_flags.isStatic();\n }", "private Constants() {\n\t\tthrow new AssertionError();\n\t}", "public void constants_should_be_unique() throws IllegalAccessException {\n Class<Constants> klass = Constants.class;\n Map<String, Field> values = new HashMap<String, Field>();\n for (Field f : klass.getFields()) {\n Object value = f.get(klass);\n if (!(value instanceof String))\n continue;\n String val = (String) value;\n Field sameValueField = values.get(val);\n if (sameValueField != null) {\n fail(\"Constants \" + f.getName() + \" and \" + sameValueField.getName() + \" have same value \" + val);\n } else {\n values.put(val, f);\n }\n }\n }", "public static void initializeBlockFields() {\n KitchenMod.LOGGER.log(\"Initializing static block fields\");\n KMComposterBlock.rinit();\n\n StakeBlock.registerPlant(GRAPE_VINE);\n StakeBlock.registerPlant(TOMATO_VINE);\n StakeBlock.registerPlant(VANILLA_VINE);\n }", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 1)\n public static void printSpecificStaticFieldsTedious (final DynamicContext dc) {\n final String format = \"disl: tedious %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_TYPE\", \"Ljava/lang/Class;\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_NAME\", \"Ljava/lang/String;\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_RAND\", \"I\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_MATH\", \"D\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "private boolean eatStaticIfNotElementName() {\n if (peek(TokenType.STATIC) && isClassElementStart(peekToken(1))) {\n eat(TokenType.STATIC);\n return true;\n }\n return false;\n }", "public void setStaticVariables() throws KKException\r\n {\r\n KKConfiguration conf;\r\n StaticData staticData = staticDataHM.get(getStoreId());\r\n if (staticData == null)\r\n {\r\n staticData = new StaticData();\r\n staticDataHM.put(getStoreId(), staticData);\r\n }\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT is not set. It must\"\r\n + \" be set to the either TEST or PRODUCTION\");\r\n } else if (!(conf.getValue().equals(\"TEST\") || conf.getValue().equals(\"PRODUCTION\")))\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT (currently set to \"\r\n + conf.getValue() + \") must\"\r\n + \" be set to the either TEST or PRODUCTION\");\r\n }\r\n staticData.setEnvironment(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_REQUEST_URL);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_REQUEST_URL must be set to the URL for\"\r\n + \" sending the request to CyberSource.\");\r\n }\r\n staticData.setRequestUrl(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_RESPONSE_URL);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_RESPONSE_URL must be set \"\r\n + \"to the Response Url\");\r\n }\r\n staticData.setResponseUrl(conf.getValue());\r\n\r\n // conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_MERCHANT_ACC);\r\n // if (conf == null)\r\n // {\r\n // throw new KKException(\r\n // \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_MERCHANT_ACC must be set to \"\r\n // + \"the CyberSource Merchant Account\");\r\n // }\r\n // staticData.setMerchantAccount(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_PROFILE_ID);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_PROFILE_ID must be set to \"\r\n + \"the CyberSource Merchant Profile Id\");\r\n }\r\n staticData.setProfileId(conf.getValue());\r\n\r\n KKConfiguration conf1 = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET1);\r\n if (conf1 == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET1 must be set to \"\r\n + \"the CyberSource Shared Secret - Part 1\");\r\n }\r\n\r\n KKConfiguration conf2 = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET2);\r\n\r\n if (conf2 != null && conf2.getValue() != null)\r\n {\r\n // If both Part 1 and Part 2 are defined\r\n staticData.setSharedSecret(conf1.getValue() + conf2.getValue());\r\n } else\r\n {\r\n // If only Part 1 is defined\r\n staticData.setSharedSecret(conf1.getValue());\r\n }\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ACCESS_KEY);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_ACCESS_KEY must be set to \"\r\n + \"the CyberSource Access Key\");\r\n }\r\n staticData.setAccessKey(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_VERSION);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_VERSION must be set to \"\r\n + \"the CyberSource Gateway Version Number\");\r\n }\r\n staticData.setGatewayVersion(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ZONE);\r\n if (conf == null)\r\n {\r\n staticData.setZone(0);\r\n } else\r\n {\r\n staticData.setZone(new Integer(conf.getValue()).intValue());\r\n }\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SORT_ORDER);\r\n if (conf == null)\r\n {\r\n staticData.setSortOrder(0);\r\n } else\r\n {\r\n staticData.setSortOrder(new Integer(conf.getValue()).intValue());\r\n }\r\n }", "public static List<Field> getNonStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(!Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "public void fieldChangeFromStaticNestedClass(){\n\t\t\tfield2 = 200;\n\t\t\tSystem.out.println(\"Static nested class, field 2 :\" +field2);\n\t\t}", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "public void putClassMembers( GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic, boolean bStaticImport )\n {\n compileDeclarationsIfNeeded();\n for( int i = 0; i < _interfaces.length; i++ )\n {\n IType type = _interfaces[i];\n if( !(type instanceof ErrorType) )\n {\n IGosuClassInternal gsClass = Util.getGosuClassFrom( type );\n if( gsClass != null && gsClass != getOrCreateTypeReference() )\n {\n gsClass.putClassMembers( owner, table, gsContextClass, bStatic );\n }\n }\n }\n if( getEnclosingType() instanceof IGosuClassInternal &&\n ((IGosuClassInternal)getEnclosingType()).isHeaderCompiled() && TypeLord.encloses( getEnclosingType(), owner.getGosuClass() ) )\n {\n getEnclosingType().putClassMembers( loader, owner, table, gsContextClass, bStatic || isStatic() );\n }\n if( getSuperClass() != null )\n {\n getSuperClass().putClassMembers( owner, table, gsContextClass, bStatic );\n if( getSuperClass().isProxy() )\n {\n addJavaEnhancements( owner, table, gsContextClass, bStatic, getSuperClass().getJavaType() );\n }\n }\n\n putEnhancements( owner, table, gsContextClass, bStatic, loader.getModule(), getOrCreateTypeReference() );\n\n boolean bSuperClass = gsContextClass != getOrCreateTypeReference();\n\n putStaticFields( table, gsContextClass, bSuperClass, bStaticImport );\n if( gsContextClass == null ||\n bStaticImport ||\n !isInterface() ||\n getOrCreateTypeReference( gsContextClass ) == getOrCreateTypeReference() ) // Static interface methods/properties are NOT inherited\n {\n putStaticFunctions( owner, table, gsContextClass, bSuperClass, bStaticImport );\n putStaticProperties( table, gsContextClass, bSuperClass, bStaticImport );\n }\n if( !bStatic )\n {\n putFields( table, gsContextClass, bSuperClass );\n putFunctions( owner, table, gsContextClass, bSuperClass );\n putProperties( table, gsContextClass, bSuperClass );\n putConstructors( owner, table, bSuperClass );\n }\n }", "@Override\r\n protected void clearStaticReferences() {\r\n // free static fields :\r\n documentFactory = null;\r\n transformerFactory = null;\r\n schemaFactory = null;\r\n\r\n cacheDOM.clear();\r\n cacheDOM = null;\r\n\r\n cacheXSL.clear();\r\n cacheXSL = null;\r\n }", "public boolean isStatic() {\n\t\t\treturn this.IsStatic;\n\t\t}", "private void addStaticInitAndConstructors() {\n MethodNode mn = new MethodNode(ASM5, ACC_STATIC, \"<clinit>\", \"()V\", null, null);\n InsnList il = mn.instructions;\n il.add(new MethodInsnNode(INVOKESTATIC, \n \"org/apache/uima/type_system/impl/TypeSystemImpl\", \n \"getTypeImplBeingLoaded\", \n \"()Lorg/apache/uima/type_system/impl/TypeImpl;\", \n false));\n il.add(new FieldInsnNode(PUTSTATIC, \n \"pkg/sample/name/SeeSample\", \n \"_typeImpl\", \n \"Lorg/apache/uima/type_system/impl/TypeImpl;\"));\n il.add(new InsnNode(RETURN));\n mn.maxStack = 1;\n mn.maxLocals = 0;\n cn.methods.add(mn);\n \n // instance constructors method\n \n mn = new MethodNode(ACC_PUBLIC, \"<init>\", \"(ILorg/apache/uima/jcas/cas/TOP_Type;)V\", null, null);\n il = mn.instructions;\n il.add(new VarInsnNode(ALOAD, 0));\n il.add(new VarInsnNode(ILOAD, 1));\n il.add(new VarInsnNode(ALOAD, 2));\n il.add(new MethodInsnNode(INVOKESPECIAL, \"org/apache/uima/jcas/tcas/Annotation\", \"<init>\", \"(ILorg/apache/uima/jcas/cas/TOP_Type;)V\", false));\n il.add(new InsnNode(RETURN));\n mn.maxStack = 3;\n mn.maxLocals = 3;\n cn.methods.add(mn);\n \n mn = new MethodNode(ACC_PUBLIC, \"<init>\", \"(Lorg/apache/uima/jcas/JCas;)V\", null, null);\n il = mn.instructions;\n il.add(new VarInsnNode(ALOAD, 0));\n il.add(new VarInsnNode(ALOAD, 1));\n il.add(new MethodInsnNode(INVOKESPECIAL, \"org/apache/uima/jcas/tcas/Annotation\", \"<init>\", \"(Lorg/apache/uima/jcas/JCas;)V\", false));\n il.add(new InsnNode(RETURN));\n mn.maxStack = 2;\n mn.maxLocals = 2;\n cn.methods.add(mn);\n \n // constructor for annotation\n if (type.isAnnotation) {\n mn = new MethodNode(ACC_PUBLIC, \"<init>\", \"(Lorg/apache/uima/jcas/JCas;II)V\", null, null);\n il = mn.instructions;\n il.add(new VarInsnNode(ALOAD, 0));\n il.add(new VarInsnNode(ALOAD, 1));\n il.add(new MethodInsnNode(INVOKESPECIAL, \"org/apache/uima/jcas/tcas/Annotation\", \"<init>\", \"(Lorg/apache/uima/jcas/JCas;)V\", false));\n il.add(new VarInsnNode(ALOAD, 0));\n il.add(new VarInsnNode(ILOAD, 2));\n il.add(new MethodInsnNode(INVOKEVIRTUAL, \"org/apache/uima/tutorial/RoomNumberv3\", \"setBegin\", \"(I)V\", false));\n il.add(new VarInsnNode(ALOAD, 0));\n il.add(new VarInsnNode(ILOAD, 3));\n il.add(new MethodInsnNode(INVOKEVIRTUAL, \"org/apache/uima/tutorial/RoomNumberv3\", \"setEnd\", \"(I)V\", false));\n il.add(new InsnNode(RETURN));\n mn.maxStack = 2;\n mn.maxLocals = 4;\n cn.methods.add(mn);\n }\n }", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "private ApplicationConstants(){\n\t\t//not do anything \n\t}", "public boolean isStatic() {\n return isStatic;\n }", "private SecurityConsts()\r\n\t{\r\n\r\n\t}", "@Test\n public void staticFinalInnerClassesShouldBecomeNonFinal() throws Exception {\n MockClassLoader mockClassLoader = new MockClassLoader(new String[] { MockClassLoader.MODIFY_ALL_CLASSES });\n mockClassLoader.setMockTransformerChain(Collections.<MockTransformer> singletonList(new MainMockTransformer()));\n Class<?> clazz = Class.forName(SupportClasses.StaticFinalInnerClass.class.getName(), true, mockClassLoader);\n assertFalse(Modifier.isFinal(clazz.getModifiers()));\n }", "private LevelConstants() {\n\t\t\n\t}", "private void setStaticData() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.setText(i18n.GL3045());\n\t\tlblStandards.setText(i18n.GL0575());\n\t}", "public static void registerStaticAttributeKey(final Object key) {\n staticKeys.put(StyleContext.getStaticAttributeKey(key), key);\n }", "@Override\n\tpublic void setStatic(boolean isStatic) {\n\t\t\n\t}", "protected void init()\n {\n m_fModified = false;\n m_fLoaded = false;\n m_abClazz = null;\n m_clzName = null;\n m_clzSuper = null;\n m_pool = new ConstantPool(this);\n m_flags = new AccessFlags();\n m_tblInterface = new StringTable();\n m_tblField = new StringTable();\n m_tblMethod = new StringTable();\n m_tblAttribute = new StringTable();\n\n CONTAINED_TABLE[0] = m_tblField;\n CONTAINED_TABLE[1] = m_tblMethod;\n CONTAINED_TABLE[2] = m_tblAttribute;\n }", "private Constants() {\n throw new AssertionError();\n }", "public boolean needsVtable() {\n return !isStatic();\n }", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "public boolean isStaticTypedTarget() {\n\t return true;\n }", "private WidgetConstants() {\n throw new AssertionError();\n }", "private USBConstant() {\r\n\r\n\t}", "public static void staticMethod() {\n Log.e(\"LOG_TAG\", \"Company: STATIC Instance method\");\n }", "public static void setNewStatic(String value) {\n }", "protected void validatePageInitialState()\n\t{\n\t\tlogger.debug( \"validating static elements for: <{}>, name:<{}>...\", getQualifier(), getLogicalName() );\n\t}", "public static boolean handleStaticFieldWrite(Node sf, Node x, Node m) {\n\t\tif(ImmutabilityPreferences.isInferenceRuleLoggingEnabled()){\n\t\t\tString values = \"x:\" + getTypes(x).toString() + \", sf:\" + getTypes(sf).toString() + \", m:\" + getTypes(m).toString();\n\t\t\tLog.info(\"TSWRITE (sf=x in m, sf=\" + sf.getAttr(XCSG.name) + \", x=\" + x.getAttr(XCSG.name) + \", m=\" + m.getAttr(XCSG.name) + \")\\n\" + values);\n\t\t}\n\t\t// a write to a static field means the containing method cannot be pure (readonly or polyread)\n\t\treturn removeTypes(m, ImmutabilityTypes.READONLY, ImmutabilityTypes.POLYREAD);\n\t}", "public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.getDeclaredFields()) {\r\n try {\r\n Short value = (Short) field.get(nCodes);\r\n\r\n if (nCodeMap.containsKey(value)) {\r\n Log.println_e(field.getName() + \" is conflicting with \" + nCodeMap.get(value));\r\n } else {\r\n nCodeMap.put(value, field.getName());\r\n }\r\n } catch (IllegalArgumentException ex) {\r\n Log.println_e(ex.getMessage());\r\n } catch (IllegalAccessException ex) {\r\n Log.println_e(ex.getMessage());\r\n }\r\n }\r\n }", "public void visitGetstatic(Quad obj) {\n if (TRACE_INTRA) out.println(\"Visiting: \"+obj);\n Register r = Getstatic.getDest(obj).getRegister();\n Getstatic.getField(obj).resolve();\n jq_Field f = Getstatic.getField(obj).getField();\n if (IGNORE_STATIC_FIELDS) f = null;\n ProgramLocation pl = new QuadProgramLocation(method, obj);\n heapLoad(pl, r, my_global, f);\n }", "protected void createJoinPointSpecificFields() {\n String[] fieldNames = null;\n // create the field argument field\n Type fieldType = Type.getType(m_calleeMemberDesc);\n fieldNames = new String[1];\n String fieldName = ARGUMENT_FIELD + 0;\n fieldNames[0] = fieldName;\n m_cw.visitField(ACC_PRIVATE, fieldName, fieldType.getDescriptor(), null, null);\n m_fieldNames = fieldNames;\n\n m_cw.visitField(\n ACC_PRIVATE + ACC_STATIC,\n SIGNATURE_FIELD_NAME,\n FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE,\n null,\n null\n );\n }", "public final EObject entryRuleStaticField() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStaticField = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1036:2: (iv_ruleStaticField= ruleStaticField EOF )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1037:2: iv_ruleStaticField= ruleStaticField EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getStaticFieldRule()); \n }\n pushFollow(FOLLOW_ruleStaticField_in_entryRuleStaticField2519);\n iv_ruleStaticField=ruleStaticField();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleStaticField; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleStaticField2529); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private VolumeDataConstants() {\r\n \r\n }", "public int getStaticCharsCount() {\n return 0;\n }", "public interface AbstractC4464qo0 extends AbstractC3313k30 {\n public static final /* synthetic */ int v = 0;\n}", "@SuppressWarnings(\"PMD.AvoidInstantiatingObjectsInLoops\")\n public Feedback staticInstance(FieldDeclaration field, String className) {\n boolean isStatic = false;\n List<Feedback> childFeedbacks = new ArrayList<>();\n if (field.getVariables().get(0).getType().toString().equals(className)) {\n if (!field.getVariables().get(0).getInitializer().isEmpty()) {\n isInstantiated = true;\n }\n for (Modifier modifier : field.getModifiers()) {\n String mdName = modifier.getKeyword().asString();\n String pub = \"public\";\n String prot = \"protected\";\n if (pub.equals(mdName) || prot.equals(mdName)) {\n childFeedbacks.add(Feedback.getNoChildFeedback(\n \"Found a non-private instance of the class, could be set \" +\n \"multiple times\", new FeedbackTrace(field)));\n } else if (modifier.getKeyword().asString().equals(\"static\")) {\n isStatic = true;\n }\n }\n if (!isStatic) {\n childFeedbacks.add(Feedback.getNoChildFeedback(\n \"Non-static field found in \" + \"class, this field should \" +\n \"never be initializeable so \" + \"it may never be used\",\n new FeedbackTrace(field)));\n }\n instanceVar = field;\n }\n if (childFeedbacks.isEmpty()) {\n return Feedback.getSuccessfulFeedback();\n }\n return Feedback.getFeedbackWithChildren(new FeedbackTrace(field), childFeedbacks);\n }", "@Test\n public void testStaticMethodStaticClassNotKept() throws Exception {\n Class<?> mainClass = MainCallStaticMethod.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticMethod.class),\n keepMainProguardConfiguration(mainClass),\n this::checkOnlyMainPresent);\n }", "@Test\n public void testStaticMethodStaticClassKept() throws Exception {\n Class<?> mainClass = MainCallStaticMethod.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticMethod.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticMethod.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "private CommonUIConstants()\n {\n }", "private Constants() {\n }", "private Constants() {\n }", "boolean hasConst();", "public static void resetClasses() {\r\n\t\ttry {\r\n\t\t\tzeroStaticFields();\r\n\t\t\t\r\n\t\t\t//FIXME TODO: de-tangle quick-and-dirty approach from above register-reset-to-zero \r\n\t\t\t// which is needed for each load-time approach.\r\n\t\t\tclassInitializers();\r\n\t\t}\r\n\t\tcatch (Exception e) {\t//should not happen\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@RegionEffects(\"writes test.C:Static\")\n public void y1() {\n s1 = 1;\n }", "private Constants() {\n\n }", "public interface InterfaceWithStaticFinalField {\r\n\tstatic final String MY_STRING = \"My value\";\r\n}", "public void setStatic(boolean fStatic)\n {\n ensureLoaded();\n m_flags.setStatic(fStatic);\n setModified(true);\n }", "@RegionEffects(\"writes test.D:Static\") // BAD\n public void n1() {\n s1 = 1;\n }", "private void checkCommon() {\n final AnnotationTypeDeclaration commonAnnoType = (AnnotationTypeDeclaration) _env.getTypeDeclaration(Common.class.getName());\n final Collection<Declaration> decls = _env.getDeclarationsAnnotatedWith(commonAnnoType);\n for (Declaration decl : decls) {\n if (decl instanceof FieldDeclaration) {\n final FieldDeclaration field = (FieldDeclaration) decl;\n final TypeMirror type = field.getType();\n if (type instanceof DeclaredType) {\n final TypeMirror collectionType = _env.getTypeUtils().getDeclaredType(_env.getTypeDeclaration(Collection.class.getName()));\n final Collection<TypeMirror> typeVars = ((DeclaredType) type).getActualTypeArguments();\n if (typeVars.size() == 1) {\n TypeMirror typeVar = typeVars.iterator().next();\n boolean assignable = _env.getTypeUtils().isAssignable(typeVar, collectionType);\n if (assignable)\n _msgr.printError(typeVar + \" is assignable to \" + collectionType);\n else\n _msgr.printError(typeVar + \" is not assignable to \" + collectionType);\n }\n }\n } else if (decl instanceof TypeDeclaration) {\n final TypeDeclaration typeDecl = (TypeDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = typeDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n } else if (decl instanceof MethodDeclaration) {\n final MethodDeclaration methodDecl = (MethodDeclaration) decl;\n final Collection<TypeParameterDeclaration> typeParams = methodDecl.getFormalTypeParameters();\n for (TypeParameterDeclaration typeParam : typeParams) {\n Declaration owner = typeParam.getOwner();\n _msgr.printError(\"Type parameter '\" + typeParam + \"' belongs to \" + owner.getClass().getName() + \" \" + owner.getSimpleName());\n }\n }\n }\n }", "public static Object getStaticAttribute(final Object key) {\n return staticKeys.get(key);\n }", "private C3P0Helper() { }", "public void putStatic(String desc, String owner, String name, int opcode, int ID, int SID, int index)\n\t{\n\t mv.visitFieldInsn(opcode, owner, name, desc); // putstatic \n logFieldAccess(desc, ID, SID, index); \n\t}", "private static void initializeDatafields(Class<AbstractNode> type) throws Exception {\r\n if (staticDatafieldMap == null) {\r\n staticDatafieldMap = new HashMap<Class<AbstractNode>, Set<String>>();\r\n }\r\n\r\n if (staticDatafieldMap.get(type) == null) {\r\n staticDatafieldMap.put(type, Information.getDatafieldsOfNode(type));\r\n }\r\n }", "public static void c3() {\n\t}", "private StaticContent() {\r\n super(IStaticContent.TYPE_ID);\r\n }", "private void internalResolve(Scope scope, boolean staticContext) {\n\t\tif (this.binding != null) {\n\t\t\tBinding existingType = scope.parent.getBinding(this.name, Binding.TYPE, (/*@OwnPar*/ /*@NoRep*/ TypeParameter)this, false);\n\t\t\tif (existingType != null \n\t\t\t\t\t&& this.binding != existingType \n\t\t\t\t\t&& existingType.isValidBinding()\n\t\t\t\t\t&& (existingType.kind() != Binding.TYPE_PARAMETER || !staticContext)) {\n\t\t\t\tscope.problemReporter().typeHiding((/*@OwnPar*/ /*@NoRep*/ TypeParameter)this, existingType);\n\t\t\t}\n\t\t}\n\t}", "public interface AbstractC0537ba {\n public static final AbstractC0537ba A00 = new C1195uw();\n\n List A3h(C0544bh bhVar);\n}", "@Override\n\tpublic void buildConstants(JDefinedClass cls) {\n\n\t}", "public boolean isConstant()\n {\n return analysis.getRequiredBindings().isEmpty();\n }", "StaticIncludeType createStaticIncludeType();", "private MetallicityUtils() {\n\t\t\n\t}" ]
[ "0.63175166", "0.62108", "0.6017835", "0.5915442", "0.59148335", "0.58090216", "0.5782157", "0.57552767", "0.57464784", "0.57293147", "0.57293147", "0.5674407", "0.56692076", "0.5653387", "0.562963", "0.5591695", "0.5582432", "0.55667883", "0.5551421", "0.5549009", "0.55366445", "0.5490952", "0.5440547", "0.5435742", "0.5409375", "0.5383649", "0.536068", "0.53410137", "0.5282806", "0.52714413", "0.52289826", "0.52270204", "0.52095073", "0.5208992", "0.51971644", "0.5166756", "0.51647896", "0.5161879", "0.51501954", "0.5141318", "0.51053506", "0.5097785", "0.5095438", "0.50935906", "0.508359", "0.50576776", "0.5051567", "0.5028944", "0.50244206", "0.49925825", "0.49923378", "0.49842846", "0.4982384", "0.49727902", "0.4962427", "0.49406806", "0.49405986", "0.49403796", "0.492744", "0.49207833", "0.4910065", "0.4905086", "0.48771992", "0.48720816", "0.4856204", "0.48443255", "0.48411742", "0.48379675", "0.48369196", "0.4836111", "0.48019204", "0.47963938", "0.47928914", "0.4790661", "0.4788608", "0.47859162", "0.47735482", "0.47599792", "0.47504926", "0.47455826", "0.47455826", "0.47447866", "0.47378412", "0.4736278", "0.47357365", "0.47318357", "0.4730289", "0.4729052", "0.47099203", "0.4698427", "0.4694297", "0.46785995", "0.46761322", "0.4667532", "0.4667286", "0.46646482", "0.46641585", "0.46636966", "0.46636787", "0.4661982", "0.46605423" ]
0.0
-1
Make sure that the static fields in C are not part of D:Static
@RegionEffects("writes test.D:Static") // BAD public void n1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testStaticFieldWithoutInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldNotInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldNotInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldNotInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "@Test\n public void testStaticFieldWithInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public void visitGETSTATIC(GETSTATIC o){\n\t\t// Field must be static: see Pass 3a.\n\t}", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 2)\n public static void printSpecificStaticFieldConcise (final DynamicContext dc) {\n final String format = \"disl: concise %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_TYPE\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_NAME\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_RAND\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_MATH\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "@Override\n\tpublic boolean isStatic() {\n\t\treturn false;\n\t}", "public static List<Field> getStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "@AfterReturning(marker = BytecodeMarker.class, args = \"GETSTATIC\", scope = \"TargetClass.printStaticFields\", order = 0)\n public static void printStaticFieldsRead (final FieldAccessStaticContext fasc, final DynamicContext dc) {\n if (\"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\".equals (fasc.getOwnerInternalName ())) {\n System.out.printf (\"disl: %s=%s\\n\", fasc.getName (), dc.getStaticFieldValue (\n fasc.getOwnerInternalName (), fasc.getName (), fasc.getDescriptor (), Object.class\n ));\n }\n }", "@Test\n public void testReflectionStatics() {\n final ReflectionStaticFieldsFixture instance1 = new ReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString,staticTransientInt=54321,staticTransientString=staticTransientString,transientInt=98765,transientString=transientString]\",\n ReflectionToStringBuilder.toString(instance1, null, true, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n }", "@Override\n\t/**\n\t * does nothing because a class cannot be static\n\t */\n\tpublic void setStatic(boolean b) {\n\n\t}", "private StaticProperty() {}", "private JCBlock makeInitStaticAttributesBlock(DiagnosticPosition diagPos, \n JFXClassDeclaration cDecl,\n List<TranslatedAttributeInfo> translatedAttrInfo) {\n // Add the initialization of this class' attributesa\n ListBuffer<JCStatement> stmts = ListBuffer.lb();\n for (TranslatedAttributeInfo tai : translatedAttrInfo) {\n assert tai.attribute != null && tai.attribute.getTag() == JavafxTag.VAR_DEF && tai.attribute.pos != Position.NOPOS;\n if (tai.isStatic()) {\n if (tai.isDirectOwner()) {\n stmts.append(tai.getDefaultInitializtionStatement());\n stmts.append( toJava.callStatement(diagPos, make.at(diagPos).Ident(tai.getName()), locationInitializeName));\n }\n JCStatement stat = makeStaticChangeListenerCall(tai);\n if (stat != null) {\n stmts.append(stat);\n }\n }\n }\n return make.Block(Flags.STATIC, stmts.toList());\n }", "public static List<Field> getNonStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(!Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "private StaticData() {\n\n }", "public boolean isStatic() {\n\t\treturn (access & Opcodes.ACC_STATIC) != 0;\n\t}", "@Test\n public void testInheritedReflectionStatics() {\n final InheritedReflectionStaticFieldsFixture instance1 = new InheritedReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, InheritedReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n }", "boolean isContextStatic(){\r\n\t\tif(curField == null) {\r\n\t\t\treturn curOperation.isStaticElement();\r\n\t\t} else {\r\n\t\t\treturn curField.isStaticElement();\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"UnusedDeclaration\")\n public static void __staticInitializer__() {\n }", "private static boolean hasFieldProperModifier(Object object, Field field) {\n return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers()))\n || ((object instanceof Class<?> == false && Modifier.isStatic(field.getModifiers()) == false)));\n }", "public void fieldChangeFromStaticNestedClass(){\n\t\t\tfield2 = 200;\n\t\t\tSystem.out.println(\"Static nested class, field 2 :\" +field2);\n\t\t}", "public default boolean isStatic() {\n\t\treturn false;\n\t}", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 1)\n public static void printSpecificStaticFieldsTedious (final DynamicContext dc) {\n final String format = \"disl: tedious %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_TYPE\", \"Ljava/lang/Class;\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_NAME\", \"Ljava/lang/String;\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_RAND\", \"I\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_MATH\", \"D\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "@Override\n\t/**\n\t * returns a false because a class cannot be static\n\t * \n\t * @return false\n\t */\n\tpublic boolean getStatic() {\n\t\treturn false;\n\t}", "private void validateConstants(final Class c) throws IDLTypeException {\n/* 564 */ Field[] arrayOfField = null;\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 569 */ arrayOfField = AccessController.<Field[]>doPrivileged(new PrivilegedExceptionAction<Field>() {\n/* */ public Object run() throws Exception {\n/* 571 */ return c.getFields();\n/* */ }\n/* */ });\n/* 574 */ } catch (PrivilegedActionException privilegedActionException) {\n/* 575 */ IDLTypeException iDLTypeException = new IDLTypeException();\n/* 576 */ iDLTypeException.initCause(privilegedActionException);\n/* 577 */ throw iDLTypeException;\n/* */ } \n/* */ \n/* 580 */ for (byte b = 0; b < arrayOfField.length; b++) {\n/* 581 */ Field field = arrayOfField[b];\n/* 582 */ Class<?> clazz = field.getType();\n/* 583 */ if (clazz != String.class && \n/* 584 */ !isPrimitive(clazz)) {\n/* */ \n/* */ \n/* 587 */ String str = \"Constant field '\" + field.getName() + \"' in class '\" + field.getDeclaringClass().getName() + \"' has invalid type' \" + field.getType() + \"'. Constants in RMI/IIOP interfaces can only have primitive types and java.lang.String types.\";\n/* */ \n/* */ \n/* 590 */ throw new IDLTypeException(str);\n/* */ } \n/* */ } \n/* */ }", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "boolean isStatic();", "boolean isStatic();", "private Constantes() {\r\n\t\t// No way\r\n\t}", "private List<Node> getStaticInitializers(ClassBody nd) {\n List<Node> nodes = new ArrayList<>();\n for (MemberDefinition<?> node : nd.getBody()) {\n if (node instanceof FieldDefinition && ((FieldDefinition)node).isStatic()) nodes.add(node);\n if (node instanceof StaticInitializer) nodes.add(node.getValue());\n }\n return nodes;\n }", "public void constants_should_be_unique() throws IllegalAccessException {\n Class<Constants> klass = Constants.class;\n Map<String, Field> values = new HashMap<String, Field>();\n for (Field f : klass.getFields()) {\n Object value = f.get(klass);\n if (!(value instanceof String))\n continue;\n String val = (String) value;\n Field sameValueField = values.get(val);\n if (sameValueField != null) {\n fail(\"Constants \" + f.getName() + \" and \" + sameValueField.getName() + \" have same value \" + val);\n } else {\n values.put(val, f);\n }\n }\n }", "@Test\n public void staticFinalInnerClassesShouldBecomeNonFinal() throws Exception {\n MockClassLoader mockClassLoader = new MockClassLoader(new String[] { MockClassLoader.MODIFY_ALL_CLASSES });\n mockClassLoader.setMockTransformerChain(Collections.<MockTransformer> singletonList(new MainMockTransformer()));\n Class<?> clazz = Class.forName(SupportClasses.StaticFinalInnerClass.class.getName(), true, mockClassLoader);\n assertFalse(Modifier.isFinal(clazz.getModifiers()));\n }", "boolean getIsStatic();", "@Override\r\n protected void clearStaticReferences() {\r\n // free static fields :\r\n documentFactory = null;\r\n transformerFactory = null;\r\n schemaFactory = null;\r\n\r\n cacheDOM.clear();\r\n cacheDOM = null;\r\n\r\n cacheXSL.clear();\r\n cacheXSL = null;\r\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public static void isStatic() {\n\n }", "private Constants() {\n\t\tthrow new AssertionError();\n\t}", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.getDeclaredFields()) {\r\n try {\r\n Short value = (Short) field.get(nCodes);\r\n\r\n if (nCodeMap.containsKey(value)) {\r\n Log.println_e(field.getName() + \" is conflicting with \" + nCodeMap.get(value));\r\n } else {\r\n nCodeMap.put(value, field.getName());\r\n }\r\n } catch (IllegalArgumentException ex) {\r\n Log.println_e(ex.getMessage());\r\n } catch (IllegalAccessException ex) {\r\n Log.println_e(ex.getMessage());\r\n }\r\n }\r\n }", "public void visitPUTSTATIC(PUTSTATIC o){\n\t\tString field_name = o.getFieldName(cpg);\n\t\tJavaClass jc = Repository.lookupClass(o.getClassType(cpg).getClassName());\n\t\tField[] fields = jc.getFields();\n\t\tField f = null;\n\t\tfor (int i=0; i<fields.length; i++){\n\t\t\tif (fields[i].getName().equals(field_name)){\n\t\t\t\tf = fields[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (f == null){\n\t\t\tthrow new AssertionViolatedException(\"Field not found?!?\");\n\t\t}\n\t\tType value = stack().peek();\n\t\tType t = Type.getType(f.getSignature());\n\t\tType shouldbe = t;\n\t\tif (shouldbe == Type.BOOLEAN ||\n\t\t\t\tshouldbe == Type.BYTE ||\n\t\t\t\tshouldbe == Type.CHAR ||\n\t\t\t\tshouldbe == Type.SHORT){\n\t\t\tshouldbe = Type.INT;\n\t\t}\n\t\tif (t instanceof ReferenceType){\n\t\t\tReferenceType rvalue = null;\n\t\t\tif (value instanceof ReferenceType){\n\t\t\t\trvalue = (ReferenceType) value;\n\t\t\t\treferenceTypeIsInitialized(o, rvalue);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not of a reference type as expected.\");\n\t\t\t}\n\t\t\t// TODO: This can possibly only be checked using Staerk-et-al's \"set-of-object types\", not\n\t\t\t// using \"wider cast object types\" created during verification.\n\t\t\t// Comment it out if you encounter problems. See also the analogon at visitPUTFIELD.\n\t\t\tif (!(rvalue.isAssignmentCompatibleWith(shouldbe))){\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not assignment compatible with '\"+shouldbe+\"'.\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif (shouldbe != value){\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not of type '\"+shouldbe+\"' as expected.\");\n\t\t\t}\n\t\t}\n\t\t// TODO: Interface fields may be assigned to only once. (Hard to implement in\n\t\t// JustIce's execution model). This may only happen in <clinit>, see Pass 3a.\n\t}", "public boolean needsVtable() {\n return !isStatic();\n }", "void testLocalStaticClass() {\n // static class LocalStaticClass {\n // }\n }", "public void setStaticVariables() throws KKException\r\n {\r\n KKConfiguration conf;\r\n StaticData staticData = staticDataHM.get(getStoreId());\r\n if (staticData == null)\r\n {\r\n staticData = new StaticData();\r\n staticDataHM.put(getStoreId(), staticData);\r\n }\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT is not set. It must\"\r\n + \" be set to the either TEST or PRODUCTION\");\r\n } else if (!(conf.getValue().equals(\"TEST\") || conf.getValue().equals(\"PRODUCTION\")))\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_ENVIRONMENT (currently set to \"\r\n + conf.getValue() + \") must\"\r\n + \" be set to the either TEST or PRODUCTION\");\r\n }\r\n staticData.setEnvironment(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_REQUEST_URL);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_REQUEST_URL must be set to the URL for\"\r\n + \" sending the request to CyberSource.\");\r\n }\r\n staticData.setRequestUrl(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_RESPONSE_URL);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_RESPONSE_URL must be set \"\r\n + \"to the Response Url\");\r\n }\r\n staticData.setResponseUrl(conf.getValue());\r\n\r\n // conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_MERCHANT_ACC);\r\n // if (conf == null)\r\n // {\r\n // throw new KKException(\r\n // \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_MERCHANT_ACC must be set to \"\r\n // + \"the CyberSource Merchant Account\");\r\n // }\r\n // staticData.setMerchantAccount(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_PROFILE_ID);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_PROFILE_ID must be set to \"\r\n + \"the CyberSource Merchant Profile Id\");\r\n }\r\n staticData.setProfileId(conf.getValue());\r\n\r\n KKConfiguration conf1 = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET1);\r\n if (conf1 == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET1 must be set to \"\r\n + \"the CyberSource Shared Secret - Part 1\");\r\n }\r\n\r\n KKConfiguration conf2 = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SHARED_SECRET2);\r\n\r\n if (conf2 != null && conf2.getValue() != null)\r\n {\r\n // If both Part 1 and Part 2 are defined\r\n staticData.setSharedSecret(conf1.getValue() + conf2.getValue());\r\n } else\r\n {\r\n // If only Part 1 is defined\r\n staticData.setSharedSecret(conf1.getValue());\r\n }\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ACCESS_KEY);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_ACCESS_KEY must be set to \"\r\n + \"the CyberSource Access Key\");\r\n }\r\n staticData.setAccessKey(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_VERSION);\r\n if (conf == null)\r\n {\r\n throw new KKException(\r\n \"The Configuration MODULE_PAYMENT_CYBERSOURCESA_VERSION must be set to \"\r\n + \"the CyberSource Gateway Version Number\");\r\n }\r\n staticData.setGatewayVersion(conf.getValue());\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_ZONE);\r\n if (conf == null)\r\n {\r\n staticData.setZone(0);\r\n } else\r\n {\r\n staticData.setZone(new Integer(conf.getValue()).intValue());\r\n }\r\n\r\n conf = getConfiguration(MODULE_PAYMENT_CYBERSOURCESA_SORT_ORDER);\r\n if (conf == null)\r\n {\r\n staticData.setSortOrder(0);\r\n } else\r\n {\r\n staticData.setSortOrder(new Integer(conf.getValue()).intValue());\r\n }\r\n }", "public static boolean handleStaticFieldWrite(Node sf, Node x, Node m) {\n\t\tif(ImmutabilityPreferences.isInferenceRuleLoggingEnabled()){\n\t\t\tString values = \"x:\" + getTypes(x).toString() + \", sf:\" + getTypes(sf).toString() + \", m:\" + getTypes(m).toString();\n\t\t\tLog.info(\"TSWRITE (sf=x in m, sf=\" + sf.getAttr(XCSG.name) + \", x=\" + x.getAttr(XCSG.name) + \", m=\" + m.getAttr(XCSG.name) + \")\\n\" + values);\n\t\t}\n\t\t// a write to a static field means the containing method cannot be pure (readonly or polyread)\n\t\treturn removeTypes(m, ImmutabilityTypes.READONLY, ImmutabilityTypes.POLYREAD);\n\t}", "final public boolean isStatic ()\n {\n\treturn myIsStatic;\n }", "protected void createJoinPointSpecificFields() {\n String[] fieldNames = null;\n // create the field argument field\n Type fieldType = Type.getType(m_calleeMemberDesc);\n fieldNames = new String[1];\n String fieldName = ARGUMENT_FIELD + 0;\n fieldNames[0] = fieldName;\n m_cw.visitField(ACC_PRIVATE, fieldName, fieldType.getDescriptor(), null, null);\n m_fieldNames = fieldNames;\n\n m_cw.visitField(\n ACC_PRIVATE + ACC_STATIC,\n SIGNATURE_FIELD_NAME,\n FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE,\n null,\n null\n );\n }", "public boolean hasC() {\n return cBuilder_ != null || c_ != null;\n }", "@SuppressWarnings(\"PMD.AvoidInstantiatingObjectsInLoops\")\n public Feedback staticInstance(FieldDeclaration field, String className) {\n boolean isStatic = false;\n List<Feedback> childFeedbacks = new ArrayList<>();\n if (field.getVariables().get(0).getType().toString().equals(className)) {\n if (!field.getVariables().get(0).getInitializer().isEmpty()) {\n isInstantiated = true;\n }\n for (Modifier modifier : field.getModifiers()) {\n String mdName = modifier.getKeyword().asString();\n String pub = \"public\";\n String prot = \"protected\";\n if (pub.equals(mdName) || prot.equals(mdName)) {\n childFeedbacks.add(Feedback.getNoChildFeedback(\n \"Found a non-private instance of the class, could be set \" +\n \"multiple times\", new FeedbackTrace(field)));\n } else if (modifier.getKeyword().asString().equals(\"static\")) {\n isStatic = true;\n }\n }\n if (!isStatic) {\n childFeedbacks.add(Feedback.getNoChildFeedback(\n \"Non-static field found in \" + \"class, this field should \" +\n \"never be initializeable so \" + \"it may never be used\",\n new FeedbackTrace(field)));\n }\n instanceVar = field;\n }\n if (childFeedbacks.isEmpty()) {\n return Feedback.getSuccessfulFeedback();\n }\n return Feedback.getFeedbackWithChildren(new FeedbackTrace(field), childFeedbacks);\n }", "private boolean eatStaticIfNotElementName() {\n if (peek(TokenType.STATIC) && isClassElementStart(peekToken(1))) {\n eat(TokenType.STATIC);\n return true;\n }\n return false;\n }", "@Test\n public void testStaticMethodStaticClassNotKept() throws Exception {\n Class<?> mainClass = MainCallStaticMethod.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticMethod.class),\n keepMainProguardConfiguration(mainClass),\n this::checkOnlyMainPresent);\n }", "public static void initializeBlockFields() {\n KitchenMod.LOGGER.log(\"Initializing static block fields\");\n KMComposterBlock.rinit();\n\n StakeBlock.registerPlant(GRAPE_VINE);\n StakeBlock.registerPlant(TOMATO_VINE);\n StakeBlock.registerPlant(VANILLA_VINE);\n }", "public static void staticMethodThree(){\n ClassOne obj = new ClassOne();\n obj.nonStaticMethodOne();\n }", "public static a c() {\n }", "private Constants() {\n throw new AssertionError();\n }", "@Test\n public void testStaticMethodStaticClassKept() throws Exception {\n Class<?> mainClass = MainCallStaticMethod.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticMethod.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticMethod.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public static void c3() {\n\t}", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "public void test0102() throws JavaModelException {\n\tIPath projectPath = env.addProject(\"Project\");\n\tenv.addExternalJars(projectPath, Util.getJavaClassLibs());\t\n\tenv.removePackageFragmentRoot(projectPath, \"\");\n\tIPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n\tIPath classTest1 = env.addClass(root, \"p1\", \"Test1\",\n\t\t\"package p1;\\n\" +\n\t\t\"public class Test1 {\\n\" +\n\t\t\" private static int i;\\n\" +\n\t\t\" int j = i;\\n\" +\n\t\t\"}\\n\" +\n\t\t\"class Test2 {\\n\" +\n\t\t\" static int i = Test1.i;\\n\" +\n\t\t\"}\\n\"\n\t);\n\tfullBuild();\n\tProblem[] prob1 = env.getProblemsFor(classTest1);\n\texpectingSpecificProblemFor(classTest1, new Problem(\"p1\", \"The field Test1.i is not visible\", classTest1, 109, 110, 50));\n\tassertEquals(JavaBuilder.GENERATED_BY, prob1[0].getGeneratedBy());\n}", "private LevelConstants() {\n\t\t\n\t}", "private static void staticFun()\n {\n }", "public static void resetClasses() {\r\n\t\ttry {\r\n\t\t\tzeroStaticFields();\r\n\t\t\t\r\n\t\t\t//FIXME TODO: de-tangle quick-and-dirty approach from above register-reset-to-zero \r\n\t\t\t// which is needed for each load-time approach.\r\n\t\t\tclassInitializers();\r\n\t\t}\r\n\t\tcatch (Exception e) {\t//should not happen\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void validatePageInitialState()\n\t{\n\t\tlogger.debug( \"validating static elements for: <{}>, name:<{}>...\", getQualifier(), getLogicalName() );\n\t}", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "public boolean hasC() {\n return c_ != null;\n }", "static Field getStaticFieldFromBaseAndOffset(Object base,\n long offset,\n Class<?> fieldType) {\n // @@@ This is a little fragile assuming the base is the class\n Class<?> receiverType = (Class<?>) base;\n for (Field f : receiverType.getDeclaredFields()) {\n if (!Modifier.isStatic(f.getModifiers())) continue;\n\n if (offset == UNSAFE.staticFieldOffset(f)) {\n assert f.getType() == fieldType;\n return f;\n }\n }\n throw new InternalError(\"Static field not found at offset\");\n }", "public boolean isStatic()\n {\n ensureLoaded();\n return m_flags.isStatic();\n }", "public interface AbstractC4464qo0 extends AbstractC3313k30 {\n public static final /* synthetic */ int v = 0;\n}", "@AfterReturning(marker = BytecodeMarker.class, args = \"GETFIELD\", scope = \"TargetClass.printInstanceFields\", order = 0)\n public static void printInstanceFieldsRead (final FieldAccessStaticContext fasc, final DynamicContext dc) {\n if (\"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\".equals (fasc.getOwnerInternalName ())) {\n System.out.printf (\"disl: %s=%s\\n\", fasc.getName (), dc.getInstanceFieldValue (\n dc.getThis (), fasc.getOwnerInternalName (), fasc.getName (), fasc.getDescriptor (), Object.class\n ));\n }\n }", "private void checkForCLassField(ClassField classField, Obj obj) {\n \tif (obj == Tab.noObj) {\r\n\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+obj.getName()+\" nije deklarisano! \", null);\r\n \t}\r\n \r\n \t\r\n \tif (obj.getType().getKind() != Struct.Class && obj.getType().getKind() != Struct.Interface) {\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+ obj.getName() +\" mora oznacavati objekat unutrasnje klase!\", null);\r\n \t}\r\n \t\r\n \tCollection<Obj> lokals = null;\r\n \t\r\n \tif (obj.getName().equals(\"this\")) { // ja ovo zovem iz funkcije klase, zaro uzimam scope klase; moze samo prvi put (this.a)\r\n \t\tlokals = Tab.currentScope().getOuter().getLocals().symbols();\r\n \t}\r\n \telse {\r\n \t\tlokals = obj.getType().getMembers();\r\n \t}\r\n \r\n \tStruct klasa = obj.getType();\r\n \tObj elem = null;\r\n \tint ok = 0 ;\r\n \t\r\n \twhile (klasa != null) {\r\n\t \telem = null;\r\n\t \tfor(Iterator<Obj> iterator = lokals.iterator();iterator.hasNext();) {\r\n\t \t\telem = iterator.next();\r\n\t \t\tif (elem.getName().equals(classField.getFieldName())) {\r\n\t \t\t\tok = 1;\r\n\t \t\t\tbreak;\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \tif (ok == 1)\r\n\t \t\tbreak;\r\n\t \tklasa = klasa.getElemType();\r\n\t \tif (klasa != null) {\r\n\t \t\tlokals = klasa.getMembers();\r\n\t \t}\r\n \t}\r\n \t\r\n \tclassField.obj = elem;\r\n \t\r\n \tif (ok == 0) {\r\n \t\tclassField.obj = Tab.noObj;\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+classField.getFieldName()+\" mora biti polje ili metoda navedene unutrasnje klase!\", null);\r\n \t}\r\n \telse {\r\n \t\tStruct trenutna = null;\r\n \t\tif (currentClass != null)\r\n \t\t\ttrenutna = currentClass;\r\n \t\tif (currentAbsClass != null)\r\n \t\t\ttrenutna = currentAbsClass;\r\n// \t\tif (trenutna == null) // dal je moguce? ---> jeste u main-u npr\r\n// \t\t\treturn;\r\n \t\t// znaci polje sam klase \"klasa\" ; zovem se sa . nesto...sig sam polje ili metoda klase\r\n \t\tif (elem.getKind() == Obj.Fld || elem.getKind() == Obj.Meth) { \r\n \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // public\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 2 || elem.getFpPos() == -8) { // protected\r\n \t\t\t\tif (trenutna == null) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tif (!(checkCompatibleForClasses(klasa, trenutna))) { // ako je klasa u kojoj se nalazim NIJE izvedena iz klase iz koje potice field\r\n \t\t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 3 || elem.getFpPos() == -7) { // private\r\n \t\t\t\tif (trenutna != klasa) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, private je!\", null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n// \t\tif (elem.getKind() == Obj.Meth) {\r\n// \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // nikad ne bi smeo ni da zove aps ... [-9,-8,-7] \r\n// \t\t\t//ONDA OSTAJE ISTI USLOV ZA METH I FLD\t\r\n// \t\t\t}\r\n// \t\t}\r\n \t}\r\n \t\r\n }", "private MetallicityUtils() {\n\t\t\n\t}", "private WidgetConstants() {\n throw new AssertionError();\n }", "@Override\n\tpublic void setStatic(boolean isStatic) {\n\t\t\n\t}", "public boolean isStatic() {\n\t\t\treturn this.IsStatic;\n\t\t}", "private void fixSingletonIncluded() {\n if (included_strings != null && included_strings.size() == 1) {\n str = included_strings.iterator().next();\n included_strings = null;\n flags &= ~STR;\n }\n }", "public final EObject entryRuleStaticField() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleStaticField = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1036:2: (iv_ruleStaticField= ruleStaticField EOF )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1037:2: iv_ruleStaticField= ruleStaticField EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getStaticFieldRule()); \n }\n pushFollow(FOLLOW_ruleStaticField_in_entryRuleStaticField2519);\n iv_ruleStaticField=ruleStaticField();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleStaticField; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleStaticField2529); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "boolean isOnlyAssignedInInitializer();", "@Override\n public boolean isConstant() {\n return false;\n }", "public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}", "private C3P0Helper() { }", "@RegionEffects(\"writes test.C:Static\")\n public void y1() {\n s1 = 1;\n }", "protected EClass eStaticClass()\n {\n return SDOPackage.eINSTANCE.getDataObject();\n }", "@EnsuresNonNull({\"field2\", \"field3\"})\n private void init_other_fields(@UnderInitialization(MyClass.class) MyClass this) {\n field2 = new Object();\n field3 = new Object();\n }", "private USBConstant() {\r\n\r\n\t}", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "public static ReflectionResponse<Field> getModifiableFinalStaticField(Class<?> clazz, String fieldName) {\n ReflectionResponse<Field> response = getField(clazz, fieldName);\n if (!response.hasResult()) {\n return response;\n }\n Field field = response.getValue();\n ReflectionResponse<Void> voidResponse = makeFinalStaticFieldModifiable(field);\n if (!voidResponse.hasResult()) {\n return new ReflectionResponse<>(voidResponse.getException());\n }\n return new ReflectionResponse<>(field);\n }", "public static boolean fieldsDeclaredPrivate(//String file,\r\n\t\t\tClass c) {\n\t\tField[] fields = c.getDeclaredFields();\r\n\t\tfor (Field f : fields) {\r\n\t\t\tif (!Modifier.isPrivate(f.getModifiers())) {\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 ApplicationConstants(){\n\t\t//not do anything \n\t}", "private static void initializeDatafields(Class<AbstractNode> type) throws Exception {\r\n if (staticDatafieldMap == null) {\r\n staticDatafieldMap = new HashMap<Class<AbstractNode>, Set<String>>();\r\n }\r\n\r\n if (staticDatafieldMap.get(type) == null) {\r\n staticDatafieldMap.put(type, Information.getDatafieldsOfNode(type));\r\n }\r\n }", "public boolean isStatic() {\n return isStatic;\n }", "public boolean needsValueField() {\n/* 227 */ for (CEnumConstant cec : this.members) {\n/* 228 */ if (!cec.getName().equals(cec.getLexicalValue()))\n/* 229 */ return true; \n/* */ } \n/* 231 */ return false;\n/* */ }", "private DebugMessage() {\n initFields();\n }", "private void setStaticData() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.setText(i18n.GL3045());\n\t\tlblStandards.setText(i18n.GL0575());\n\t}", "boolean inStaticContext();", "private SecurityConsts()\r\n\t{\r\n\r\n\t}", "static void init() {}", "@Test\n public void testProtectedAccessForProperties13() {\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n \"a.js\",\n lines(\n \"goog.provide('A');\",\n \"\",\n \"/** @constructor */\",\n \"var A = function() {}\",\n \"\",\n \"/** @protected */\",\n \"A.prototype.method = function() {};\")),\n SourceFile.fromCode(\n \"b1.js\",\n lines(\n \"goog.require('A');\",\n \"goog.provide('B1');\",\n \"\",\n \"/**\",\n \" * @constructor\",\n \" * @extends {A}\",\n \" */\",\n \"var B1 = function() {};\",\n \"\",\n \"/** @override */\",\n \"B1.prototype.method = function() {};\")),\n SourceFile.fromCode(\n \"b2.js\",\n lines(\n \"goog.require('A');\",\n \"goog.provide('B2');\",\n \"\",\n \"/**\",\n \" * @constructor\",\n \" * @extends {A}\",\n \" */\",\n \"var B2 = function() {};\",\n \"\",\n \"/** @override */\",\n \"B2.prototype.method = function() {};\")),\n SourceFile.fromCode(\n \"c.js\",\n lines(\n \"goog.require('B1');\",\n \"goog.require('B2');\",\n \"\",\n \"/**\",\n \" * @param {!B1} b1\",\n \" * @constructor\",\n \" * @extends {B2}\",\n \" */\",\n \"var C = function(b1) {\",\n \" var x = b1.method();\",\n \"};\"))));\n }", "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "public void visitGetstatic(Quad obj) {\n if (TRACE_INTRA) out.println(\"Visiting: \"+obj);\n Register r = Getstatic.getDest(obj).getRegister();\n Getstatic.getField(obj).resolve();\n jq_Field f = Getstatic.getField(obj).getField();\n if (IGNORE_STATIC_FIELDS) f = null;\n ProgramLocation pl = new QuadProgramLocation(method, obj);\n heapLoad(pl, r, my_global, f);\n }", "private VolumeDataConstants() {\r\n \r\n }" ]
[ "0.64215857", "0.6350171", "0.59694403", "0.5725606", "0.5698798", "0.5639603", "0.56357664", "0.55965304", "0.55771106", "0.5473401", "0.54393446", "0.5406546", "0.5404313", "0.540406", "0.53945357", "0.53732806", "0.53724116", "0.5348061", "0.53362435", "0.53318", "0.53157467", "0.52770334", "0.5251817", "0.52363724", "0.5219409", "0.5219409", "0.52087826", "0.5179554", "0.51290864", "0.51093435", "0.5108641", "0.5107927", "0.5091372", "0.50870186", "0.50785315", "0.5073322", "0.49794805", "0.49565205", "0.49553746", "0.49482056", "0.4941584", "0.49348202", "0.49194035", "0.49075997", "0.48964465", "0.48912007", "0.4890289", "0.488483", "0.48760054", "0.48687944", "0.48618722", "0.48598844", "0.48565075", "0.48542196", "0.4829323", "0.48242354", "0.48239192", "0.48184615", "0.48175707", "0.47820005", "0.47701487", "0.47606203", "0.4760524", "0.47542346", "0.47481257", "0.4747443", "0.47367248", "0.47334874", "0.47250086", "0.4722687", "0.47204897", "0.4715774", "0.47035825", "0.47006983", "0.46933895", "0.46876028", "0.46827412", "0.46793765", "0.46771792", "0.4671952", "0.46699104", "0.4665806", "0.46604285", "0.4658827", "0.4655161", "0.4647473", "0.46394593", "0.46353602", "0.4633189", "0.46301854", "0.46292776", "0.46222705", "0.46193153", "0.46188834", "0.4616561", "0.46022287", "0.46019042", "0.4594527", "0.4591585", "0.4589499" ]
0.49239135
42
Make sure the fields of D are in D:Static
@RegionEffects("writes test.D:Static") public void x1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testReflectionStatics() {\n final ReflectionStaticFieldsFixture instance1 = new ReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString,staticTransientInt=54321,staticTransientString=staticTransientString,transientInt=98765,transientString=transientString]\",\n ReflectionToStringBuilder.toString(instance1, null, true, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n }", "public void visitGETSTATIC(GETSTATIC o){\n\t\t// Field must be static: see Pass 3a.\n\t}", "@Override\n\tpublic boolean isStatic() {\n\t\treturn false;\n\t}", "@AfterReturning(marker = BytecodeMarker.class, args = \"GETSTATIC\", scope = \"TargetClass.printStaticFields\", order = 0)\n public static void printStaticFieldsRead (final FieldAccessStaticContext fasc, final DynamicContext dc) {\n if (\"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\".equals (fasc.getOwnerInternalName ())) {\n System.out.printf (\"disl: %s=%s\\n\", fasc.getName (), dc.getStaticFieldValue (\n fasc.getOwnerInternalName (), fasc.getName (), fasc.getDescriptor (), Object.class\n ));\n }\n }", "@Test\n public void testInheritedReflectionStatics() {\n final InheritedReflectionStaticFieldsFixture instance1 = new InheritedReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, InheritedReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n }", "private static boolean hasFieldProperModifier(Object object, Field field) {\n return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers()))\n || ((object instanceof Class<?> == false && Modifier.isStatic(field.getModifiers()) == false)));\n }", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "private StaticData() {\n\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "private StaticProperty() {}", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 1)\n public static void printSpecificStaticFieldsTedious (final DynamicContext dc) {\n final String format = \"disl: tedious %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_TYPE\", \"Ljava/lang/Class;\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_NAME\", \"Ljava/lang/String;\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_RAND\", \"I\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_MATH\", \"D\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 2)\n public static void printSpecificStaticFieldConcise (final DynamicContext dc) {\n final String format = \"disl: concise %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_TYPE\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_NAME\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_RAND\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_MATH\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "public default boolean isStatic() {\n\t\treturn false;\n\t}", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "@Override\n\t/**\n\t * returns a false because a class cannot be static\n\t * \n\t * @return false\n\t */\n\tpublic boolean getStatic() {\n\t\treturn false;\n\t}", "@Test\n public void testStaticFieldWithInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "@Override\n\t/**\n\t * does nothing because a class cannot be static\n\t */\n\tpublic void setStatic(boolean b) {\n\n\t}", "public static boolean handleStaticFieldWrite(Node sf, Node x, Node m) {\n\t\tif(ImmutabilityPreferences.isInferenceRuleLoggingEnabled()){\n\t\t\tString values = \"x:\" + getTypes(x).toString() + \", sf:\" + getTypes(sf).toString() + \", m:\" + getTypes(m).toString();\n\t\t\tLog.info(\"TSWRITE (sf=x in m, sf=\" + sf.getAttr(XCSG.name) + \", x=\" + x.getAttr(XCSG.name) + \", m=\" + m.getAttr(XCSG.name) + \")\\n\" + values);\n\t\t}\n\t\t// a write to a static field means the containing method cannot be pure (readonly or polyread)\n\t\treturn removeTypes(m, ImmutabilityTypes.READONLY, ImmutabilityTypes.POLYREAD);\n\t}", "boolean isStatic();", "boolean isStatic();", "@AfterReturning(marker = BytecodeMarker.class, args = \"GETFIELD\", scope = \"TargetClass.printInstanceFields\", order = 0)\n public static void printInstanceFieldsRead (final FieldAccessStaticContext fasc, final DynamicContext dc) {\n if (\"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\".equals (fasc.getOwnerInternalName ())) {\n System.out.printf (\"disl: %s=%s\\n\", fasc.getName (), dc.getInstanceFieldValue (\n dc.getThis (), fasc.getOwnerInternalName (), fasc.getName (), fasc.getDescriptor (), Object.class\n ));\n }\n }", "@Test\n public void testStaticFieldWithoutInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldNotInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldNotInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldNotInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public boolean needsVtable() {\n return !isStatic();\n }", "public static List<Field> getStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "boolean isContextStatic(){\r\n\t\tif(curField == null) {\r\n\t\t\treturn curOperation.isStaticElement();\r\n\t\t} else {\r\n\t\t\treturn curField.isStaticElement();\r\n\t\t}\r\n\t}", "protected EClass eStaticClass()\n {\n return SDOPackage.eINSTANCE.getDataObject();\n }", "boolean getIsStatic();", "private static void initializeDatafields(Class<AbstractNode> type) throws Exception {\r\n if (staticDatafieldMap == null) {\r\n staticDatafieldMap = new HashMap<Class<AbstractNode>, Set<String>>();\r\n }\r\n\r\n if (staticDatafieldMap.get(type) == null) {\r\n staticDatafieldMap.put(type, Information.getDatafieldsOfNode(type));\r\n }\r\n }", "private StaticContent() {\r\n super(IStaticContent.TYPE_ID);\r\n }", "public boolean isStaticTypedTarget() {\n\t return true;\n }", "public StaticContainer(EntityData ed) {\r\n super(ed, Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.infinite(ed).getType()),\r\n Position.class, PhysicsMassType.class, PhysicsShape.class);\r\n }", "@SuppressWarnings(\"PMD.AvoidInstantiatingObjectsInLoops\")\n public Feedback staticInstance(FieldDeclaration field, String className) {\n boolean isStatic = false;\n List<Feedback> childFeedbacks = new ArrayList<>();\n if (field.getVariables().get(0).getType().toString().equals(className)) {\n if (!field.getVariables().get(0).getInitializer().isEmpty()) {\n isInstantiated = true;\n }\n for (Modifier modifier : field.getModifiers()) {\n String mdName = modifier.getKeyword().asString();\n String pub = \"public\";\n String prot = \"protected\";\n if (pub.equals(mdName) || prot.equals(mdName)) {\n childFeedbacks.add(Feedback.getNoChildFeedback(\n \"Found a non-private instance of the class, could be set \" +\n \"multiple times\", new FeedbackTrace(field)));\n } else if (modifier.getKeyword().asString().equals(\"static\")) {\n isStatic = true;\n }\n }\n if (!isStatic) {\n childFeedbacks.add(Feedback.getNoChildFeedback(\n \"Non-static field found in \" + \"class, this field should \" +\n \"never be initializeable so \" + \"it may never be used\",\n new FeedbackTrace(field)));\n }\n instanceVar = field;\n }\n if (childFeedbacks.isEmpty()) {\n return Feedback.getSuccessfulFeedback();\n }\n return Feedback.getFeedbackWithChildren(new FeedbackTrace(field), childFeedbacks);\n }", "private List<Node> getStaticInitializers(ClassBody nd) {\n List<Node> nodes = new ArrayList<>();\n for (MemberDefinition<?> node : nd.getBody()) {\n if (node instanceof FieldDefinition && ((FieldDefinition)node).isStatic()) nodes.add(node);\n if (node instanceof StaticInitializer) nodes.add(node.getValue());\n }\n return nodes;\n }", "public void fieldChangeFromStaticNestedClass(){\n\t\t\tfield2 = 200;\n\t\t\tSystem.out.println(\"Static nested class, field 2 :\" +field2);\n\t\t}", "@Override\n\tpublic void setStatic(boolean isStatic) {\n\t\t\n\t}", "public boolean isStatic() {\n\t\treturn (access & Opcodes.ACC_STATIC) != 0;\n\t}", "public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }", "public boolean isStatic() {\n\t\t\treturn this.IsStatic;\n\t\t}", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public boolean isStatic() {\n return isStatic;\n }", "private void checkAssignmentOfTaintedClassField(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n if ((leftSide instanceof Local || leftSide instanceof FieldRef) && rightSide instanceof FieldRef) {\n FieldRef ref = (FieldRef) rightSide;\n SootClass declaringClass = ref.getField().getDeclaringClass();\n if(declaringClass.hasTag(Tainted.NAME)) {\n taint(leftSide, d, out);\n d.addTag(declaringClass.getTag(Tainted.NAME));\n \n d.addTag(new Tag() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic byte[] getValue() throws AttributeValueException {\n\t\t\t\t\t\t\treturn \"foobar\".getBytes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getName() {\n\t\t\t\t\t\t\treturn \"visuflow.attrubte\";\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n \n \n }\n }\n }\n }", "final public boolean isStatic ()\n {\n\treturn myIsStatic;\n }", "public Object resolvePluginStaticData(SourceNode sNode,\n DerivParamField field, Level level);", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "public static void isStatic() {\n\n }", "boolean hasStaticDataId();", "public static List<Field> getNonStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(!Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "private void setStaticData() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.setText(i18n.GL3045());\n\t\tlblStandards.setText(i18n.GL0575());\n\t}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void testStaticPageAccessible() throws Exception {\n assertEquals(0, rootBlog.getStaticPages().size());\n BlogEntry draft = rootBlog.getBlogForToday().createBlogEntry();\n draft.setType(BlogEntry.STATIC_PAGE);\n draft.store();\n assertEquals(1, rootBlog.getStaticPages().size());\n assertEquals(draft, rootBlog.getStaticPage(draft.getId()));\n }", "private TigerData() {\n initFields();\n }", "public void test_sf_937810() throws IllegalAccessException {\n Field[] specs = OntModelSpec.class.getDeclaredFields();\n \n for (int i = 0; i < specs.length; i++) {\n if (Modifier.isPublic( specs[i].getModifiers()) && \n Modifier.isStatic( specs[i].getModifiers()) &&\n specs[i].getType().equals( OntModelSpec.class )) {\n OntModelSpec s = (OntModelSpec) specs[i].get( null );\n assertNotNull( s.getDescription() );\n }\n }\n }", "public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.getDeclaredFields()) {\r\n try {\r\n Short value = (Short) field.get(nCodes);\r\n\r\n if (nCodeMap.containsKey(value)) {\r\n Log.println_e(field.getName() + \" is conflicting with \" + nCodeMap.get(value));\r\n } else {\r\n nCodeMap.put(value, field.getName());\r\n }\r\n } catch (IllegalArgumentException ex) {\r\n Log.println_e(ex.getMessage());\r\n } catch (IllegalAccessException ex) {\r\n Log.println_e(ex.getMessage());\r\n }\r\n }\r\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "@Test(timeout = TIMEOUT)\n public void testInstanceFields() {\n Class sortingClass = Sorting.class;\n Field[] fields = sortingClass.getDeclaredFields();\n Field[] validFields = new Field[0];\n assertArrayEquals(fields, validFields);\n }", "public boolean isStatic()\n {\n ensureLoaded();\n return m_flags.isStatic();\n }", "default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }", "private MetallicityUtils() {\n\t\t\n\t}", "private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field field:fields) {\r\n ManagedAttribute attr=field.getAnnotation(ManagedAttribute.class);\r\n Property prop=field.getAnnotation(Property.class);\r\n boolean expose_prop=prop != null && prop.exposeAsManagedAttribute();\r\n boolean expose=attr != null || expose_prop;\r\n\r\n if(expose) {\r\n String fieldName = Util.attributeNameToMethodName(field.getName());\r\n String descr=attr != null? attr.description() : prop.description();\r\n boolean writable=attr != null? attr.writable() : prop.writable();\r\n\r\n MBeanAttributeInfo info=new MBeanAttributeInfo(fieldName,\r\n field.getType().getCanonicalName(),\r\n descr,\r\n true,\r\n !Modifier.isFinal(field.getModifiers()) && writable,\r\n false);\r\n\r\n atts.put(fieldName, new FieldAttributeEntry(info, field));\r\n }\r\n }\r\n }\r\n }", "public void checkFields(){\n }", "protected abstract List<TemporalField> validFields();", "private RandomData() {\n initFields();\n }", "private FieldInfo() {\r\n\t}", "@Override public final Redeclarable$Fields $Redeclarable$Fields() { return Redeclarable$Flds; }", "public final EObject ruleStaticField() throws RecognitionException {\n EObject current = null;\n\n Token lv_dots_2_0=null;\n AntlrDatatypeRuleToken lv_prefixQMN_1_0 = null;\n\n AntlrDatatypeRuleToken lv_fieldName_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1047:28: ( ( () ( ( (lv_prefixQMN_1_0= ruleValidID ) ) ( (lv_dots_2_0= '.' ) ) )* ( (lv_fieldName_3_0= ruleValidID ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1048:1: ( () ( ( (lv_prefixQMN_1_0= ruleValidID ) ) ( (lv_dots_2_0= '.' ) ) )* ( (lv_fieldName_3_0= ruleValidID ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1048:1: ( () ( ( (lv_prefixQMN_1_0= ruleValidID ) ) ( (lv_dots_2_0= '.' ) ) )* ( (lv_fieldName_3_0= ruleValidID ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1048:2: () ( ( (lv_prefixQMN_1_0= ruleValidID ) ) ( (lv_dots_2_0= '.' ) ) )* ( (lv_fieldName_3_0= ruleValidID ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1048:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1049:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getStaticFieldAccess().getStaticFieldAction_0(),\n current);\n \n }\n\n }\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1054:2: ( ( (lv_prefixQMN_1_0= ruleValidID ) ) ( (lv_dots_2_0= '.' ) ) )*\n loop16:\n do {\n int alt16=2;\n int LA16_0 = input.LA(1);\n\n if ( (LA16_0==RULE_ID) ) {\n int LA16_1 = input.LA(2);\n\n if ( (LA16_1==40) ) {\n alt16=1;\n }\n\n\n }\n\n\n switch (alt16) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1054:3: ( (lv_prefixQMN_1_0= ruleValidID ) ) ( (lv_dots_2_0= '.' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1054:3: ( (lv_prefixQMN_1_0= ruleValidID ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1055:1: (lv_prefixQMN_1_0= ruleValidID )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1055:1: (lv_prefixQMN_1_0= ruleValidID )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1056:3: lv_prefixQMN_1_0= ruleValidID\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getStaticFieldAccess().getPrefixQMNValidIDParserRuleCall_1_0_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleValidID_in_ruleStaticField2585);\n \t lv_prefixQMN_1_0=ruleValidID();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getStaticFieldRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"prefixQMN\",\n \t \t\tlv_prefixQMN_1_0, \n \t \t\t\"ValidID\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1072:2: ( (lv_dots_2_0= '.' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1073:1: (lv_dots_2_0= '.' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1073:1: (lv_dots_2_0= '.' )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1074:3: lv_dots_2_0= '.'\n \t {\n \t lv_dots_2_0=(Token)match(input,40,FOLLOW_40_in_ruleStaticField2603); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_dots_2_0, grammarAccess.getStaticFieldAccess().getDotsFullStopKeyword_1_1_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getStaticFieldRule());\n \t \t }\n \t \t\taddWithLastConsumed(current, \"dots\", lv_dots_2_0, \".\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop16;\n }\n } while (true);\n\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1087:4: ( (lv_fieldName_3_0= ruleValidID ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1088:1: (lv_fieldName_3_0= ruleValidID )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1088:1: (lv_fieldName_3_0= ruleValidID )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:1089:3: lv_fieldName_3_0= ruleValidID\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getStaticFieldAccess().getFieldNameValidIDParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleValidID_in_ruleStaticField2639);\n lv_fieldName_3_0=ruleValidID();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getStaticFieldRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"fieldName\",\n \t\tlv_fieldName_3_0, \n \t\t\"ValidID\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private DebugMessage() {\n initFields();\n }", "protected void createJoinPointSpecificFields() {\n String[] fieldNames = null;\n // create the field argument field\n Type fieldType = Type.getType(m_calleeMemberDesc);\n fieldNames = new String[1];\n String fieldName = ARGUMENT_FIELD + 0;\n fieldNames[0] = fieldName;\n m_cw.visitField(ACC_PRIVATE, fieldName, fieldType.getDescriptor(), null, null);\n m_fieldNames = fieldNames;\n\n m_cw.visitField(\n ACC_PRIVATE + ACC_STATIC,\n SIGNATURE_FIELD_NAME,\n FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE,\n null,\n null\n );\n }", "@Override\n\tpublic void VisitGetFieldNode(GetFieldNode Node) {\n\n\t}", "public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}", "private void checkDerivedInstances() throws UnableToResolveForeignEntityException {\r\n \r\n if (currentModuleTypeInfo.isExtension()) {\r\n //don't add derived instances again for an adjunct module.\r\n return;\r\n }\r\n \r\n final ModuleName currentModuleName = currentModuleTypeInfo.getModuleName(); \r\n \r\n \r\n \r\n for (int i = 0, nTypeConstructors = currentModuleTypeInfo.getNTypeConstructors(); i < nTypeConstructors; ++i) {\r\n \r\n TypeConstructor typeCons = currentModuleTypeInfo.getNthTypeConstructor(i);\r\n \r\n //use private functions equalsInt, lessThanInt etc as the instance resolving functions for\r\n //the Eq, Ord and Enum instances of an enum type. This saves class file space and which could be quite bulky for\r\n //long enum types, since the Ord methods do case-of-cases and so have length proportional to the square of\r\n //the number of data constructors. It also saves on compilation time. Benchmarks show that there is no\r\n //runtime performance impact.\r\n final boolean useCompactEnumDerivedInstances = \r\n TypeExpr.isEnumType(typeCons) && !typeCons.getName().equals(CAL_Prelude.TypeConstructors.Boolean);\r\n \r\n //this flag is used to ensure that the fromInt toInt Helper functions\r\n //are added at most once for each instance type\r\n boolean addedIntHelpers = false;\r\n \r\n for (int j = 0, nDerivedInstances = typeCons.getNDerivedInstances(); j < nDerivedInstances; ++j) {\r\n \r\n QualifiedName typeClassName = typeCons.getDerivingClauseTypeClassName(j);\r\n TypeClass typeClass = currentModuleTypeInfo.getVisibleTypeClass(typeClassName);\r\n final SourceRange declarationPosition = typeCons.getDerivingClauseTypeClassPosition(j);\r\n \r\n //If the type is T a b c, then the instance type for type class C will be \r\n //(C a, C b, C c) => T a b c\r\n TypeConsApp instanceType = makeInstanceType(typeCons, typeClass); \r\n \r\n ClassInstance classInstance;\r\n \r\n //make sure the toInt fromInt helpers are added if the \r\n //class needs them\r\n if (!addedIntHelpers && \r\n (typeClassName.equals(CAL_Prelude.TypeClasses.Enum) ||\r\n typeClassName.equals(CAL_Prelude.TypeClasses.IntEnum) ||\r\n typeClassName.equals(CAL_QuickCheck.TypeClasses.Arbitrary))) {\r\n\r\n TypeExpr intType = compiler.getTypeChecker().getTypeConstants().getIntType();\r\n TypeExpr fromIntHelperTypeExpr = TypeExpr.makeFunType(intType, instanceType);\r\n TypeExpr toIntHelperTypeExpr = TypeExpr.makeFunType(instanceType, intType);\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeFromIntHelper(typeCons), fromIntHelperTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeToIntHelper(typeCons), toIntHelperTypeExpr, declarationPosition);\r\n\r\n addedIntHelpers = true;\r\n }\r\n \r\n \r\n //add the definitions of the instance functions \r\n if (typeClassName.equals(CAL_Prelude.TypeClasses.Eq)) {\r\n \r\n classInstance = checkDerivedEqInstance(typeCons, instanceType, typeClass, useCompactEnumDerivedInstances, declarationPosition); \r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Ord)) {\r\n \r\n classInstance = checkDerivedOrdInstance(typeCons, instanceType, typeClass, useCompactEnumDerivedInstances, declarationPosition); \r\n\r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Bounded)) {\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeMinBoundInstanceFunction(typeCons), instanceType, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeMaxBoundInstanceFunction(typeCons), instanceType, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, null, ClassInstance.InstanceStyle.DERIVING);\r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Enum)) { \r\n \r\n TypeExpr listTypeExpr = compiler.getTypeChecker().getTypeConstants().makeListType(instanceType);\r\n TypeExpr intType = compiler.getTypeChecker().getTypeConstants().getIntType();\r\n TypeExpr upFromTypeExpr = TypeExpr.makeFunType(instanceType, listTypeExpr);\r\n TypeExpr upFromThenTypeExpr = TypeExpr.makeFunType(instanceType, upFromTypeExpr);\r\n TypeExpr upFromThenToTypeExpr = TypeExpr.makeFunType(instanceType, upFromThenTypeExpr);\r\n \r\n TypeExpr upFromToTypeExpr = TypeExpr.makeFunType(instanceType, upFromTypeExpr); \r\n TypeExpr upFromToHelperTypeExpr = \r\n TypeExpr.makeFunType(intType, TypeExpr.makeFunType(intType, listTypeExpr)); \r\n \r\n TypeExpr upFromThenToHelperExpr =\r\n TypeExpr.makeFunType(intType, TypeExpr.makeFunType(intType, TypeExpr.makeFunType(intType, listTypeExpr)));\r\n \r\n\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeUpFromToHelper(typeCons), \r\n upFromToHelperTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeUpFromThenToHelperUp(typeCons), \r\n upFromThenToHelperExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeUpFromThenToHelperDown(typeCons), \r\n upFromThenToHelperExpr, declarationPosition);\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromThenInstanceFunction(typeCons), \r\n upFromThenTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromThenToInstanceFunction(typeCons), \r\n upFromThenToTypeExpr, declarationPosition);\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromToInstanceFunction(typeCons), \r\n upFromToTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromInstanceFunction(typeCons), \r\n upFromTypeExpr, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFrom.getUnqualifiedName(), typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFromThen.getUnqualifiedName(), typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFromTo.getUnqualifiedName(), typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFromThenTo.getUnqualifiedName(), typeCons.getName())\r\n }, \r\n ClassInstance.InstanceStyle.DERIVING);\r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Outputable)) {\r\n \r\n classInstance = checkDerivedOutputableInstance(typeCons, instanceType, typeClass, declarationPosition);\r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Inputable)) {\r\n \r\n if(typeCons.getNDataConstructors() > 0) {\r\n TypeExpr jObjectTypeExpr = TypeExpr.makeNonParametricType(currentModuleTypeInfo.getVisibleTypeConstructor(CAL_Prelude.TypeConstructors.JObject));\r\n TypeExpr inputTypeExpr = TypeExpr.makeFunType(jObjectTypeExpr, instanceType);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeAlgebraicInputInstanceMethod(typeCons), inputTypeExpr, declarationPosition);\r\n\r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, null, ClassInstance.InstanceStyle.DERIVING);\r\n \r\n } else {\r\n //will be a foreign type (and not a built-in type or type defined by an algebraic data declaration).\r\n //Unlike any of the other derived instances, the class methods for the derived Inputable class are\r\n //added late in the ExpressionGenerator. This is because \r\n //a) there is a distinct method for each foreign object type (it must do a cast, and that cast is type specific.\r\n //b) there is no direct way to represent the cast in CAL (although derived Inputable and Outputable instances can\r\n // be used to do the job, once this feature is in place!)\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, null, ClassInstance.InstanceStyle.DERIVING);\r\n }\r\n \r\n } else if (typeClassName.equals(CAL_Debug.TypeClasses.Show)) {\r\n \r\n classInstance = checkDerivedShowInstance(typeCons, instanceType, typeClass, declarationPosition); \r\n \r\n } else if (typeClassName.equals(CAL_QuickCheck.TypeClasses.Arbitrary)) {\r\n \r\n if (typeCons.getForeignTypeInfo() != null) {\r\n throw new IllegalStateException(\"Arbitrary instances cannot be derived for foreign types\"); \r\n }\r\n \r\n //this type represents a Gen for the current instance type.\r\n TypeExpr genInstanceType =\r\n new TypeConsApp(\r\n currentModuleTypeInfo.getVisibleTypeConstructor(CAL_QuickCheck.TypeConstructors.Gen),\r\n new TypeExpr [] {instanceType}); \r\n \r\n //this type represents the type (Gen a)\r\n TypeExpr genAType =\r\n new TypeConsApp(\r\n currentModuleTypeInfo.getVisibleTypeConstructor(CAL_QuickCheck.TypeConstructors.Gen),\r\n new TypeExpr [] {TypeExpr.makeParametricType()} ); \r\n\r\n TypeExpr coarbitraryFunctionType = TypeExpr.makeFunType(instanceType, TypeExpr.makeFunType(genAType, genAType)); \r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeArbitraryFunction(typeCons), genInstanceType, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeCoArbitraryFunction(typeCons), coarbitraryFunctionType, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {\r\n ClassInstance.makeInternalInstanceMethodName(\"arbitrary\", typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(\"coarbitrary\", typeCons.getName()),\r\n CAL_QuickCheck_internal.Functions.generateInstanceDefault\r\n }, \r\n InstanceStyle.DERIVING);\r\n \r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.IntEnum)) {\r\n \r\n // algebraic types (only enumeration types are permitted; the DerivedInstanceFunctionGenerator methods will check that)\r\n if(typeCons.getForeignTypeInfo() != null) {\r\n throw new IllegalStateException(\"IntEnum instances cannot be derived for foreign types\"); \r\n }\r\n \r\n TypeExpr maybeTypeExpr = \r\n new TypeConsApp(\r\n currentModuleTypeInfo.getVisibleTypeConstructor(CAL_Prelude.TypeConstructors.Maybe),\r\n new TypeExpr[] {instanceType});\r\n\r\n TypeExpr intType = compiler.getTypeChecker().getTypeConstants().getIntType();\r\n TypeExpr intToEnumTypeExpr = TypeExpr.makeFunType(intType, instanceType);\r\n TypeExpr intToEnumCheckedTypeExpr = TypeExpr.makeFunType(intType, maybeTypeExpr);\r\n\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumIntToEnumFunction(typeCons), intToEnumTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumIntToEnumCheckedFunction(typeCons), intToEnumCheckedTypeExpr, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {\r\n ClassInstance.makeInternalInstanceMethodName(\"intToEnum\", typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(\"intToEnumChecked\", typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(\"toIntHelper\", typeCons.getName())}, \r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n // static checks in DataDeclarationChecker will have logged an error message for classes that we cannot\r\n // derive an instance for, so this exception won't be shown to the user as an internal coding error (although it\r\n // will cause further compilation to halt with \"unable to recover from previous compilation errors\").\r\n throw new IllegalStateException(\"Invalid deriving type class.\");\r\n }\r\n \r\n currentModuleTypeInfo.addClassInstance(classInstance); \r\n } \r\n } \r\n }", "private void verifyField() {\n try {\n if (type != Function.class && type != Foreign.class)\n throw new DataMapperException(\"The field annotated with @ColumnName must be of type Function or Foreign\");\n String[] nameDefaultValue = (String[]) ColumnName.class.getDeclaredMethod(\"name\").getDefaultValue();\n\n checkNameParameter(nameDefaultValue);\n } catch (NoSuchMethodException e) {\n throw new DataMapperException(e);\n }\n }", "private DatabaseValidationProperties() {}", "public interface AddressField extends Field {\n /** This accessor requires that the field be nonstatic, or a WrongTypeException will be thrown. */\n public Address getValue(Address addr) throws UnmappedAddressException, UnalignedAddressException, WrongTypeException;\n\n /** This accessor requires that the field be static, or a WrongTypeException will be thrown. */\n public Address getValue() throws UnmappedAddressException, UnalignedAddressException, WrongTypeException;\n}", "public void updateNonDynamicFields() {\n\n\t}", "public D() {}", "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "private static Map<Object, Object> getFields(Device d1) {\n\t Class<? extends Device> deviceClass = d1.getClass();\n\t Field[] fields = deviceClass.getDeclaredFields();\n\t \n\t //Map to get property details to provided class\n\t \tMap<Object,Object> mapFields = new HashMap<>();\t \n\n\t Arrays.stream(fields)\n\t .forEach(\n\t field -> {\n\t field.setAccessible(true);\n\t try {\n\t \tmapFields.put(field.getName(), field.get(d1));\n\t } catch (final IllegalAccessException e) {\n\t \t\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmapFields.put(field.getName(), field.get(d1));\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t }\n\t });\n\n\t return mapFields;\n\t}", "@RegionEffects(\"writes test.D:Static\") // BAD\n public void n1() {\n s1 = 1;\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }", "@SuppressWarnings(\"UnusedDeclaration\")\n public static void __staticInitializer__() {\n }", "public DataBead getStaticParams() {\r\n\t\tDataBead db = new DataBead();\r\n\t\tdb.put(\"delay\", delay);\r\n\t\tdb.put(\"g\", g);\r\n\t\treturn db;\r\n\t}", "public void visitGetstatic(Quad obj) {\n if (TRACE_INTRA) out.println(\"Visiting: \"+obj);\n Register r = Getstatic.getDest(obj).getRegister();\n Getstatic.getField(obj).resolve();\n jq_Field f = Getstatic.getField(obj).getField();\n if (IGNORE_STATIC_FIELDS) f = null;\n ProgramLocation pl = new QuadProgramLocation(method, obj);\n heapLoad(pl, r, my_global, f);\n }", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }", "public interface JdlFieldView extends JdlField, JdlCommentView {\n //TODO This validation should be handled in JdlService\n default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }\n\n default String constraints() {\n List<String> constraints = new ArrayList<>();\n if (renderRequired()) constraints.add(requiredConstraint());\n if (isUnique()) constraints.add(uniqueConstraint());\n getMin().ifPresent(min -> constraints.add(minConstraint(min)));\n getMax().ifPresent(max -> constraints.add(maxConstraint(max)));\n getPattern().ifPresent(pattern -> constraints.add(patternConstraint(pattern)));\n return (!constraints.isEmpty()) ? \" \".concat(Joiner.on(\" \").join(constraints)) : null;\n }\n\n // TODO do not write required when field is primary key\n default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }\n\n @NotNull\n default String requiredConstraint() {\n return \"required\";\n }\n\n @NotNull\n default String uniqueConstraint() {\n return \"unique\";\n }\n\n default String minConstraint(int min) {\n return switch (getType()) {\n case STRING -> validationMinLength(min);\n default -> validationMin(min);\n };\n }\n\n default String maxConstraint(int max) {\n return switch (getType()) {\n case STRING -> validationMaxLength(max);\n default -> validationMax(max);\n };\n }\n\n //TODO This validation should be handled in JdlService\n default String patternConstraint(String pattern) {\n return switch (getType()) {\n case STRING -> validationPattern(pattern);\n default -> throw new RuntimeException(\"Only String can have a pattern\");\n };\n }\n\n @NotNull\n default String validationMax(final int max) {\n return \"max(\" + max + \")\";\n }\n\n @NotNull\n default String validationMin(final int min) {\n return \"min(\" + min + \")\";\n }\n\n default String validationMaxLength(final int max) {\n return \"maxlength(\" + max + \")\";\n }\n\n @NotNull\n default String validationMinLength(final int min) {\n return \"minlength(\" + min + \")\";\n }\n\n @NotNull\n default String validationPattern(final String pattern) {\n return \"pattern(/\" + pattern + \"/)\";\n }\n}", "public boolean isTypeSpecificChange()\r\n {\r\n return myDTIKey != null;\r\n }", "protected GEDCOMType() {/* intentionally empty block */}", "public static void setStaticFieldObject(String classname, String filedName, Object filedVaule) {\n setFieldObject(classname, null, filedName, filedVaule);\n }", "public boolean hasD() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean isTransient();", "public static boolean handleStaticFieldRead(Node x, Node sf, Node m) {\n\t\tif(ImmutabilityPreferences.isInferenceRuleLoggingEnabled()){\n\t\t\tString values = \"x:\" + getTypes(x).toString() + \", sf:\" + getTypes(sf).toString() + \", m:\" + getTypes(m).toString();\n\t\t\tLog.info(\"TSREAD (x=sf in m, x=\" + x.getAttr(XCSG.name) + \", sf=\" + sf.getAttr(XCSG.name) + \", m=\" + m.getAttr(XCSG.name) + \")\\n\" + values);\n\t\t}\n\t\t// m <: x\n\t\t// = x :> m\n\t\treturn XGreaterThanEqualYConstraintSolver.satisify(x, m);\n\t}", "private boolean eatStaticIfNotElementName() {\n if (peek(TokenType.STATIC) && isClassElementStart(peekToken(1))) {\n eat(TokenType.STATIC);\n return true;\n }\n return false;\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "protected abstract D createData();", "static Field getStaticFieldFromBaseAndOffset(Object base,\n long offset,\n Class<?> fieldType) {\n // @@@ This is a little fragile assuming the base is the class\n Class<?> receiverType = (Class<?>) base;\n for (Field f : receiverType.getDeclaredFields()) {\n if (!Modifier.isStatic(f.getModifiers())) continue;\n\n if (offset == UNSAFE.staticFieldOffset(f)) {\n assert f.getType() == fieldType;\n return f;\n }\n }\n throw new InternalError(\"Static field not found at offset\");\n }", "public static void staticMethod() {\n Log.e(\"LOG_TAG\", \"Company: STATIC Instance method\");\n }", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printInstanceFields\", order = 2)\n public static void printSpecificInstanceFieldsConcise (final DynamicContext dc) {\n final String format = \"disl: concise %s=%s\\n\";\n\n final Class <?> instType = dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instType\", Class.class\n );\n\n System.out.printf (format, \"instType\", instType);\n\n //\n\n final String instName = dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instName\", String.class\n );\n\n System.out.printf (format, \"instName\", instName);\n\n //\n\n final int instRand = dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instRand\", int.class\n );\n\n System.out.printf (format, \"instRand\", instRand);\n\n //\n\n final double instMath= dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instMath\", double.class\n );\n\n System.out.printf (format, \"instMath\", instMath);\n }", "public boolean hasD() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "private void internalResolve(Scope scope, boolean staticContext) {\n\t\tif (this.binding != null) {\n\t\t\tBinding existingType = scope.parent.getBinding(this.name, Binding.TYPE, (/*@OwnPar*/ /*@NoRep*/ TypeParameter)this, false);\n\t\t\tif (existingType != null \n\t\t\t\t\t&& this.binding != existingType \n\t\t\t\t\t&& existingType.isValidBinding()\n\t\t\t\t\t&& (existingType.kind() != Binding.TYPE_PARAMETER || !staticContext)) {\n\t\t\t\tscope.problemReporter().typeHiding((/*@OwnPar*/ /*@NoRep*/ TypeParameter)this, existingType);\n\t\t\t}\n\t\t}\n\t}", "protected void validatePageInitialState()\n\t{\n\t\tlogger.debug( \"validating static elements for: <{}>, name:<{}>...\", getQualifier(), getLogicalName() );\n\t}" ]
[ "0.6134743", "0.60317594", "0.6014775", "0.5970687", "0.5882501", "0.57400393", "0.5728333", "0.57106125", "0.570965", "0.5688522", "0.55962634", "0.5583838", "0.55732536", "0.5570563", "0.55691946", "0.55630594", "0.55496335", "0.55018073", "0.5483812", "0.5454986", "0.5454986", "0.5451504", "0.54432005", "0.5441268", "0.5438798", "0.54275125", "0.5425987", "0.54087687", "0.5392042", "0.5349463", "0.5297452", "0.5280499", "0.52754796", "0.5263727", "0.52575856", "0.52532446", "0.5242701", "0.5230678", "0.52302974", "0.52293974", "0.52286035", "0.52265906", "0.5203896", "0.5194018", "0.5193741", "0.5144798", "0.5102932", "0.5101822", "0.51010674", "0.5100891", "0.5084943", "0.5076636", "0.50748175", "0.50608295", "0.5027991", "0.50268257", "0.4999564", "0.4984424", "0.49836963", "0.49780127", "0.49632475", "0.4961516", "0.4946521", "0.49434096", "0.4933416", "0.49258056", "0.49176717", "0.49169436", "0.49138162", "0.49102196", "0.49095628", "0.4906153", "0.49058273", "0.49048188", "0.48876593", "0.48573288", "0.4850935", "0.48395905", "0.4835544", "0.48345116", "0.48332655", "0.4831559", "0.48263088", "0.48097473", "0.48065802", "0.4794897", "0.47939703", "0.47804737", "0.47790137", "0.4778282", "0.47755504", "0.47635457", "0.47603998", "0.47593564", "0.475922", "0.47534874", "0.47470373", "0.47455937", "0.47437143", "0.47380254", "0.47363698" ]
0.0
-1
Make sure the fields of D are not in C:Static
@RegionEffects("writes test.C:Static") public void y1() { s1 = 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "@Test\n public void testStaticFieldWithoutInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldNotInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldNotInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldNotInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public void visitGETSTATIC(GETSTATIC o){\n\t\t// Field must be static: see Pass 3a.\n\t}", "@Override\n\tpublic boolean isStatic() {\n\t\treturn false;\n\t}", "public boolean needsVtable() {\n return !isStatic();\n }", "private static boolean hasFieldProperModifier(Object object, Field field) {\n return ((object instanceof Class<?> && Modifier.isStatic(field.getModifiers()))\n || ((object instanceof Class<?> == false && Modifier.isStatic(field.getModifiers()) == false)));\n }", "@AfterReturning(marker = BytecodeMarker.class, args = \"GETSTATIC\", scope = \"TargetClass.printStaticFields\", order = 0)\n public static void printStaticFieldsRead (final FieldAccessStaticContext fasc, final DynamicContext dc) {\n if (\"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\".equals (fasc.getOwnerInternalName ())) {\n System.out.printf (\"disl: %s=%s\\n\", fasc.getName (), dc.getStaticFieldValue (\n fasc.getOwnerInternalName (), fasc.getName (), fasc.getDescriptor (), Object.class\n ));\n }\n }", "@Test\n public void testStaticFieldWithInitializationStaticClassKept() throws Exception {\n Class<?> mainClass = MainGetStaticFieldInitialized.class;\n String proguardConfiguration = keepMainProguardConfiguration(\n mainClass,\n ImmutableList.of(\n \"-keep class \" + getJavacGeneratedClassName(StaticFieldInitialized.class) + \" {\",\n \"}\"));\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticFieldInitialized.class),\n proguardConfiguration,\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 2)\n public static void printSpecificStaticFieldConcise (final DynamicContext dc) {\n final String format = \"disl: concise %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_TYPE\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_NAME\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_RAND\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n TargetClass.class, \"STATIC_MATH\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "private void checkAssignmentOfTaintedClassField(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.getRightOp();\n if ((leftSide instanceof Local || leftSide instanceof FieldRef) && rightSide instanceof FieldRef) {\n FieldRef ref = (FieldRef) rightSide;\n SootClass declaringClass = ref.getField().getDeclaringClass();\n if(declaringClass.hasTag(Tainted.NAME)) {\n taint(leftSide, d, out);\n d.addTag(declaringClass.getTag(Tainted.NAME));\n \n d.addTag(new Tag() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic byte[] getValue() throws AttributeValueException {\n\t\t\t\t\t\t\treturn \"foobar\".getBytes();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getName() {\n\t\t\t\t\t\t\treturn \"visuflow.attrubte\";\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n \n \n }\n }\n }\n }", "@Test\n public void testReflectionStatics() {\n final ReflectionStaticFieldsFixture instance1 = new ReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString,staticTransientInt=54321,staticTransientString=staticTransientString,transientInt=98765,transientString=transientString]\",\n ReflectionToStringBuilder.toString(instance1, null, true, true, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[instanceInt=67890,instanceString=instanceString,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, ReflectionStaticFieldsFixture.class));\n }", "@Override\n\t/**\n\t * does nothing because a class cannot be static\n\t */\n\tpublic void setStatic(boolean b) {\n\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "protected void initDataFields() {\r\n //this module doesn't require any data fields\r\n }", "public D() {}", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printStaticFields\", order = 1)\n public static void printSpecificStaticFieldsTedious (final DynamicContext dc) {\n final String format = \"disl: tedious %s=%s\\n\";\n\n //\n\n final Class <?> staticType = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_TYPE\", \"Ljava/lang/Class;\", Class.class\n );\n\n System.out.printf (format, \"STATIC_TYPE\", staticType);\n\n //\n\n final String staticName = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_NAME\", \"Ljava/lang/String;\", String.class\n );\n\n System.out.printf (format, \"STATIC_NAME\", staticName);\n\n //\n\n final int staticRand = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_RAND\", \"I\", int.class\n );\n\n System.out.printf (format, \"STATIC_RAND\", staticRand);\n\n //\n\n final double staticMath = dc.getStaticFieldValue (\n \"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\",\n \"STATIC_MATH\", \"D\", double.class\n );\n\n System.out.printf (format, \"STATIC_MATH\", staticMath);\n }", "private DPSingletonLazyLoading(){\r\n\t\tthrow new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true)\r\n\t}", "private StaticProperty() {}", "public default boolean isStatic() {\n\t\treturn false;\n\t}", "public boolean hasD() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }", "private StaticData() {\n\n }", "public boolean hasD() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "@Override\n\t/**\n\t * returns a false because a class cannot be static\n\t * \n\t * @return false\n\t */\n\tpublic boolean getStatic() {\n\t\treturn false;\n\t}", "@AfterReturning(marker = BytecodeMarker.class, args = \"GETFIELD\", scope = \"TargetClass.printInstanceFields\", order = 0)\n public static void printInstanceFieldsRead (final FieldAccessStaticContext fasc, final DynamicContext dc) {\n if (\"ch/usi/dag/disl/test/suite/dynamiccontext/app/TargetClass\".equals (fasc.getOwnerInternalName ())) {\n System.out.printf (\"disl: %s=%s\\n\", fasc.getName (), dc.getInstanceFieldValue (\n dc.getThis (), fasc.getOwnerInternalName (), fasc.getName (), fasc.getDescriptor (), Object.class\n ));\n }\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingObjectsThatAreAlreadyPersistent() {\n }", "@Test\n public void testInheritedReflectionStatics() {\n final InheritedReflectionStaticFieldsFixture instance1 = new InheritedReflectionStaticFieldsFixture();\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, InheritedReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n ReflectionToStringBuilder.toString(instance1, null, false, true, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n assertEquals(\n this.toBaseString(instance1) + \"[staticInt2=67890,staticString2=staticString2,staticInt=12345,staticString=staticString]\",\n this.toStringWithStatics(instance1, null, SimpleReflectionStaticFieldsFixture.class));\n }", "private void validateFields () throws ModelValidationException\n\t\t\t{\n\t\t\t\tString pcClassName = getClassName();\n\t\t\t\tModel model = getModel();\n\t\t\t\t// check for valid typed public non-static fields\n\t\t\t\tList keyClassFieldNames = model.getAllFields(keyClassName);\n\t\t\t\tMap keyFields = getKeyFields();\n\n\t\t\t\tfor (Iterator i = keyClassFieldNames.iterator(); i.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString keyClassFieldName = (String)i.next();\n\t\t\t\t\tObject keyClassField = \n\t\t\t\t\t\tgetKeyClassField(keyClassName, keyClassFieldName);\n\t\t\t\t\tint keyClassFieldModifiers = \n\t\t\t\t\t\tmodel.getModifiers(keyClassField);\n\t\t\t\t\tString keyClassFieldType = model.getType(keyClassField);\n\t\t\t\t\tObject keyField = keyFields.get(keyClassFieldName);\n\n\t\t\t\t\tif (Modifier.isStatic(keyClassFieldModifiers))\n\t\t\t\t\t\t// we are not interested in static fields\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (!model.isValidKeyType(keyClassName, keyClassFieldName))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_invalid\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (!Modifier.isPublic(keyClassFieldModifiers))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_public\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyField == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\tif (!keyClassFieldType.equals(model.getType(keyField)))\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new ModelValidationException(keyClassField,\n\t\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\t\"util.validation.key_field_type_mismatch\", //NOI18N\n\t\t\t\t\t\t\tkeyClassFieldName, keyClassName, pcClassName));\n\t\t\t\t\t}\n\n\t\t\t\t\t// remove handled keyField from the list of keyFields\n\t\t\t\t\tkeyFields.remove(keyClassFieldName);\n\t\t\t\t}\n\n\t\t\t\t// check whether there are any unhandled key fields\n\t\t\t\tif (!keyFields.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tObject pcClass = model.getClass(pcClassName);\n\t\t\t\t\tString fieldNames = StringHelper.arrayToSeparatedList(\n\t\t\t\t\t\tnew ArrayList(keyFields.keySet()));\n\n\t\t\t\t\tthrow new ModelValidationException(pcClass,\n\t\t\t\t\t\tI18NHelper.getMessage(getMessages(), \n\t\t\t\t\t\t\"util.validation.key_field_missing\", //NOI18N\n\t\t\t\t\t\tpcClassName, keyClassName, fieldNames));\n\t\t\t\t}\n\t\t\t}", "private DebugMessage() {\n initFields();\n }", "@Override\n public boolean d() {\n return false;\n }", "public static List<Field> getStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "boolean isContextStatic(){\r\n\t\tif(curField == null) {\r\n\t\t\treturn curOperation.isStaticElement();\r\n\t\t} else {\r\n\t\t\treturn curField.isStaticElement();\r\n\t\t}\r\n\t}", "private FieldInfo() {\r\n\t}", "protected void createJoinPointSpecificFields() {\n String[] fieldNames = null;\n // create the field argument field\n Type fieldType = Type.getType(m_calleeMemberDesc);\n fieldNames = new String[1];\n String fieldName = ARGUMENT_FIELD + 0;\n fieldNames[0] = fieldName;\n m_cw.visitField(ACC_PRIVATE, fieldName, fieldType.getDescriptor(), null, null);\n m_fieldNames = fieldNames;\n\n m_cw.visitField(\n ACC_PRIVATE + ACC_STATIC,\n SIGNATURE_FIELD_NAME,\n FIELD_SIGNATURE_IMPL_CLASS_SIGNATURE,\n null,\n null\n );\n }", "@Override\n\tprotected boolean verifyFields() {\n\t\treturn false;\n\t}", "public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }", "public static List<Field> getNonStaticFieldsFromAncestor(Class<?> clazz) {\n List<Field> nonStaticFields = new ArrayList<>();\n List<Field> allFields = getAllFieldsFromAncestor(clazz);\n for(Field field : allFields) {\n if(!Modifier.isStatic(field.getModifiers())) {\n nonStaticFields.add(field);\n }\n }\n return nonStaticFields;\n }", "public boolean isStatic() {\n\t\treturn (access & Opcodes.ACC_STATIC) != 0;\n\t}", "boolean isOnlyAssignedInInitializer();", "private MetallicityUtils() {\n\t\t\n\t}", "public StructureCustom(){\r\n\t\tsetMonotonicity(Monotonicity.DECREASING);\r\n\t}", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "public static void check() {\r\n NetworkCode nCodes = new NetworkCode();\r\n Map<Short, String> nCodeMap = new HashMap<Short, String>();\r\n\r\n for (Field field : NetworkCode.class.getDeclaredFields()) {\r\n try {\r\n Short value = (Short) field.get(nCodes);\r\n\r\n if (nCodeMap.containsKey(value)) {\r\n Log.println_e(field.getName() + \" is conflicting with \" + nCodeMap.get(value));\r\n } else {\r\n nCodeMap.put(value, field.getName());\r\n }\r\n } catch (IllegalArgumentException ex) {\r\n Log.println_e(ex.getMessage());\r\n } catch (IllegalAccessException ex) {\r\n Log.println_e(ex.getMessage());\r\n }\r\n }\r\n }", "ClassD initClassD(ClassD iClassD)\n {\n iClassD.updateElementValue(\"ClassD\");\n return iClassD;\n }", "@Override\n\tpublic void VisitGetFieldNode(GetFieldNode Node) {\n\n\t}", "public void updateNonDynamicFields() {\n\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "public static boolean handleStaticFieldWrite(Node sf, Node x, Node m) {\n\t\tif(ImmutabilityPreferences.isInferenceRuleLoggingEnabled()){\n\t\t\tString values = \"x:\" + getTypes(x).toString() + \", sf:\" + getTypes(sf).toString() + \", m:\" + getTypes(m).toString();\n\t\t\tLog.info(\"TSWRITE (sf=x in m, sf=\" + sf.getAttr(XCSG.name) + \", x=\" + x.getAttr(XCSG.name) + \", m=\" + m.getAttr(XCSG.name) + \")\\n\" + values);\n\t\t}\n\t\t// a write to a static field means the containing method cannot be pure (readonly or polyread)\n\t\treturn removeTypes(m, ImmutabilityTypes.READONLY, ImmutabilityTypes.POLYREAD);\n\t}", "@Override // androidx.databinding.ViewDataBinding\n /* renamed from: d */\n public void mo5926d() {\n synchronized (this) {\n long j = this.f67002l;\n this.f67002l = 0;\n }\n }", "protected EClass eStaticClass()\n {\n return SDOPackage.eINSTANCE.getDataObject();\n }", "public boolean hasALLOWAISUNBILLEDTORUN() {\n return fieldSetFlags()[14];\n }", "@Override\r\n public boolean removeDerivedValues() {\n return false;\r\n }", "boolean isStatic();", "boolean isStatic();", "public boolean canBeReferencedByIDREF() {\n/* 171 */ return false;\n/* */ }", "private void taint(Value v, Unit d, Set<FlowAbstraction> out) {\n if(v instanceof Local) {\n out.add(new FlowAbstraction(d, (Local)v));\n } else {\n FieldRef ref = (FieldRef) v;\n // add a tag to the declaring class, which marks it tainted\n ref.getField().getDeclaringClass().addTag(new Tainted(\"class contains tainted field [\" + ref.getField().getName()+\"]\"));\n // add the field to the set of taints\n out.add(new FlowAbstraction(d, ref.getField()));\n }\n }", "private ObjectMacroFront() {\n\n throw new InternalException(\"this class may not have instances\");\n }", "protected GEDCOMType() {/* intentionally empty block */}", "final void deriveDisAssemblerFunction() {\n\n if ( tryAsPart() ) {\n return;\n }\n\n tryFieldAndMethodReflection();\n }", "void mo83705a(C32458d<T> dVar);", "@Override // androidx.databinding.ViewDataBinding\n /* renamed from: d */\n public void mo5926d() {\n synchronized (this) {\n long j = this.f102361i;\n this.f102361i = 0;\n }\n }", "public void m9130p() throws cf {\r\n if (this.f6007a == null) {\r\n throw new cz(\"Required field 'domain' was not present! Struct: \" + toString());\r\n } else if (this.f6009c == null) {\r\n throw new cz(\"Required field 'new_id' was not present! Struct: \" + toString());\r\n }\r\n }", "boolean getIsStatic();", "@AfterReturning(marker = BodyMarker.class, scope = \"TargetClass.printInstanceFields\", order = 2)\n public static void printSpecificInstanceFieldsConcise (final DynamicContext dc) {\n final String format = \"disl: concise %s=%s\\n\";\n\n final Class <?> instType = dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instType\", Class.class\n );\n\n System.out.printf (format, \"instType\", instType);\n\n //\n\n final String instName = dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instName\", String.class\n );\n\n System.out.printf (format, \"instName\", instName);\n\n //\n\n final int instRand = dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instRand\", int.class\n );\n\n System.out.printf (format, \"instRand\", instRand);\n\n //\n\n final double instMath= dc.getInstanceFieldValue (\n dc.getThis (), TargetClass.class, \"instMath\", double.class\n );\n\n System.out.printf (format, \"instMath\", instMath);\n }", "private void checkDerivedInstances() throws UnableToResolveForeignEntityException {\r\n \r\n if (currentModuleTypeInfo.isExtension()) {\r\n //don't add derived instances again for an adjunct module.\r\n return;\r\n }\r\n \r\n final ModuleName currentModuleName = currentModuleTypeInfo.getModuleName(); \r\n \r\n \r\n \r\n for (int i = 0, nTypeConstructors = currentModuleTypeInfo.getNTypeConstructors(); i < nTypeConstructors; ++i) {\r\n \r\n TypeConstructor typeCons = currentModuleTypeInfo.getNthTypeConstructor(i);\r\n \r\n //use private functions equalsInt, lessThanInt etc as the instance resolving functions for\r\n //the Eq, Ord and Enum instances of an enum type. This saves class file space and which could be quite bulky for\r\n //long enum types, since the Ord methods do case-of-cases and so have length proportional to the square of\r\n //the number of data constructors. It also saves on compilation time. Benchmarks show that there is no\r\n //runtime performance impact.\r\n final boolean useCompactEnumDerivedInstances = \r\n TypeExpr.isEnumType(typeCons) && !typeCons.getName().equals(CAL_Prelude.TypeConstructors.Boolean);\r\n \r\n //this flag is used to ensure that the fromInt toInt Helper functions\r\n //are added at most once for each instance type\r\n boolean addedIntHelpers = false;\r\n \r\n for (int j = 0, nDerivedInstances = typeCons.getNDerivedInstances(); j < nDerivedInstances; ++j) {\r\n \r\n QualifiedName typeClassName = typeCons.getDerivingClauseTypeClassName(j);\r\n TypeClass typeClass = currentModuleTypeInfo.getVisibleTypeClass(typeClassName);\r\n final SourceRange declarationPosition = typeCons.getDerivingClauseTypeClassPosition(j);\r\n \r\n //If the type is T a b c, then the instance type for type class C will be \r\n //(C a, C b, C c) => T a b c\r\n TypeConsApp instanceType = makeInstanceType(typeCons, typeClass); \r\n \r\n ClassInstance classInstance;\r\n \r\n //make sure the toInt fromInt helpers are added if the \r\n //class needs them\r\n if (!addedIntHelpers && \r\n (typeClassName.equals(CAL_Prelude.TypeClasses.Enum) ||\r\n typeClassName.equals(CAL_Prelude.TypeClasses.IntEnum) ||\r\n typeClassName.equals(CAL_QuickCheck.TypeClasses.Arbitrary))) {\r\n\r\n TypeExpr intType = compiler.getTypeChecker().getTypeConstants().getIntType();\r\n TypeExpr fromIntHelperTypeExpr = TypeExpr.makeFunType(intType, instanceType);\r\n TypeExpr toIntHelperTypeExpr = TypeExpr.makeFunType(instanceType, intType);\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeFromIntHelper(typeCons), fromIntHelperTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeToIntHelper(typeCons), toIntHelperTypeExpr, declarationPosition);\r\n\r\n addedIntHelpers = true;\r\n }\r\n \r\n \r\n //add the definitions of the instance functions \r\n if (typeClassName.equals(CAL_Prelude.TypeClasses.Eq)) {\r\n \r\n classInstance = checkDerivedEqInstance(typeCons, instanceType, typeClass, useCompactEnumDerivedInstances, declarationPosition); \r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Ord)) {\r\n \r\n classInstance = checkDerivedOrdInstance(typeCons, instanceType, typeClass, useCompactEnumDerivedInstances, declarationPosition); \r\n\r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Bounded)) {\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeMinBoundInstanceFunction(typeCons), instanceType, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeMaxBoundInstanceFunction(typeCons), instanceType, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, null, ClassInstance.InstanceStyle.DERIVING);\r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Enum)) { \r\n \r\n TypeExpr listTypeExpr = compiler.getTypeChecker().getTypeConstants().makeListType(instanceType);\r\n TypeExpr intType = compiler.getTypeChecker().getTypeConstants().getIntType();\r\n TypeExpr upFromTypeExpr = TypeExpr.makeFunType(instanceType, listTypeExpr);\r\n TypeExpr upFromThenTypeExpr = TypeExpr.makeFunType(instanceType, upFromTypeExpr);\r\n TypeExpr upFromThenToTypeExpr = TypeExpr.makeFunType(instanceType, upFromThenTypeExpr);\r\n \r\n TypeExpr upFromToTypeExpr = TypeExpr.makeFunType(instanceType, upFromTypeExpr); \r\n TypeExpr upFromToHelperTypeExpr = \r\n TypeExpr.makeFunType(intType, TypeExpr.makeFunType(intType, listTypeExpr)); \r\n \r\n TypeExpr upFromThenToHelperExpr =\r\n TypeExpr.makeFunType(intType, TypeExpr.makeFunType(intType, TypeExpr.makeFunType(intType, listTypeExpr)));\r\n \r\n\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeUpFromToHelper(typeCons), \r\n upFromToHelperTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeUpFromThenToHelperUp(typeCons), \r\n upFromThenToHelperExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeUpFromThenToHelperDown(typeCons), \r\n upFromThenToHelperExpr, declarationPosition);\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromThenInstanceFunction(typeCons), \r\n upFromThenTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromThenToInstanceFunction(typeCons), \r\n upFromThenToTypeExpr, declarationPosition);\r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromToInstanceFunction(typeCons), \r\n upFromToTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumUpFromInstanceFunction(typeCons), \r\n upFromTypeExpr, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFrom.getUnqualifiedName(), typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFromThen.getUnqualifiedName(), typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFromTo.getUnqualifiedName(), typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(CAL_Prelude.Functions.upFromThenTo.getUnqualifiedName(), typeCons.getName())\r\n }, \r\n ClassInstance.InstanceStyle.DERIVING);\r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Outputable)) {\r\n \r\n classInstance = checkDerivedOutputableInstance(typeCons, instanceType, typeClass, declarationPosition);\r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.Inputable)) {\r\n \r\n if(typeCons.getNDataConstructors() > 0) {\r\n TypeExpr jObjectTypeExpr = TypeExpr.makeNonParametricType(currentModuleTypeInfo.getVisibleTypeConstructor(CAL_Prelude.TypeConstructors.JObject));\r\n TypeExpr inputTypeExpr = TypeExpr.makeFunType(jObjectTypeExpr, instanceType);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeAlgebraicInputInstanceMethod(typeCons), inputTypeExpr, declarationPosition);\r\n\r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, null, ClassInstance.InstanceStyle.DERIVING);\r\n \r\n } else {\r\n //will be a foreign type (and not a built-in type or type defined by an algebraic data declaration).\r\n //Unlike any of the other derived instances, the class methods for the derived Inputable class are\r\n //added late in the ExpressionGenerator. This is because \r\n //a) there is a distinct method for each foreign object type (it must do a cast, and that cast is type specific.\r\n //b) there is no direct way to represent the cast in CAL (although derived Inputable and Outputable instances can\r\n // be used to do the job, once this feature is in place!)\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, null, ClassInstance.InstanceStyle.DERIVING);\r\n }\r\n \r\n } else if (typeClassName.equals(CAL_Debug.TypeClasses.Show)) {\r\n \r\n classInstance = checkDerivedShowInstance(typeCons, instanceType, typeClass, declarationPosition); \r\n \r\n } else if (typeClassName.equals(CAL_QuickCheck.TypeClasses.Arbitrary)) {\r\n \r\n if (typeCons.getForeignTypeInfo() != null) {\r\n throw new IllegalStateException(\"Arbitrary instances cannot be derived for foreign types\"); \r\n }\r\n \r\n //this type represents a Gen for the current instance type.\r\n TypeExpr genInstanceType =\r\n new TypeConsApp(\r\n currentModuleTypeInfo.getVisibleTypeConstructor(CAL_QuickCheck.TypeConstructors.Gen),\r\n new TypeExpr [] {instanceType}); \r\n \r\n //this type represents the type (Gen a)\r\n TypeExpr genAType =\r\n new TypeConsApp(\r\n currentModuleTypeInfo.getVisibleTypeConstructor(CAL_QuickCheck.TypeConstructors.Gen),\r\n new TypeExpr [] {TypeExpr.makeParametricType()} ); \r\n\r\n TypeExpr coarbitraryFunctionType = TypeExpr.makeFunType(instanceType, TypeExpr.makeFunType(genAType, genAType)); \r\n \r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeArbitraryFunction(typeCons), genInstanceType, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeCoArbitraryFunction(typeCons), coarbitraryFunctionType, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {\r\n ClassInstance.makeInternalInstanceMethodName(\"arbitrary\", typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(\"coarbitrary\", typeCons.getName()),\r\n CAL_QuickCheck_internal.Functions.generateInstanceDefault\r\n }, \r\n InstanceStyle.DERIVING);\r\n \r\n \r\n } else if (typeClassName.equals(CAL_Prelude.TypeClasses.IntEnum)) {\r\n \r\n // algebraic types (only enumeration types are permitted; the DerivedInstanceFunctionGenerator methods will check that)\r\n if(typeCons.getForeignTypeInfo() != null) {\r\n throw new IllegalStateException(\"IntEnum instances cannot be derived for foreign types\"); \r\n }\r\n \r\n TypeExpr maybeTypeExpr = \r\n new TypeConsApp(\r\n currentModuleTypeInfo.getVisibleTypeConstructor(CAL_Prelude.TypeConstructors.Maybe),\r\n new TypeExpr[] {instanceType});\r\n\r\n TypeExpr intType = compiler.getTypeChecker().getTypeConstants().getIntType();\r\n TypeExpr intToEnumTypeExpr = TypeExpr.makeFunType(intType, instanceType);\r\n TypeExpr intToEnumCheckedTypeExpr = TypeExpr.makeFunType(intType, maybeTypeExpr);\r\n\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumIntToEnumFunction(typeCons), intToEnumTypeExpr, declarationPosition);\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeEnumIntToEnumCheckedFunction(typeCons), intToEnumCheckedTypeExpr, declarationPosition);\r\n \r\n classInstance = new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {\r\n ClassInstance.makeInternalInstanceMethodName(\"intToEnum\", typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(\"intToEnumChecked\", typeCons.getName()),\r\n ClassInstance.makeInternalInstanceMethodName(\"toIntHelper\", typeCons.getName())}, \r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n // static checks in DataDeclarationChecker will have logged an error message for classes that we cannot\r\n // derive an instance for, so this exception won't be shown to the user as an internal coding error (although it\r\n // will cause further compilation to halt with \"unable to recover from previous compilation errors\").\r\n throw new IllegalStateException(\"Invalid deriving type class.\");\r\n }\r\n \r\n currentModuleTypeInfo.addClassInstance(classInstance); \r\n } \r\n } \r\n }", "private void checkForCLassField(ClassField classField, Obj obj) {\n \tif (obj == Tab.noObj) {\r\n\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+obj.getName()+\" nije deklarisano! \", null);\r\n \t}\r\n \r\n \t\r\n \tif (obj.getType().getKind() != Struct.Class && obj.getType().getKind() != Struct.Interface) {\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+ obj.getName() +\" mora oznacavati objekat unutrasnje klase!\", null);\r\n \t}\r\n \t\r\n \tCollection<Obj> lokals = null;\r\n \t\r\n \tif (obj.getName().equals(\"this\")) { // ja ovo zovem iz funkcije klase, zaro uzimam scope klase; moze samo prvi put (this.a)\r\n \t\tlokals = Tab.currentScope().getOuter().getLocals().symbols();\r\n \t}\r\n \telse {\r\n \t\tlokals = obj.getType().getMembers();\r\n \t}\r\n \r\n \tStruct klasa = obj.getType();\r\n \tObj elem = null;\r\n \tint ok = 0 ;\r\n \t\r\n \twhile (klasa != null) {\r\n\t \telem = null;\r\n\t \tfor(Iterator<Obj> iterator = lokals.iterator();iterator.hasNext();) {\r\n\t \t\telem = iterator.next();\r\n\t \t\tif (elem.getName().equals(classField.getFieldName())) {\r\n\t \t\t\tok = 1;\r\n\t \t\t\tbreak;\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \tif (ok == 1)\r\n\t \t\tbreak;\r\n\t \tklasa = klasa.getElemType();\r\n\t \tif (klasa != null) {\r\n\t \t\tlokals = klasa.getMembers();\r\n\t \t}\r\n \t}\r\n \t\r\n \tclassField.obj = elem;\r\n \t\r\n \tif (ok == 0) {\r\n \t\tclassField.obj = Tab.noObj;\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+classField.getFieldName()+\" mora biti polje ili metoda navedene unutrasnje klase!\", null);\r\n \t}\r\n \telse {\r\n \t\tStruct trenutna = null;\r\n \t\tif (currentClass != null)\r\n \t\t\ttrenutna = currentClass;\r\n \t\tif (currentAbsClass != null)\r\n \t\t\ttrenutna = currentAbsClass;\r\n// \t\tif (trenutna == null) // dal je moguce? ---> jeste u main-u npr\r\n// \t\t\treturn;\r\n \t\t// znaci polje sam klase \"klasa\" ; zovem se sa . nesto...sig sam polje ili metoda klase\r\n \t\tif (elem.getKind() == Obj.Fld || elem.getKind() == Obj.Meth) { \r\n \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // public\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 2 || elem.getFpPos() == -8) { // protected\r\n \t\t\t\tif (trenutna == null) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tif (!(checkCompatibleForClasses(klasa, trenutna))) { // ako je klasa u kojoj se nalazim NIJE izvedena iz klase iz koje potice field\r\n \t\t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 3 || elem.getFpPos() == -7) { // private\r\n \t\t\t\tif (trenutna != klasa) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, private je!\", null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n// \t\tif (elem.getKind() == Obj.Meth) {\r\n// \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // nikad ne bi smeo ni da zove aps ... [-9,-8,-7] \r\n// \t\t\t//ONDA OSTAJE ISTI USLOV ZA METH I FLD\t\r\n// \t\t\t}\r\n// \t\t}\r\n \t}\r\n \t\r\n }", "public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}", "public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}", "public boolean isTypeSpecificChange()\r\n {\r\n return myDTIKey != null;\r\n }", "protected boolean haveDependingFields(EventType event1, EventType event2) {\r\n\t\treturn !getCommonFields(event1, event2).isEmpty();\r\n\t}", "@RegionEffects(\"writes publicField; reads defaultField\")\n private void someButNotAll() {\n publicField = privateField;\n protectedField = defaultField;\n }", "public void fieldChangeFromStaticNestedClass(){\n\t\t\tfield2 = 200;\n\t\t\tSystem.out.println(\"Static nested class, field 2 :\" +field2);\n\t\t}", "public boolean d() {\n return false;\n }", "public boolean isStaticTypedTarget() {\n\t return true;\n }", "public boolean needsValueField() {\n/* 227 */ for (CEnumConstant cec : this.members) {\n/* 228 */ if (!cec.getName().equals(cec.getLexicalValue()))\n/* 229 */ return true; \n/* */ } \n/* 231 */ return false;\n/* */ }", "public DRA () throws CGException {\n vdm_init_DRA();\n }", "private void CheckSealed()\r\n {\r\n if (_sealed)\r\n { \r\n throw new InvalidOperationException(SR.Get(SRID.CannotChangeAfterSealed, \"ConditionCollection\"));\r\n } \r\n }", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "@Test(timeout = TIMEOUT)\n public void testInstanceFields() {\n Class sortingClass = Sorting.class;\n Field[] fields = sortingClass.getDeclaredFields();\n Field[] validFields = new Field[0];\n assertArrayEquals(fields, validFields);\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "public StaticContainer(EntityData ed) {\r\n super(ed, Filters.fieldEquals(PhysicsMassType.class, \"type\", PhysicsMassTypes.infinite(ed).getType()),\r\n Position.class, PhysicsMassType.class, PhysicsShape.class);\r\n }", "public CpFldValidDate() { super(10018, 1); }", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "public void test_sf_937810() throws IllegalAccessException {\n Field[] specs = OntModelSpec.class.getDeclaredFields();\n \n for (int i = 0; i < specs.length; i++) {\n if (Modifier.isPublic( specs[i].getModifiers()) && \n Modifier.isStatic( specs[i].getModifiers()) &&\n specs[i].getType().equals( OntModelSpec.class )) {\n OntModelSpec s = (OntModelSpec) specs[i].get( null );\n assertNotNull( s.getDescription() );\n }\n }\n }", "@RegionEffects(\"writes test.D:Static\") // BAD\n public void n1() {\n s1 = 1;\n }", "public void method_2244() {\r\n this.field_1858 = 0;\r\n }", "protected Vector getUnmappedFields() {\r\n Vector fields = new Vector(1);\r\n if (isStoredInCache()) {\r\n fields.addElement(getWriteLockField());\r\n }\r\n return fields;\r\n }", "@Override\n\tpublic void setStatic(boolean isStatic) {\n\t\t\n\t}", "public interface AbstractC4464qo0 extends AbstractC3313k30 {\n public static final /* synthetic */ int v = 0;\n}", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void checkFields(){\n }", "public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "@Override\n public boolean getIsStatic() {\n return isStatic_;\n }", "private void verifyField() {\n try {\n if (type != Function.class && type != Foreign.class)\n throw new DataMapperException(\"The field annotated with @ColumnName must be of type Function or Foreign\");\n String[] nameDefaultValue = (String[]) ColumnName.class.getDeclaredMethod(\"name\").getDefaultValue();\n\n checkNameParameter(nameDefaultValue);\n } catch (NoSuchMethodException e) {\n throw new DataMapperException(e);\n }\n }", "@EnsuresNonNull({\"field2\", \"field3\"})\n private void init_other_fields(@UnderInitialization(MyClass.class) MyClass this) {\n field2 = new Object();\n field3 = new Object();\n }", "private WidgetConstants() {\n throw new AssertionError();\n }", "protected abstract D createData();", "private static void initializeDatafields(Class<AbstractNode> type) throws Exception {\r\n if (staticDatafieldMap == null) {\r\n staticDatafieldMap = new HashMap<Class<AbstractNode>, Set<String>>();\r\n }\r\n\r\n if (staticDatafieldMap.get(type) == null) {\r\n staticDatafieldMap.put(type, Information.getDatafieldsOfNode(type));\r\n }\r\n }", "boolean known() {\n\t\t\treturn !varAddress && !varMask;\n\t\t}", "public void mo2198g(C0317d dVar) {\n }", "final public boolean isStatic ()\n {\n\treturn myIsStatic;\n }" ]
[ "0.5916976", "0.5697873", "0.5628342", "0.5606052", "0.5582293", "0.5523345", "0.55097747", "0.54582584", "0.5404184", "0.536687", "0.5341763", "0.534146", "0.5327587", "0.5245353", "0.5243782", "0.52356946", "0.52303714", "0.52152884", "0.5201579", "0.51958007", "0.5193507", "0.5171653", "0.51693547", "0.5166154", "0.51374406", "0.51141876", "0.5106646", "0.5104991", "0.5056068", "0.50418115", "0.5029706", "0.50287986", "0.50264955", "0.502217", "0.50171345", "0.50109786", "0.50070286", "0.49983555", "0.499745", "0.4996397", "0.49808183", "0.49702752", "0.496807", "0.4957205", "0.49460435", "0.49386573", "0.49364755", "0.49253923", "0.49243343", "0.49184301", "0.49163482", "0.49135605", "0.49082944", "0.49082944", "0.4904261", "0.48997816", "0.48929775", "0.48845264", "0.48713142", "0.4850839", "0.48473874", "0.48459107", "0.48454827", "0.48428488", "0.48407662", "0.4839697", "0.4828714", "0.48285478", "0.4825927", "0.482191", "0.4815246", "0.48059604", "0.48056725", "0.4804645", "0.48022276", "0.4800579", "0.479579", "0.4794838", "0.478644", "0.47857395", "0.47840443", "0.47825035", "0.4779022", "0.4778851", "0.4765968", "0.47612944", "0.4760817", "0.47531542", "0.4747652", "0.4739972", "0.47342974", "0.47309178", "0.4726864", "0.47223458", "0.4720661", "0.4719705", "0.47168395", "0.47149557", "0.47142977", "0.47117275", "0.47110847" ]
0.0
-1
oubtou_log : no ressources
@Override public void accept(String error) { Toast.makeText(EtudiantSemestreActivity.this, error, Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logika_rozpocznij(){\n\t}", "public void viewLogs() {\n\t}", "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 Log() {\r\n\t}", "void initializeLogging();", "abstract void initiateLog();", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "private void initLog() {\n _logsList = (ListView) findViewById(R.id.lv_log);\n setupLogger();\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "public String get_log(){\n }", "@Override\n public void log()\n {\n }", "@Override\n public void logs() {\n \n }", "public static void logResource(Log log, Resource resource) {\n log.debug(String.format(\"=== Resource: %s ===\", resource.getPath()));\n log.debug(\"isCollection: \" + (resource instanceof Collection));\n log.debug(\"isSymLink: \" + Boolean.parseBoolean(resource.getProperty(\"registry.link\")));\n logIfNotNull(log, \"author: %s\", resource.getAuthorUserName());\n logIfNotNull(log, \"description: %s\", resource.getDescription());\n logIfNotNull(log, \"id: %s\", resource.getId());\n logIfNotNull(log, \"created: %s\", resource.getCreatedTime());\n logIfNotNull(log, \"lastUpdated: %s\", resource.getLastModified());\n logIfNotNull(log, \"lastUpdatedBy: %s\", resource.getLastUpdaterUserName());\n logIfNotNull(log, \"mediaType: %s\", resource.getMediaType());\n logIfNotNull(log, \"permanentPath: %s\", resource.getPermanentPath());\n logIfNotNull(log, \"parentPath: %s\", resource.getParentPath());\n if (!resource.getProperties().isEmpty()) {\n log.debug(\"Properties:\");\n for (Map.Entry<Object, Object> prop : resource.getProperties().entrySet()) {\n log.debug(\"\\t\" + prop.getKey() + \": \" + prop.getValue());\n }\n }\n log.debug(\"============================\");\n }", "private static void initLog() {\n LogManager.mCallback = null;\n if (SettingsManager.getDefaultState().debugToasts) {\n Toast.makeText(mContext, mContext.getClass().getCanonicalName(), Toast.LENGTH_SHORT).show();\n }\n if (SettingsManager.getDefaultState().debugLevel >= LogManager.LEVEL_ERRORS) {\n new TopExceptionHandler(SettingsManager.getDefaultState().debugMail);\n }\n //Si hubo un crash grave se guardo el reporte en el sharedpreferences, por lo que al inicio\n //levanto los posibles crashes y, si el envio por mail está activado , lo envio\n String possibleCrash = StoreManager.pullString(\"crash\");\n if (!possibleCrash.equals(\"\")) {\n OtherAppsConnectionManager.sendMail(\"Stack\", possibleCrash, SettingsManager.getDefaultState().debugMailAddress);\n StoreManager.removeObject(\"crash\");\n }\n }", "private TypicalLogEntries() {}", "public HtShowDetailedLog() {\n\t}", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }", "String getLogExhausted();", "private DAOLogger() {\n\t}", "private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }", "public void logData(){\n }", "public MyLogs() {\n }", "public LogBook() {\n logs = new UniqueLogList();\n exercises = new UniqueExerciseList();\n }", "public SystemLog () {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tpublic DataGrid logList(LogVO logVO) {\n\t\treturn null;\r\n\t}", "public EqpmentLogExample() {\n oredCriteria = new ArrayList();\n }", "public Log() { //Null constructor is adequate as all values start at zero\n\t}", "public void logSensorData () {\n\t}", "public void testUnlinkLogMessagesFromService() {\n\n\t}", "private LogUtil() {\r\n /* no-op */\r\n }", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public SensorLog() {\n }", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "@Override\n\t\tpublic void clear() {\n\t\t\tsuper.clear();\n\t\t\tLogCateManager.getInstance().onLogsChanged();\n\t\t}", "private JavaUtilLogHandlers() { }", "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 TActLogsExample() {\n oredCriteria = new ArrayList<Criteria>();\n offset = 0;\n limit = Integer.MAX_VALUE;\n }", "public ClipLog() { }", "String getLogHandled();", "protected void _initLinks() {\n\tpeopleLink = null;\n\tchangeLogDetailsesLink = null;\n}", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "private String getLog() {\n\n\t\tNexTask curTask = TaskHandler.getCurrentTask();\n\t\tif (curTask == null || curTask.getLog() == null) {\n\t\t\treturn \"log:0\";\n\t\t}\n\t\tString respond = \"task_log:1:\" + TaskHandler.getCurrentTask().getLog();\n\t\treturn respond;\n\t}", "public void uploadLogCollection();", "@Before\n public void setUp() {\n Log.getFindings().clear();\n Log.enableFailQuick(false);\n }", "public ManagedProductosDivisionLotes() {\n this.LOGGER = LogManager.getRootLogger();\n }", "private void logFindAll(String ip) {\n\t\tRetailUnitOfMeasureController.logger.info(\n\t\t\t\tString.format(RetailUnitOfMeasureController.FIND_ALL_LOG_MESSAGE,\n\t\t\t\t\t\tthis.userInfo.getUserId(), ip));\n\t}", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "public void setUserLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n userLog.add(new UserLog(rs.getInt(\"userID\"),\n rs.getInt(2),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public String getLog();", "public DNSLog() {}", "public ServletLogChute()\r\n {\r\n }", "public void setPoolLog(String poolLog) { this.poolLog = poolLog; }", "private void init(){\n \tgl = new GeradorLog(getTAG_LOG(),getTIPO_LOG());\n // cria os devidos parametros da tela\n campoResposta = (EditText) findViewById(R.id.campoResposta);\n msg_usr = (TextView) findViewById(R.id.resposta);\n }", "abstract protected void _log(TrackingActivity activity) throws Exception;", "public LogPoster() {\n\t\t\n\t}", "@Override\n public void tearDown() {\n getLocalLogService().clear(); \n }", "public abstract void logKenaiUsage(Object... parameters);", "@PostConstruct\r\n public void init() {\n this.logs = this.logDAO.findAllExamCaseLog();\r\n }", "public IisLogsDataSource() {\n }", "public Catelog() {\n super();\n }", "public void setLogFilesUrls() {\n String s = \"\";\n s = s + makeLink(\"NODE-\" + getNodeName() + \"-out.log\");\n s = s + \"<br>\" + makeLink(\"NODE-\" + getNodeName() + \"-err.log\");\n s = s + \"<br>\" + makeLink(\"log-\" + getNodeName() + \".html\");\n logFilesUrls = s;\n }", "void log();", "private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }", "protected void checkLog() {\n String keyword = \"Connected controllable Agent to the Introscope Enterprise Manager\";\n LogUtils util = utilities.createLogUtils(umAgentConfig.getLogPath(), keyword);\n assertTrue(util.isKeywordInLog());\n\t}", "private void getloggersStatus() { \n\t\tAppClientFactory.getInjector().getSearchService().isClientSideLoggersEnabled(new SimpleAsyncCallback<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\tAppClientFactory.setClientLoggersEnabled(result);\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "public FileTrackerConflictLog() {\n\t\taddedItems = new ArrayList<>();\n\t\tremovedItems = new ArrayList<>();\n\t\tsummary = new StringBuilder();\n\t}", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "abstract void initiateErrorLog();", "@Override\r\n public void prepare(Map topoConf, TopologyContext context, OutputCollector collector) {\r\n // TODO Auto-generated method stub\r\n super.prepare(topoConf, context, collector);\r\n try {\r\n this.collector = collector;\r\n\r\n //fh = new FileHandler(\"/public/home/abrar/loger/Mylog2.log\");\r\n //logger.addHandler(fh);\r\n //SimpleFormatter formatter = new SimpleFormatter();\r\n //fh.setFormatter(formatter);\r\n }\r\n catch (Exception e){\r\n\r\n }\r\n\r\n }", "public ChangeLog() {\n initComponents();\n }", "public void clearCallLogs();", "void setupFileLogging();", "private Log() {\n }", "@Override\n\tpublic void svnLogPrepare() {\n\t}", "public Logs() {\n initComponents();\n }", "@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public TOpLogs() {\n this(DSL.name(\"t_op_logs\"), null);\n }", "public Auditor () {\n\n\t\t// Create a new log file without deleting existing logs. Use the current time. \n\t\ttry {\n\t\t\tlog = new File( \"log: \" + Double.toString( new Date().getTime()) + \".txt\" );\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "@Override\n public void populateServiceNotUpDiagnostics() {\n }", "public void printByResource() {\r\n TUseStatus useStatus;\r\n\t for (int b=0; b < m_current_users_count; b++)\r\n\t for (int a=0; a < m_current_resources_count; a++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }", "public LogFilter() {}", "@Override\n public void closeLog() {\n \n }", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "private void log(IndexObjectException e) {\n\t\t\r\n\t}", "private void logUser() {\n }", "protected void writeLog() {\r\n\r\n // get the current date/time\r\n DateFormat df1 = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\r\n\r\n // write to the history area\r\n if (Preferences.is(Preferences.PREF_LOG) && completed) {\r\n\r\n if (destImage != null) {\r\n\r\n if (srcImage != null) {\r\n destImage.getHistoryArea().setText(srcImage.getHistoryArea().getText());\r\n }\r\n\r\n if (historyString != null) {\r\n destImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n } else if (srcImage != null) {\r\n\r\n if (historyString != null) {\r\n srcImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n }\r\n }\r\n }", "private LogEvent()\n\t{\n\t\tsuper();\n\t}", "public void startRetriveDataInfo() {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_2);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_3);\n \n\t\t\t}\n\t\t}", "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 }", "public static void setLog(Log log) {\n DatasourceProxy.log = log;\n }", "private void logToFile() {\n }", "private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}", "@Override\n public void initializeLogging() {\n // Wraps Android's native log framework.\n LogWrapper logWrapper = new LogWrapper();\n // Using Log, front-end to the logging chain, emulates android.util.log method signatures.\n Log.setLogNode(logWrapper);\n\n // Filter strips out everything except the message text.\n MessageOnlyLogFilter msgFilter = new MessageOnlyLogFilter();\n logWrapper.setNext(msgFilter);\n\n // On screen logging via a fragment with a TextView.\n //LogFragment logFragment = (LogFragment) getSupportFragmentManager()\n // .findFragmentById(R.id.log_fragment);\n //msgFilter.setNext(logFragment.getLogView());\n\n mLogFragment = (LogFragment) getSupportFragmentManager()\n .findFragmentById(R.id.log_fragment);\n msgFilter.setNext(mLogFragment.getLogView());\n\n Log.i(TAG, \"Ready\");\n }", "@Override\r\n\tpublic void initialize(URL arg0, ResourceBundle arg1)\r\n\t{\r\n\t\t\r\n\t\tSubscriber subscriberA = new Subscriber(LoginController.subscriberResult.getSubscriberDetails());\r\n\t\tMessageCS message = new MessageCS(MessageType.ACTIVITY_LOG,subscriberA);\r\n\t\tMainClient.client.accept(message);\r\n\t\ttry {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tThread.sleep(1500);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t//if the subscriber has no activities at all\r\n\t\tif(finalSubscriberActivity.size()==0)\r\n\t\t{\r\n\t\t\tAlert alert1=new Alert(Alert.AlertType.INFORMATION);\r\n\t\t\talert1.setTitle(\"Activities\");\r\n\t\t\talert1.setContentText(\"You dont have any activities\");\r\n\t\t\talert1.showAndWait();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//if the subscriber has activities\r\n\t\telse \r\n\t\t{\r\n\t\t\tcolumnDate.setCellValueFactory(new PropertyValueFactory<ActivityLog,String>(\"Date\"));\r\n\t\t\tcolumnAction.setCellValueFactory(new PropertyValueFactory<ActivityLog,String>(\"Activity\"));\r\n\t\t\tlistOfActivities = FXCollections.observableArrayList(finalSubscriberActivity);\r\n\t\t\tactivityLogTable.setItems(listOfActivities);\r\n\t\t}\r\n\t}", "public RedpacketActivityOperationLog() {\n this(\"redpacket_activity_operation_log\", null);\n }", "public void serializeLogs();", "public String getRunLog();", "@Override\n\tpublic List<Ontology> getOntologies() {\n\t\t\n\t\tList<Ontology> ontologies = new ArrayList<Ontology>();\n\t\tontologies.add(LogOntology.getInstance());\n\t\t\n\t\treturn ontologies;\n\t}" ]
[ "0.60967153", "0.5841219", "0.5550501", "0.5544586", "0.5538768", "0.5534319", "0.5528033", "0.5514828", "0.5503656", "0.5475037", "0.54703677", "0.544071", "0.54338604", "0.54237777", "0.5376723", "0.5315539", "0.5311691", "0.52852064", "0.5271382", "0.5252164", "0.522568", "0.51958746", "0.5194399", "0.51899487", "0.5188903", "0.51882076", "0.51662064", "0.51637197", "0.5155712", "0.5153038", "0.5140658", "0.5140658", "0.5140658", "0.5123592", "0.51210004", "0.51102877", "0.51030093", "0.5094746", "0.50784546", "0.5070112", "0.5051504", "0.50496477", "0.5048549", "0.5045701", "0.50417525", "0.50417066", "0.50408036", "0.50379854", "0.50326735", "0.5029331", "0.50223297", "0.5020959", "0.5016111", "0.50063735", "0.500351", "0.5002933", "0.5000278", "0.49985155", "0.4995646", "0.49950808", "0.49870378", "0.49800357", "0.49783027", "0.49741477", "0.49700466", "0.49659327", "0.4964928", "0.49609387", "0.49595752", "0.49568173", "0.495642", "0.4954254", "0.49510562", "0.4950957", "0.49476758", "0.49275368", "0.4917471", "0.49168685", "0.49150786", "0.49111232", "0.4904499", "0.48799473", "0.48746473", "0.48725313", "0.4871732", "0.4871732", "0.48704103", "0.48570698", "0.48513868", "0.48467392", "0.4841831", "0.48408", "0.48397872", "0.4838857", "0.4838245", "0.4836037", "0.4833499", "0.48325264", "0.48289174", "0.4828729", "0.48137617" ]
0.0
-1
semestres = SemestreController.getSemestres(); / oubtou_log : onclick you need to send module id to next avtivity !!!
public void load_grid(){ RecyclerView moduleRecycler = (RecyclerView) findViewById(R.id.semestre_recycler); EtudiantSemestreRecycler adapter = new EtudiantSemestreRecycler(this, semestres); moduleRecycler.setAdapter(adapter); LinearLayoutManager manager = new LinearLayoutManager(this); manager.setOrientation(RecyclerView.VERTICAL); moduleRecycler.setLayoutManager(manager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override//metodo de la interfaz ListenerSimsRefe del fragmento FragmentSimcardAutoVenta\n public void onFragmentSimsRefe(ReferenciasSims objRefSims) {\n Intent intent = new Intent(this,ActSeleccionarSimsPaquete.class);\n intent.putExtra(\"ID_REFERENCIA\",objRefSims);\n intent.putExtra(\"value\",thumbs);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n toonSessie();\n }", "public void OnModRastaBtnHojaProc_Click(View button) {\r\n\t\tIntent iModRastaHrProcedimientos = new Intent();\r\n\t\tiModRastaHrProcedimientos.setClass(this, modRastaHrProcedimientos.class);\r\n\t\tiModRastaHrProcedimientos.putExtra(\"PRO_ID\", PRO_ID);\r\n\t\tiModRastaHrProcedimientos.putExtra(\"FIN_ID\", FIN_ID);\r\n\t\tiModRastaHrProcedimientos.putExtra(\"USU_ID\", USU_ID);\r\n\t\tiModRastaHrProcedimientos.putExtra(\"USU_NOMBRE\", USU_NOMBRE);\r\n\t\tiModRastaHrProcedimientos.putExtra(\"RAS_ID\", RAS_ID);\r\n\t\tiModRastaHrProcedimientos.putExtra(\"RAS_UMAID\", RAS_UMAID);\r\n\t\tstartActivity(iModRastaHrProcedimientos);\r\n\t}", "private void sezmanagerListener(){\n\n CardLayout CL=(CardLayout) sez_managerview.getIntermedio1().getLayout();\n\n /*Avanti*/\n JButton sez_managerviewAvanti = sez_managerview.getAvantiButton();\n sez_managerviewAvanti.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n if (Pagine_Manager.getPagina_Corrente() < 3) {\n\n CL.next(sez_managerview.getIntermedio1());\n Pagine_Manager.addPagina_Corrente();\n\n }\n\n }\n\n });\n\n\n /*Indietro*/\n JButton sez_managerviewIndietro= sez_managerview.getIndietroButton();\n sez_managerviewIndietro.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n if (Pagine_Manager.getPagina_Corrente() > 1) {\n\n CL.previous(sez_managerview.getIntermedio1());\n Pagine_Manager.subctractPagina_Corrente();\n }\n\n }\n });\n\n\n /*PaginaLogin*/\n JButton PaginaLoginbutton = sez_managerview.getPaginaLoginButton();\n PaginaLoginbutton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n basicframe.setdestra(loginview.getIntermedio0());\n\n }\n });\n }", "@Override\n public void onClick(View view) {\n IdEvento = obtenerEmegencia().get(recyclerViewEmergencia.getChildAdapterPosition(view)).getId();\n\n //Se muestra un mensaje en pantalla de lo que seleciono\n Next();\n }", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(activity.getApplicationContext(),ServisTalebi.class);\n intent.putExtra(\"id\",talep.getId().toString());\n intent.putExtra(\"baslik\",talep.getBaslik().toString());\n intent.putExtra(\"aciklama\",talep.getAciklama().toString());\n intent.putExtra(\"durum\",talep.getDurum().toString());\n intent.putExtra(\"yorum\",talep.getYorum().toString());\n\n activity.startActivity(intent);\n\n\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"2\");\n startActivity(intent);\n }", "public void OnModRastaBtnHr2_Click(View button) {\r\n\t\tIntent iModRastaHr2 = new Intent();\r\n\t\tiModRastaHr2.setClass(this, modRastaHr2.class);\r\n\t\tiModRastaHr2.putExtra(\"PRO_ID\", PRO_ID);\r\n\t\tiModRastaHr2.putExtra(\"FIN_ID\", FIN_ID);\r\n\t\tiModRastaHr2.putExtra(\"USU_ID\", USU_ID);\r\n\t\tiModRastaHr2.putExtra(\"USU_NOMBRE\", USU_NOMBRE);\r\n\t\tiModRastaHr2.putExtra(\"RAS_ID\", RAS_ID);\r\n\t\tiModRastaHr2.putExtra(\"RAS_UMAID\", RAS_UMAID);\r\n\t\tstartActivity(iModRastaHr2);\r\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NDS_main.this, Urubuga_Services.class);\n intent.putExtra(\"pageId\", \"1\");\n startActivity(intent);\n }", "@Override\r\n public void onClick(View v) {\n consultarSesiones(sucursal.getId(),clienteID, fecha, beacon);\r\n }", "public void OnModRastaBtnHr1_Click(View button) {\r\n\t\tIntent iModRastaHr1 = new Intent();\r\n\t\tiModRastaHr1.setClass(this, modRastaHr1.class);\r\n\t\tiModRastaHr1.putExtra(\"PRO_ID\", PRO_ID);\r\n\t\tiModRastaHr1.putExtra(\"FIN_ID\", FIN_ID);\r\n\t\tiModRastaHr1.putExtra(\"USU_ID\", USU_ID);\r\n\t\tiModRastaHr1.putExtra(\"USU_NOMBRE\", USU_NOMBRE);\r\n\t\tiModRastaHr1.putExtra(\"RAS_ID\", RAS_ID);\r\n\t\tiModRastaHr1.putExtra(\"RAS_UMAID\", RAS_UMAID);\r\n\t\tstartActivity(iModRastaHr1);\r\n\t}", "@Override\r\n public void onClick(View v)\r\n {\n DJIDrone.getDjiMainController().getAircraftSn(new DJIExecuteStringResultCallback(){\r\n\r\n @Override\r\n public void onResult(String result)\r\n {\r\n // TODO Auto-generated method stub\r\n handler.sendMessage(handler.obtainMessage(SHOWTOAST, \"SN = \"+result));\r\n }\r\n \r\n });\r\n }", "private void sceltapannelli(String utilizzatore){\n\n if(utilizzatore.equals(\"Registrazione\")){\n\n sez_managerview.setSezA(new Sez_AView().getIntermedio0());\n sez_managerview.setSezB(new Sez_BView().getIntermedio0());\n sez_managerview.setSezC(new Sez_CView().getIntermedio0());\n\n }\n\n }", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "private void getVisitas(){\n mVisitasTerreno = estudioAdapter.getListaVisitaTerrenosSinEnviar();\n //ca.close();\n }", "@Override\n public void onClick(View view) {\n ArrayList<XeBuyt> listXeBuytWithAvailableSeats = XeBuytController.getInstance()\n .getListXeBuytByMaTuyenDuong(tuyenDuong.maTuyenDuong);\n\n // Because we haven't found out whether it has available seats or not so\n // we have to filter it out to return only buyts with available seats\n\n // Save to this, cool!!!\n SharedVariables.theListOfBusesThroughActivity = MainController.getInstance().\n getListXeBuytsWithAvailableSeats(listXeBuytWithAvailableSeats);\n\n Intent intent = new Intent(getContext(), FirstFunction_2_Activity.class);\n m_Context.startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n\n\n Intent int1 = new Intent(getApplicationContext(), lista.class);\n int1.putExtra(\"variableInvitado\", Sesion);\n startActivity(int1 );\n }", "public void vistaInterfazNiveles (View view){\n Intent interfaz = new Intent(this,MainActivity.class);\n //Intancio el Objeto Intent que necesito enviar la información\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "@Override\n public void onClick(View v) {\n Intent i=new Intent(mContext,DetailAnnonceCovoitureur.class);\n Intent intent=((Activity) mContext).getIntent();\n String s=intent.getStringExtra(\"action\");\n i.putExtra(\"action\",s);\n Bundle b = new Bundle();\n b.putSerializable(\"annonce\",annonceCovoitureurs.get(position));\n i.putExtras(b);\n mContext.startActivity(i);\n }", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "@Override\n public void onClick(View v) {\n Referinta.Verset = v.getId();\n\n Intent intent = new Intent(getContext(), TextActivity.class);\n // 2. put key/value data\n\n // intent.putExtra(\"referinta\", referinta );\n // intent.putExtra(\"message\", capitole[1]);\n\n // 3. or you can add data to a bundle\n\n\n // 5. start the activity\n startActivity(intent);\n // finish();\n\n }", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tif(v.getId()==100+0){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[0]);\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+1){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[1]);\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+2){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[2]);\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+3){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[3]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+4){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[4]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+5){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[5]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIoSeb ioSeb = new IoSeb();\n\t\t\tioSeb.ajoutParam(\"nomUser\", editNomUser.getText().toString());\n\t\t\tioSeb.ajoutParam(\"prenomUser\", editPrenomUser.getText().toString());\n\t\t\tioSeb.ajoutParam(\"motDePasse\", editMotDePasse.getText().toString());\n\t\t\tioSeb.outputSeb(UrlScriptsPhp.urlLireValiderIdEtServiceUser,\n\t\t\t\t\tnew String[] { \"idUser\", \"service\" },\n\t\t\t\t\tgetApplicationContext(), handlerValiderUser);\n\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tif(v.getId()==100+0){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[0]);\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+1){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[1]);\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+2){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[2]);\t\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+3){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[3]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+4){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[4]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}else if(v.getId()==100+5){\n\t\t\t\t\t\t\t\tURL =Constants.SERVER_URL + child.get(group[5]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\t\tnew AsyncLoadNews(flag,lsnb,URL).execute();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n lecturaNFC(finalIdBomba);\n }", "public static String _btnfrasco_click() throws Exception{\nmostCurrent._activity.RemoveAllViews();\n //BA.debugLineNum = 126;BA.debugLine=\"Activity.LoadLayout(\\\"lay_mosquito_Ciclo\\\")\";\nmostCurrent._activity.LoadLayout(\"lay_mosquito_Ciclo\",mostCurrent.activityBA);\n //BA.debugLineNum = 128;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 130;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void selecao () {}", "public Seance_Salle(int id_seance,int id_salle)\r\n {\r\n this.id_salle=id_salle;\r\n this.id_seance=id_seance;\r\n }", "public void series (View vista){\n\n Intent series = new Intent(this,ActivitySeries.class);\n startActivity (series);\n\n }", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n Review reviewsarapan = this.list.get(position);\n\n Intent intent = new Intent(ctx, ReviewDetails.class);\n intent.putExtra(\"detail_id\", reviewsarapan.getId_review());\n intent.putExtra(\"detail_gambar\", \"http://192.168.1.36/Pampo/gambar_detail/\"+reviewsarapan.getGambar_detail());\n System.out.println(\"Gambar : \"+ reviewsarapan.getGambar_detail());\n intent.putExtra(\"detail_judul\", reviewsarapan.getJudul_review());\n intent.putExtra(\"detail_deskripsi\", reviewsarapan.getDeskripsi_review());\n this.ctx.startActivity(intent);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (v.getId() == 100 + 0) {\n\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[0]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 1) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[1]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 2) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[2]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 3) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[3]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 4) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[4]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 5) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[5]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n Button trykket = null;\n for (int i = 0; i < 30 ; i++) {\n if (view==buttons.get(i)){\n trykket=buttons.get(i);\n }\n }\n assert trykket != null;\n gæt(trykket);\n\n //vi afslutter spiller hvis det er slut eller vundet.\n if(logik.erSpilletSlut()){\n if(logik.erSpilletTabt()){\n // die.start();\n slutspilllet(false);\n }\n if(logik.erSpilletVundet()) slutspilllet(true);\n }\n\n }", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(getContext(), Detalles.class);\n // Enlace a la web de la noticia\n intent.putExtra(\"Enlace\", direccionDesarrollador);\n startActivity(intent);\n }", "private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }", "private void mostrarEmenta (){\n }", "@Override\r\n public void onClick(View v){\n RequestUrl(\"led2\");\r\n }", "public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (v.getId() == 100 + 0) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[0]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 1) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[1]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 2) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[2]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 3) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[3]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 4) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[4]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t} else if (v.getId() == 100 + 5) {\n\t\t\t\t\t\t\tURL = Constants.SERVER_URL + child.get(group[5]);\n\t\t\t\t\t\t\tcomNewsAdapter = null;\n\t\t\t\t\t\t\tlsnb = null;\n\t\t\t\t\t\t\tnew AsyncLoadNews(lsnb, URL).execute();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void vistaApoyo (View view){\n Intent interfaz = new Intent(this,MainApoyo.class);\n Intent enviar = new Intent( view.getContext(), MainNivelesReto.class );\n //Metodo que me permite crear variable\n enviar.putExtra(\"IdCategoria\", getIntent().getStringExtra(\"IdCategoria\") );\n startActivity(interfaz);\n finish();\n }", "@Override\r\n public void onClick(View v){\n RequestUrl(\"led1\");\r\n }", "private void getDatosVisitasTerreno(){\n mDatosVisitasTerreno = estudioAdapter.getListaDatosVisitaTerrenosSinEnviar();\n //ca.close();\n }", "public static void printSieger(){\n System.out.println(\"Sieger ist \" +GameController.SIEGER);\n }", "private void constroiObjetosNotas()\n {\n img_voltarN = (ImageView) vw_notas.findViewById(R.id.img_voltar);\n pager = (ViewPager) vw_notas.findViewById(R.id.pager);\n tabs = (SlidingTabLayout) vw_notas.findViewById(R.id.tabs);\n\n img_voltarN.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n area_geral.removeViewAt(2);\n pagina = PaginaAtual.PORTAL_DISCENTE;\n web.loadUrl(\"https://www.sigaa.ufs.br/sigaa/verPortalDiscente.do\");\n }\n });\n }", "public void visualizarDatos(View view) {\n Intent datos = new Intent(this, vistualiazrDatosTotales.class);\n datos.putExtra(\"id\", id);\n startActivity(datos);\n finish();\n }", "@Override\n public void onClick(View v) {\n //membuat objek AsyncTask\n task = new ListAsyncTask(mahasiswa, pd);\n //mengeksekusi AsyncTask dari String mahasiswa_list\n task.execute(getResources().getStringArray(R.array.mahasiswa_list));\n }", "@UiHandler(\"catalogue_search_send_button\")\r\n\t/*\r\n\t * Call to the OpenSearch service to get the list of the available\r\n\t * parameters\r\n\t */\r\n\tvoid onCatalogue_search_send_buttonClick(ClickEvent event) {\r\n\t\tString url = catalogue_search_panel_os_textbox.getValue();\r\n\t\tUrlValidator urlValidator = new UrlValidator();\r\n\t\tif (!urlValidator.isValidUrl(url, false)) {\r\n\t\t\tWindow.alert(\"ERROR : Opensearch URL not valid!\");\r\n\t\t} else {\r\n\t\t\topensearchService.getDescriptionFile(url, new AsyncCallback<Map<String, String>>() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\tSystem.out.println(\"fail!\");\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onSuccess(final Map<String, String> result) {\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Form building according to the available parameters\r\n\t\t\t\t\t * (result)\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcatalogue_search_param_panel.setVisible(true);\r\n\r\n\t\t\t\t\tcatalogue_search_panel_see_description_button.setVisible(true);\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Click on this button to see the description file\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcatalogue_search_panel_see_description_button.addClickHandler(new ClickHandler() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tWindow.open(result.get(\"description\"), \"description\", result.get(\"description\"));\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * If the map doesn't contain the parameter then the field\r\n\t\t\t\t\t * is disabled. Otherwise, the parameter's key is register\r\n\t\t\t\t\t * to build the request url later\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (!result.containsKey(\"eo:platform\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_platform.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_platform.setName(result.get(\"eo:platform\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:orbitType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitType.setName(result.get(\"eo:orbitType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:instrument\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensor.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensor.setName(result.get(\"eo:instrument\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:sensorType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensortype.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensortype.setName(result.get(\"eo:sensorType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:sensorMode\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensorMode.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensorMode.setName(result.get(\"eo:sensorMode\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:resolution\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMax.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMin.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMax.setName(result.get(\"eo:resolution\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMin.setName(result.get(\"eo:resolution\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:swathId\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_swathId.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_swathId.setName(result.get(\"eo:swathId\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:wavelength\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght1.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght2.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght1.setName(result.get(\"eo:wavelength\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght2.setName(result.get(\"eo:wavelength\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:spectralRange\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_spectralRange.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_spectralRange.setName(result.get(\"eo:spectralRange\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:orbitNumber\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMax.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMin.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMax.setName(result.get(\"eo:orbitNumber\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMin.setName(result.get(\"eo:orbitNumber\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:orbitDirection\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitDirection.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitDirection.setName(result.get(\"eo:orbitDirection\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:track\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAccross.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAlong.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAccross.setName(result.get(\"eo:track\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAlong.setName(result.get(\"eo:track\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:frame\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_frame1.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_frame2.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_frame1.setName(result.get(\"eo:frame\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_frame2.setName(result.get(\"eo:frame\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:identifier\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_identifier.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_identifier.setName(result.get(\"eo:identifier\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:type\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_entryType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_entryType.setName(result.get(\"eo:type\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:acquisitionType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionType.setName(result.get(\"eo:acquisitionType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:status\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_status.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_status.setName(result.get(\"eo:status\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:archivingCenter\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_archivingCenter.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_archivingCenter.setName(result.get(\"eo:archivingCenter\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:acquisitionStation\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionStation.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionStation.setName(result.get(\"eo:acquisitionStation\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingCenter\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingCenter.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingCenter.setName(result.get(\"eo:processingCenter\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingSoftware\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingSoftware.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingSoftware.setName(result.get(\"eo:processingSoftware\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingDate\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate1.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate2.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate1.setName(result.get(\"eo:processingDate\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate2.setName(result.get(\"eo:processingDate\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingLevel\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingLevel.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingLevel.setName(result.get(\"eo:processingLevel\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:compositeType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_compositeType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_compositeType.setName(result.get(\"eo:compositeType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:contents\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_contents.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_contents.setName(result.get(\"eo:contents\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:cloudCover\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_cloud.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_cloud.setName(result.get(\"eo:cloudCover\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:snowCover\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_snow.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_snow.setName(result.get(\"eo:snowCover\"));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\"success!\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t}\r\n\r\n\t}", "@Listen(\"onClick =#solicitudReclamo\")\n\t\tpublic void Reclamo() {\n\t\t\tString dir = \"gps/reclamo/frm-reclamo-ordenesEntrega.zul\";\n\t\t\tclearDivApp(dir);\n\t\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t\t}", "public void sendeSpielfeld();", "@Override\n public void onClick(View view) {\n Intent i = new Intent(getActivity(), CadastroDespesaItem.class);\n i.putExtra(\"Reembolso\", Reembolso);\n Bundle params = new Bundle();\n params.putString(\"CU_LOGIN\", prpUsuario_Logado);\n params.putString(\"CU_ID\", prpUsuario_ID);\n params.putString(\"TIPO_PESQUISA\", _gsTIPOPESQUISA);\n i.putExtras(params);\n\n startActivity(i);\n }", "public void Next(){\n Bundle extras = new Bundle();\n extras.putString(\"IdEvento\", IdEvento); // se obtiene el valor mediante getString(...)\n\n Intent intent = new Intent(this, AtendiendoEmergencia.class);\n //Agrega el objeto bundle a el Intne\n intent.putExtras(extras);\n //Inicia Activity\n startActivity(intent);\n }", "@Override\r\n public void onClick(View v) {\n comunicadorRutinas.irADetalle(rutina.getListaEjsCalentamiento(), rutina.getListaEjercicios(), rutina.getListaEjesEstiramiento());\r\n }", "private void verRegistro(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 256 */ int idRecurso = 0;\n/* */ try {\n/* 258 */ idRecurso = Integer.parseInt(comms.request.getParameter(\"idRecurso\"));\n/* */ }\n/* 260 */ catch (Exception e) {}\n/* */ \n/* */ \n/* 263 */ PrcRecursoDAO ob = new PrcRecursoDAO();\n/* 264 */ PrcRecursoDTO reg = ob.cargarRegistro(idRecurso);\n/* 265 */ if (reg != null) {\n/* 266 */ this.pagHTML.setTextIdRecursoEd(\"\" + reg.getIdRecurso());\n/* 267 */ this.pagHTML.setTextIdTipoRecursoEd(\"\" + reg.getNombreIdTipoRecurso());\n/* 268 */ this.pagHTML.setTextDescripcionRecursoEd(\"\" + reg.getDescripcionRecurso());\n/* 269 */ this.pagHTML.setTextIdProcedimientoEd(\"\" + reg.getNombreIdProcedimiento());\n/* 270 */ this.pagHTML.setTextEstadoEd(\"\" + reg.getNombreEstado());\n/* 271 */ this.pagHTML.setTextUsuarioInsercionEd(\"\" + reg.getUsuarioInsercion());\n/* 272 */ this.pagHTML.setTextUsuarioModificacionEd(\"\" + reg.getUsuarioModificacion());\n/* 273 */ this.pagHTML.setTextFechaModificacionEd(\"\" + reg.getFechaModificacion());\n/* */ \n/* 275 */ this.pagHTML.getElementIdRecursoKey().setValue(\"\" + reg.getIdRecurso());\n/* 276 */ this.pagHTML.getElement_operacion().setValue(\"P\");\n/* */ } \n/* 278 */ activarVista(\"editar\");\n/* */ }", "@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }", "@Override\n public void onClick(View V) {\n\n int itemPosition = RC.getChildLayoutPosition(V);\n Session session = sessions.get(itemPosition);\n Intent intent = new Intent(context, CharOnSessActivity.class);\n intent.putExtra(\"session_id\", session.getId());\n intent.putExtra(\"player_id\", player_id);\n intent.putExtra(\"sess_date\", session.getStrDate());\n intent.putExtra(\"sess_city\", session.getCity());\n\n\n intent.putExtra(\"mode\", 1);\n parent.getContext().startActivity(intent);\n\n\n }", "public String navigatePlanoEnsinoList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"PlanoEnsino_items\", this.getSelected().getPlanoEnsinoList());\n }\n return \"/pages/prime/planoEnsino/index\";\n }", "void clickNextStation();", "@SuppressLint(\"ShowToast\")\n\tpublic void slikaClick(View v) {\n\t\tIntent i = new Intent(MainActivity.this, EdnaKnigaActivity.class);\n\n\t\tswitch (v.getId()) {\n\t\tcase R.id.slika1:\n\t\t\ti.putExtra(\"naslov\", myList.get(0).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(0).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(0).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(0).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(0).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(0).get(\"opis\"));\n\n\t\t\tbreak;\n\t\tcase R.id.slika2:\n\t\t\ti.putExtra(\"naslov\", myList.get(1).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(1).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(1).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(1).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(1).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(1).get(\"opis\"));\n\n\t\t\tbreak;\n\t\tcase R.id.slika3:\n\t\t\ti.putExtra(\"naslov\", myList.get(2).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(2).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(2).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(2).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(2).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(2).get(\"opis\"));\n\t\t\tbreak;\n\t\tcase R.id.slika4:\n\t\t\ti.putExtra(\"naslov\", myList.get(3).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(3).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(3).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(3).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(3).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(3).get(\"opis\"));\n\t\t\tbreak;\n\t\tcase R.id.slika5:\n\t\t\ti.putExtra(\"naslov\", myList.get(4).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(4).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(4).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(4).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(4).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(4).get(\"opis\"));\n\t\t\tbreak;\n\t\tcase R.id.slika6:\n\t\t\ti.putExtra(\"naslov\", myList.get(5).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(5).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(5).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(5).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(5).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(5).get(\"opis\"));\n\t\t\tbreak;\n\t\tcase R.id.slika7:\n\t\t\ti.putExtra(\"naslov\", myList.get(6).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(6).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(6).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(6).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(6).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(6).get(\"opis\"));\n\t\t\tbreak;\n\t\tcase R.id.slika8:\n\t\t\ti.putExtra(\"naslov\", myList.get(7).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(7).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(7).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(7).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(7).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(7).get(\"opis\"));\n\t\t\tbreak;\n\t\tcase R.id.slika9:\n\t\t\ti.putExtra(\"naslov\", myList.get(8).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(8).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(8).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(8).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(8).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(8).get(\"opis\"));\n\t\t\tbreak;\n\t\tcase R.id.slika10:\n\t\t\ti.putExtra(\"naslov\", myList.get(9).get(\"naslov\"));\n\t\t\ti.putExtra(\"avtor\", myList.get(9).get(\"avtor\"));\n\t\t\ti.putExtra(\"cena\", myList.get(9).get(\"cena\"));\n\t\t\ti.putExtra(\"slika_url\", myList.get(9).get(\"slika_url\"));\n\t\t\ti.putExtra(\"rejting\", myList.get(9).get(\"rejting\"));\n\t\t\ti.putExtra(\"opis\", myList.get(9).get(\"opis\"));\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tstartActivity(i);\n\t}", "@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }", "void onConnectedToWebService() {\n invalidateOptionsMenu();\n scenesFragment.setConnectStatusIndicator(status.OPEN);\n //mOBSWebSocketClient.getScenesList();\n }", "public void btoAceptar_onClick(View view) {\n getData();\n }", "public void modifHandler(ActionEvent event) throws Exception\n\t{\n\t\t\n\t\t String id= new String();\n\t\t\tfor (Button bouton : list_bouton)\n\t\t\t{\n\t\t\t\tif(event.getSource()==bouton)\n\t\t\t\t{\n\t\t\t bouton.setOnAction(new EventHandler<ActionEvent>() {\n\t private String args;\n\n\t\t\t\t@Override\n\t\t\t public void handle(ActionEvent arg0) {\n\t\t\t\t\t try {\n\t\t\t\t\t\t//choisir l'activité à modifier\n\t\t\t\t\t mod= new ChoixActiviteModif();\n\t\t\t\t\t} catch (Exception e) {e.printStackTrace();} \n\t\t\t\t\t\t}});\n\t\t\t ChoixControler.selectedDomaine=bouton.getId();\n\t\t\t }\n\t\t\t }\n\t\t\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActRecommend.class);\n//\t\t\t\t \n//\t\t\t\t Bundle bundle=new Bundle();\n//\t\t\t\t bundle.putInt(\"id\", 1);\n//\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Cursor cursor = ResolverHelper.getData((int) id, MainListaActivity.this.getContentResolver());\n Bundle bundle = new Bundle();\n while(cursor.moveToNext()){\n bundle.putString(Constants._ID,cursor.getString(0));\n bundle.putString(Constants.PRODUCENT,cursor.getString(1));\n bundle.putString(Constants.MODEL_NAME,cursor.getString(2));\n bundle.putString(Constants.ANDR_VER,cursor.getString(3));\n bundle.putString(Constants.WWW,cursor.getString(4));\n }\n cursor.close();\n Intent intent = new Intent(MainListaActivity.this,PhoneActivity.class);\n intent.putExtras(bundle);\n startActivity(intent);\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tint id=v.getId();\n\t\t\n\t\tif(id==R.id.btnnexts){\n\t\t\t\n\t\t\tIntent in=new Intent(getApplicationContext(),ShortSharpSensation.class);\n\t\t\tstartActivity(in);\n\t\t\tfinish();\n\t\t}\n\n\t\tif(id==R.id.buythis){\n\t\t\t\n\t\t\tGskDatabase mdatabaseObj = new GskDatabase(getApplicationContext());\n\t\t\tmdatabaseObj.openDB();\n\t\t\tString sensodyne_id = mdatabaseObj.getBrandId(\"Sensodyne\");\n\t\t\tEditor e2 = this.getSharedPreferences(\"brand_count\",\n\t\t\t\t\tContext.MODE_WORLD_READABLE).edit();\n\n\t\t\te2.putString(\"brand\", \"Sensodyne\");\n\t\t\te2.putString(\"brand_id\", sensodyne_id);\n\t\t\te2.putString(\"count_status\", \"Yes\");\n\t\t\te2.commit();\n\n\t\t\tIntent intent = new Intent(getApplicationContext(),Sales_Record.class);\n\t\t\tstartActivity(intent);\n\t\t\tfinish();\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void mostrarInstitucionAcceso(int institucion){\r\n periodoS=null;\r\n \r\n institucionAcceso=new institucionAccesoDAO().mostrarInstitucionAcceso(institucion);\r\n //LISTADO PERIODO INSTITUCION\r\n \r\n periodoL=new periodoDAO().mostrarPeriodoInstitucion(institucion);\r\n \r\n if (periodoL.size() >0){\r\n periodoS=periodoL.get(0).getPeriodo();\r\n }\r\n cargarMenu();\r\n }", "@Override\n public void onClick(View v) {\n queryMain = svBusqueda.getQuery();\n Toast.makeText(getApplicationContext(),\"ejecutando consulta \"+queryMain,Toast.LENGTH_LONG).show();\n consultarDb();\n }", "public void btnContinuarInterfaz(View view){\n\n String IdCategoria = getIntent().getStringExtra(\"IdCategoria\");\n String IdNivel = getIntent().getStringExtra(\"IdNivel\");\n String contPregPut = getIntent().getStringExtra(\"IndicePreg\");\n String iContador = getIntent().getStringExtra(\"iContador\");\n String IndicePreg = getIntent().getStringExtra(\"IndicePreg\");\n\n String contTotalPreg = getPreguntasTotal(IdCategoria, IdNivel );\n\n int nuevoIndice = Integer.parseInt(IndicePreg);;\n int nuevoIContador = Integer.parseInt(iContador);\n\n if ( Integer.parseInt(contPregPut) < Integer.parseInt(contTotalPreg) ){\n nuevoIndice++; //no tocar el indice\n nuevoIContador++;\n\n }else{\n\n if ( Integer.parseInt(contPregPut) >= Integer.parseInt(contTotalPreg) ){\n // Toast.makeText(this, \"Entro\", Toast.LENGTH_SHORT).show();\n System.out.println( \" ------------- Limite total de las preguntas ------------------\" );\n System.out.println();\n\n }else{\n nuevoIndice = Integer.parseInt(contTotalPreg) - 1;\n nuevoIContador = nuevoIContador;\n }\n }\n\n //Metodo que me permite crear variable\n Intent interfaz = new Intent(this,MainRetoSaber.class);\n interfaz.putExtra(\"IdCategoria\", IdCategoria );\n interfaz.putExtra(\"IdNivel\", IdNivel );\n interfaz.putExtra(\"iContador\", String.valueOf(nuevoIContador) );\n interfaz.putExtra(\"IndicePreg\", String.valueOf(nuevoIndice) );\n interfaz.putExtra(\"IdEstudio\", consultarEstudioUltimaId() ); // todo posible error\n //Activa la intent y envia el objeto con la variable.\n startActivity(interfaz);\n finish();\n\n }", "private void solicitarDatos() {\n Intent intent = Henson.with(this).gotoAlumnoActivity().edad(mAlumno.getEdad()).nombre(\n mAlumno.getNombre()).build();\n startActivityForResult(intent, RC_ALUMNO);\n }", "@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\tMyShareEntity MF1= list.get(i);\n\t\t\t\t\t\tIntent it = new Intent(mContext,SharingCenterDetail.class);\n\t\t\t\t\t\t\n\t\t\t\t\t\tit.putExtra(\"sid\", MF1.getId());\n\t\t\t\t\t\tit.putExtra(\"pid\", MF1.getPERSONID());\n\t\t\t\t\t\tit.putExtra(\"pname\", MF1.getName());\n\t\t\t\t\t\t\n\t\t\t\t\t\tmContext.startActivity(it);\n\t\t\t\t\t}", "@Override\n public void onClick(View v) {\n startBrowserActivity(MODE_SONIC, StorageNews.get(0).webUrl);\n //Log.d(\"NNNNN\",StorageNews.toString());\n }", "@Listen(\"onClick =#asignarEspacio\")\n\tpublic void Planificacion() {\n\t\tString dir = \"gc/espacio/frm-asignar-espacio-recursos-catalogo.zul\";\n\t\tclearDivApp(dir);\n\t\t// Clients.evalJavaScript(\"document.title = 'ServiAldanas'; \");\n\t}", "private void getCambiosEstudio(){\n mCambiosEstudio = estudioAdapter.getListaCambiosEstudioSinEnviar();\n //ca.close();\n }", "private void gestionAlarmeTpsReel() {\r\n\t\tint cptCapteur = 0;\r\n\t\tboolean blAlert = false;\r\n\t\tboolean blTrouve = false;\r\n\t\tString strSql = \"\";\r\n\t\tResultSet result = null;\r\n\t\tint voieApi = -1;\r\n\r\n\t\t// Lecture de la table AlarmeEnCours\r\n\t\tstrSql = \"SELECT V2_AlarmeEnCours.*, Capteur.VoieApi AS CapteurVoieApi, Capteur.Alarme, Capteur.Description, Capteur.TypeCapteur, Capteur.Nom, Capteur.Inhibition, Capteur.idAlarmeService,\"\r\n\t\t\t + \" Equipement.NumeroInventaire \"\r\n\t\t\t + \" FROM (V2_AlarmeEnCours LEFT JOIN (Capteur LEFT JOIN Equipement ON Capteur.idEquipement = Equipement.idEquipement)\"\r\n\t\t\t + \" ON V2_AlarmeEnCours.idCapteur = Capteur.idCapteur)\"\r\n\t\t\t + \" WHERE Capteur.idAlarmeService = \" + EFS_Constantes.gestionUtilisateur.getIdAlarmeService();\r\n\t\tresult = ctn.lectureData(strSql);\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\tcptCapteur++;\r\n\t\t\t\t// voie traitée\r\n\t\t\t\tvoieApi = result.getInt(\"CapteurVoieApi\") - 1;\r\n\t\t\t\t// Regarder si déjà dans la liste\r\n\t\t\t\tblTrouve = false;\r\n\t\t\t\tfor(int i = 0; i < mdlTpsReelAlarme.getRowCount(); i++) {\r\n\t\t\t\t\tif(mdlTpsReelAlarme.getIdCapteur(i) == result.getInt(\"idCapteur\")) {\r\n\t\t\t\t\t\t// Mettre à jour la valeur\r\n\t\t\t\t\t\tif(result.getInt(\"TypeCapteur\") == CAPTEUR_ANALOGIQUE_ENTREE) {\r\n\t\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt((EFS_Client_Variable.tbValeurAI[voieApi] + EFS_Client_Variable.tbCalibrationAI[voieApi]) / 10, i, JTABLE_ALARME_VALEUR);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt((double)EFS_Client_Variable.tbValeurDI[voieApi], i, JTABLE_ALARME_VALEUR);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt(result.getDate(\"DateDisparition\"), i, JTABLE_ALARME_DISPARITION);\r\n\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt(result.getDate(\"DateApparition\"), i, JTABLE_ALARME_APPARITION);\r\n\t\t\t\t\t\tmdlTpsReelAlarme.setValueAt(result.getDate(\"DatePriseEnCompte\"), i, JTABLE_ALARME_PRISE_EN_COMPTE);\r\n\t\t\t\t\t\tblTrouve = true;\r\n\t\t\t\t\t} // Fin if\r\n\t\t\t\t} // Fin for i\r\n\t\t\t\tif(!blTrouve) {\r\n\t\t\t\t\tif(result.getInt(\"Alarme\") == ALARME_ALERT) {\r\n\t\t\t\t\t\tblAlert = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tblAlert = false;\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tif ((result.getInt(\"Inhibition\") != ALARME_INHIBITION) && (result.getInt(\"blTempo\") == ALARME_TEMPO_DEPASSEE)) {\r\n\t\t\t\t\t\tmdlTpsReelAlarme.addAlarme(new TpsReelAlarme(result.getInt(\"idCapteur\"), result.getString(\"Nom\")\r\n\t\t\t\t\t\t\t\t, result.getString(\"Description\"), result.getString(\"NumeroInventaire\"), result.getDate(\"DateApparition\"),\r\n\t\t\t\t\t\t\t\tresult.getDate(\"DatePriseEnCompte\"), result.getString(\"DescriptionAlarme\")\r\n\t\t\t\t\t\t\t\t, result.getInt(\"VoieApi\"), blAlert, result.getDate(\"DateDisparition\"), result.getInt(\"Alarme\")));\r\n//\t\t\t\t\t} // fin mise en tableau\r\n\t\t\t\t} // fin blTrouve\r\n\t\t\t} // fin while\r\n\t\t} \r\n\t\tcatch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t\tresult = null;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tif (mdlTpsReelAlarme.getRowCount() != cptCapteur) {\r\n\t\t\tmdlTpsReelAlarme.removeAllAlarme();\r\n\t\t\tgestionAlarmeTpsReel();\r\n\t\t}\r\n\t}", "public boolean onLinkClick() {\n for (int t = 0; t < data.size(); t++) {\n if (data.get(t).getActionLink().isClicked()) {\n Cuenta ref = data.get(t);\n List<Cuenta> newData = new LinkedList<Cuenta>();\n List<Cuenta> createQuery = DAO.createQuery(Cuenta.class, null);\n if (ref.getRef() == null || ref.getRef().equals(\"\")) {\n newData.add(ref);\n } else {\n String[] split = ref.getRef().split(\",\");\n for (String sp : split) {\n for (Cuenta c : createQuery) {\n if (c.getIdCuenta().toString().equals(sp)) {\n newData.add(c);\n }\n }\n }\n }\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n newContext();\n setTitle(ref.getDescripcion());\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"data\", new Variable(\"data\", newData, List.class), true);\n UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).getSessionController(UserManager.getContextManager(Integer.parseInt(getContext().getSessionAttribute(\"user\").toString())).actualContext).addVariable(\"page\", new Variable(\"page\", this.getClass(), Class.class), true);\n setRedirect(TablePage.class);\n return true;\n }\n }\n return true;\n }", "@Override\n public void onClick(View v) {\n MainActivity.getMainActivity().loadDetailScreen(station);\n\n }", "@Override\r\n\t public void onClick(View v) {\n\t\tBundle bundle = new Bundle();\r\n\t\tbundle.putString(\"msgKind\", \"TRALOG\");\r\n\t\tbundle.putStringArray(\"msgValue\", traLogStr);\r\n\t\tIntent intent = new Intent(DisplayChoice.this, Display.class);\r\n\t\tintent.putExtras(bundle);\r\n\t\tstartActivity(intent);\r\n\t }", "@ActionTrigger(action=\"QUERY_RECS\")\n\t\tpublic void spriden_QueryRecs()\n\t\t{\n\t\t\t\n\n\t\t\t\tSpridenAdapter spridenElement = (SpridenAdapter)this.getFormModel().getSpriden().getRowAdapter(true);\n\t\t\t\tSgbstdnAdapter sgbstdnElement = (SgbstdnAdapter)this.getFormModel().getSgbstdn().getRowAdapter(true);\n\t\t\t\tSovlcurAdapter sovlcurElement = (SovlcurAdapter)this.getFormModel().getSovlcur().getRowAdapter(true);\n\n\t\t\t\tif(spridenElement!=null && sgbstdnElement!=null && sovlcurElement!=null){\n\n\t\t\t\ttry { \n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(5));\n\t\t\t\t// \n\t\t\t\tnextBlock();\n\t\t\t\t// soundex\n\t\t\t\tnextBlock();\n\t\t\t\t// spraddr \n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\t// sgbstdn \n\t\t\t\texecuteQuery();\n\t\t\t\tnextBlock();\n\t\t\t\t// sfbetrm \n\t\t\t\texecuteQuery();\n\t\t\t\t// execute the query on sovlcur and sovlfos \n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryPidm(spridenElement.getSpridenPidm());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryCode(SbCurriculumStr.fLearner());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryKeySeqno(toNumber(99));\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryTermCode(sgbstdnElement.getSgbstdnTermCodeEff());\n\t\t\t\tgetFormModel().getSCurriculaSummary().setSummaryEndTerm(SbLearner.fQueryEnd(spridenElement.getSpridenPidm(), sgbstdnElement.getSgbstdnTermCodeEff()));\n\t\t\t\tif ( !sgbstdnElement.getSgbstdnTermCodeEff().isNull() )\n\t\t\t\t{\n\t\t\t\t\t// Create SOTVCUR since this is a learner curriculum \n\t\t\t\t\tSoklcur.pCreateSotvcur(/*pPidm=>*/getFormModel().getSCurriculaSummary().getSummaryPidm(), /*pTermCode=>*/getFormModel().getSCurriculaSummary().getSummaryTermCode(), /*pLmodCode=>*/getFormModel().getSCurriculaSummary().getSummaryCode());\n\t\t\t\t\t// Now execute the query on summary blocks \n\t\t\t\t\tgoBlock(\"SOVLCUR\");\n\t\t\t\t\texecuteQuery();\n\t\t\t\t\tif ( !sovlcurElement.getSummaryRowid().isNull() )\n\t\t\t\t\t{\n\t\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\t\texecuteQuery();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\t\tclearBlock();\n\t\t\t\t\t}\n\t\t\t\t\tgoBlock(\"SFBETRM\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tgoBlock(\"SOVLFOS\");\n\t\t\t\t\tclearBlock();\n\t\t\t\t\tgoBlock(\"SOVLCUR\");\n\t\t\t\t\tclearBlock();\n\t\t\t\t}\n\t\t\t\t// - sgbstdn term is not null \n\t\t\t\tgoBlock(\"SFBETRM\");\n\t\t\t\tpreviousBlock();\n\t\t\t\t// sgbstdn\n\t\t\t\tpreviousBlock();\n\t\t\t\t// spraddr\n\t\t\t\tpreviousBlock();\n\t\t\t\t// soundex \n\t\t\t\tpreviousBlock();\n\t\t\t\t// spriden \n\t\t\t\t// \n\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t\t\t\t\n\t\t\t\t\tMessageServices.setMessageLevel(OracleMessagesLevel.decodeMessageLevel(0));\n\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n\tpublic void goToUIPrestamo() {\n\t\tif(uiHomePrestamo!=null){\n\t\t\tif(!uiHomePrestamo.getModo().equals(\"HISTORIAL\")){\n\t\t\t\tuiHomePrestamo.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\t}\t\t\n\t\t\tuiHomePrestamo.getContainer().showWidget(0);\n\t\t\tuiHomePrestamo.getUIPrestamoImpl().cargarTabla();\n\t\t}else if(uiHomeCobranza!=null){\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\tuiHomeCobranza.getContainer().showWidget(1);\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().cargarPrestamoGestorCobranza();\n\t\t}\n\t\t\t\t\t\n\t}", "@Override\n\tpublic void goToUIMantAmortizacion(String modo) {\n\t\t\t\tif (modo.equalsIgnoreCase(constants.modoNuevo())) {\n\t\t\t\t\tif(uiHomePrestamo!=null){\n\t\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().setModo(modo);\n\t\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().setBean(null,beanPrestamo,lblADevolver.getText());\n\t\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().activarCampos();\n\t\t\t\t\t\tuiHomePrestamo.getContainer().showWidget(4);\t\t\t\t\t\n\t\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().refreshScroll();\n\t\t\t\t\t}else if(uiHomeCobranza!=null){\n\t\t\t\t\t\tuiHomeCobranza.getUiMantAmortizacionImpl().setModo(modo);\n\t\t\t\t\t\tuiHomeCobranza.getUiMantAmortizacionImpl().setBean(null,beanPrestamo,lblADevolver.getText());\n\t\t\t\t\t\tuiHomeCobranza.getUiMantAmortizacionImpl().setBeanGestorCobranza(beanGestorCobranza);\n\t\t\t\t\t\tuiHomeCobranza.getUiMantAmortizacionImpl().activarCampos();\n\t\t\t\t\t\tuiHomeCobranza.getContainer().showWidget(3);\t\t\t\t\t\n\t\t\t\t\t\tuiHomeCobranza.getUiMantAmortizacionImpl().refreshScroll();\n\t\t\t\t\t}\n\t\t\t\t} else if (modo.equalsIgnoreCase(constants.modoEliminar())) {\n\t\t\t\t\tAmortizacionProxy bean = grid.getSelectionModel().getSelectedObject();\n\t\t\t\t\t//Window.alert(bean.getIdCliente());\n\t\t\t\t\tif (bean == null){\n\t\t\t\t\t\t//Dialogs.alert(constants.alerta(), constants.seleccionAmortizacion(), null);\n\t\t\t\t\t\t//Window.alert(constants.seleccionAmortizacion());\n\t\t\t\t\t\tNotification not=new Notification(Notification.ALERT,constants.seleccionAmortizacion());\n\t\t\t\t\t\tnot.showPopup();\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().setModo(modo);\n\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().setBean(bean,beanPrestamo,lblADevolver.getText());\n\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().activarCampos();\n\t\t\t\t\tuiHomePrestamo.getContainer().showWidget(4);\t\t\t\t\t\n\t\t\t\t\tuiHomePrestamo.getUiMantAmortizacionImpl().refreshScroll();\n\t\t\t\t}\n\t}", "private void btnExecutarLabirinto(){\n log.setText(\"Log de erros\");\n botao[2].setEnabled(false);\n try{\n lab.encontrarAdj();\n lab.andadinha();\n info.setText(\" \");\n visor.setText(lab.toString());\n\n Pilha<Coordenada> caminho = lab.getCaminho();\n Pilha<Coordenada> inverso = new Pilha<Coordenada>();\n while(!caminho.isVazia())\n {\n inverso.guardeUmItem(caminho.recupereUmItem());\n caminho.removaUmItem();\n }\n\n log.setText(\"Caminho percorrido: \");\n while(!inverso.isVazia())\n {\n log.setText(log.getText() + inverso.recupereUmItem().toString() + \" \");\n inverso.removaUmItem();\n }\n }\n catch(Exception erro1){\n log.setText(erro1.getMessage());\n }\n\t\t}", "public void onClick(View v) {\n switch (v.getId()) {\n case R.id.hsmic:\n\n // getting values from selected ListItem\n\n // Starting new intent\n Intent in = new Intent(getActivity().getApplicationContext(),\n EditData.class);\n // je récupère le PID de la donnée cliquée\n in.putExtra(TAG_PID, id_hsmic);\n\n\n // starting new activity and expecting some response back\n startActivityForResult(in, 100);\n\n break;\n case R.id.msmic:\n\n // getting values from selected ListItem\n\n // Starting new intent\n Intent in2 = new Intent(getActivity().getApplicationContext(),\n EditData.class);\n // sending pid to next activity\n in2.putExtra(TAG_PID, id_msmic);\n\n\n // starting new activity and expecting some response back\n startActivityForResult(in2, 100);\n\n break;\n case R.id.ming:\n\n // getting values from selected ListItem\n\n // Starting new intent\n Intent in3 = new Intent(getActivity().getApplicationContext(),\n EditData.class);\n // sending pid to next activity\n in3.putExtra(TAG_PID, id_ming);\n\n\n // starting new activity and expecting some response back\n startActivityForResult(in3, 100);\n\n break;\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t Intent intent=new Intent(ActMore.this,ActInfo.class);\n\t\t\t\t \n\t\t\t\t Bundle bundle=new Bundle();\n\t\t\t\t bundle.putInt(\"id\", 0);\n\t\t\t\t intent.putExtras(bundle);\n\t\t ActMore.this.startActivity(intent);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.btnXMLSerializer:\r\n\r\n\t\t\tManuscripts manuscript = new Manuscripts();\r\n\t\t\tAccessories accessories = new Accessories();\r\n\t\t\ttry {\r\n\t\t\t\tXMLDataHandle.Serializer(Build(manuscript), Build(accessories),\r\n\t\t\t\t\t\t\"TestXMLData\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLogger.e(e);\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnOperationLog:\r\n\t\t\tLogger.o(Logger.OperationMessage.CreateM);\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnSystemLog:\r\n\t\t\tint a = 5;\r\n\t\t\tint b = 0;\r\n\t\t\tint c;\r\n\t\t\ttry {\r\n\t\t\t\tc = a / b;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLogger.e(e);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\r\n\t\tcase R.id.btnAddPic:\r\n\t\t\tIntent intent = new Intent(this, ManagePicAccessoryActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnAddVideo:\r\n\t\t\tTimeZone zone = TimeZone.getDefault();\r\n\t\t\tString timeString = TimeFormatHelper.getGMTTime(new Date());\r\n\t\t\t//Toast.makeText(this, timeString, Toast.LENGTH_LONG).show();\r\n\t\t\tToastHelper.showToast(timeString,Toast.LENGTH_SHORT);\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnAddVoice:\r\n\t\t\tManuscriptsService service = new ManuscriptsService(this);\r\n\t\t\tservice.deleteAllManuscripts();\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnAddMC:\r\n\t\t\tIntent editIntent = new Intent(this, AddManuscriptsActivity.class);\r\n\t\t\teditIntent.putExtra(\"id\", \"\");\r\n\t\t\tstartActivity(editIntent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnEditingList_wyj:\r\n\t\t\tIntent editingIntent = new Intent(this, EditingManuscriptsActivity.class);\r\n\t\t\tstartActivity(editingIntent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnEliList_wyj:\r\n\t\t\tIntent edliIntent = new Intent(this, EliminationManuscriptsActivity.class);\r\n\t\t\tstartActivity(edliIntent);\r\n\t\t\tbreak;\r\n\t\tcase R.id.btnSendToList_wyj:\r\n//\t\t\tIntent sendIntent = new Intent(this, FileManagerActivity.class);\r\n//\t\t\tstartActivity(sendIntent);\r\n\t\t\tSystem.exit(0);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override \n public void onClick(View v) {\n simpandata();\n }", "public String doDetail(){\n if(idsecteur==null){\n this.addActionError(getText(\"error.topo.missing.id.\"));\n }else secteur = managerFactory.getSecteurManager().getbynid(idsecteur);\n {\n // this.addActionError(\"il n'y a pas de projet pour ce numéro \"+idtopo );\n\n\n }\nreturn (this.hasErrors())? ActionSupport.ERROR : ActionSupport.SUCCESS;\n\n }", "public void Neurologist(View view) {\n Intent intent = new Intent(ActivityMain.this, ActivityDoctorListBySp.class);\n intent.putExtra(\"TAG\", \"Neurologist\");\n startActivity(intent);\n }", "public void rechercheEtudiantInscripEcheanceParMatricule(){\r\n try { \r\n setViewEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findByMatricule(getViewEtudiantInscripEcheance().getMatricule())); \r\n \r\n //initialisation des echeances\r\n// viewEtudiantInscripEcheance.setVers1(0); \r\n// viewEtudiantInscripEcheance.setVers2(0); \r\n// viewEtudiantInscripEcheance.setVers3(0); \r\n// viewEtudiantInscripEcheance.setVers4(0); \r\n// viewEtudiantInscripEcheance.setVers5(0); \r\n// viewEtudiantInscripEcheance.setVers6(0); \r\n } catch (Exception e) {\r\n FacesMessage message = new FacesMessage(\"Accun étudiant n'a été trouvé! \");\r\n message.setSeverity(FacesMessage.SEVERITY_WARN);\r\n FacesContext.getCurrentInstance().addMessage(null, message); \r\n \r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n } \r\n }", "public void gaaTilDetaljVisning(ActionEvent actionEvent) {\n Main minApplikasjon = Main.getInstance();\n\n // Kaller metoden for å gå til listevisningen\n minApplikasjon.gaaTilHovedVisning();\n }", "public String doMesSecteurs() {\n\t\tmembre = (Membre) session.get(\"membre\");\n\t\tsites = siteService.lister(membre.getId());\n\t\t\n\t\tfor (Site site : sites) {\n\t\t\tif(site.getId() == id) {\n\t\t\t\tthis.site = site;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsecteurs = site.getSecteurs();\n\t\tsession.put(\"site\", site);\n\t\treturn SUCCESS;\n\t}", "public void actionPerformed(ActionEvent arg0) {\n\r\n try {\r\n // Aplicacion Comprador\r\n if (ac != null) {\r\n System.out.println(\"Obteniendo ServiciosCompradorModelo\");\r\n sm = (ServiciosCompradorModelo) ac.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosCompradorModelo) sm.login((pl.getTxtCUsuario())\r\n .getText(), (pl.getTxtPassword()).getText(), true);\r\n \r\n ac.setSm((ServiciosCompradorRegistradoModelo)sm);\r\n \r\n System.out.println(\"Mostrando menu de usuario registrado\");\r\n ac.setMenuRegistrado();\r\n\r\n } else {\r\n System.out.println(\"***\\nObteniendo serviciosAccesoModelo\");\r\n \r\n sm = (ServiciosAccesoModelo) ae.getSm();\r\n System.out.println(\"Realizando login\");\r\n sm = (ServiciosAccesoModelo) sm.login((pl.getTxtCUsuario()).getText(),\r\n (pl.getTxtPassword()).getText(), false);\r\n \r\n if (sm instanceof ServiciosAdAuxModelo) {\r\n\t\t\t\t\tae.setMenuAdAux();\r\n\t\t}else if(sm instanceof ServiciosCocinaModelo) {\r\n\t\t\tae.setMenuCocina();\t\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Que servicios tenemos?\");\r\n\t\t}\r\n \r\n ae.setSm(sm);\r\n }\r\n\r\n // Actualizamos los servicios de la aplicacion a cliente registrado\r\n pl.setVisible(false);\r\n\r\n } catch (MalformedURLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (RemoteException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorConexionBD e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (errorSQL e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (NotBoundException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n\r\n }", "public void pindah_ke_log(View v)\n {\n Intent dashboard = new Intent(DashboardUser.this,BuyerTransactionActivity.class) ;\n dashboard.putExtra(\"param1\",value1);\n dashboard.putExtra(\"param2\",value2);\n dashboard.putExtra(\"param3\",value3);\n dashboard.putExtra(\"param4\",value4);\n dashboard.putExtra(\"param5\",value5);\n// SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n// SharedPreferences.Editor editor = sharedPreferences.edit();\n// editor.putString(TEXT, value1);\n// editor.putString(SWITCH, value2);\n// editor.apply();\n startActivityForResult(dashboard, 100);\n }", "public void resta(View v){\n presenter.Operacion(main_number_one.getText().toString(),main_number_two.getText().toString(),2);\n }", "@Override\n public void onClick(View v) {\n Intent p1page = new Intent(v.getContext(), AshmoleanMusuem.class);\n startActivity(p1page);\n }", "@Override\n public void onClick(View v) {\n EliminarLibroCarrito hconexion=new EliminarLibroCarrito();\n\n hconexion.execute(String.valueOf(items.get(i).getId()));\n //parent.renderizarInformacion();\n\n }", "public void seleccionSitio() {\r\n\t\tif (sitioId != null) {\r\n\t\t\tsitio = hashSitios.get(sitioId);\r\n\t\t\tcargarEstudiantesSitio();\r\n\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\tSystem.out.println(libres);\r\n\t\t}\r\n\t}", "@Override\n public void onSliderClick(BaseSliderView slider) {\n if (type.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())).equals(\"12\")){\n Intent intent = new Intent(context,GoodListActivity.class);//商品列表\n intent.putExtra(\"id\",tid.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())));\n intent.putExtra(\"type\",\"cate_id\");\n context.startActivity(intent);\n }else if (type.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())).equals(\"0\")){ // web url\n Intent intent = new Intent(context, WebActivity.class);\n intent.putExtra(\"url\",tid.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())));\n context.startActivity(intent);\n }\n else if (type.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())).equals(\"21\")){\n Intent intent = new Intent(context, GoodInfoActivity.class);\n intent.putExtra(\"goodID\",tid.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())));\n intent.putExtra(\"come\",\"other\");\n context.startActivity(intent);\n }\n else {\n\n }\n }", "@Override\n public void onSliderClick(BaseSliderView slider) {\n if (type.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())).equals(\"12\")){\n Intent intent = new Intent(context,GoodListActivity.class);//商品列表\n intent.putExtra(\"id\",tid.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())));\n intent.putExtra(\"type\",\"cate_id\");\n context.startActivity(intent);\n }else if (type.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())).equals(\"0\")){ // web url\n Intent intent = new Intent(context, WebActivity.class);\n intent.putExtra(\"url\",tid.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())));\n context.startActivity(intent);\n }\n else if (type.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())).equals(\"21\")){\n Intent intent = new Intent(context, GoodInfoActivity.class);\n intent.putExtra(\"goodID\",tid.get(Integer.parseInt(slider.getBundle().get(\"extra\").toString())));\n intent.putExtra(\"come\",\"other\");\n context.startActivity(intent);\n }\n else {\n\n }\n }", "public void sendeSpielStarten();", "public void btnActualizarSecuencia()\r\n/* 653: */ {\r\n/* 654:727 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null;\r\n/* 655:728 */ PuntoDeVenta puntoDeVenta = AppUtil.getPuntoDeVenta();\r\n/* 656: */ try\r\n/* 657: */ {\r\n/* 658:731 */ if (puntoDeVenta != null) {\r\n/* 659:732 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, this.facturaProveedorSRI\r\n/* 660:733 */ .getFechaEmisionRetencion());\r\n/* 661: */ }\r\n/* 662:735 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), this.facturaProveedorSRI\r\n/* 663:736 */ .getFechaEmisionRetencion());\r\n/* 664: */ \r\n/* 665:738 */ this.facturaProveedorSRI.setNumeroRetencion(numero);\r\n/* 666:739 */ this.facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion());\r\n/* 667: */ }\r\n/* 668: */ catch (ExcepcionAS2 e)\r\n/* 669: */ {\r\n/* 670:741 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage());\r\n/* 671: */ }\r\n/* 672: */ }", "public void mostrarInformacion(){\n mostrarInformacionP();\n }", "public void onClick(View v) {\n timeWhenStopped = tiempo.getBase() - SystemClock.elapsedRealtime();\n tiempo.stop();\n tiempoFinal = (timeWhenStopped / 1000);\n\n SharedPreferences sharedpreferences = getActivity().getSharedPreferences(MyPREFERENCES, Context.MODE_MULTI_PROCESS);\n SharedPreferences.Editor editor = sharedpreferences.edit();\n editor.putString(EstadoDelViaje, \"fin\");\n editor.putString(TiempoFinal, Float.toString(tiempoFinal));\n editor.commit();\n\n MainActivity m = (MainActivity)getActivity();\n m.displayView(0);\n\n finalizarServicio();\n\n Bundle args = new Bundle();\n FragmentDialogYuberCalificar newFragmentDialog = new FragmentDialogYuberCalificar();\n newFragmentDialog.setArguments(args);\n newFragmentDialog.setCancelable(false);\n newFragmentDialog.show(getActivity().getSupportFragmentManager(), \"TAG\");\n }" ]
[ "0.6257018", "0.5972999", "0.59319156", "0.59298086", "0.59237957", "0.5889679", "0.5860201", "0.58510685", "0.58301854", "0.5808693", "0.5795376", "0.5759444", "0.5747385", "0.57385737", "0.57084054", "0.57055336", "0.5674989", "0.56688666", "0.5613468", "0.56032944", "0.5593361", "0.5582805", "0.55749536", "0.5562563", "0.5529526", "0.5513072", "0.55073774", "0.5495873", "0.5466875", "0.54590356", "0.5458714", "0.54536694", "0.54204655", "0.54186845", "0.54115546", "0.54050374", "0.53970116", "0.5395431", "0.53889585", "0.538868", "0.53883916", "0.5380202", "0.5377005", "0.5368534", "0.5363711", "0.5354644", "0.5351813", "0.53514355", "0.53478694", "0.5344706", "0.5343361", "0.5339017", "0.53255653", "0.5317618", "0.5308591", "0.5307332", "0.5306339", "0.5305953", "0.53036547", "0.5300691", "0.5277056", "0.52683246", "0.526758", "0.5263135", "0.5262962", "0.5257512", "0.5255355", "0.52506125", "0.5248189", "0.5237033", "0.5235608", "0.52353823", "0.5234196", "0.5230683", "0.5224245", "0.5220477", "0.52142155", "0.5213098", "0.52124554", "0.52112466", "0.52089244", "0.52083933", "0.5203902", "0.5193823", "0.5186964", "0.51828676", "0.51787305", "0.51758265", "0.516745", "0.5167159", "0.51661825", "0.51643705", "0.516206", "0.5161546", "0.51608264", "0.51596487", "0.51596487", "0.5157113", "0.51550883", "0.51523125", "0.5150441" ]
0.0
-1
init service and load data
private void setup() { adapter = new HomeAdapter(this); linearLayoutManager = new LinearLayoutManager (this, LinearLayoutManager.VERTICAL, false); rv.setLayoutManager(linearLayoutManager); rv.setItemAnimator(new DefaultItemAnimator()); rv.setAdapter(adapter); showWait(); if (NetworkUtils.isNetworkConnected(this)) { presenter.loadPage(currentPage); } else { onFailure(NetworkError.NETWORK_ERROR_MESSAGE); } rv.addOnScrollListener(new PaginationScrollListener(linearLayoutManager) { @Override protected void loadMoreItems() { AppLogger.d(TAG,"currentPage:"+currentPage); isLoading = true; currentPage += 1; presenter.loadPage(currentPage); } @Override public int getTotalPageCount() { AppLogger.d(TAG,"TOTAL_PAGES:"+TOTAL_PAGES); return TOTAL_PAGES; } @Override public boolean isLastPage() { return isLastPage; } @Override public boolean isLoading() { return isLoading; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initService() {\r\n\t}", "private void initData() {\n requestServerToGetInformation();\n }", "public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"constraints=\"+constraintMap);\r\n\t\tif (LightStr.isEmpty(dsId)){\r\n\t\t\tif (BeanFactory.getBeanFactory().getDataService(\"default\")==null) dsId=\"default\"; else dsId=LightUtil.getHashCode();\r\n\t\t}\r\n\t\tBeanFactory.getBeanFactory().addDataService(dsId, this);\r\n\t}", "public void service_INIT(){\n }", "public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }", "public static void initService() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://166.111.68.66:2042/news/\")\n .addConverterFactory(new Converter.Factory() {\n Gson gson = new Gson();\n\n @Override\n public Converter<ResponseBody, ?> responseBodyConverter(final Type type, final Annotation[] annotations, Retrofit retrofit) {\n return new Converter<ResponseBody, Object>() {\n @Override\n public Object convert(ResponseBody value) throws IOException {\n try {\n return gson.getAdapter(TypeToken.get(type)).fromJson(value.charStream());\n } finally {\n value.close();\n }\n }\n };\n }\n }).build();\n newsdetailHttpService = retrofit.create(GetNewsDetailService.NewsDetailHttpService.class);\n }", "private void initData() {\n boolean monitoring = (boolean) SPUtils.get(this,SPUtils.SP_MONITOR_MONITORING,false);\n boolean boot = (boolean) SPUtils.get(this,SPUtils.SP_MONITOR_BOOT,false);\n\n sw_boot.setChecked(boot);\n sw_speed_noti.setChecked(monitoring);\n if (!monitoring){\n sw_boot.setEnabled(false);\n }else {\n if(!ServiceUtils.isServiceRunning(this,NetMonitorService.class.getName())){\n startMonitorService();\n }\n }\n\n }", "private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }", "private void initService() {\n\t\tavCommentService = new AvCommentService(getApplicationContext());\n\t}", "private void initDataLoader() {\n\t}", "private void initData() {\n }", "private void initData(){\n\n }", "public void init() throws ServletException {\n\t\tservice = new GoodInfoDao();\n\t}", "private void initData() {\n\n }", "public void initData() {\n }", "public void initData() {\n }", "@PostConstruct\n public void init() {\n try {\n String contentFile = PlatformUtils.fileToString(TALKS_FILE_PATH, getClass().getClassLoader());\n loadTalks(PlatformUtils.parseToJson(contentFile));\n } catch (IOException e) {\n logger.log(Level.WARNING, \"An error occurred while loading data\", e);\n }\n }", "@Override\n\tpublic void loadService() {\n\t\t\n\t}", "private void initialize()\n {\n if (null!=cc)\n {\n throw new RuntimeException(\"CorpusServiceI has been initialized already\");\n }\n dataDir = mAdapter.getCommunicator().getProperties().getProperty(\"CVAC.DataDir\");\n logger.log(Level.FINE, \"CorpusService found CVAC.DataDir={0}\", dataDir);\n logger.setLevel(Level.FINEST);\n CorpusI.rootDataDir = dataDir;\n cc = new CorpusConfig();\n corpToImp = new HashMap<String, CorpusI>();\n logger.log(Level.INFO, \"CorpusService initialized\" );\n }", "public void initial(){\t\t\r\n\t\tfundRateService=new FundRateService();\r\n\t}", "@PostConstruct\n public void loadData()\n {\n try \n {\n usu = new RhUsuario();\n \n rol = new RhRol();\n \n uc = new UsuController();\n \n usuList = uc.findAll(usu);\n \n encrypter = new Encryption();\n } \n catch (Exception ex) \n {\n Logger.getLogger(UsuarioManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@ServiceInit\n public void init() {\n }", "private void initData() {\n\t}", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }", "private Iterable<Service> loadServiceData() {\n return services;\n }", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "@PostConstruct\r\n\tpublic void init(){\r\n\t\tconta = new Conta();\r\n\t\tservice = new ContaService();\r\n\t\tconta.setDataAbertura(Calendar.getInstance());\r\n\t}", "private void InitData() {\n\t}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "@Override\n public void init()\n throws InitializationException\n {\n // Create a default configuration.\n String[] def = new String[]\n {\n DEFAULT_RUN_DATA,\n DEFAULT_PARAMETER_PARSER,\n DEFAULT_COOKIE_PARSER\n };\n configurations.put(DEFAULT_CONFIG, def.clone());\n\n // Check other configurations.\n Configuration conf = getConfiguration();\n if (conf != null)\n {\n String key,value;\n String[] config;\n String[] plist = new String[]\n {\n RUN_DATA_KEY,\n PARAMETER_PARSER_KEY,\n COOKIE_PARSER_KEY\n };\n for (Iterator<String> i = conf.getKeys(); i.hasNext();)\n {\n key = i.next();\n value = conf.getString(key);\n int j = 0;\n for (String plistKey : plist)\n {\n if (key.endsWith(plistKey) && key.length() > plistKey.length() + 1)\n {\n key = key.substring(0, key.length() - plistKey.length() - 1);\n config = (String[]) configurations.get(key);\n if (config == null)\n {\n config = def.clone();\n configurations.put(key, config);\n }\n config[j] = value;\n break;\n }\n j++;\n }\n }\n }\n\n\t\tpool = (PoolService)TurbineServices.getInstance().getService(PoolService.ROLE);\n\n if (pool == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Pool Service!\");\n }\n\n parserService = (ParserService)TurbineServices.getInstance().getService(ParserService.ROLE);\n\n if (parserService == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Parser Service!\");\n }\n\n setInit(true);\n }", "public InitService() {\n super(\"InitService\");\n }", "@Override\n public void loadArticles() {\n // start service here => loads articles to DB\n mServiceBinder.startService();\n }", "public void InitData() {\n }", "protected @Override\r\n abstract void initData();", "@PostConstruct\n protected void init() {\n direccionRegionalList = new ArrayList<InstitucionRequerida>();\n direccionRegionalList = institucionRequeridaServicio.getDireccionRegionalList();\n gadList = new ArrayList<InstitucionRequerida>();\n gadList = institucionRequeridaServicio.getGADList();\n registroMixtoList = new ArrayList<InstitucionRequerida>();\n registroMixtoList = institucionRequeridaServicio.getRegistroMixtoList();\n }", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "@Override\n\tprotected void initAsService() {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Initiating service...\");\n\t\t}\n\t\trunnerFuture = activityRunner.schedule(this::scanModulesHealth, 500, TimeUnit.MILLISECONDS);\n\t}", "private void initdata() {\n\t\tProgressDialogUtil.showProgressDlg(this, \"加载数据\");\n\t\tProdDetailRequest req = new ProdDetailRequest();\n\t\treq.id = prodInfo.id+\"\";\n\t\tRequestParams params = new RequestParams();\n\t\ttry {\n\t\t\tparams.setBodyEntity(new StringEntity(req.toJson()));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnew HttpUtils().send(HttpMethod.POST, Api.GETGOODSDETAIL, params, new RequestCallBack<String>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tT.showNetworkError(CommodityInfosActivity.this);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ResponseInfo<String> resp) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tProdDetailResponse bean = new Gson().fromJson(resp.result, ProdDetailResponse.class);\n\t\t\t\tLog.e(\"\", \"\"+resp.result);\n\t\t\t\tif(Api.SUCCEED == bean.result_code && bean.data != null) {\n\t\t\t\t\tupview(bean.data);\n\t\t\t\t\tdatas = bean.data;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "public void initData(){\r\n \r\n }", "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "void initData(){\n }", "public void initData() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // number the loaderManager with mPage as may be requesting up to three lots of JSON for each tab\n loaderManager.initLoader(FETCH_STOCK_PICKING_LOADER_ID, null, loadStockPickingFromServerListener);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n View loadingIndicator = getView().findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n mEmptyStateTextView.setText(R.string.error_no_internet_connection);\n }\n }", "public interface loadDataService {\n public List<Row> getComboContent( String sType,String comboType, Map<String,String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public Result getGridContent(PagingObject po, String gridType,Map<String,String[]> parameterMap,String searchText , usersInfo loggedUser,String statusID,String from,String where ) throws Exception;\n public List<listInfo> loadStrukturList(String partID,long langID) throws Exception;\n public finalInfo getOrgInfo(long treeID) throws Exception;\n public categoryFinalInfo getCategoryInfo(long treeID) throws Exception;\n public carriersInfo getCariesInfo(long carryID) throws Exception;\n public carriersInfo getOrganizationInfo(long carryID) throws Exception;\n public List<contact> getOrgContacts(long treeID) throws Exception;\n public person getEmployeeInfo( long empId) throws Exception;\n public List<examples> getExamplesInfo(long exmpID,String langID) throws Exception;\n public List<contact> getPersonContact(long perID) throws Exception;\n public List<docList> loadQRphoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> loadPhoto(Connection con, long exmplID,long picType) throws Exception;\n public List<docList> getExamplesPictures(Connection cc, long relID, long relType) throws Exception;\n public List<examples> getExamplesOperation(Connection cc, long relID, long langID) throws Exception;\n public int checkUser(String uName) throws Exception;\n public int checkDictRecord(String text, int dictType,String org,String pos) throws Exception ;\n public usersInfo loadUserInfo(String pID) throws Exception;\n public List<person> loadEmpList( int OrgID) throws Exception;\n public List<Row> getSelectContent( String type, Map<String, String[]> parameterMap , usersInfo loggedUser) throws Exception;\n public List<subjElement> getADVSearchMenuList(String partID) throws Exception;\n public String getADVInfo(String paramID,String paramVal,String val,String cond,String typ)throws Exception;\n public List<listInfo> loadComboForAdvancedSearch(String prmID,long parametr) throws Exception;\n public List<docList> loadRightPanelPhoto(long realID, int iType) throws Exception;\n public List<categoryFinalInfo> getCategoryStructure(long catID, int id) throws Exception;\n}", "@PostConstruct\n\tpublic void init() {\n\t\tBufferedReader fileReader = null;\n\t\ttry {\n\t\t\tResource resource = resourceLoader.getResource(\"classpath:JetBlue_Airports.csv\");\n\t\t\tfileReader = new BufferedReader(new FileReader(resource.getFile()));\n\t\t\tairportList = CsvReaderUtil.formAirportList(fileReader);\n\t\t\tLOG.info(\"Loaded data from csv file on startup, total airports: {}\", airportList.size());\n\t\t} catch (Exception e) {\n\t\t\tLOG.error(\"Exception: \", e);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileReader.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLOG.error(\"Exception while closing csv file, exception: \", e);\n\t\t\t}\n\t\t}\n\t}", "private void retrieveCurrencyData() {\n Log.d(TAG, \" startService\");\n service = new Intent(this, CurrencyLoaderService.class);\n startService(service); //Starting the service\n bindService(service, mConnection, Context.BIND_AUTO_CREATE);\n\n }", "public void init() {\r\n\tlog.info(\"OsylManagerServiceImpl service init() \");\r\n\t// register functions\r\n\tfor (Iterator<String> i = functionsToRegister.iterator(); i.hasNext();) {\r\n\t String function = i.next();\r\n\t functionManager.registerFunction(function);\r\n\t}\r\n }", "@Override\n public void init(Object data)\n {\n // Rely on injection\n if (schedulerService == null)\n {\n log.error(\"You can not use the SchedulerTool unless you enable \"\n +\"the Scheduler Service!!!!\");\n }\n }", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }", "public ServiceDAO(){\n\t\t\n\t\tString[] tables = new String[]{\"CUSTOMERS\",\"PRODUCTS\"};\n\t\tfor(String table:tables){\n\t\t\tif(!checkIfDBExists(table)){\n\t\t\t\ttry{\n\t\t\t\t\tnew DerbyDataLoader().loadDataFor(table);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlogger.error(\"Error Loading the Data into the Derby\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void initialize() {\n\t\tservice = KCSClient.getInstance(this.getApplicationContext(), new KinveySettings(APP_KEY, APP_SECRET));\n\n BaseKinveyDataSource.setKinveyClient(service);\n }", "@Override\r\n public void init(ServletConfig cfg) {\r\n try {\r\n if (!Service.STARTED) {\r\n Service.CONFIGURATION = new Properties();\r\n for (int i = 0; i < Service.CONFIGURATION_FILES.length; i++) {\r\n this.loadConfiguration(cfg, Service.CONFIGURATION_FILES[i]);\r\n }\r\n \r\n Service.DATASOURCES = new HashMap<>();\r\n for (int i = 0; i < Service.DATASOURCES_NAMES.length; i++) {\r\n this.loadDataSource(Service.DATASOURCES_NAMES[i]);\r\n }\r\n Service.STARTED = true;\r\n }\r\n this.ressources = new HashMap<>();\r\n this.pool = Service.DATASOURCES.get(\"MainPool\");\r\n this.ready = true;\r\n \r\n this.start(cfg);\r\n } catch (DriverException e) {\r\n this.manage(e);\r\n }\r\n }", "protected void loadData()\n {\n }", "public void initData(Controller controller) {\r\n //Initialise controller.\r\n this.controller = controller;\r\n }", "public static void loadService() {\n Optional<EconomyService> optService = Sponge.getServiceManager().provide(EconomyService.class);\n if(optService.isPresent()) {\n service = optService.get();\n isLoaded = true;\n } else {\n isLoaded = false;\n }\n }", "private DataService() {\n\t\tusers = new LinkedHashSet<>();\n\t\tlists = new LinkedHashSet<>();\n\t\ttasks = new LinkedHashMap<>();\n\t\tdbManager = DBManager.getInstance();\n\t\tdbManager.initialize();\n\t\tusers = dbManager.getUsers();\n\n\t\toutputFile = System.getProperty(\"user.dir\")+\"/output/\"+Calendar.getInstance().getTimeInMillis()+\"_Output.txt\";\n\t}", "private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}", "private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}", "@PostConstruct\n protected void init() {\n // Look up the associated batch data\n job = batchService.findByInstanceId(jobContext.getInstanceId());\n }", "private void init() {\n String METHOD = Thread.currentThread().getStackTrace()[1].getMethodName();\n String msg = null;\n String type = ConstantsIF.RESOURCE;\n ConfigurationIF config = null;\n JSONObject json = null;\n Map<String, String> map = null;\n\n _logger.entering(CLASS, METHOD);\n\n /*\n * Get JSON data from the Config object via the Config Manager\n */\n config = _configMgr.getConfiguration(type);\n\n if (config != null) {\n json = config.getJSON();\n if (json == null) {\n msg = CLASS + \": \" + METHOD + \": JSON data for '\" + type + \"' is null\";\n this.setError(true);\n }\n } else {\n msg = CLASS + \": \" + METHOD + \": Configuration for '\" + type + \"' is null\";\n this.setError(true);\n }\n\n /*\n * setup the Mongo Data Access Object\n */\n if (_MongoDAO == null) {\n map = JSON.convertToParams(JSON.getObject(json, ConfigIF.RS_NOSQL));\n\n try {\n _MongoDAO = MongoFactory.getInstance(map);\n } catch (Exception ex) {\n msg = CLASS + \": \" + METHOD + \": Mongo DAO:\" + ex.getMessage();\n this.setError(true);\n }\n }\n\n if (!this.isError()) {\n this.setState(STATE.READY);\n } else {\n this.setState(STATE.ERROR);\n this.setStatus(msg);\n _logger.log(Level.SEVERE, msg);\n }\n\n _logger.exiting(CLASS, METHOD);\n\n return;\n }", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "@PostConstruct\r\n\tpublic void init() {\n\t\tstockService.create(new Stock(\"PROD 1\", BigDecimal.ONE));\r\n\t\tstockService.create(new Stock(\"PROD 2\", BigDecimal.TEN));\r\n\t\tstockService.create(new Stock(\"PROD 3\", new BigDecimal(12.123)));\r\n\t}", "@Override\n public void init() throws ServletException {\n super.init();\n try {\n var bookDAO = getDaoImpl(BookImplDB.class);\n bookService = new BookService(bookDAO);\n } catch (IllegalArgumentException ex) {\n throw new ServletException(ex);\n }\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "public void initialize() {\n service = Executors.newCachedThreadPool();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tmContext = this;\n\t\tLogUtils.i(\"tr069Service onCreate is in >>>>>\");\n\t\tLogUtils.writeSystemLog(\"tr069Service\", \"onCreate\", \"tr069\");\n\t\tinitService();\n\t\tinitData();\n\t\tregisterReceiver();\n\t\t\t\t\n\t\tif(JNILOAD){\n\t\t\tTr069ServiceInit();\n\t\t}\n\t}", "private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\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}", "abstract void initializeNeededData();", "@Inject\n\tprivate DataManager() {\n\t\t// nothing to do\n\t}", "public void initialize() {\n\n // Calculate the average unit price.\n calculateAvgUnitPrice() ;\n\n // Calculate the realized profit/loss for this stock\n calculateRealizedProfit() ;\n\n this.itdValueCache = ScripITDValueCache.getInstance() ;\n this.eodValueCache = ScripEODValueCache.getInstance() ;\n }", "@Override\r\n\tpublic void initializeService(String input) throws Exception\r\n\t{\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void start() {\n\t\t\t\tinitResource();\n\t\t\t\t//获取通讯录信息\n\t\t\t\tinitContactsData();\n\t\t\t\t//同步通讯录\n\t\t\t\tupLoadPhones();\n\t\t\t}", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "public ParcoursDataService() {\n this.repository = new JeeRepository();\n }", "@Override\n\tprotected void initData() {\n\t\tisSearch = (boolean) getIntent().getExtras().getBoolean(Constant.IntentKey.isSearch,false);\n\t\t\n\t\tif (isSearch) {//非来自直播列表\n\t\t\tarticleID = getIntent().getExtras().getLong(Constant.IntentKey.articleID);\n//\t\t\tprogressActivity.showLoading();\n\t\t\t\n\t\t\t// 查询发现详情\n\t\t\tobtainDetailRequest();\n\t\t} else {\n\t\t\tsquareLiveModel = (SquareLiveModel) getIntent().getExtras().getSerializable(Constant.IntentKey.squareLiveModel);\n\t\t\t\n\t\t\tinitLoadView();\n\t\t}\n\t\t\n\t\t//启动定时器\n//\t\tinitTimerTask();\n\t}", "public DepControlar() {\n \n initComponents();\n depservice = new DepService();\n }", "@PostConstruct\n\tpublic void init() {\n\t\tif (vehicles == null) {\n\t\t\ttry {\n\t\t\t\tvehicles = getVehicles();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//\n\t\t\t} \n\t\t}\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "public void init() {\n\r\n\t\ttry {\r\n\r\n\t\t\t//// 등록한 bean 에 있는 datasource를 가져와서 Connection을 받아온다\r\n\t\t\tcon = ds.getConnection();\r\n\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\r\n\t}", "@PostConstruct\n private void init(){\n\n okHttpClient = new OkHttpClient();\n\n// loadEtoroInstruments();\n\n }", "@Override\r\n public void onStart() {\r\n super.onStart();\r\n UserDataManager.instantiateManager(this);\r\n refreshData();\r\n }", "public static void initRepository() {\n deserialize();\n if (flightRepository == null) {\n flightRepository = new FlightRepository();\n }\n }", "@Override\r\n\tpublic void initData() {\n\t}", "public void init(){\n List<Order> orders=DA.getAll();\n ordersList.setPageFactory((Integer pageIndex)->pageController.createPage(pageIndex));\n ordersList.setPageCount(orders.size()/10);\n pageController.setOrders(orders);\n //dataController=new DataController(DA);\n dataController.setDA(DA);\n dataController.setDataBox(data);\n dataController.setInfoList(DA.getData());\n dataController.initBarChart();\n\n }", "@Override\r\n public void onStart() {\r\n \tsuper.onStart();\r\n \tif (UserInfo.isOffline()) offlineLoad();\r\n \telse {\r\n \t\tgetData();\r\n \t\tgetComments();\r\n \t}\r\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tdoBindService();\r\n\t\tinitImageLoaderConfig();\r\n\t}", "public void init() throws ServletException {\n // Put your code here\n service = new RegisterDao();\n }", "@PostConstruct\n public void initPool() {\n SpringHelper.setApplicationContext(applicationContext);\n if (!initialized) {\n try {\n final File configDirectory = ConfigDirectory.setupTestEnvironement(\"OGCRestTest\");\n final File dataDirectory2 = new File(configDirectory, \"dataCsw2\");\n dataDirectory2.mkdir();\n\n try {\n serviceBusiness.delete(\"csw\", \"default\");\n serviceBusiness.delete(\"csw\", \"intern\");\n } catch (ConfigurationException ex) {}\n\n final Automatic config2 = new Automatic(\"filesystem\", dataDirectory2.getPath());\n config2.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"default\", config2, null);\n\n writeProvider(\"meta1.xml\", \"42292_5p_19900609195600\");\n\n Automatic configuration = new Automatic(\"internal\", (String)null);\n configuration.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"intern\", configuration, null);\n\n initServer(null, null, \"api\");\n pool = GenericDatabaseMarshallerPool.getInstance();\n initialized = true;\n } catch (Exception ex) {\n Logger.getLogger(OGCRestTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public InitialData(){}", "@PostConstruct\n public void init() {\n entradas = entradaFacadeLocal.findAll();\n salidas = salidaFacadeLocal.findAll();\n inventarios = inventarioFacadeLocal.leerTodos();\n }", "private void initialize() {\n // initializes node service util \n HashMap<String, Object> serviceData = NodeServicesUtil.initialize(\n PropertiesUtil.SERVICES);\n\n // retrieve node service util headers\n headers = (HttpHeaders) serviceData.get(NodeServicesUtil.HEADERS);\n\n // get the target service property\n targetUrl = ((Properties) serviceData.get(NodeServicesUtil.PROPERTIES))\n .getProperty(\"target.service.url\");\n }", "private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\t\n\t\tApplicationContext applicationContext=new ClassPathXmlApplicationContext(\"applicationContext.xml\");\n\t\tmservice= (MemberService) applicationContext.getBean(\"memberservice\");\n\t\tbservice=(BookService) applicationContext.getBean(\"bookservice\");\n\t\toservice=(OrderService) applicationContext.getBean(\"orderservice\");\n\t\t\n\t}" ]
[ "0.78009725", "0.7063892", "0.6990304", "0.6955011", "0.683795", "0.68292385", "0.67968035", "0.6796462", "0.67887825", "0.6788751", "0.6730421", "0.6727341", "0.67131656", "0.67114645", "0.6710747", "0.6710747", "0.668454", "0.6678801", "0.665941", "0.66239685", "0.66234165", "0.6620438", "0.6618489", "0.6581354", "0.6570271", "0.65580714", "0.65278906", "0.6487922", "0.6476824", "0.6465666", "0.645678", "0.6451125", "0.6447297", "0.64414227", "0.6430603", "0.6430427", "0.6392782", "0.6360377", "0.6353635", "0.63487804", "0.63360614", "0.63243324", "0.6301664", "0.6298085", "0.6288742", "0.62885636", "0.6283378", "0.6264498", "0.62634593", "0.62587637", "0.6257076", "0.6253314", "0.6250724", "0.6228775", "0.62134504", "0.6208569", "0.6186409", "0.6184805", "0.61844826", "0.6174354", "0.61740196", "0.6168661", "0.61685175", "0.61622405", "0.6160126", "0.61561954", "0.615215", "0.6143546", "0.6143224", "0.6143224", "0.6143224", "0.6143224", "0.6143224", "0.6143224", "0.6141649", "0.6141038", "0.61376816", "0.61329806", "0.61319137", "0.6130633", "0.61301446", "0.6126891", "0.61259055", "0.6108772", "0.6104259", "0.6104259", "0.610156", "0.60784733", "0.6074328", "0.60660774", "0.6064832", "0.60626644", "0.60605216", "0.6055574", "0.60527277", "0.6050294", "0.6048803", "0.6043294", "0.6041083", "0.6039383", "0.6031214" ]
0.0
-1
No argument Constructor for objects of class Score. This is required for serialization.
public Score() { // initialize instance variables score = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Score() {\n this.date = new Date();\n this.name = null;\n this.score = 0;\n }", "public MatcherScores()\n {\n // do nothing\n }", "public Scores(int score) {\r\n this.score = score;\r\n }", "public Scoreboard() {\n\t}", "public ScoreFixer ()\r\n {\r\n }", "private ScoreCalculator() {}", "public Highscore() {\n scores = new ArrayList<Score>();\n }", "BruceScore() {}", "public ScoreList(){\r\n\t\tnumItems = 0;\r\n\t\tscoreList = new Score[100];\r\n\t}", "public static void createScore(){\n\t}", "public Score(String name, int score) {\n //set date to current date\n this.date = new Date();\n \n this.score = score;\n this.name = name;\n \n }", "public ScoreManager() {\n\t\tscore = 0;\n\t}", "public ScoreIndicator(Counter score) {\r\n this.score = score;\r\n }", "public Scores() {\n date = new Date();\n }", "public LocationScore(int score) {\n this.score = score;\n }", "public UserScore() {\n this(DSL.name(\"b2c_user_score\"), null);\n }", "public HighScore(){\n readFile();\n sortHighscores();\n }", "public Scores() {\n list = new int[50];\n }", "public HighScore (int score)\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = score;\n this.level = \"level 1\";\n }", "public HighScore ()\n {\n this.name = \"P'ngball Grandmaster\";\n this.score = 0;\n this.level = \"level 1\";\n }", "protected AnswerScore() {/* intentionally empty block */}", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "@Override\n\tpublic void loadScore() {\n\n\t}", "public HighScore (String name,String level, int score)\n {\n this.name = name;\n this.score = score;\n this.level = level;\n }", "public Scores(String player, int score) {\r\n this.player = player;\r\n this.score = score;\r\n }", "public HighScores(){\r\n\t\tHighScores objRead = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// lendo o arquivo de melhores pontuacoes\r\n\t\t\tFileInputStream fis = new FileInputStream(highScoresFilename);\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\tobjRead = (HighScores) ois.readObject();\r\n\t\t\tois.close();\r\n\t\t} catch (Exception e){\r\n\t\t\t// caso o arquivo nao possa ser lido\r\n\t\t\tobjRead = null;\r\n\t\t} finally {\r\n\t\t\tif (objRead != null){\r\n\t\t\t\tthis.scoreNumber = objRead.scoreNumber;\r\n\t\t\t\tthis.highScores = objRead.highScores;\r\n\t\t\t} else {\r\n\t\t\t\tthis.highScores = new Score[scoreNumber];\r\n\t\t\t\tfor (int i = 0; i < scoreNumber; i++)\r\n\t\t\t\t\thighScores[i] = new Score(\"\", Integer.MIN_VALUE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public MusicScore ()\n {\n score = new ArrayList<Note>();\n }", "public Player() {\n\t\tscore = 0;\n\t}", "public Score(Context ctx) throws RecordNotFoundException {\n\t\tthis(null, ctx);\n\t}", "@Override\n\tpublic void readScore() {\n\t\t\n\t}", "@Override\n\tpublic void readScore() {\n\t\t\n\t}", "public Score(int lives) {\n this.lives = lives;\n }", "public HighScore (String name)\n {\n this.name = name;\n this.score = 0;\n this.level = \"level 1\";\n }", "public PlayerScore (String name, int score)\n {\n playerName = name;\n playerScore = score;\n }", "@Override\n\tpublic void saveScore() {\n\t\t\n\t}", "YearScore () {}", "public HighScoreTable(){\r\n\r\n\t}", "@Override\n\tpublic void saveScore() {\n\n\t}", "public ScoreTrakker() {\n\t\tstudents =new ArrayList<Student>();\n\t}", "private Score(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public void setScore(int score) { this.score = score; }", "public StudentRecord() {\n\t\tscores = new ArrayList<>();\n\t\taverages = new double[5];\n\t}", "@Test\r\n\tpublic void constructorTest() \r\n\t{\r\n\t\tassertEquals(0, scoreBehavior.score());\r\n\t}", "public QuestionsSave(int score) {\r\n initComponents();\r\n finalScore = score; \r\n file = new File(\"HighScores.xml\");\r\n highScores = null;\r\n\r\n Builder builder = new Builder();\r\n try {\r\n doc = builder.build(file);\r\n highScores = doc.getRootElement();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n //Get Elements\r\n scores = highScores.getChildElements();\r\n \r\n }", "public void setScore(int score) {this.score = score;}", "public Score getScore()\r\n { \r\n return theScore;\r\n }", "public abstract Score[] getScore();", "public void setScore(Integer score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "public void setScore(int score)\n {\n this.score = score;\n }", "public int getScore() { return score; }", "public SportScoreExample() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}", "@Override \n public Score clone()\n {\n try\n { \n return (Score)super.clone();\n }\n catch(CloneNotSupportedException e)\n {\n throw new InternalError();\n }\n }", "public int getScore() {return score;}", "public TestScores(int[] testScores) {\n this.testScores = testScores;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public grade(){}", "@Override\n public int getScore() {\n return score;\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "ScoreEnumeration(int scoreInt, String scoreText){\n this.scoreInt = scoreInt;\n this.scoreText = scoreText;\n\n }", "Score() {\r\n\t\tsaveload = new SaveLoad();\r\n\t\thighscoreFile = new File(saveload.fileDirectory() + File.separator + \"highscore.shipz\");\r\n\t\tsaveload.makeDirectory(highscoreFile);\r\n\t\tcomboPlayer1 = 1;\r\n\t\tcomboPlayer2 = 1;\r\n\t\tscorePlayer1 = 0;\r\n\t\tscorePlayer2 = 0;\r\n\t}", "public Golfer() \n {\n name = \"__\";\n homeCourse = \"__\";\n idNum = 9999;\n this.name = name;\n this.homeCourse = homeCourse;\n this.idNum = idNum;\n final int LENGTH = 20;\n Score[] values = new Score[LENGTH];\n values = this.scores;\n }", "public void newScore()\n {\n score.clear();\n }", "public Game(String gameName, int[][] scores){\n\n this.gameName = gameName;\n this.scores = scores;\n\n }", "public Player()\r\n\t{\r\n\t\tscore = 0;\r\n\t\tsetPlayerName();\r\n\t}", "public ScoreEntry(XMLElement xml) {\n int score = 0;\n Date finishTime = new Date();\n Date startTime = new Date();\n Properties properties = new Properties();\n\n for(Object o : xml.getChildren()) {\n XMLElement xe = (XMLElement) o;\n final String name = xe.getName();\n final String val = xe.getContent();\n if(name.equals(\"score\")) {\n score = Integer.parseInt(val);\n } else if(name.equals(\"startTime\")) {\n try {\n startTime = DateFormat.getInstance().parse(val);\n } catch (Exception ignore) {}\n } else if(name.equals(\"finishTime\")) {\n try {\n finishTime = DateFormat.getInstance().parse(val);\n } catch (Exception ignore) {}\n } else if(name.equals(\"properties\")) {\n for(Object o2 : xe.getChildren()) {\n XMLElement prop = (XMLElement) o2;\n if(prop.getName().equals(\"property\")) {\n properties.setProperty(prop.getStringAttribute(\"name\"),prop.getStringAttribute(\"value\"));\n }\n }\n }\n }\n\n this.score = score;\n this.finishTime = finishTime;\n this.startTime = startTime;\n this.properties = properties;\n }", "public ScoreBean() {\n scoreProperty = new SimpleLongProperty();\n scoreProperty.set(0);\n \n turnPoints1 = new SimpleIntegerProperty(0);\n gamePoints1 = new SimpleIntegerProperty(0);\n totalPoints1 = new SimpleIntegerProperty(0);\n \n turnPoints2 = new SimpleIntegerProperty(0);\n gamePoints2 = new SimpleIntegerProperty(0);\n totalPoints2 = new SimpleIntegerProperty(0);\n \n winningTeam = new SimpleObjectProperty<TeamId>(null);\n \n // the seven other properties are updated each time\n // the packed score is set.\n scoreProperty.addListener((s) -> update(s));\n }", "public AnswerScore(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }", "private void readObject(java.io.ObjectInputStream stream)\r\n throws IOException, ClassNotFoundException {\r\n scoreNumber = stream.readInt();\r\n highScores = new Score[scoreNumber];\r\n \r\n for (int i = 0; i < scoreNumber; i++)\r\n \thighScores[i] = (Score) stream.readObject();\r\n }", "public int getScore(){ return this.score; }", "GameScoreModel createGameScoreModel(GameScoreModel gameScoreModel);", "ScoreManager createScoreManager();", "public WinnerProfile(String name, int score){\n this.name=name;\n this.score=score;\n }", "public Student() {\n\t\tthis.firstName = \"no name entered\";\n\t\tthis.lastName = \"no name entered\";\n\t\tthis.wId = \"no WID\";\n\t\tthis.labScore = 0;\n\t\tthis.projScore = 0;\n\t\tthis.examScore = 0;\n\t\tthis.codeLabScore = 0;\n\t\tthis.finalExamScore = 0;\n\t\tthis.scorePercent = 0;\n\t}", "public ScoreReduction (Score score)\r\n {\r\n this.score = score;\r\n\r\n for (TreeNode pn : score.getPages()) {\r\n Page page = (Page) pn;\r\n pages.put(page.getIndex(), page);\r\n }\r\n }", "public Student(){}", "public interface Score{\n\t\n\n/**\n* Gets the players actual overall score.\n*\n*@return int the players score\n*/\npublic int getPlayerScore();\n\n/**\n* Gets the players unique ID number corresponding to a score\n*\n*@return the players unique ID number\n*/\npublic int getPlayerId();\n\n/**\n* Clones a Score \n*\n* @return an Object (which then needs to be downcast into a Score object)\n* @throws CloneNotSupportedException if an object cannot be cloned.\n*/\nObject clone() throws CloneNotSupportedException;\n\n}", "public interface IScoreObject {\n\n /**\n * @return score of the object.\n */\n public int getScore();\n\n /**\n * Adds given value to the score of the object.\n *\n * @param score will be added to objects score.\n */\n public void addScore(int score);\n\n /**\n * Resets the score of the object, setting it to '0'.\n */\n public void resetScore();\n}", "public Creator(String score_name) {\n this.score_name = score_name;\n\n this.bukkitScoreboard = Bukkit.getScoreboardManager().getNewScoreboard();\n this.obj = this.bukkitScoreboard.registerNewObjective(randomString(), \"dummy\", \"test\");\n\n this.obj.setDisplaySlot(DisplaySlot.SIDEBAR);\n this.obj.setDisplayName(color(score_name));\n }", "public void setScore(String score) {\n\t\tthis.score = score;\n\t}", "public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "public String getScore(){\n return score;\n }", "private ResponseScores(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public void setScore(float score) {\n this.score = score;\n }", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "public void setScore(int score) {\n\t\tthis.score = score;\n\t}", "public void setScore(Float score) {\n this.score = score;\n }", "public ScoreIndicator(Counter score, int width, int fontSize, int textY) {\n this.score = score;\n this.width = width;\n this.fontSize = fontSize;\n this.textY = textY;\n }", "public int getScore(){return score;}", "public int getScore(){return score;}", "public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public void setScore(double score) {\r\n this.score = score;\r\n }", "public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}", "public Leaderboard() {\n filePath = new File(\"Files\").getAbsolutePath();\n highScores = \"scores\";\n\n topScores = new ArrayList<>();\n topName = new ArrayList<>();\n }" ]
[ "0.7577859", "0.72126323", "0.7185854", "0.7052847", "0.6954837", "0.68995756", "0.68959546", "0.68624306", "0.6814676", "0.6787634", "0.67440885", "0.6619511", "0.65831745", "0.65643436", "0.6525256", "0.65061873", "0.6479655", "0.64781743", "0.6462518", "0.64239794", "0.638389", "0.63819045", "0.6288449", "0.6285174", "0.62678856", "0.6233855", "0.62060875", "0.6205531", "0.61813414", "0.61626023", "0.61626023", "0.6160125", "0.6151883", "0.61277163", "0.6074754", "0.6073554", "0.6067555", "0.60581267", "0.6035644", "0.6022846", "0.60115016", "0.60049105", "0.59900045", "0.5931988", "0.5892528", "0.5891017", "0.58551073", "0.58044475", "0.58037096", "0.57882684", "0.5787285", "0.5783522", "0.57635874", "0.5761447", "0.57574123", "0.5756199", "0.5752535", "0.5752535", "0.5752535", "0.5752535", "0.5745305", "0.5740058", "0.5737519", "0.5737519", "0.57295763", "0.5729364", "0.5718096", "0.56992334", "0.5695702", "0.5693511", "0.56907034", "0.5689063", "0.5687202", "0.5678779", "0.5672189", "0.5659951", "0.5655705", "0.56447834", "0.5641151", "0.5635423", "0.5631949", "0.5629962", "0.5623058", "0.5618282", "0.55997944", "0.5596539", "0.5587767", "0.5574203", "0.55645996", "0.55552274", "0.55490255", "0.5544628", "0.5542046", "0.55313385", "0.5529464", "0.5529464", "0.5526722", "0.55199146", "0.5517384", "0.5515769" ]
0.7354439
1
getScore returns an integer value
public int getScore() { return score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getScore();", "int getScoreValue();", "long getScore();", "long getScore();", "long getScore();", "long getScore();", "public static int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public static int getScore()\n {\n return score;\n }", "public static int getScore()\n\t{\n\t\treturn score;\n\t}", "float getScore();", "float getScore();", "public int getScore() {\n return getStat(score);\n }", "Float getScore();", "public static int getScore(){\n return score;\n }", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore()\r\n\t{\r\n\t\treturn score;\r\n\t}", "public int getScore ()\r\n {\r\n\treturn score;\r\n }", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore() {\r\n return score;\r\n }", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore(){\n\t\treturn this.score;\n\t}", "public int getScore() {\r\n \treturn score;\r\n }", "public int getScore() {\n return score;\n }", "public java.lang.Integer getScore () {\r\n\t\treturn score;\r\n\t}", "public int getScore(){\n \treturn 100;\n }", "public Integer getScore() {\r\n return score;\r\n }", "public int getScore() {\n return score;\n }", "public int getScore() {\n return score;\n }", "public int getScore() { return score; }", "public int getScore() {\n\t\treturn (score);\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getScore();", "public Integer getScore() {\n return score;\n }", "public int getScore() {\n return this.score;\n }", "public int getScoreInt() {\n return scoreInt;\n }", "public int getScore()\n\t{\n\t\treturn this.score;\n\t}", "public int getScore() {return score;}", "public int getScore() {\r\n\t\treturn score;\r\n\t}", "public int getScore() {\r\n\t\treturn score;\r\n\t}", "public int getScore () {\n return mScore;\n }", "public int getScore()\n {\n return currentScore;\n }", "public final int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n return currentScore;\n }", "public int getScore()\n {\n // put your code here\n return score;\n }", "int getScore() {\n return score;\n }", "public int score() {\n return score;\n }", "public int getPlayerScore();", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "public int getScore() {\n\t\treturn score;\n\t}", "@Override\n public int getScore() {\n return score;\n }", "public int getScore() {\n\t\treturn this.ScoreValue;\n\t}", "public int getScore() {\n\t\treturn this.score;\n\t}", "public abstract float getScore();", "@Override\n public int getScore() {\n return totalScore;\n }", "public int getScore(){\n return this.score;\n }", "public int getScore(){return score;}", "public int getScore(){return score;}", "int score();", "int score();", "public long getScore() {\n return score_;\n }", "public long getScore() {\n return score_;\n }", "public int getScore()\n {\n return score; \n }", "public int getScore()\n\t{\n\t\tif (containsAce() && score < 11)\n\t\t\treturn score + 10;\n\t\t\t\n\t\treturn score;\n\t}", "public long getScore() {\n return score_;\n }", "public long getScore() {\n return score_;\n }", "public int getTotalScore(){\r\n return totalScore;\r\n }", "public int getScore(){\n\t\treturn playerScore;\n\t}", "@Override\r\n\tpublic double getScore() {\n\t\treturn score;\r\n\t}", "public double getScore() {\r\n return score;\r\n }", "public int getScore()\n {\n int score;\n if (this.isFinal())\n score = 1;\n else\n score = 0;\n return score;\n }", "public double getScore() {\r\n return mScore;\r\n }", "public int getScore(){ return this.score; }", "public Long getScore() {\n return score;\n }", "public int getTotalScore(){\n return totalScore;\n }", "@Override\r\n\tpublic double getScore() \r\n\t{\r\n\t\treturn this._totalScore;\r\n\t}", "public int getHomeScore();", "public Double getScore() {\n return this.score;\n }", "public Double getScore() {\n return this.score;\n }", "int getHighScore() {\n return getStat(highScore);\n }", "public double getScore() {\n\t\t\treturn this.score;\n\t\t}", "public int getScore()\n {\n return points + extras;\n }", "public int getTotalScore() {\r\n return totalScore;\r\n }", "public int getWorstScore()\n {\n return -1;\n }", "public float getScore() {\n return score;\n }", "public float getScore() {\r\n\t\treturn score;\r\n\t}", "public int getCurrentScore() {\n return currentScore;\n }", "public Score getScore() {\n\t\treturn score;\n\t}", "public float getScore() {\n\t\treturn score;\n\t}", "public int totalScore() {\n return 0;\n }", "public int getRoundScore() {\n return score;\n }", "public int getAwayScore();", "Float getAutoScore();" ]
[ "0.88947815", "0.8886073", "0.87683564", "0.87683564", "0.87683564", "0.87683564", "0.8680861", "0.8654827", "0.863934", "0.85593146", "0.85593146", "0.85445374", "0.8518911", "0.85182446", "0.8486464", "0.8486464", "0.8475272", "0.8475272", "0.84473157", "0.8421312", "0.8421312", "0.8395322", "0.8395322", "0.8395322", "0.8388694", "0.8388694", "0.83860964", "0.8376874", "0.8364905", "0.83593524", "0.8359009", "0.8358708", "0.8358708", "0.8350007", "0.83444774", "0.8336109", "0.83250934", "0.83174473", "0.8303525", "0.82912374", "0.82827467", "0.8273174", "0.8273174", "0.82688123", "0.8243661", "0.8239446", "0.82341665", "0.82152426", "0.82056624", "0.820559", "0.81973785", "0.81920123", "0.81920123", "0.81920123", "0.81920123", "0.81920123", "0.81920123", "0.818923", "0.81890327", "0.813725", "0.80919236", "0.8084889", "0.80561763", "0.80247647", "0.80247647", "0.80103856", "0.80103856", "0.79868734", "0.79868734", "0.79701275", "0.7947517", "0.7934274", "0.7934274", "0.79195267", "0.7918959", "0.791671", "0.7909064", "0.78870296", "0.78642887", "0.78588814", "0.7839381", "0.7839076", "0.78265196", "0.7798174", "0.7774264", "0.7774264", "0.7757882", "0.77577233", "0.7734079", "0.77301663", "0.7717176", "0.7715634", "0.76765233", "0.76614517", "0.76583856", "0.7631359", "0.76118255", "0.76027304", "0.7601588", "0.7584117" ]
0.8315788
38
setScore sets the score to a given integer value
public void setScore(int score) { this.score = score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setScore(java.lang.Integer value);", "void setScoreValue(int scoreValue);", "void setScore(long score);", "public void setScore(int score) { this.score = score; }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {this.score = score;}", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(Integer score) {\n this.score = score;\n }", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}", "public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void setScore(int score) {\n\t\tthis.score = score;\n\t}", "void setScore(int score) {\n lblScore.setText(String.valueOf(score));\n }", "public void setScore(double score) {\r\n this.score = score;\r\n }", "public void setScore(int paScore) {\n this.score = paScore;\n }", "protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "public void setScore(float score) {\n this.score = score;\n }", "private void setScore(String score) {\r\n this.score = score;\r\n }", "public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}", "public void setScore(String score) {\n this.score = score;\n setChanged();\n notifyObservers();\n }", "public void setScore(float value) {\n this.score = value;\n }", "public void setScore(Float score) {\n this.score = score;\n }", "public Scores(int score) {\r\n this.score = score;\r\n }", "@Override\n public void setScore(int score) throws IllegalStateException {\n objective.checkValid();\n this.score = score;\n objective.getScoreboard()\n .broadcast(new ScoreboardScoreMessage(entry, objective.getName(), score));\n }", "public void setScore(Double score) {\n this.score = score;\n }", "public void setScore(Score score) {\n scoreProperty.set(score.packed());\n }", "public static void setPlayerScore(int score)\r\n\t{\r\n\t\tGame.playerScore = score;\r\n\t}", "public void setScore(String score) {\n\t\tthis.score = score;\n\t}", "public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }", "public Builder setScore(long value) {\n \n score_ = value;\n onChanged();\n return this;\n }", "public Builder setScore(long value) {\n \n score_ = value;\n onChanged();\n return this;\n }", "public void setScore(Short score) {\n this.score = score;\n }", "public void setScore (java.lang.Float score) {\n\t\tthis.score = score;\n\t}", "public void setScore(int s) {\n if (s > getHighScore()) {\n setHighScore(s);\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy/MM/dd HH:mm:ss\");\n LocalDateTime now = LocalDateTime.now();\n String timeNow = dtf.format(now);\n setHighScoreTime(timeNow);\n }\n setStat(s, score);\n }", "public void setCurrentScore(int currentScore) {\n this.currentScore = currentScore;\n }", "public final void setScore(java.lang.Double score)\r\n\t{\r\n\t\tsetScore(getContext(), score);\r\n\t}", "public static void incrementScore() {\n\t\tscore++;\n\t}", "public void addScore(int score);", "public void setNewScore(String player, int score) {\n\t\t\n\t}", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void setScore(java.lang.String value) {\n\t\tsetValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.SCORE, value);\n\t}", "void setBestScore(double bestScore);", "public void updateScore(int score){ bot.updateScore(score); }", "public void increaseScore(final int score) {\n setChanged();\n notifyObservers(new Pair<>(\"increaseScore\", score));\n }", "public void addToScore(int score)\n {\n this.score += score;\n }", "public void addScore(int s) {\n setScore(getScore() + s);\n }", "public static void setActivityScore(int score) {\n\n\t\tmActivityScore = score;\n\t}", "public void incrementScore(int val) {\n score += val;\n }", "@Override\n public void passScore(int score) {\n this.score = score;\n scoreFragment.setData(score);\n }", "public void addScore(int score) {\n currentScore += score;\n }", "public void setTestScore(int testNumber, int score) {\n\t if(testNumber == 1)\n\t\t test1 = score;\n\t else if(testNumber == 2)\n\t\t test2 = score;\n\t else\n\t\t test3 = score;\n }", "public void setHighscore(int score)\n {\n this.highscore = score;\n }", "public void setAwayScore(int a);", "public void setGameScore(Integer gameScore) {\n this.gameScore = gameScore;\n }", "public void setScore(int hole, int score) {\n\t\tif (hole < 1 || hole > 18) return;\n\t\tscores[hole - 1] = score;\n\t}", "public void setObjectiveScore(String name, Player player, int value) {\n scoreboard.getObjective(name).getScore(player.getName()).setScore(value);\n }", "public LocationScore(int score) {\n this.score = score;\n }", "public void setScorer(String name, int score)\r\n\t{\r\n\t\tif(scorers == null)\r\n\t\t{\r\n\t\t\tcreateArray();\r\n\t\t\twriteFile();\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 1; i < scorers.length; i += 2)\r\n\t\t\tif(Integer.parseInt(scorers[i]) < score)\r\n\t\t\t{\r\n\t\t\t\tfor(int j = scorers.length - 4; j >= i - 1; j -= 2)\r\n\t\t\t\t{\r\n\t\t\t\t\tscorers[j + 2] = scorers[j];\r\n\t\t\t\t\tscorers[j + 3] = scorers[j + 1];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tscorers[i - 1] = name;\r\n\t\t\t\tscorers[i] = String.valueOf(score);\r\n\t\t\t\twriteFile();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t}", "public void setScore(){\n\t\t//get player's score and change it to the string\n\t\tthis.scoreLabel.setSize(scoreLabel.getPreferredSize().width, \n\t\t\t\tscoreLabel.getPreferredSize().height);\n\t\tthis.scoreLabel.setText(String.valueOf(this.player.getScore()));\n\t}", "protected void setOnePlayerHumanScore(int score){\n this.humanWinsCPU_TextField.setText(Integer.toString(score));\n }", "public void countScore(int score)\n {\n scoreCounter.add(score);\n }", "public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public final void setScore(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Double score)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Score.toString(), score);\r\n\t}", "public void setScoreOfTeam(Team team, int newScore) {\n\t\tteamScore.put(team.getTeamId(), newScore);\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public int getScore(){\r\n\t\treturn score;\r\n\t}", "public static void sendScore(int score) {\n\t\tif(Config.scoreCenter == null){\n\t\t\tConfig.scoreCenter = ScoreCenter.getInstance();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tConfig.scoreCenter.postScore(Config.scoreboard_id, java.lang.String.valueOf(score));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}", "private void setPlayerScore(Player player, int newScore) {\n\t\tplayer.score = Math.max(newScore, 0);\n\t\tfor (ScoreMarker scoreMarker : playerScoreMarkers) {\n\t\t\tif (scoreMarker.getOwner() == player) {\n\t\t\t\tscoreMarker.value = String.valueOf(player.score);\n\t\t\t}\n\t\t}\n\t}", "public static void addScore(int _value){\n scoreCount += _value;\n scoreHUD.setText(String.format(Locale.getDefault(),\"%06d\", scoreCount));\n }", "void setFitnessScore(double score){\n fitnessScore = score;\n }", "@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}", "public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}", "public final void addScore(int iScore) {\n\t\tscore += iScore;\n\t}", "public Scores(String player, int score) {\r\n this.player = player;\r\n this.score = score;\r\n }", "public void setScores(ArrayList<Integer> scores) { this.scores = scores; }", "public void setCreditScore( int score ) {\n if ( score < MIN_CREDIT_SCORE || score > MAX_CREDIT_SCORE ) \r\n throw new IllegalArgumentException( \"Customer credit score can't be < \" + MIN_CREDIT_SCORE + \" or > \" + MAX_CREDIT_SCORE + \".\" );\r\n else\r\n\t this.creditScore = score; \r\n }", "public int getScore(){\n\t\treturn score;\n\t}", "public int getScore(){\n\t\treturn score;\n\t}", "public void addScore()\n {\n score += 1;\n }", "public void setWordScore(int score) {\n if (score == 0) {\n this.wordScoreDisplay.setText(\"\");\n } else {\n this.wordScoreDisplay.setText(String.valueOf(score));\n }\n }", "@Test\n public void testSetScore() {\n System.out.println(\"setScore\");\n int score = 5;\n Player instance = new Player(PlayerColor.WHITE, \"\");\n instance.setScore(score);\n\n assertEquals(score, instance.getScore());\n }", "public void setHomeScore(int h);", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "static int SetScore(int p){\n\t\tif (p==1) {\n\t\t\tp1Score=p1Score+4;\n\t\t\tlblp1Score.setText(Integer.toString(p1Score));\n\t\t\t\n\t\t\t//check whether the score reaches to destination score or not..........\n\t\t\t\n\t\t\tif(p1Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p1Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==2){\n\t\t\tp2Score=p2Score+4;\n\t\t\tlblp2Score.setText(Integer.toString(p2Score));\n\t\t\t\n\t\t\tif(p2Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p2Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse if(p==3){\n\t\t\tp3Score=p3Score+4;\n\t\t\tlblp3Score.setText(Integer.toString(p3Score));\n\t\t\t\n\t\t\tif(p3Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p3Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tp4Score=p4Score+4;\n\t\t\tlblp4Score.setText(Integer.toString(p4Score));\n\t\t\t\n\t\t\tif(p4Score>=destinationScore){\n\t\t\t\tfrmCardGame.dispose();\n\t\t\t\tnew EndGame(p,p4Score,destinationScore).setVisible(true);\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "public int getScore() {return score;}", "@Override\r\n\tpublic boolean updateScore(int score) {\n\t\ttry {\r\n\t\t\tconn = DriverManager.getConnection(URL, USER, PASS);\r\n\t\t\tString sql = \"update member set score=score+\"+score+\" where id='\"+LoginServiceImpl.getCurrentUser().getID()+\"'\";\r\n\t\t\tps = conn.prepareStatement(sql);\r\n\t\t\t\r\n\t\t\tif(ps.executeUpdate()==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}else\r\n\t\t\t\treturn true;\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\treturn false;\r\n\t\t}\r\n\r\n\t}", "public int getScore() { return score; }", "public boolean setScoreTeamOne(int score)\r\n\t{\r\n\t\tif (!editableMatch)\r\n\t\t\treturn false;\r\n\t\tscore1 = score;\r\n\t\treturn true;\r\n\t}" ]
[ "0.8842454", "0.87169653", "0.86743337", "0.8612619", "0.8554428", "0.8554428", "0.85225296", "0.8520987", "0.85033244", "0.8494603", "0.8494603", "0.8494603", "0.8494603", "0.84746474", "0.8443286", "0.841954", "0.8409154", "0.8390403", "0.8330504", "0.83105177", "0.82810414", "0.81247115", "0.8113303", "0.80670613", "0.8038955", "0.79969394", "0.7973765", "0.7971548", "0.79530096", "0.7949471", "0.79393107", "0.7897618", "0.7886621", "0.77439034", "0.77418196", "0.7674503", "0.7641064", "0.75471175", "0.75393987", "0.7517665", "0.7517665", "0.74954545", "0.7450518", "0.7393061", "0.7363732", "0.7363598", "0.73244756", "0.73090833", "0.7299711", "0.72879255", "0.72731125", "0.72691834", "0.7249691", "0.7202552", "0.72021174", "0.7200082", "0.71914136", "0.7168237", "0.71663904", "0.71591586", "0.71464944", "0.7114265", "0.70869076", "0.70844704", "0.7079984", "0.7057606", "0.7042686", "0.7008527", "0.7007551", "0.69580364", "0.6876492", "0.6857912", "0.6848765", "0.68345684", "0.68254185", "0.68224597", "0.68224597", "0.6819878", "0.681361", "0.6792116", "0.67868745", "0.67866427", "0.67765605", "0.6770245", "0.6762755", "0.6761115", "0.67598605", "0.6749151", "0.6742194", "0.6742194", "0.67383", "0.67293864", "0.67103434", "0.66962844", "0.6685693", "0.66838217", "0.66743976", "0.66670126", "0.66614616", "0.6655925" ]
0.8579839
4
addToScore adds (or subtracts when given a negative value) the given value to the score
public void addToScore(int score) { this.score += score; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addScore(int score);", "public void addScore(int score) {\n currentScore += score;\n }", "public void add_to_score(int num){\n score+=num;\n }", "public void addScore(int s) {\n setScore(getScore() + s);\n }", "public void addScore()\n {\n score += 1;\n }", "public void incrementScore(int scoreToAdd) {\n this.score += scoreToAdd;\n }", "public void addToScore(int ammount){\n\t\tscore+=ammount;\n\t}", "public final void addScore(int iScore) {\n\t\tscore += iScore;\n\t}", "public void addScore(Pair<String, Integer> score) {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n final List<Pair<String, Integer>> list = this.list.get();\n list.add(score);\n this.sortScores(list);\n this.cutScores(list);\n this.list = Optional.of(list);\n\n this.toSave = true;\n }", "public void addScore(int pointsToAdd) {\n\t\tthis.score = this.score + pointsToAdd;\n\t}", "public void addToScore(int points) {\n\t\tassert points >= 0 : \"Cannot add negative points\";\n\t\tscore += points;\n\t}", "public void incrementScore(int val) {\n score += val;\n }", "public void addOneToScore() {\r\n score++;\r\n }", "public void addToScore(final int theScoreAddition) {\n this.myCurrentScoreInt += theScoreAddition;\n \n if (this.myCurrentScoreInt > this.myHighScoreInt) {\n this.myHighScoreInt = this.myCurrentScoreInt; \n this.persistHighScore();\n } \n }", "void addScore(double score){\n\t\tsumScore+=score;\n\t\tnumScores++;\n\t\taverage = sumScore/numScores;\n\t}", "public void addTestScore(int score){\n test_score.add(test_count,score);\n test_count++;\n }", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "public void addPoints(int earnedPoints) {score = score + earnedPoints;}", "public void addScore(int n){\n\t\tscore += n;\n\t}", "public void addScore(String name, int score) {\n loadScoreFile();\n scores.add(new Score(name, score));\n updateScoreFile();\n }", "public void addScore(Double score) {\n this.scoreList.add(score);\n // each time a new score is added, sort it\n Collections.sort(scoreList, Collections.reverseOrder());\n }", "public static void addScore(int _value){\n scoreCount += _value;\n scoreHUD.setText(String.format(Locale.getDefault(),\"%06d\", scoreCount));\n }", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void addScore(int score, String name){\n for(int i = 0; i < topScores.size(); i++) {\n if(score >= topScores.get(i)){\n topScores.add(i, score);\n topScores.remove(topScores.size()-1);\n if(name.isEmpty()){\n topName.add(i, \"Anonymous\");\n topName.remove(topName.size()-1);\n }else {\n topName.add(i, name);\n topName.remove(topName.size() - 1);\n }\n return;\n }\n }\n }", "public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }", "void setScoreValue(int scoreValue);", "public static void incrementScore() {\n\t\tscore++;\n\t}", "public void setScore(float value) {\n this.score = value;\n }", "void addPointsToScore(int points) {\n score += points;\n }", "void addScore(LocusScore ls) {\n double weight = 1;\n final float score = ls.getScore();\n weightedSum += weight * score;\n nPts++;\n\n max = score > max ? score : max;\n }", "public void setScore(int pointsToAdd) {\n\n\t\t//Add the additional points to the existing score\n\t\tthis.score = this.score + pointsToAdd;\n\t}", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void setScore(int score) { this.score = score; }", "synchronized void addScore(String name, int score){\n\t\tif(!users.containsKey(name)){\n\t\t\tVector<Integer> scores = new Vector<Integer>();\n\t\t\tusers.put(name, scores);\n\t\t}\n\t\tusers.get(name).add(score);\n\t}", "public void setScore(java.lang.Integer value);", "public MatcherScores addScore(String intent, Double score)\n {\n scores.computeIfAbsent(score, k -> new TreeSet<>()).add(intent);\n return this;\n }", "@Test\n public void addScoreTest() {\n assertTrue(enemyGameBoard.getScore() == 0); //Check if initial value of points = 0\n\n enemyGameBoard.addScore(false, false); //Did not hit a ship\n assertTrue(enemyGameBoard.getScore() == 0);\n\n enemyGameBoard.addScore(true, false); //Hit a ship, but the ship did not sink\n assertTrue(enemyGameBoard.getScore() == 1); \n\n enemyGameBoard.addScore(false, false); //Did not hit a ship, so points should stay 1\n assertTrue(enemyGameBoard.getScore() == 1); \n\n enemyGameBoard.addScore(true, true); //Hit a ship, and ship has been sunk\n assertTrue(enemyGameBoard.getScore() == 3);\n\n enemyGameBoard.addScore(false, false); //Did not hit a ship, so points should stay 3 after a ship has been sunk\n assertTrue(enemyGameBoard.getScore() == 3);\n\n enemyGameBoard.addScore(false, true); //Did not hit a ship, but did sunk the ship. This should not add any points to the score\n assertTrue(enemyGameBoard.getScore() == 3);\n }", "void setScore(long score);", "@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}", "public Builder addScores(Score value) {\n if (scoresBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureScoresIsMutable();\n scores_.add(value);\n onChanged();\n } else {\n scoresBuilder_.addMessage(value);\n }\n return this;\n }", "public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }", "public void countScore(int score)\n {\n scoreCounter.add(score);\n }", "public void setScore(int score) {this.score = score;}", "public void setScore(Float score) {\n this.score = score;\n }", "void addScore(String name, int score, String order) {\n if (this.topScores.size() < this.numScore) {\n if (this.topScores.containsKey(name)) {\n if ((order.equals(\"Ascending\") && this.topScores.get(name) > score)\n || (order.equals(\"Descending\") && this.topScores.get(name) < score)) {\n this.topScores.put(name, score);\n }\n } else {\n this.topScores.put(name, score);\n }\n } else {\n this.topScores.put(name, score);\n this.topScores = sort(this.topScores);\n Object key = this.topScores.keySet().toArray()[this.topScores.keySet().size() - 1];\n String lastKey = key.toString();\n this.topScores.remove(lastKey);\n }\n this.topScores = sort(this.topScores);\n }", "public void setScore(int score)\n {\n this.score = score;\n }", "public void addQuiz(int score) {\n\t\tif (score < 0 || score > 100) {\n\t\t\tscore = 0;\n\t\t}\n\t\telse {\n\t\t\ttotalScore = totalScore + score;\n\t\t\tquizCount++;\n\t\t}\n\t\t}", "public void setScore(float score) {\n this.score = score;\n }", "public void setScore(double score) {\r\n this.score = score;\r\n }", "protected double newCompundScore(double score, double score2) {\n return score + score2;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void addToScore(int id, int bonus){\n scores.set(id,scores.get(id) + bonus);\n }", "public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }", "public void incrementScore(int increment) {\n score = score + increment;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(Double score) {\n this.score = score;\n }", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not already in the HT (retrieve the lastElement)\n */\n \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n if(this.updateValue){\n this.user.modifyScoreValue(this.date, \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }else{\n Date curr_date = new Date();\n this.user.addScore(dateFormat.format(curr_date).toString(), \n Integer.parseInt(scoreField.getText().replaceAll(\"\\\\s+\",\"\")));\n }\n \n \n }", "public void increaseScore(final int score) {\n setChanged();\n notifyObservers(new Pair<>(\"increaseScore\", score));\n }", "public synchronized int addScore(@Nonnull Team team, @Min(1L) int s){\r\n\t\t\tint result = s;\r\n\t\t\t\r\n\t\t\tif(this.scores.containsKey(team)){\r\n\t\t\t\tresult = scores.get(team).intValue() + s;\r\n\t\t\t}\r\n\t\t\tscores.put(team, Integer.valueOf(result));\r\n\t\t\t\r\n\t\t\treturn result;\r\n\t\t}", "public void incrementScore(int amount){\n\t\tthis.score += amount;\n\t}", "public void updateScore(int score){ bot.updateScore(score); }", "public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}", "public void addScore(String addCourseName, int addScore, String addDate, double addCourseRating, int addCourseSlope)\n {\n int z = 0;\n Score temp = new Score(addCourseName, addScore, addDate, addCourseRating, addCourseSlope);\n for(int i = 0; i < scores.length; i++)\n {\n if(scores[i] != null)\n {\n z++;\n }\n }\n Score[] copy = new Score[z + 1];\n for(i = 0; i < z; i++)\n {\n copy[i] = scores[i];\n }\n copy[z] = temp;\n this.scores = copy;\n }", "public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}", "Float getScore();", "public void addReview(double score){\n totalReviews++;\n totalScore += score;\n }", "Builder addPopularityScore(String value);", "public void setScore(Integer score) {\n this.score = score;\n }", "@Override\r\n\tpublic void add(Score s) throws IllegalArgumentException {\r\n\t\tif (s == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tscoreList[numItems] = s;\r\n\t\tnumItems++;\r\n\t}", "public void setScore(int paScore) {\n this.score = paScore;\n }", "public void addHighScore(long newScore, String name){\n if(isHighScore(newScore)){\n highScores[MAX_SCORES - 1] =newScore;\n names[MAX_SCORES-1] = name;\n sortHighScores();\n }\n }", "public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }", "public void addScore(double _score, User _user, int _app, double _weight, String date_n_time)\r\n\t{\r\n\t\tUserProgressEstimator upe = user_knowledge_levels.findById(\r\n\t\t\t_user.getId() );\r\n\t\tif(upe==null) // add new UserProgressEstimator\r\n\t\t{\r\n\t\t\tint estimator_type = 0;\r\n\t\t\tswitch (domain.getId())\r\n\t\t\t{\r\n\t\t\t\t// concepts\r\n\t\t\t\tcase 1:\r\n\t\t\t\tcase 8:\r\n\t\t\t\tcase 9:\r\n\t\t\t\tcase 11:\r\n\t\t\t\tcase 12:\r\n\t\t\t\tcase 15:\r\n\t\t\t\tcase 16:\r\n\t\t\t\t\testimator_type = iProgressEstimator.ESTIMATOR_ASSYMPTOTIC;\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 0:\r\n\t\t\t\tbreak;\r\n\t\t\t\t// topics\r\n\t\t\t\tcase 2: \r\n\t\t\t\tcase 6: \r\n\t\t\t\tcase 7: \r\n\t\t\t\tcase 10: \r\n\t\t\t\t\testimator_type = iProgressEstimator.ESTIMATOR_MEAN;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//t \r\n\t\t\t//c \r\n\t\t\t\r\n\t\t\t\r\n\t\t\tupe = new UserProgressEstimator(_user.getId(),\r\n\t\t\t\t_user.getTitle(), _user, 0, estimator_type);\r\n\t\t\tuser_knowledge_levels.add(upe);\r\n\t\t}\r\n\t\t\r\n\t\tint level_idx = ResourceMap.mapToBloomLevelIndex(_app, _score);\r\n//\t\tif((level_idx==0) && _score<0)\r\n//\t\t\t_score = Math.abs(_score);\r\n//if(this.getId()==14)\t\t\t\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore C.Id=\" + this.getId() +\" _score=\" + _score + \" _weight= \" + _weight + \" outcome_w_sum=\" + outcome_w_sum); /// DEBUG\r\n//}\r\n\r\n//if(this.getId()==190)\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore User=\"+_user.getTitle()+\" score=\"+_score + \" weight=\" + _weight); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_name=\" + iProgressEstimator.BLOOM_NAMES[level_idx] ); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_OLD=\" + upe.getKnowledgeLevels()[level_idx].getProgress() ); /// DEBUG\r\n//}\r\n//System.out.println(this.getTitle() + \" _app = \" + _app + \" level_idx = \" + level_idx);\r\n\t\tif(level_idx != -1)\r\n\t\t\tupe.getKnowledgeLevels()[level_idx].addProgress(_score, _weight,\r\n\t\t\t\toutcome_w_sum, date_n_time);\r\n//if(this.getId()==190)\r\n//{\r\n//System.out.println(\"### [CBUM] Concept.addScore \\tcog_level_NEW=\" + upe.getKnowledgeLevels()[level_idx].getProgress() ); /// DEBUG\r\n//System.out.println(\"### [CBUM] Concept.addScore \\t domain=\" + this.getDomain().getId() + \" \" + this.getDomain().getTitle()); /// DEBUG\r\n//}\t\t\t\r\n\t\t\r\n\t}", "public void increaseScore(){\n this.inc.seekTo(0);\n this.inc.start();\n this.currentScore++;\n }", "public void setScore(int score) {\n\t\tthis.score = score;\n\t}", "void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}", "public void addGameScore(String gameArea, GameScore score)\r\n\t{\r\n\t\tif(gameArea.toLowerCase().equals(\"fireworks\"))\r\n\t\t{\r\n\t\t\tgameFireworks.addGameScore(score);\r\n\t\t}\r\n\t\telse if(gameArea.toLowerCase().equals(\"pirates\"))\r\n\t\t{\r\n\t\t\t//gamePirates.addGameScore(score);\r\n\t\t}\r\n\t}", "public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}", "public void modifyScore(int modAmount)\r\n\t{\r\n\t\tscore += modAmount;\r\n\t}", "public Builder addScores(\n int index, Score value) {\n if (scoresBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureScoresIsMutable();\n scores_.add(index, value);\n onChanged();\n } else {\n scoresBuilder_.addMessage(index, value);\n }\n return this;\n }", "public void addToScore(TextView scoreTextView, int points) {\n int score = Integer.parseInt(scoreTextView.getText().toString());\n scoreTextView.setText(String.valueOf(score + points));\n }", "public void addScoreToAthlete(Athlete athlete, int score) {\n for (Athlete a : getAllAthletes()) {\n if (athlete.getId() == a.getId()) {\n a.setScore(score);\n }\n }\n }", "public void setScore (java.lang.Float score) {\n\t\tthis.score = score;\n\t}", "void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }", "public void awardPoints(int points)\n {\n score += points ;\n }", "public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}", "public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }", "float getScore();", "float getScore();", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }" ]
[ "0.8095613", "0.79209065", "0.75478476", "0.7407047", "0.7405549", "0.7234114", "0.7224339", "0.72027564", "0.7201731", "0.71950036", "0.7185641", "0.7182813", "0.71809596", "0.7175703", "0.7172104", "0.71312976", "0.71208405", "0.7113403", "0.7101788", "0.70595354", "0.705123", "0.70364416", "0.70198554", "0.69398165", "0.69079363", "0.69062585", "0.68110794", "0.679506", "0.67662793", "0.6739412", "0.6736393", "0.6698155", "0.6698039", "0.6681359", "0.6666309", "0.66069406", "0.6589948", "0.6582184", "0.6545597", "0.6535304", "0.65350085", "0.65325576", "0.65297073", "0.6518559", "0.6469935", "0.6467357", "0.64663476", "0.646372", "0.64554054", "0.6441905", "0.6440172", "0.64232844", "0.641435", "0.64118195", "0.6382361", "0.6382361", "0.6382361", "0.6382361", "0.6368945", "0.6368945", "0.6367616", "0.6363081", "0.6353561", "0.6347406", "0.6341273", "0.6333586", "0.63302606", "0.63289034", "0.6322367", "0.63199055", "0.6312259", "0.6292816", "0.6282583", "0.6260242", "0.62596554", "0.6259247", "0.6258", "0.62540174", "0.6251011", "0.62413585", "0.6231345", "0.6229456", "0.6222629", "0.62174964", "0.6202352", "0.61807513", "0.61722857", "0.6171057", "0.61681974", "0.61676675", "0.6163505", "0.61420625", "0.61317885", "0.61278814", "0.6127124", "0.6123443", "0.6122787", "0.61197793", "0.61197793", "0.6089848" ]
0.81439567
0
This is the clone method for Score. It is meant to be overridden where needed by subclass methods.
@Override public Score clone() { try { return (Score)super.clone(); } catch(CloneNotSupportedException e) { throw new InternalError(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object clone() {\n return super.clone();\n }", "public Clone() {}", "public abstract Pessoa clone();", "public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }", "public abstract Object clone() ;", "public Object clone() {\t\n\t\tGrille o = new Grille();\t\t//On créé une nouvelle grille\n\t\to.score=this.score;\n\t\tfor (Case i : this.grille){\n\t\t\tCase i2= (Case) i.clone();\t//On copie chaque case de la grille\n\t\t\ti2.setGrille(o);\n\t\t\to.grille.add(i2);\t\t\t//On les ajoute à la nouvelle grille\n\t\t}\n\t\t// on renvoie le clone\n\t\treturn o;\n\t}", "public GameBoard clone(){\r\n\t\tGameBoard result = new GameBoard();\r\n\t\ttry{\r\n\t\t\tresult = (GameBoard) super.clone();\r\n\t\t}catch(CloneNotSupportedException e){\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\tresult.board = (Box[]) board.clone();\r\n\t\treturn result;\r\n\t}", "public Object clone(){\n \t\n \treturn this;\n \t\n }", "public Function clone();", "public Object clone()\n/* */ {\n/* 835 */ return super.clone();\n/* */ }", "@Override\n public Board clone() {\n return new Board(copyOf(this.board));\n }", "public interface Score{\n\t\n\n/**\n* Gets the players actual overall score.\n*\n*@return int the players score\n*/\npublic int getPlayerScore();\n\n/**\n* Gets the players unique ID number corresponding to a score\n*\n*@return the players unique ID number\n*/\npublic int getPlayerId();\n\n/**\n* Clones a Score \n*\n* @return an Object (which then needs to be downcast into a Score object)\n* @throws CloneNotSupportedException if an object cannot be cloned.\n*/\nObject clone() throws CloneNotSupportedException;\n\n}", "public Object clone() {\n GlobalizedAnswer cloned;\n try {\n cloned = (GlobalizedAnswer)super.clone();\n }\n catch (CloneNotSupportedException e) {\n throw new Error(getClass() + \" must support cloning\", e);\n }\n assert cloned != null;\n \n // Copy mutable fields by value\n cloned.tuples = (Tuples) tuples.clone();\n \n return cloned;\n }", "public abstract Object clone();", "@Override\n\t\t public Shape clone()\n\t\t {\n\t\t SZShape s = (SZShape)super.clone();\n\t\t s.position = new Position(position);\n\t\t s.cells = new Cell[cells.length];\n\t\t for(int i = 0; i < cells.length; i++)\n\t\t {\n\t\t \t s.cells[i] = new Cell(cells[i]);\n\t\t }\n\t\t return s;\n\t\t }", "@Override\r\n\tpublic Student clone() \r\n\t{\n\t\ttry {\r\n\t\t\treturn (Student)super.clone();\r\n\t\t}\r\n\t\tcatch (CloneNotSupportedException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Object clone() throws CloneNotSupportedException { return super.clone(); }", "@Override\n\tpublic ClassPainter clone() {\n ClassPainter clone = null;\n try {\n clone = (ClassPainter) super.clone();\n } catch (CloneNotSupportedException e) {\n // Object does support clone()\n }\n return clone;\n }", "public QPenaltyFunction clone() {\n\t\ttry {\n\t\t\treturn (QPenaltyFunction) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public abstract GameObject clone();", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "@Override\n protected Object clone() throws CloneNotSupportedException {\n\n return super.clone();\n }", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\t\r\n\t\treturn super.clone();\r\n\t}", "public Object clone(){ \r\n\t\tBaseballCard cloned = new BaseballCard();\r\n\t\tcloned.name = this.getName();\r\n\t\tcloned.manufacturer=this.getManufacturer();\r\n\t\tcloned.year = this.getYear();\r\n\t\tcloned.price = this.getPrice();\r\n\t\tcloned.size[0]= this.getSizeX();\r\n\t\tcloned.size[1]= this.getSizeY();\r\n\t\treturn cloned;\r\n\t}", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException { // semi-copy\r\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public void testClone() {\n System.out.println(\"clone\");\n Play instance = new Play(\"Player1\", new Card(Rank.QUEEN, Suit.SPADES));\n Play expResult = instance;\n Play result = instance.clone();\n assertNotSame(expResult, result);\n }", "@Override\r\n\tpublic MotionStrategy Clone() {\n\t\tMotionStrategy move = new RandomAndInvisible(mLifetime);\r\n\t\treturn move;\r\n\t}", "@Override\r\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\r\n\t}", "public abstract Piece clone();", "public abstract Piece clone();", "@Override\n public SharedObject clone() {\n SharedObject c;\n try {\n c = (SharedObject)super.clone();\n } catch (CloneNotSupportedException e) {\n // Should never happen.\n throw new ICUCloneNotSupportedException(e);\n }\n c.refCount = new AtomicInteger();\n return c;\n }", "@Override\n protected Alpha clone() {\n try {\n Alpha alpha = (Alpha) super.clone();\n alpha.mListeners = new ArrayList<Listener>();\n return alpha;\n } catch (CloneNotSupportedException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n public Object clone() throws CloneNotSupportedException{\n return super.clone();\n }", "Object clone();", "Object clone();", "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "@Override\n\t\tpublic Pair clone()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Create copy of this pair\n\t\t\t\tPair copy = (Pair)super.clone();\n\n\t\t\t\t// Create copy of value\n\t\t\t\tcopy.value = value.clone();\n\n\t\t\t\t// Return copy\n\t\t\t\treturn copy;\n\t\t\t}\n\t\t\tcatch (CloneNotSupportedException e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(\"Unexpected exception\", e);\n\t\t\t}\n\t\t}", "@Override\n\tpublic Box clone()\n\t{\n\t\treturn new Box(center.clone(), xExtent, yExtent, zExtent);\n\t}", "@Override\n public Object clone() {\n try {\n return super.clone();\n } catch (CloneNotSupportedException e) {\n throw new AssertionError(e);\n }\n }", "public Object clone();", "public Object clone();", "public Object clone();", "public Object clone();", "@Override\n public Hints clone() {\n return (Hints) super.clone();\n }", "public Object clone() {\n return this.copy();\n }", "@Override\r\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\tthrow new CloneNotSupportedException();\r\n\t}", "public abstract State clone();", "public /*@ non_null @*/ Object clone() {\n return this;\n }", "public MossClone() {\n super();\n }", "@Override\n public GraphicsState clone(\n )\n {\n GraphicsState clone;\n {\n // Shallow copy.\n try\n {clone = (GraphicsState)super.clone();}\n catch(CloneNotSupportedException e)\n {throw new RuntimeException(e);} // NOTE: It should never happen.\n\n // Deep copy.\n /* NOTE: Mutable objects are to be cloned. */\n clone.ctm = (AffineTransform)ctm.clone();\n clone.tlm = (AffineTransform)tlm.clone();\n clone.tm = (AffineTransform)tm.clone();\n }\n return clone;\n }", "public final PaintObject clone() {\n \t\n \ttry {\n\t\t\treturn (PaintObject) super.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "@Override\n public Game cloneGame(){\n GridGame clone = new pegsolitaire();\n clone.pieces = new LinkedList<Piece>();\n for(Piece pc : pieces){\n clone.pieces.add(pc.clonePiece());\n }\n clone.current_player = current_player;\n clone.size_x = size_x;\n clone.size_y = size_y;\n return clone;\n }", "public Object clone()\n\t{\n\t\tObject myClone = new Object();\n\t\tmyClone = myName + myNumberWins;\n\t\treturn myClone;\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public Object clone ()\n\t{\n\t\ttry \n\t\t{\n\t\t\treturn super.clone();\n\t\t}\n\t\tcatch (CloneNotSupportedException e) \n\t\t{\n throw new InternalError(e.toString());\n\t\t}\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException {\n\treturn super.clone();\n\t}", "@Override\n\tpublic Object clone() throws CloneNotSupportedException{\n\t\tShape cloned = this;\n\t\tcloned.setPosition(this.getPosition());\n\t\tcloned.setProperties(this.getProperties());\n\t\tcloned.setColor(this.getColor());\n\t\tcloned.setFillColor(this.getFillColor());\n\t\treturn cloned;\n\t}", "@Override\r\n public Object clone() {\r\n\r\n Coordinate c = new Coordinate( this );\r\n return c;\r\n }", "@Override\n public Object clone() throws CloneNotSupportedException {\n throw new CloneNotSupportedException();\n }", "@Override\r\n\tpublic AI_Domain clone() {\r\n\t\treturn new Board2048model(this);\r\n\t}", "public Object clone () {\n\t\t\ttry {\n\t\t\t\treturn super.clone();\n\t\t\t} catch (CloneNotSupportedException e) {\n\t\t\t\tthrow new InternalError(e.toString());\n\t\t\t}\n\t\t}", "protected Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "protected final Object clone() {\n\t\tBitBoardImpl clone = new BitBoardImpl();\n\t\tfor( int i = 0; i < 5; i++) {\n\t\t clone._boardLayer[i] = _boardLayer[i];\n\t\t}\n\t\treturn clone;\n }", "@Override\n\tAlgebraicExpression clone();", "public native Sprite clone();", "public Object clone() {\r\n try {\r\n return super.clone();\r\n } catch (CloneNotSupportedException e) {\r\n return null;\r\n }\r\n }", "@Override\n\tpublic Object clone() \n\t{\n\t\ttry{\n\t\t// Note all state is primitive so no need to deep copy reference types.\n\t\treturn (Tile) super.clone();\n\t\t} catch (CloneNotSupportedException e) \n\t\t{\n\t\t\t// We should not ever be here as we implement Cloneable.\n\t\t\t// It is better to deal with the exception here rather than letting\n\t\t\t// clone throw it as we would have to catch it in more places then.\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\r\n\tpublic ArrayList<Cell> behaviorClone() {\r\n\t\tenergy = (energy-20)/2;\r\n\t\tmass = mass/2;\r\n\t\tArrayList<Cell> newCell = new ArrayList<Cell>();\r\n\t\tnewCell.add(new Grazer(petri, rng, x, y, xVelocity, yVelocity, mass, energy));\r\n\t\treturn newCell;\r\n\t}", "@Override\r\n\tpublic SolutionRepresentationInterface clone() {\n\t\tint[] oSolution = new int[getNumberOfLocations()];\r\n\t\toSolution = aiSolutionRepresentation.clone();\r\n\t\tSolutionRepresentation oRepresentation = new SolutionRepresentation(oSolution);\r\n\t\t\r\n\t\treturn oRepresentation;\r\n\t}", "@Override\n public Slot clone() {\n\tfinal Slot s = new Slot();\n\ts.day = day;\n\ts.start = start;\n\ts.end = end;\n\ts.venue = venue;\n\ts.instructor = instructor;\n\ts.sectionType = sectionType;\n\treturn s;\n }", "@Override\n\tpublic GameUnit clone() throws CloneNotSupportedException {\n\t\t// this is a shallow copy, because of the Point3D properties and that is the only property of this class (GameUnit) a shallow copy is enough\n\t\tGameUnit unit = (GameUnit)super.clone();\n\t\t// reset the position property state before returning the cloned class\n\t\tunit.initialize();\n\t\treturn unit;\n\t}", "public Object clone(){\r\n\t\tSampleData obj = new SampleData(letter,getWidth(),getHeight());\r\n\t\tfor ( int y=0;y<getHeight();y++ )\r\n\t\t\tfor ( int x=0;x<getWidth();x++ )\r\n\t\t\t\tobj.setData(x,y,getData(x,y));\r\n\t\treturn obj;\r\n\t}", "public Object clone() throws CloneNotSupportedException {\n\t\treturn super.clone();\n\t}", "public MovableObject lightClone()\n\t\t{\n\t\t\tfinal MovableObject clone = new MovableObject();\n\t\t\tclone.assCount = this.assCount;\n\t\t\tclone.associatable = this.associatable;\n\t\t\tclone.bound = this.bound;\n\t\t\tclone.coords = new int[this.coords.length];\n\t\t\tfor(int i=0; i < this.coords.length; i++)\n\t\t\t\tclone.coords[i] = this.coords[i];\n\t\t\tclone.highlighted = this.highlighted;\n\t\t\tclone.hotSpotLabel = this.hotSpotLabel;\n\t\t\tclone.keyCode = this.keyCode;\n\t\t\tclone.label = this.label;\n\t\t\tclone.maxAssociations = this.maxAssociations;\n\t\t\tif(shape.equals(\"rect\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Rectangle(coords[0]-3,coords[1]-3,coords[2]+6,coords[3]+6);\n\t\t\t}\n\t\t\tif(shape.equals(\"circle\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[2]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"ellipse\"))\n\t\t\t{\n\t\t\t\tclone.obj = new Ellipse2D.Double((coords[0]-coords[2])-4,(coords[1]-coords[2])-4,(coords[2]+2)*2,(coords[3]+2)*2);\n\t\t\t}\n\t\t\tif(shape.equals(\"poly\"))\n\t\t\t{\n\t\t\t\tfinal int xArr[] = new int[coords.length/2];\n\t\t\t\tfinal int yArr[] = new int[coords.length/2];\n\t\t\t\tint xCount = 0;\n\t\t\t\tint yCount = 0;\n\t\t\t\tfor(int i=0; i < coords.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif((i%2) == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\txArr[xCount] = coords[i];\n\t\t\t\t\t\txCount++;\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tyArr[yCount] = coords[i];\n\t\t\t\t\t\tyCount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//TODO calculate the centre of mass\n\n\t\t\t\tclone.obj = new Polygon(xArr,yArr,xArr.length);\n\t\t\t}\n\t\t\tclone.pos = new Point(this.pos.x,this.pos.y);\n\t\t\tclone.shape = this.shape;\n\t\t\tclone.startPos = this.startPos;\n\t\t\tclone.value = this.value;\n\n\t\t\treturn clone;\n\t\t}", "@Override\n\tpublic Object clone() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Spielfeld clone() {\n\t\tint[] mulden = new int[this.getMulden().length];\n\t\t\n\t\tfor(int i = 0; i < this.getMulden().length; i++) {\n\t\t\tmulden[i] = this.getMulden()[i];\n\t\t}\n\t\t\n\t\treturn new Spielfeld(mulden);\n\t}", "@Override\n\tprotected Object clone() throws CloneNotSupportedException {\n\t\treturn new Book(this);\n\t\t//\t\treturn super.clone();\n\t}", "public Term clone() {\n\t\treturn new Term(this.coefficient, this.exponent);\n\t}", "public Object clone() {\n \ttry {\n \tMyClass1 result = (MyClass1) super.clone();\n \tresult.Some2Ob = (Some2)Some2Ob.clone(); ///IMPORTANT: Some2 clone method called for deep copy without calling this Some2.x will be = 12\n \t\n \treturn result;\n \t} catch (CloneNotSupportedException e) {\n \treturn null; \n \t}\n\t}", "public Object clone() {\n \t\treturn new Term(this);\n \t}", "public Object clone(){\n\t\tSongRecord cloned = new SongRecord();\n\t\tif (this.title == null){\n\t\t\tcloned.title = null;\n\t\t}\n\t\telse {\n\t\t\tcloned.title = new String(this.getTitle());\n\t\t}\n\t\tif (this.artist == null){\n\t\t\tcloned.artist = null;\n\t\t}\n\t\telse {\n\t\t\tcloned.artist = new String(this.getArtist());\n\t\t}\n\t\tcloned.min = this.getMin();\n\t\tcloned.sec = this.getSec();\n\t\treturn cloned;\n\t}", "Point clone ();", "public Object clone() throws CloneNotSupportedException {\n/* 354 */ SlidingCategoryDataset clone = (SlidingCategoryDataset)super.clone();\n/* 355 */ if (this.underlying instanceof PublicCloneable) {\n/* 356 */ PublicCloneable pc = (PublicCloneable)this.underlying;\n/* 357 */ clone.underlying = (CategoryDataset)pc.clone();\n/* */ } \n/* 359 */ return clone;\n/* */ }", "private void selfClone() {\n stroke = stroke.clone();\n }", "public abstract Shape clone() throws CloneNotSupportedException;", "public Object clone() {\n return new PointImpl( this );\n }", "@Override\n\tpublic Object clone()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn new Molecule(((Molecule) super.clone()).getSequence());\n\t\t}\n\t\tcatch (CloneNotSupportedException e)\n\t\t{\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t}" ]
[ "0.7190772", "0.7104908", "0.7057893", "0.6942433", "0.69378376", "0.69372576", "0.6936437", "0.6878573", "0.68687254", "0.68602765", "0.68575966", "0.68421906", "0.6836751", "0.6835406", "0.68328124", "0.68278706", "0.68259126", "0.6825228", "0.68164676", "0.6801638", "0.67433715", "0.67433715", "0.67433715", "0.6706334", "0.6680598", "0.66602707", "0.6659637", "0.66576207", "0.66529703", "0.6647481", "0.6646781", "0.6646781", "0.6641837", "0.66358304", "0.6633468", "0.6633468", "0.6633468", "0.6633468", "0.6633468", "0.6633468", "0.6633468", "0.6633468", "0.6633468", "0.66300505", "0.66269875", "0.66269875", "0.6614702", "0.66133726", "0.660695", "0.6602701", "0.6599953", "0.6599953", "0.6599953", "0.6599953", "0.65944964", "0.6581188", "0.65784866", "0.6576328", "0.65755117", "0.657439", "0.6563963", "0.6560501", "0.656016", "0.65594614", "0.65377486", "0.65377486", "0.65377486", "0.6532435", "0.6516794", "0.6514802", "0.65140486", "0.6502993", "0.64838064", "0.6475433", "0.645623", "0.6452872", "0.6449129", "0.64372176", "0.6434843", "0.6431079", "0.6419102", "0.6418705", "0.6415038", "0.6406334", "0.64019096", "0.63920444", "0.6389659", "0.6385219", "0.6384292", "0.6383621", "0.63817775", "0.6379658", "0.6359041", "0.63545305", "0.6341987", "0.6341541", "0.634113", "0.6337973", "0.6331499", "0.63308954" ]
0.8995507
0
A toString method for Score that returns a string describing the score
public String toString() { return ("Score: " + score); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String toString() {\n\t\treturn \"{\"+this.getType()+this.label+\",\"+Util.formatNum(this.score)+\"}\";\r\n\t}", "@Override\n\tpublic String toString() { \n\t\treturn name + \" \" + score;\n\t}", "@Override\n public String toString(){\n return (this.name + \" \" + this.score);\n }", "public String toString(){\n StringBuilder string = new StringBuilder();\n for(double s : scores)string.append(s + \" \");\n return string.toString();\n }", "public String getStringScore() {\n\t\treturn Integer.toString(score);\n\t}", "@Override\r\n\tpublic String toString(){\r\n\t\tString str = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < scoreNumber; i++)\r\n\t\t\tstr += highScores[i].toString() + \"\\n\";\r\n\t\t\r\n\t\treturn str;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn Globals.currentScore + \" \" + String.valueOf(points);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"Student(name:%s,score:%d)\", name,score);\n\t}", "@Override\r\n public String toString() {\n return this.name + \":\" + this.score + \":\" + this.freq;\r\n }", "public String toString(){\n\t\tfor (int i = 0; i < scoreList.size(); i++) {\n\t\t\tsource += \" \" + scoreList.get(i);\n\t }\n\t return source;\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getDisruptionScore() != null)\n sb.append(\"DisruptionScore: \").append(getDisruptionScore()).append(\",\");\n if (getScore() != null)\n sb.append(\"Score: \").append(getScore());\n sb.append(\"}\");\n return sb.toString();\n }", "abstract String getScoreString();", "public String toString () {\n return team1 + \" vs. \" + team2 + \": \" + score1 + \" to \" + score2;\n }", "private String getScore(){\n return whiteName + \" : \" + blackName + \" - \" + whiteScore + \" : \" + blackScore;\n }", "public String toString() {\n\t\treturn (\"Name: \"+Name+\" Score: \"+Score+\" Date/Time\"+date.toGMTString());\n\t}", "public String toString() {\n\t\tNumberFormat formatter = NumberFormat.getPercentInstance();\n\t\tformatter.setMinimumFractionDigits(1);\n\n\t\treturn (\"\\nStudent Name: \" + lastName + \", \" + firstName + \"\\nWID: \" + wId + \"\\nOverall Pct: \"\n\t\t\t\t+ formatter.format(scorePercent) + \"\\nFinal Grade: \" + calcFinalGrade());\n\t}", "public String toString() {\n String table = \"\";\n if (this.highScores.isEmpty()) {\n return \"[]\";\n }\n for (ScoreInfo s: this.highScores) {\n table = table.concat(s.getName()).concat(\" : \").concat(Integer.toString(s.getScore())).concat(\"\\n\");\n }\n return table;\n }", "@Override\n\tpublic String toString(){\n\t\tString game;\n\t\t\n\t\tgame=this.currentBoard.toString();\n\t\tgame=game+\"best value: \"+this.currentRules.getWinValue(currentBoard)+\" Score: \"+this.points+\"\\n\";\n\t\t\n\t\tif(currentRules.win(currentBoard)){\n\t\t\tgame=game+\"Well done!\\n\";\n\t\t\tfinish=true;\n\t\t}\n\t\telse if(currentRules.lose(currentBoard)){\n\t\t\tgame=game+\"Game over.\\n\";\n\t\t\tfinish=true;\n\t\t}\n\t\t\n\t\treturn game;\n\t}", "public String toString()\n {\n String result;\n result = \"Player Name: \" + playerName + \"\\tPlayer Score: \" + playerScore;\n return result;\n }", "@Override\n public String toString() {\n newPlayer.addPoints(players[0].getPoints());\n WarPlayer winner = players[mostNumOfCards(players)];\n\n if (winner.getPoints() == players[0].getPoints())\n return \"YOU WON!!! With a score of \" + players[0].getPoints();\n return \"Player\" + mostNumOfCards(players) + \" won!!! With a score of \" + winner.getPoints();\n }", "public String toString()\n\t{\n\t\t\n\t\treturn (\"The grade for quiz 1 is: \" + this.quiz1 + \" the grade for quiz 2 is: \"+ this.quiz2 + \" the grade for quiz 3 is: \" + this.quiz3 + \" the grade for the midterm is: \" + this.midtermExam + \" the grade for the final is: \" + this.finalExam);\n\t}", "public String toString()\n {\n return getRankString() + \" of \" + getSuitString();\n }", "public String getScore(){\n return score;\n }", "@Override\n\tpublic String toString(){\n\t\treturn \"\" + lives + \", \" + score + \", \" + brainX + \", \" + brainY + \", \" + zombieX;\n\t}", "@Override\n\tpublic void printScore() {\n\n\t}", "public String toString()\r\n\t{\n\t\treturn strRank[srtRank] + strSuit[srtSuit];\r\n\t}", "public String toString() \n {\n String words = \"\";\n boolean empty = true;\n for (int i = 0; i < scores.length; i++)\n {\n if(scores[i] == null)\n {\n empty = false;\n words = this.name + \" ID Number: \" + this.idNum + \" Home Course: \" + this.homeCourse + \" \\n \" + \"Score\" +\n \" \\t \" + \"Date\" + \" \\t \" + \"Course\" + \" \\t \" + \"Course Rating\" + \" \\t \" + \"Course Slope\" + \" \\n \";\n break;\n }\n else \n {\n words = this.name + \" ID Number: \" + this.idNum + \" Home Course: \" + this.homeCourse + \" \\n \" + \"Score\" +\n \" \\t \" + \"Date\" + \" \\t \" + \"Course\" + \" \\t \" + \"Course Rating\" + \" \\t \" + \"Course Slope\" + \" \\n \" + \n Arrays.asList(scores).toString().replaceFirst(\"]\", \"\").replace(\", \", \"\").replace(\"[\",\"\");\n }\n } \n return words;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder(rank.toString());\n sb.append(\" \");\n sb.append(suit.toString());\n\n return sb.toString();\n }", "public String toString() {\n // get the string of student, time, and coins\n return student.getStudentName() + \" \" + getCoins() + \" \" + timestamp;\n }", "@Override\n public String toString() {\n String str = \"\";\n \n str += String.format(\"%-20s: %s\\n\", \"Name\", name);\n str += String.format(\"%-20s: %s\\n\", \"Gender\", gender);\n str += String.format(\"%-20s: %s\\n\\n\", \"Email\", email);\n \n str += String.format(\"%-20s %-30s %-10s %s\\n\", \"Course\", \"Name\", \"Credit\", \"Score\");\n str += \"---------------------------------------------------------------\\n\";\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 1\", \n course1.getCourseName(), course1.getCredit(), course1.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 2\", \n course2.getCourseName(), course2.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s %-30s: %-10.1f %.1f\\n\", \"Course 3\", \n course3.getCourseName(), course3.getCredit(), course3.calcFinalScore());\n str += String.format(\"%-20s: %d\\n\", \"Passed Courses\", calcPassedCourseNum());\n str += String.format(\"%-20s: %.1f\\n\", \"Passed Courses\", calcTotalCredit());\n \n return str;\n }", "public String myToString() {\n\t\treturn \t\"User: \" + ((User)value1).toString() +\r\n\t\t\t\t\" | Job: \" + ((Job)key).name +\r\n\t\t\t\t\" | Recruiter: \" + ((Recruiter)value2).toString() +\r\n\t\t\t\t\" | Score: \" + df2.format(score);\r\n\t}", "@Override\n public String toString()\n {\n return (this.getRankAsString(this.getRank()) +\" of \"\n + this.getSuitAsString(this.getSuit()));\n }", "public String toString() \r\n\t{\r\n\t\treturn value + \" \" + rank + \" of \" + suit;\r\n\t}", "public String toString()\r\n\t{\r\n\t final String TAB = \" \";\r\n\t \r\n\t String retValue = \"\";\r\n\t \r\n\t retValue = \"StatsPair ( \"\r\n\t + \"tag = \" + this.tag + TAB\r\n\t + \"answer = \" + this.answer + TAB\r\n\t + \" )\";\r\n\t\r\n\t return retValue;\r\n\t}", "public String toString() {\r\n\t\t//sort dice\r\n\t\t//now assemble a string, use StringBuilder for speed (it really can get slow)\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor( DiceGroup diceGroup:dice.values() ) {\r\n\t\t\tresult.append( diceGroup + \" \");\r\n\t\t}\r\n\t\tresult.append(BOLD + \" Total:\" + NORMAL + getTotalScore());\r\n\t\treturn result.toString();\r\n\t}", "public String getScoreText() {\n return scoreText;\n }", "public String toString() {\r\n\t\tif (rank == 1) {\r\n\t\t\treturn \"slayer\";\r\n\t\t} else if (rank == 2) {\r\n\t\t\treturn \"scout\";\r\n\t\t} else if (rank == 3) {\r\n\t\t\treturn \"dwraf\";\r\n\t\t} else if (rank == 4) {\r\n\t\t\treturn \"elf\";\r\n\t\t} else if (rank == 5) {\r\n\t\t\treturn \"lavaBeast\";\r\n\t\t} else if (rank == 6) {\r\n\t\t\treturn \"sorceress\";\r\n\t\t} else if (rank == 7) {\r\n\t\t\treturn \"beastRider\";\r\n\t\t} else if (rank == 8) {\r\n\t\t\treturn \"knight\";\r\n\t\t} else if (rank == 9) {\r\n\t\t\treturn \"mage\";\r\n\t\t} else {\r\n\t\t\treturn \"dragon\";\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString strSuit = suit.toString().substring(0, 1);\n\t\tstrSuit += suit.toString().toLowerCase()\n\t\t\t\t.substring(1, suit.toString().length());\n\n\t\treturn strSuit + value;\t\n\t}", "public String getScoreInfo() {\n return scoreInfo + \"Dependency Score=\" + dependencyScore + \" pageRank=\" + pageRank +\n \" total=\" + totalScore + \"\\n\";\n }", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString() ;", "public String getScoreBoardText() {\n putListInPointOrder();\n String scoreText;\n StringBuilder sb = new StringBuilder();\n\n for (Player player : players)\n sb.append(player.toString() + \"\\n\");\n\n scoreText = sb.toString();\n return scoreText;\n }", "@Override String toString();", "public String toString(){\n\t\treturn \"The student \"+Student.getFirstName()+\" \"+Student.getFamilyName()+\" has average of \"+averageGrade();\r\n\t}", "@Override\n public String toString() {\n try {\n return String.format(\"\"\"\n +----------------------------+\n |- %9s Year %3d -|\n |- %2d Courses @ %3d Credits -|\n +----------------------------+\n %s+----------------------------+\n \"\"\", term.season(), getTermIndex(), getNumberOfCourses(),\n getNumberOfCredits(), getCourses());\n } catch (CustomExceptions.InvalidInputException e) {\n e.printStackTrace();\n return e.getMessage();\n }\n }", "@Override\n public String toString() {\n return rankArray[rank] + suitArray[suit];\n }", "public String toString() {\n // return \"Card {suit: \"+getSuitString()+\", rank: \"+getRankString()+\"}\";\n return \"{\"+getSuitString()+\",\"+getRankString()+\"}\";\n }", "public String toString() {\r\n\t\tString s = String.format(\"%6.1f :\", this.distance);\r\n\t\tfor (int i = 0; i < this.length(); i++) {\r\n\t\t\ts += String.format(\"%3d\", index[i]);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}", "public String toString() {\n\t\treturn this.getStatisticID() + \"\" + this.getMark() + \"\" + this.getStudentName() + \"\" + this.getCourse() + \"\"\n\t\t\t\t+ this.getAssignmentName() + \"\" + this.getFeedback() + \"\" + this.getAverage();\n\n\t}", "@Override public String toString();", "public String toString() {\n return \"The \" + value + \" of \" + suit;\n }", "public String toString() {\n\t\tString s = \"(\" + emptyQueueTime + \"ms)_Q[\" + this.id + \"](\" + queueEfficency + \"score)= \";\n\t\tfor (Client a : queue) {\n\t\t\ts += a.toString();\n\t\t}\n\t\ts += \"\\n\";\n\t\treturn s;\n\t}", "public String toString(){ \n\t\tString s = String.format(\"%s: %d, rating: %f, price:%f\", TITLE, YEAR_RELEASED, user_rating, getPrice());\n\t\treturn s; \n\t}", "public String toString() {\n String temp = this.value + \"\";\n if (this.value == 11) {\n temp = \"Jack\";\n } else if (this.value == 12) {\n temp = \"Queen\";\n } else if (this.value == 13) {\n temp = \"King\";\n } else if (this.value == 14) {\n temp = \"Ace\";\n }\n return temp + \" of \" + getSuitName();\n }", "public String toString(){\n String r = \"\";\n String s = \"\";\n switch(rank){\n case 1: r = \"Ace\"; break;\n case 2: r = \"Two\"; break;\n case 3: r = \"Three\"; break;\n case 4: r = \"Four\"; break;\n case 5: r = \"Five\"; break;\n case 6: r = \"Six\"; break;\n case 7: r = \"Seven\"; break;\n case 8: r = \"Eight\"; break;\n case 9: r = \"Nine\"; break;\n case 10: r = \"Ten\"; break;\n case 11: r = \"Jack\"; break; \n case 12: r = \"Queen\"; break;\n case 13: r = \"King\"; break;\n }\n \n switch(suit) {\n case 1: s = \" of Clubs\"; break;\n case 2: s = \" of Diamonds\"; break;\n case 3: s = \" of Hearts\"; break;\n case 4: s = \" of Spades\"; break;\n }\n return r + s; //returns the name of the card\n }", "public String toString() {\n \r\n return this.studentID + \", \" + this.lastName + \", \" +\r\n this.firstName + \", \" + this.q1 + \", \" +\r\n this.q2 + \", \" + this.q3 + \", \" +\r\n this.q4 + \", \" + this.q5 + \", \" +\r\n this.qmkup + \", \" + this.midterm + \", \" +\r\n this.problems + \", \" +\r\n this.finalExam + \", \" + this.courseGrade + \", \" +\r\n this.letterGrade;\r\n }", "public String toString(){\n return \"The marks for student \" + registrationNumber + \"\" + \" are \" + Arrays.toString(getMarks()) + \"\" + \"their grade is \" + totalMark() + \".\" + \" This student passed: \" + passed() + \".\";\n }", "@Override\n\tString toString();", "@Override\r\n\tpublic String toString();", "public String toString() {\n\t\tString returnString=\"\";\n\t\t\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\tfor (int j=0; j<squares.length; j++) {\n\t\t\t\treturnString+=Character.toString(squares[i][j].getValue());\n\t\t\t}\n\t\t\treturnString+=\"// \";\n\t\t}\n\t\t\n\t\treturn returnString;\n\t}", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();" ]
[ "0.83586645", "0.82148206", "0.8091576", "0.78728485", "0.7826518", "0.77063876", "0.7632612", "0.75909775", "0.7527683", "0.74958926", "0.74663323", "0.74583215", "0.73444086", "0.731954", "0.7273502", "0.72525805", "0.72285527", "0.7027345", "0.69832426", "0.6980628", "0.696927", "0.6967795", "0.69507575", "0.69389224", "0.69135135", "0.68932396", "0.68929636", "0.6857843", "0.6799277", "0.6796589", "0.67917037", "0.67849267", "0.6758843", "0.673491", "0.6730289", "0.6729714", "0.67265666", "0.6710637", "0.6710002", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6659568", "0.6639542", "0.6633354", "0.6590872", "0.6587395", "0.6576309", "0.65615815", "0.655764", "0.65514827", "0.65419155", "0.6541567", "0.654065", "0.65406156", "0.65114045", "0.65077597", "0.6506818", "0.650201", "0.6496211", "0.64876956", "0.6486606", "0.647862", "0.6463504", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214", "0.64628214" ]
0.8743333
0
A basic equals method for Score that compares score values.
public boolean equals(Object obj) { if(this == obj) { return true; //The same object } if(!(obj instanceof Score)) { return false; //Not of the same type } Score other = (Score)obj; //Compare the score of the Score object to the score of the other Score //object and return true or false return(other.getScore() == score); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (!(other instanceof HighScore)) {\n\t\t\treturn false;\n\t\t}\n\t\tHighScore h = (HighScore) other;\n\t\tif (h.score == this.score) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@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 }", "@Override\n\tpublic int compareTo(Score s) {\n\t\treturn Double.compare(this.score, s.score);\n\t}", "@Override\n\tpublic abstract boolean equals(Object other);", "@Override\n boolean equals(Object other);", "public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "@Override\n public abstract boolean equals(Object other);", "@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (!(o instanceof Rating)) return false;\n Rating rating = (Rating) o;\n return Double.compare(rating.getAverageRating(), getAverageRating()) == 0 &&\n getCount() == rating.getCount() &&\n getMaxRating() == rating.getMaxRating() &&\n getMinRating() == rating.getMinRating();\n }", "@Override\n public int compareTo(Score other) {\n return (int) (100 * (this.getAsDouble() - other.getAsDouble()));\n }", "@Override\n public boolean equals(Object o)\n {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n if (this.getClass() != o.getClass()) {\n return false;\n }\n StudentExam other = (StudentExam)o;\n if (this.rollno != other.rollno) {\n return false;\n }\n return true;\n }", "@Override\n public boolean equals(Object other) {\n return this == other;\n }", "@Test\n public void equals_trulyEqual() {\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 \"Default 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 \"Default Site\"\n );\n\n Assert.assertEquals(si1, si2);\n }", "@Test \n public void compareFunctionalEquals() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p1);\n \n assertEquals(0, a);\n }", "@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }", "@Test\n\tpublic void testEquals2() {\n\t\tDistance d2 = new Distance();\n\t\tDistance d4 = new Distance(1, 1);\n\t\tassertEquals(true, d2.equals(d4));\n\t}", "public abstract boolean equals(Object o);", "public boolean equals(@Nullable Object obj) {\n/* 338 */ if (obj == null) {\n/* 339 */ return false;\n/* */ }\n/* 341 */ if (getClass() != obj.getClass()) {\n/* 342 */ return false;\n/* */ }\n/* 344 */ Stats other = (Stats)obj;\n/* 345 */ return (this.count == other.count && \n/* 346 */ Double.doubleToLongBits(this.mean) == Double.doubleToLongBits(other.mean) && \n/* 347 */ Double.doubleToLongBits(this.sumOfSquaresOfDeltas) == Double.doubleToLongBits(other.sumOfSquaresOfDeltas) && \n/* 348 */ Double.doubleToLongBits(this.min) == Double.doubleToLongBits(other.min) && \n/* 349 */ Double.doubleToLongBits(this.max) == Double.doubleToLongBits(other.max));\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}", "@Test\n\tpublic void testEquals1() {\n\t\tDistance d1 = new Distance(0, 0);\n\t\tDistance d2 = new Distance();\n\t\tassertEquals(false, d1.equals(d2));\n\t}", "private Equals() {}", "@Override\n boolean equals(Object o);", "@Override\r\n\tpublic boolean equals (Object o) {\r\n\t if (!(o instanceof Assessment) || o == null) {\r\n\t \treturn false; \r\n\t }\r\n\t Assessment a = (Assessment) o;\r\n\t return weight == a.weight && type == a.type; // Checking if weight and type if equal\r\n\t}", "@Override\n\tpublic int compareTo(Student o) {\n\t\treturn this.score - o.score;\n\t\t\n\t}", "@Override\n public abstract boolean equals(final Object o);", "@Override\n public abstract boolean equals(final Object o);", "@Override\n public abstract boolean equals(Object obj);", "@Test\n\tpublic void test_equals1() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(11,\"Joe Tsonga\");\n\tassertTrue(c1.equals(c2));\n }", "@Override \n boolean equals(Object obj);", "@Override public boolean equals(Object object);", "@Override\n\tpublic boolean equals(Object o) {\n\t\tif (o == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (o == this) {\n\t\t\treturn true;\n\t\t}\n\t\tif (o.getClass() != getClass()) {\n\t\t\treturn false;\n\t\t}\n\t\tScalar<?> other = (Scalar<?>) o;\n\t\treturn Objects.equals(getValue(), other.getValue());\n\t}", "@Override\n public boolean equals(Object o) {\n return this == o;\n }", "public boolean equals(Square other){\n\t\t\treturn this.x==other.x && this.y==other.y;\n\t\t}", "@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }", "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n YyzjCScoreTotalData other = (YyzjCScoreTotalData) that;\n return (this.getScoreTotalDataId() == null ? other.getScoreTotalDataId() == null : this.getScoreTotalDataId().equals(other.getScoreTotalDataId()))\n && (this.getTotalScoreResultId() == null ? other.getTotalScoreResultId() == null : this.getTotalScoreResultId().equals(other.getTotalScoreResultId()))\n && (this.getBaseId() == null ? other.getBaseId() == null : this.getBaseId().equals(other.getBaseId()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getTotalScore() == null ? other.getTotalScore() == null : this.getTotalScore().equals(other.getTotalScore()))\n && (this.getSysId() == null ? other.getSysId() == null : this.getSysId().equals(other.getSysId()))\n && (this.getAgentId() == null ? other.getAgentId() == null : this.getAgentId().equals(other.getAgentId()))\n && (this.getAudioCode() == null ? other.getAudioCode() == null : this.getAudioCode().equals(other.getAudioCode()))\n && (this.getRecordDuration() == null ? other.getRecordDuration() == null : this.getRecordDuration().equals(other.getRecordDuration()))\n && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))\n && (this.getRemoteUri() == null ? other.getRemoteUri() == null : this.getRemoteUri().equals(other.getRemoteUri()))\n && (this.getLocalUri() == null ? other.getLocalUri() == null : this.getLocalUri().equals(other.getLocalUri()))\n && (this.getRecordFile() == null ? other.getRecordFile() == null : this.getRecordFile().equals(other.getRecordFile()));\n }", "@Test\r\n public void testEquals() {\r\n System.out.println(\"equals\");\r\n Object obj = null;\r\n RevisorParentesis instance = null;\r\n boolean expResult = false;\r\n boolean result = instance.equals(obj);\r\n assertEquals(expResult, result);\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 boolean equals(Card c)\n {\n if (rank == c.rank)\n return true;\n else\n return false;\n }", "public boolean Equals(Pair rhs) {\n if(this.first == rhs.first &&\n this.second == rhs.second)\n return true;\n\n return false;\n }", "@Override\n public boolean equals(Object other) {\n if (this == other) {\n // Same instance passed as parameter\n return true;\n } else if (null == other) {\n return false;\n }\n\n if (!(other instanceof BigInt)) {\n // other is not a BigInt\n return false;\n }\n\n BigInt num = (BigInt)other;\n\n return (num.isPositive == isPositive && number.equals(num.number));\n }", "@Override\n boolean equals(Object obj);", "@Test\n public void equals() {\n Grade mathsCopy = new GradeBuilder(MATHS_GRADE).build();\n assertTrue(MATHS_GRADE.equals(mathsCopy));\n\n // same object -> returns true\n assertTrue(MATHS_GRADE.equals(MATHS_GRADE));\n\n // null -> returns false\n assertFalse(MATHS_GRADE.equals(null));\n\n // different type -> returns false\n assertFalse(MATHS_GRADE.equals(5));\n\n // different person -> returns false\n assertFalse(MATHS_GRADE.equals(SCIENCE_GRADE));\n\n // different subject name -> returns false\n Grade editedMaths = new GradeBuilder(MATHS_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different graded item -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different grade -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGrade(VALID_GRADE_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n }", "public boolean equals (Position pos) // Creates an operator that compares two positions\n\t{\n\t\tif ((r == pos.r) && (c == pos.c))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Override\n\tpublic boolean equals(Object o) {\n\t\treturn super.equals(o);\n\t}", "@Override\n public boolean equals(Object other) \n {\n Student s = (Student)other; \n return this.name.equals(s.getName()) && this.id.equals(s.getId()); \n }", "public boolean equals( Object rhs )\n {\n return (rhs instanceof MyInteger) && value == ((MyInteger)rhs).value;\n }", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "@Override\n public boolean equals(Object o){\n if (o == this) { //True if it's this instance\n return true;\n }\n if (!(o instanceof LeaderCard))\n return false;\n\n //Check if same values\n LeaderCard c = (LeaderCard) o;\n return this.getId() == c.getId() && this.getVictoryPoints() == c.getVictoryPoints() && this.getRequirement().equals(c.getRequirement()) &&\n this.getSpecialAbility().equals(c.getSpecialAbility()) && this.inGame == c.inGame;\n }", "@Override\n\tpublic boolean equals(Card anotherCard){\n\t\t\n\t}", "@Override\n public boolean equals(Object otherObject) {\n if (this == otherObject) return true;\n if (!(otherObject instanceof Card)) return false;\n Card card = (Card) otherObject;\n return suit == card.suit &&\n rank == card.rank;\n }", "public boolean equals(Scalar s) {\n\t\tif(getValue() == ((RealScalar)s).getValue())\n\t\t\treturn true;\n\t\treturn false; \n\t}", "@Test\r\n public void testEquals() {\r\n Articulo art = new Articulo();\r\n articuloPrueba.setCodigo(1212);\r\n art.setCodigo(1212);\r\n boolean expResult = true;\r\n boolean result = articuloPrueba.equals(art);\r\n assertEquals(expResult, result);\r\n }", "@Override public boolean equals(Object o) { // since 1.3.1\n // should these ever match actually?\n return (o == this);\n }", "@Override\n public boolean equals(Object obj) {\n return this == obj;\n }", "public boolean equals(Object rhs) {\n AS rhsAS = (AS) rhs;\n return this.asn == rhsAS.asn;\n }", "@Override\n public boolean equals(Object o) {\n\tif (o == null)\n\t return false; \n\telse {\n\t Square p = (Square) o; \n\t return ( (rowIndex == p.rowIndex) && (colIndex == p.colIndex) );\n\t} \n }", "@Test\n public void testEquals() {\n System.out.println(\"equals\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n Receta instance2 = new Receta();\n instance.setNombre(\"nom2\");\n boolean expResult = false;\n boolean result = instance.equals(instance2);\n assertEquals(expResult, result);\n }", "@Override\r\n\tpublic boolean equals(Object o) {\r\n\t\tif (o instanceof Seed) {\r\n\t\t\tSeed s = (Seed) o;\r\n\t\t\tCards cs1, cs2;\r\n\r\n\t\t\tif (this.size() != s.size()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tfor (int i = 0; i < s.size(); i++) {\r\n\t\t\t\tcs1 = s.get(i);\r\n\t\t\t\tcs2 = this.get(i);\r\n\t\t\t\tif (cs1.getCardsType() != cs2.getCardsType()\r\n\t\t\t\t\t\t|| cs1.getCardsValue() != cs2.getCardsValue()) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(obj!=null && obj instanceof Test1){\n\t\t\tTest1 obj2 = (Test1)obj;\n\t\t\tif(x==obj2.x && y==obj2.y){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean equals (Object o) {\r\n\t if (!(o instanceof Course) || o == null) {\r\n\t \treturn false; \r\n\t }\r\n\t \r\n\t Course c = (Course) o;\r\n\t return credit == c.credit && code.equals(c.code); // Returns if credit and code are equal\r\n\t}", "@Test\n public void testEquality(){\n int ans = testing1.LessThanTen(testing1.getValue1(), testing1.getValue2());\n assertEquals(10, ans);\n }", "@Override\n public boolean equals(Object obj)\n {\n if (obj instanceof A)\n {\n A temp = (A) obj;\n if (temp.xValue == this.xValue)\n {\n return true;\n }\n }\n return false;\n }", "public boolean equals( Object obj );", "@Override\r\n\tpublic boolean equals(Object arg0) {\n\t\t Student s=(Student)arg0;\r\n\t\treturn this.id==s.id;\r\n\t}", "public boolean equals(Object obj)\n\t{\n\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (this.getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tCoin other = (Coin) obj;\n\t\treturn other.getValue()==this.value;\n\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}", "public boolean equals(java.lang.Object other){\n return false; //TODO codavaj!!\n }", "@Test\n public void equalsTrueMySelf() {\n Player player1 = new Player(PlayerColor.BLACK, \"\");\n assertTrue(player1.equals(player1));\n assertTrue(player1.hashCode() == player1.hashCode());\n }", "public boolean equals(Card c) {\n if (this.getValue() == c.getValue() && this.getSuit() == c.getSuit())\n return true;\n return false;\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\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "@Override\n public boolean equals(Object other) {\n if (!(other instanceof Player)) {\n return false;\n }\n\n return (playerColor().equals(((Player) other).playerColor()));\n }", "public boolean equals(Object o) { return compareTo(o) == 0; }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Employee employee = (Employee) o;\n return ssNum == employee.ssNum;\n }", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tSecond other = (Second) obj;\n\t\tif (booleanValue != other.booleanValue)\n\t\t\treturn false;\n\t\tif (Double.doubleToLongBits(doubleValue) != Double.doubleToLongBits(other.doubleValue))\n\t\t\treturn false;\n\t\tif (intValue != other.intValue)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "@Override\n public final boolean equals( Object obj ) {\n return super.equals(obj);\n }", "final public boolean equals (Object other)\n {\n\treturn compareTo (other) == 0;\n }", "@Test\n public void equals() {\n assertTrue(semester.equals(new Semester(1, 0)));\n\n // same object -> returns true\n assertTrue(semester.equals(semester));\n\n // null -> returns false\n assertFalse(semester.equals(null));\n\n // different type -> returns false\n assertFalse(semester.equals(5));\n\n // different year -> returns false\n assertFalse(semester.equals(new Semester(2, 0)));\n\n // different index -> returns false\n assertFalse(semester.equals(new Semester(1, 1)));\n\n // different modules -> returns false\n Semester differentSemester = new Semester(1, 0);\n differentSemester.addModules(getTypicalModules());\n assertFalse(semester.equals(differentSemester));\n }", "@Test\n public void testEqualsMethodEqualObjects() {\n String name = \"A modifier\";\n int cost = 12;\n\n Modifier m1 = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n Modifier m2 = new Modifier(name, cost) {\n @Override\n public int getValue() {\n return 0;\n }\n };\n\n assertTrue(m1.equals(m2));\n }", "public boolean equals(Object o) {\r\n\t\t// TODO and replace return false with the appropriate code.\r\n\t\tif (o == null || o.getClass() != this.getClass())\r\n\t\t\treturn false;\r\n\t\tProperty p = (Property) o;\r\n\t\treturn Arrays.deepEquals(p.positive, this.positive)\r\n\t\t\t\t&& Arrays.deepEquals(p.negative, this.negative)\r\n\t\t\t\t&& Arrays.deepEquals(p.stop, this.stop)\r\n\t\t\t\t&& p.scoringmethod == this.scoringmethod\r\n\t\t\t\t&& Math.abs(p.mindistance - this.mindistance) < 0.000001;\r\n\t}", "@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}", "@Override public boolean equals(Object obj)\n {\n if(this == obj){\n return false;\n }\n if(obj == null){\n return false;\n }\n if (!(obj instanceof Priority))\n {\n return false;\n }\n Priority other = (Priority) obj;\n return priority == other.priority;\n }", "@Override \n public boolean equals(Object o) {\n if(this.gnum == ((Student)(o)).getGnum()){\n return true;\n }\n return false;\n }", "@Test\n public void testEquals() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n \n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n \n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst1 = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n ConstraintSyntaxTree cst2 = new OCLFeatureCall(\n new Variable(decl), IntegerType.GREATER_EQUALS_INTEGER_INTEGER.getName(), c0);\n\n EvaluationAccessor val1 = Utils.createValue(ConstraintType.TYPE, context, cst1);\n EvaluationAccessor val2 = Utils.createValue(ConstraintType.TYPE, context, cst2);\n EvaluationAccessor nullV = Utils.createNullValue(context);\n \n // equals is useless and will be tested in the EvaluationVisitorTest\n \n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val1);\n Utils.testEquals(true, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, val2);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, val1);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val1, nullV);\n Utils.testEquals(false, ConstraintType.EQUALS, ConstraintType.UNEQUALS, val2, nullV);\n\n val1.release();\n val2.release();\n nullV.release();\n }", "public static void main(String[] args) {\n\t\tObjectWithoutEquals noEquals = new ObjectWithoutEquals(1, 10.0);\n\n\t\t// This class includes an implementation of hashCode and equals\n\t\tObjectWithEquals withEquals = new ObjectWithEquals(1, 10.0);\n\n\t\t// Of course, these two instances are not going to be equal because they\n\t\t// are instances of two different classes.\n\t\tSystem.out.println(\"Two instances of difference classes, equal?: \"\n\t\t\t\t+ withEquals.equals(noEquals));\n\t\tSystem.out.println(\"Two instances of difference classes, equal?: \"\n\t\t\t\t+ noEquals.equals(withEquals));\n\t\tSystem.out.println();\n\n\t\t// Now, let's create two more instances of these classes using the same\n\t\t// input parameters.\n\t\tObjectWithoutEquals noEquals2 = new ObjectWithoutEquals(1, 10.0);\n\t\tObjectWithEquals withEquals2 = new ObjectWithEquals(1, 10.0);\n\n\t\tSystem.out.println(\"Two instances of ObjectWithoutEquals, equal?: \"\n\t\t\t\t+ noEquals.equals(noEquals2));\n\t\tSystem.out.println(\"Two instances of ObjectWithEquals, equal?: \"\n\t\t\t\t+ withEquals.equals(withEquals2));\n\t\tSystem.out.println();\n\n\t\t// If you do not implement the equals method, then equals only returns\n\t\t// true if the two variables are referring to the same instance.\n\n\t\tSystem.out.println(\"Same instance of ObjectWithoutEquals, equal?: \"\n\t\t\t\t+ noEquals.equals(noEquals));\n\t\tSystem.out.println(\"Same instance of ObjectWithEquals, equal?: \"\n\t\t\t\t+ withEquals.equals(withEquals));\n\t\tSystem.out.println();\n\n\t\t// Of course, the exact same instance should be equal to itself.\n\n\t\t// Also, the == operator checks if the instance on the left and right of\n\t\t// the operator are referencing the same instance.\n\t\tSystem.out.println(\"Two instances of ObjectWithoutEquals, ==: \"\n\t\t\t\t+ (noEquals == noEquals2));\n\t\tSystem.out.println(\"Two instances of ObjectWithEquals, ==: \"\n\t\t\t\t+ (withEquals == withEquals2));\n\t\tSystem.out.println();\n\t\t// Which in this case, they are not.\n\n\t\t//\n\t\t// How the equals method is used in Collections\n\t\t//\n\n\t\t// The behavior of the equals method can influence how other things work\n\t\t// in Java.\n\t\t// For example, if these instances where included in a Collection:\n\t\tList<ObjectWithoutEquals> noEqualsList = new ArrayList<ObjectWithoutEquals>();\n\t\tList<ObjectWithEquals> withEqualsList = new ArrayList<ObjectWithEquals>();\n\n\t\t// Add the first two instances that we created earlier:\n\t\tnoEqualsList.add(noEquals);\n\t\twithEqualsList.add(withEquals);\n\n\t\t// If we check if the list contains the other instance that we created\n\t\t// earlier:\n\t\tSystem.out.println(\"List of ObjectWithoutEquals, contains?: \"\n\t\t\t\t+ noEqualsList.contains(noEquals2));\n\t\tSystem.out.println(\"List of ObjectWithEquals, contains?: \"\n\t\t\t\t+ withEqualsList.contains(withEquals2));\n\t\tSystem.out.println();\n\n\t\t// The class with no equals method says that it does not contain the\n\t\t// instance even though there is an instance with the same parameters in\n\t\t// the List.\n\n\t\t// The class with an equals method does contain the instance as\n\t\t// expected.\n\n\t\t// So, if you try to use the values as keys in a Map:\n\t\tMap<ObjectWithoutEquals, Double> noEqualsMap = new HashMap<ObjectWithoutEquals, Double>();\n\t\tnoEqualsMap.put(noEquals, 10.0);\n\t\tnoEqualsMap.put(noEquals2, 20.0);\n\n\t\tMap<ObjectWithEquals, Double> withEqualsMap = new HashMap<ObjectWithEquals, Double>();\n\t\twithEqualsMap.put(withEquals, 10.0);\n\t\twithEqualsMap.put(withEquals2, 20.0);\n\n\t\t// Then the Map using the class with the default equals method\n\t\t// will contain two keys and two values, while the Map using the class\n\t\t// with an equals method will only have one key and one value\n\t\t// (because it knows that the two keys are equal).\n\t\tSystem.out.println(\"Map using ObjectWithoutEquals: \" + noEqualsMap);\n\t\tSystem.out.println(\"Map using ObjectWithEquals: \" + withEqualsMap);\n\t\tSystem.out.println();\n\n\t\t//\n\t\t// The hashCode method\n\t\t//\n\n\t\t// Another method used by Collections is the hashCode method. If the\n\t\t// equals method says that two instances are equal, then the hashCode\n\t\t// method should generate the same int.\n\n\t\t// The hashCode value is used in Maps\n\t\tSystem.out.println(\"Two instances of ObjectWithoutEquals, hashCodes?: \"\n\t\t\t\t+ noEquals.hashCode() + \" and \" + noEquals2.hashCode());\n\t\tSystem.out.println(\"Two instances of ObjectWithEquals, hashCodes?: \"\n\t\t\t\t+ withEquals.hashCode() + \" and \" + withEquals2.hashCode());\n\t\tSystem.out.println();\n\n\t\t// Since the default hashCode method is overridden in the\n\t\t// ObjectWithEquals class, the two instances return the same int value.\n\n\t\t// The hashCode method is not required to give a unique value\n\t\t// for every unequal instance, but performance can be improved by having\n\t\t// the hashCode method generate distinct values.\n\n\t\t// For example:\n\t\tMap<ObjectWithEquals, Integer> mapUsingDistinctHashCodes = new HashMap<ObjectWithEquals, Integer>();\n\t\tMap<ObjectWithEquals, Integer> mapUsingSameHashCodes = new HashMap<ObjectWithEquals, Integer>();\n\n\t\t// Now add 10,000 objects to each map\n\t\tfor (int i = 0; i < 10000; i++) {\n\t\t\t// Uses the hashCode in ObjectWithEquals\n\t\t\tObjectWithEquals distinctHashCode = new ObjectWithEquals(i, i);\n\t\t\tmapUsingDistinctHashCodes.put(distinctHashCode, i);\n\n\t\t\t// The following overrides the hashCode method using an anonymous\n\t\t\t// inner class.\n\t\t\t// We will get to anonymous inner classes later... the important\n\t\t\t// part is that it returns the same hashCode no matter what values\n\t\t\t// are given to the constructor, which is a really bad idea!\n\t\t\tObjectWithEquals sameHashCode = new ObjectWithEquals(i, i) {\n\t\t\t\t@Override\n\t\t\t\tpublic int hashCode() {\n\t\t\t\t\treturn 31;\n\t\t\t\t}\n\t\t\t};\n\t\t\tmapUsingSameHashCodes.put(sameHashCode, i);\n\t\t}\n\n\t\t// Iterate over the two maps and time how long it takes\n\t\tlong startTime = System.nanoTime();\n\n\t\tfor (ObjectWithEquals key : mapUsingDistinctHashCodes.keySet()) {\n\t\t\tint i = mapUsingDistinctHashCodes.get(key);\n\t\t}\n\n\t\tlong endTime = System.nanoTime();\n\n\t\tSystem.out.println(\"Time required when using distinct hashCodes: \"\n\t\t\t\t+ (endTime - startTime));\n\n\t\tstartTime = System.nanoTime();\n\n\t\tfor (ObjectWithEquals key : mapUsingSameHashCodes.keySet()) {\n\t\t\tint i = mapUsingSameHashCodes.get(key);\n\t\t}\n\n\t\tendTime = System.nanoTime();\n\n\t\tSystem.out.println(\"Time required when using same hashCodes: \"\n\t\t\t\t+ (endTime - startTime));\n\t\tSystem.out.println();\n\n\t\t//\n\t\t// Warning about hashCode method\n\t\t//\n\n\t\t// You can run into trouble if your hashCode is based on a value that\n\t\t// could change.\n\t\t// For example, we create an instance with a custom hashCode\n\t\t// implementation:\n\t\tObjectWithEquals withEquals3 = new ObjectWithEquals(1, 10.0);\n\n\t\t// Create the Map and add the instance as a key\n\t\tMap<ObjectWithEquals, Double> withEquals3Map = new HashMap<ObjectWithEquals, Double>();\n\t\twithEquals3Map.put(withEquals3, 100.0);\n\n\t\t// Print some info about Map before changing attribute\n\t\tSystem.out.println(\"Map before changing attribute of key: \"\n\t\t\t\t+ withEquals3Map);\n\t\tSystem.out\n\t\t\t\t.println(\"Map before changing attribute, does it contain key: \"\n\t\t\t\t\t\t+ withEquals3Map.containsKey(withEquals3));\n\t\tSystem.out.println();\n\n\t\t// Now we change one of the values that the hashCode is based on:\n\t\twithEquals3.setX(123);\n\n\t\t// See what the Map look like now\n\t\tSystem.out.println(\"Map after changing attribute of key: \"\n\t\t\t\t+ withEquals3Map);\n\t\tSystem.out\n\t\t\t\t.println(\"Map after changing attribute, does it contain key: \"\n\t\t\t\t\t\t+ withEquals3Map.containsKey(withEquals3));\n\t\tSystem.out.println();\n\n\t\t// What is the source of this problem?\n\t\t// So, even though we used the same instance to put a value in the Map,\n\t\t// the Map does not recognize that the key is in the Map if an attribute\n\t\t// that is being used by the hashCode method is changed.\n\t\t// This can create some really confusing behavior!\n\n\t\t//\n\t\t// Final notes about equals and hashCode\n\t\t//\n\n\t\t// Also, Eclipse has a nice feature for generating the equals and\n\t\t// hashCode methods (Source -> Generate hashCode and equals methods), so\n\t\t// I would recommend using this feature if you need to implement these\n\t\t// methods. The source generator allows you to choose which attributes\n\t\t// should be used in the equals and hashCode methods.\n\n\t\t// GOOD CODING PRACTICE:\n\t\t// When working with objects, it is good to know if you are working with\n\t\t// the same instances over and over again or if you are expected to do\n\t\t// comparisons between different instances that may actually be equal.\n\t\t//\n\t\t// Also, if you override the hashCode method, if possible have the\n\t\t// hashCode be based on immutable data (data that cannot change value).\n\t}", "@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }", "@Override\n\tpublic boolean equals(Object obj){\n\t\treturn super.equals(obj);\n\t}", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tStudent obj1=(Student) obj;\r\n\t\treturn obj1.getAge().equals(this.getAge())&&obj1.getName().equals(this.getName());\r\n\t}", "public boolean equals(Object o);", "public /*override*/ boolean Equals(Object obj)\r\n { \r\n if(obj instanceof LocalValueEnumerator)\r\n { \r\n LocalValueEnumerator other = (LocalValueEnumerator) obj; \r\n\r\n return (_count == other._count && \r\n _index == other._index &&\r\n _snapshot == other._snapshot);\r\n }\r\n else \r\n {\r\n // being compared against something that isn't a LocalValueEnumerator. \r\n return false; \r\n }\r\n }", "public boolean equals(Object obj);", "@Override\r\n\t\tpublic boolean equals (Object o) {\r\n\t\t if (!(o instanceof Student) || o == null) {\r\n\t\t \treturn false; \r\n\t\t }\r\n\t\t // Checking if student number and name are equal\r\n\t\t Student s = (Student) o;\r\n\t\t return studentID.equals(s.studentID) && name.equals(s.name);\r\n\t\t}" ]
[ "0.73039144", "0.65760255", "0.6557657", "0.6351262", "0.633652", "0.6329355", "0.62895316", "0.62895316", "0.62584025", "0.62549645", "0.6216471", "0.62047696", "0.6199613", "0.61864555", "0.6173251", "0.61504036", "0.6147578", "0.61053544", "0.6094705", "0.60903937", "0.6090377", "0.6083282", "0.6062069", "0.6038214", "0.602859", "0.60271543", "0.60271543", "0.6017773", "0.60173017", "0.60095704", "0.6005119", "0.6004651", "0.60029596", "0.60029185", "0.59879744", "0.5987694", "0.5986877", "0.5986857", "0.59841377", "0.59807926", "0.5970851", "0.5968635", "0.59681284", "0.59655243", "0.596449", "0.59641695", "0.59582365", "0.5955996", "0.5947574", "0.5944404", "0.59360164", "0.592955", "0.59266317", "0.591792", "0.5914338", "0.5913229", "0.5906368", "0.5899798", "0.5889215", "0.5876388", "0.5867792", "0.5865909", "0.58596563", "0.58573085", "0.58545166", "0.58507115", "0.58507115", "0.58507115", "0.5848276", "0.58429116", "0.583576", "0.5828156", "0.5827398", "0.5826682", "0.5819448", "0.5813675", "0.5812293", "0.5812293", "0.5812293", "0.5812293", "0.5812293", "0.5812293", "0.5810395", "0.5810011", "0.58067936", "0.5806041", "0.58048594", "0.57996583", "0.57989246", "0.57823575", "0.578197", "0.5780412", "0.5780226", "0.5775397", "0.57751757", "0.57728523", "0.5771081", "0.57641715", "0.57632077", "0.57625544" ]
0.7122106
1
A basic hashCode method for Score, for the score field that is compared in the equals method.
public int hashCode() { int result = 17; result = 37 * result + score; return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getScoreTotalDataId() == null) ? 0 : getScoreTotalDataId().hashCode());\n result = prime * result + ((getTotalScoreResultId() == null) ? 0 : getTotalScoreResultId().hashCode());\n result = prime * result + ((getBaseId() == null) ? 0 : getBaseId().hashCode());\n result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());\n result = prime * result + ((getTotalScore() == null) ? 0 : getTotalScore().hashCode());\n result = prime * result + ((getSysId() == null) ? 0 : getSysId().hashCode());\n result = prime * result + ((getAgentId() == null) ? 0 : getAgentId().hashCode());\n result = prime * result + ((getAudioCode() == null) ? 0 : getAudioCode().hashCode());\n result = prime * result + ((getRecordDuration() == null) ? 0 : getRecordDuration().hashCode());\n result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());\n result = prime * result + ((getRemoteUri() == null) ? 0 : getRemoteUri().hashCode());\n result = prime * result + ((getLocalUri() == null) ? 0 : getLocalUri().hashCode());\n result = prime * result + ((getRecordFile() == null) ? 0 : getRecordFile().hashCode());\n return result;\n }", "@Override\n\t public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "@Override\n int hashCode();", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "@Override\n\tpublic int hashCode() {\n\t\treturn Objects.hash(getRank(), getSuit());\n\t}", "public abstract int hashCode();", "@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn super.hashCode(); //Default implementation; may need to bring in line to equals\n\t\t}", "@Override\n public int hashCode();", "int hashCode();", "int hashCode();", "@Override\n public int hashCode() {\n return Objects.hash(getAverageRating(), getCount(), getMaxRating(), getMinRating());\n }", "@Override \n int hashCode();", "@Override\r\n \tpublic int hashCode() {\r\n \t\t// Insert code to generate a hash code for the receiver here.\r\n \t\t// This implementation forwards the message to super. You may replace or supplement this.\r\n \t\t// NOTE: if two objects are equal (equals(Object) returns true) they must have the same hash code\r\n \t\treturn super.hashCode();\r\n \t}", "public final int hashCode() {\n return super.hashCode();\n }", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}", "@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\n\t}", "public int hashCode() {\n\t\tint hash = 0;\n\t\tif (isGameOver()) {\n\t\t\treturn (1 + (winner() == Game.FIRST_PLAYER ? 1 : 2));\n\t\t}\n\t\thash = 4;\n\t\tfor (int i = 1; i < NUMBER_OF_MOVES; i++) {\n\t\t\thash *= 3;\n\t\t\tif (contains(moves1, i)) {\n\t\t\t\thash++;\n\t\t\t} else if (contains(moves2, i)) {\n\t\t\t\thash += 2;\n\t\t\t}\n\t\t}\n\t\treturn hash;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.title.hashCode() + this.author.hashCode();\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 71 * hash + this.id;\n hash = 71 * hash + Objects.hashCode(this.name);\n hash = 71 * hash + Objects.hashCode(this.cash);\n hash = 71 * hash + Objects.hashCode(this.skills);\n hash = 71 * hash + Objects.hashCode(this.potions);\n return hash;\n }", "public int hashCode() {\r\n\t return super.hashCode();\r\n\t}", "@Override\n public int hashCode() {\n return hashcode;\n }", "public int hashCode()\n {\n return super.hashCode();\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1; \n\t\t\n\t\t/*\n\t\t * result = 31*1 + 0(if rank is null) else rank.hashcode which calls the String implementation of the hashcode method.\n\t\t * So for example we will say: 31*1+20=51\n\t\t */\n\t\tresult = prime * result + ((rank == null) ? 0 : rank.hashCode());\n\t\tresult = prime * result + ((suit == null) ? 0 : suit.hashCode());\n\t\treturn result;\n\t}", "public int hashCode() {\r\n \treturn super.hashCode();\r\n }", "public int hashCode() { return super.hashCode(); }", "public synchronized int hashCode() {\n\t\treturn super.hashCode();\n\t}", "@Override\n public int hashCode() {\n return hashCode;\n }", "public int hashCode()\n {\n return hash;\n }", "@Override\n public int hashCode()\n {\n return hashCode;\n }", "public int hashCode() {\n return hash.hashCode();\n }", "@Override\n public int hashCode() {\n int hash = 3;\n hash = 97 * hash + this.x;\n hash = 97 * hash + this.y;\n return hash;\n }", "@Override\r\n public int hashCode() {\r\n return super.hashCode();\r\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn StudentNum;\n\t}", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_title );\r\n hash ^= hashValue( m_description );\r\n return hash;\r\n }", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = QAOperation.SEED;\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + operator.hashCode();\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + operand.hashCode();\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + constraint.hashCode();\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}", "@Override\n public int hashCode() {\n return Objects.hash(myInt, myLong, myString, myBool, myOtherInt);\n }", "@Override\n public int hashCode() {\n return Objects.hash(this.getValue());\n }", "@Override\n public final int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode() {\n return hash(this.getCoordinate(), this.getSide());\n }", "int\thashCode();", "public int hashCode() {\n return Objects.hashCode(this);\n }", "@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn key.hashCode() * 31 + value.hashCode();\n\t\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn m * 100 + c * 10 + b;\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn Double.hashCode(getX()) + \n\t\t\t\tDouble.hashCode(getY()) * 971;\n\t}", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn (int) (this.sum * 100 + this.index);\n\t\t}", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((color == null) ? 0 : color.hashCode());\n\t\tresult = prime * result + (int) (id ^ (id >>> 32));\n\t\tresult = prime * result + ((largeImage == null) ? 0 : largeImage.hashCode());\n\t\tlong temp;\n\t\ttemp = Double.doubleToLongBits(listPrice);\n\t\tresult = prime * result + (int) (temp ^ (temp >>> 32));\n\t\tresult = prime * result + ((mediumImage == null) ? 0 : mediumImage.hashCode());\n\t\tresult = prime * result + ((parentProduct == null) ? 0 : parentProduct.hashCode());\n\t\tresult = prime * result + (int) (quantityOnHand ^ (quantityOnHand >>> 32));\n\t\ttemp = Double.doubleToLongBits(salePrice);\n\t\tresult = prime * result + (int) (temp ^ (temp >>> 32));\n\t\tresult = prime * result + ((size == null) ? 0 : size.hashCode());\n\t\tresult = prime * result + ((smallImage == null) ? 0 : smallImage.hashCode());\n\t\treturn result;\n\t}", "@Override\r\n public int hashCode()\r\n {\r\n if(this.isEmpty()) return 0;\r\n\r\n /**\r\n * En este caso es recomendable usar la funcion Arrays.hashCode porque\r\n * garantiza un hash unico para cada array.\r\n * Si se usa la suma, los objetos \"ab\" y \"ba\" tendrian el mismo hash.\r\n */\r\n return Arrays.hashCode(this.table);\r\n }", "@Override\n public int hashCode() {\n return Objects.hash(name, gender, age, phone, email, address, desiredJob, education, expectedSalary, tags);\n }", "@Override\n public int hashCode() {\n return super.hashCode();\n }", "@Override\n public int hashCode()\n {\n return this.value.hashCode();\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getBookid() == null) ? 0 : getBookid().hashCode());\n result = prime * result + ((getBookname() == null) ? 0 : getBookname().hashCode());\n result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());\n result = prime * result + ((getPrintwhere() == null) ? 0 : getPrintwhere().hashCode());\n result = prime * result + ((getPrintdate() == null) ? 0 : getPrintdate().hashCode());\n result = prime * result + ((getIntroduction() == null) ? 0 : getIntroduction().hashCode());\n result = prime * result + ((getNote() == null) ? 0 : getNote().hashCode());\n return result;\n }", "public /*override*/ int GetHashCode() \r\n {\r\n return super.GetHashCode(); \r\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn map.hashCode() ^ y() << 16 ^ x();\n\t}", "public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_name );\r\n hash ^= hashValue( m_classname );\r\n if( m_implicit )\r\n {\r\n hash ^= 35;\r\n }\r\n hash ^= hashValue( m_production );\r\n hash ^= hashArray( m_dependencies );\r\n hash ^= hashArray( m_inputs );\r\n hash ^= hashArray( m_validators );\r\n hash ^= hashValue( m_data );\r\n return hash;\r\n }", "public int hashcode();", "@Override public int hashCode() {\n\t\t// for details on the use of result and prime below, see Effective Java, 2E, page 47-48\n\t\tint result = 7; // arbitrary number\n\t\tint prime = 31; // this ensures order matters\n\t\t\n\t\t// factor in each field used in the equals method\n\t\tresult = prime * result + numerator;\n\t\tresult = prime * result + denominator;\n\t\t\n\t\treturn result;\n\t}", "@Override\n public int hashCode() {\n // Declare hash and assign value\n int hash = 7;\n // Generate hash integer\n hash = 31 * hash + (int) this.getCrossingTime();\n hash = 31 * hash + (this.getName() == null ? 0 : this.getName().hashCode());\n return hash;\n }", "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = super.hashCode();\n\t\tresult = prime * result + maxCourses;\n\t\treturn result;\n\t}", "public int hashCode() {\n return super.hashCode() ^ 0x1;\n }", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "@Override\n public int hashCode() {\n return this.toString().hashCode();\n }", "public int hashCode() {\n\t\treturn toString().hashCode();\n\t}", "@Override\n public int hashCode() {\n int hash = 5;\n hash = 11 * hash + Objects.hashCode(this.color);\n return hash;\n }", "@Override\n public int hashCode() {\n return Objects.hash(balls);\n }", "public int hashCode() {\n\t\treturn new HashCodeBuilder().append(obox).append(wordOffsets).append(occlusions).toHashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn idx1.hashCode() * 811 + idx2.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t int result = x;\n\t result = 31 * result * result + y;\n\t return result;\n\t}", "@Override \r\n\tpublic int hashCode(){\r\n\t\treturn (new Double(this.getX()).hashCode()) + (new Double(this.getY()).hashCode());\r\n\t}", "@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }", "public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }", "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (!(other instanceof HighScore)) {\n\t\t\treturn false;\n\t\t}\n\t\tHighScore h = (HighScore) other;\n\t\tif (h.score == this.score) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}", "@Override\r\n public int hashCode() {\r\n return this.toString().hashCode();\r\n }", "@Override\n public int hashCode() {\n int result = fullwidth.hashCode();\n result = 31 * result + halfwidth.hashCode();\n return result;\n }", "@Override\n public int hashCode() {\n int result = 17;\n result = 31 * result + x + y;\n return result;\n }", "@Override\n public int hashCode() {\n return new HashCodeBuilder(17, 31).\n append(title).hashCode();\n }" ]
[ "0.74935704", "0.7294779", "0.7172339", "0.7172339", "0.7172339", "0.7172339", "0.7160463", "0.712969", "0.712969", "0.712969", "0.7113435", "0.7102967", "0.7089101", "0.7082023", "0.70738965", "0.70738965", "0.706231", "0.70010793", "0.6986716", "0.69491917", "0.6911758", "0.6911758", "0.6911758", "0.68839633", "0.68839633", "0.68839633", "0.68839633", "0.68839633", "0.68839633", "0.68839633", "0.68839633", "0.68839633", "0.68839633", "0.6858705", "0.68455034", "0.6836428", "0.68353546", "0.68302447", "0.68224806", "0.6816922", "0.677187", "0.6762306", "0.6760314", "0.6755212", "0.6741232", "0.67359793", "0.6713843", "0.67123914", "0.6708283", "0.669583", "0.668912", "0.668912", "0.668912", "0.668912", "0.6681432", "0.6657018", "0.6646218", "0.6638824", "0.6632651", "0.66298664", "0.6628419", "0.66219556", "0.66193193", "0.6617368", "0.66171557", "0.66165507", "0.6609243", "0.6607125", "0.65871876", "0.658103", "0.65615433", "0.6561502", "0.6560477", "0.65512854", "0.654858", "0.6548359", "0.65426284", "0.65399146", "0.65339464", "0.65253764", "0.65151703", "0.6505354", "0.6504148", "0.6500484", "0.65002126", "0.64914846", "0.6491081", "0.64856577", "0.6480145", "0.6479909", "0.6473462", "0.6472412", "0.646109", "0.6460353", "0.6459584", "0.6453925", "0.645245", "0.6449598", "0.6445769", "0.64342535" ]
0.8026367
0
Atividade1 exercicio = new Atividade1(); exercicio.desafio1(); Atividade2 exercicio = new Atividade2(); exercicio.desafio2(); Atividade3 exercicio = new Atividade3(); exercicio.desafio3();
public static void main(String[] args) { Atividade4 exercicio = new Atividade4(); exercicio.desafio4(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exemplo2 = new aluno();\n exemplo1.nome = \"EPAMINONDAS\";\n exemplo1.matricula = \"MAT-1\";\n exemplo1.nota = 5;\n exemplo1.anoNacimento = 2005;\n\n\n exemplo2.nome = \"MARIA\";\n exemplo2.matricula = \"MAT-2\";\n exemplo2.nota = 10;\n exemplo2.anoNacimento = 2000;\n\n\n System.out.println(\"Nome: \"+exemplo1.nome + \" matricula: \" + exemplo1.matricula + \" nota: \" + exemplo1.nota);\n System.out.println(\"Nome: \"+exemplo2.nome + \" matricula: \" + exemplo2.matricula + \" nota: \" + exemplo2.nota);\n\n exemplo1.mostraIdade(2030);//metodos\n exemplo2.mostraIdade(2021);\n exemplo2.mostraIdade(2003, 2021);\n }", "public void annuler(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public static void main(String[] args) {\n Animal a1 = new Animal();\n \n //objeto animal parametrizado\n Animal a2 = new Animal(LocalDate.of(2020, 6, 4), \"Saphi\", Animal.Tipo.GATO, 400, Animal.Estado.DURMIENDO);\n \n //imprimir a1 y a2\n System.out.println(\"Animal a1:\\n \" + a1.toString());\n System.out.println(\"Animal a2:\\n \" + a2.toString());\n \n \n //clonar a2 en a3\n Animal a3 = Animal.clonar(a2);\n System.out.println(\"Animal a3:\\n\" + a3.toString());\n \n //contador de instancias\n System.out.println(\"N de instancias: \" + Animal.getContadorInstancias());\n \n //creacion de dos personas\n Persona p1 = new Persona(\"Juan\", 33);\n Persona p2 = new Persona(\"Alba\", 21);\n \n //p1 despierta a los animales\n p1.llamar(a1);\n p1.llamar(a2);\n p1.llamar(a3);\n\n //p2 juega con a2 12m min\n p2.jugar(a2, 120);\n System.out.println(\"Peso de a2 despues de jugar con p2: \" + a2.getGramos());\n \n \n //p1 alimenta a a1 1000 gramos, nuevo peso\n p1.alimentar(a1, 1000);\n System.out.println(\"Peso de a1 despues de comer: \" + a1.getGramos());\n \n //FALTA CONTROLAR EXCEPCION\n \n //p1 juega con a1 200 min, nuevo peso\n// p1.jugar(a1, 200);\n// System.out.println(\"El animal a1 pesa \" + a1.getGramos() + \" después de jugar\");\n \n \n }", "public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }", "public static void main(String[] args) {\n Animal unAnimalRavioso = new Animal();\n System.out.println(unAnimalRavioso.informaEnergia());\n\n //Al objeto le digo que corra\n unAnimalRavioso.correr();\n\n //Imprimo la energia\n System.out.println(unAnimalRavioso.informaEnergia());\n\n Comida unPaty = new Comida();\n unPaty.setEnergia(120);\n System.out.println(unPaty.getEnergia());\n\n System.out.println(\"Energia antes de comer paty \" + unAnimalRavioso.informaEnergia());\n unAnimalRavioso.comer(unPaty);\n\n System.out.println(\"Energia despues de comer paty \" + unAnimalRavioso.informaEnergia());\n\n Perro perroCobarde = new Perro();\n perroCobarde.hacerRuido();\n\n Gato gatoCobarde = new Gato();\n ArrayList<Animal>animales = new ArrayList<>();\n\n animales.add(perroCobarde);\n animales.add(gatoCobarde);\n\n System.out.println(\"hacer ruido animales\");\n for (Animal unAnimal:animales) {\n unAnimal.hacerRuido();\n }\n\n\n\n }", "public static void main(String[] args) {\n Aviso aviso1 = new Aviso();\n \n aviso1.id=1;\n \n aviso1.tipoAviso=\"General\";\n aviso1.titulo=\"Insumos y bienes muebles de laboratorio disponibles\";\n aviso1.texto=\"La Coordinación de Control Técnico de Insumos (COCTI) de la Dirección de Prestaciones Médicas, pone a disposición del personal que realiza investigación el inventario adjunto.\";\n aviso1.resumen=\"Insumos y bienes muebles de laboratorio disponibles por la Coordinación de Control Técnico de Insumos (COCTI)\";\n aviso1.nombre=\"Eduardo Flores Díaz\";\n aviso1.estatusF=\"Vigente\";\n \n aviso1.diaP=02;\n aviso1.mesP=02;\n aviso1.yearP=2020;\n \n aviso1.diaA=02;\n aviso1.mesA=02;\n aviso1.yearA=2020;\n \n aviso1.diaB=02;\n aviso1.mesB=02;\n aviso1.yearB=2021;\n \n System.out.println(aviso1);\n \n Aviso aviso2 = new Aviso();\n \n aviso2.id=2;\n \n aviso2.tipoAviso=\"Conferencia\";\n aviso2.titulo=\"CONFERENCIA DR. COSSARIZZA\";\n aviso2.texto=\"El Dr. Andrea Cossarizza, ofreció a la comunidad IMSS su conferencia “Clinical Applications of Advanced Cytometry” y aprovechó la presencia de investigadores y estudiantes del IMSS para compartir sus últimos resultados de investigación, aún no publicados, sobre VIH y el uso de citometría de flujo.\\n\" +\n\"\\n\" +\n\"Además, invitó a nuestra comunidad a agregarse a la sociedad internacional sobre citometría: ISAC(International Society for the Advancement of Cytometry) y aprovechar los recursos que tienen como:\\n\" +\n\"\\n\" +\n\"Programa de Liderazgo MARYLOU INGRAM SCHOLARS PROGRAM, de 5 años para formación de citomteristas\\n\" +\n\"Iniciativa de innovación CYTO-Innovation apoya a las propuestas innovadoras que contemplan la conversión de ideas en productos comerciales de alto impacto para ayudar a nuevos empresarios a aprovechar la tecnología de citometría\\n\" +\n\"\\n\" +\n\"Además en la ISAC tienen disponibles una serie de manuales e información de punta sobre la citometría para uso libre. El Dr. Cossarizza reiteró la invitación al personal IMSS a vincularse con la Universidad de Módena y su laboratorio aprovechando el prestigio que tiene el Laboratorio de Citometría de Flujo del Centro de Instrumentos del Centro Médico Nacional Siglo XXI.\";\n \n aviso2.resumen=\"Conferencia de Dr. Andrea Cossarizza del tema “Clinical Applications of Advanced Cytometry\\\"\";\n aviso2.nombre=\"Kevin Meza Gonzalez\";\n aviso2.estatusF=\"No Vigente\";\n \n aviso2.diaP=02;\n aviso2.mesP=03;\n aviso2.yearP=2020;\n \n aviso2.diaA=15;\n aviso2.mesA=02;\n aviso2.yearA=2020;\n \n aviso2.diaB=31;\n aviso2.mesB=03;\n aviso2.yearB=2020;\n \n System.out.println(aviso2);\n \n }", "public static void main(String[] args) {\n\t\tEmpleados empleado1 = new Empleados(\"Carlos Arquero\",16000,2016,6,03);\r\n\t\tEmpleados empleado2 = new Empleados(\"Luisa Lopez\",25000,2010,12,19);\r\n\t\tEmpleados empleado3 = new Empleados(\"Juaquin Moreno\",12000,2017,11,27);\t\r\n\t\r\n\t\templeado1.subeSueldo(4);\r\n\t\templeado2.subeSueldo(6);\r\n\t\templeado3.subeSueldo(3);\r\n\t\tSystem.out.println(\"nombre :\"+empleado1.dameNombre()+\" sueldo :\"+empleado1.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado1.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado2.dameNombre()+\" sueldo :\"+empleado2.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado2.damealtaContrato());\r\n\t\tSystem.out.println(\"nombre :\"+empleado3.dameNombre()+\" sueldo :\"+empleado3.dameSueldo()\r\n\t\t+\" Fecha de incorporacion :\"+empleado3.damealtaContrato());\r\n\t}", "public static void main(String[] args) {\n\r\n ContaEspecial contaEspecial1 = new ContaEspecial(\"\", \"\");\r\n // ContaEspecial contaEspecial2 = new ContaEspecial();\r\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public static void main(String[] args) {\n Ator a = new Ator(\"Alberto\");\r\n Ator b = new Ator(\"Vagner moura\");\r\n Ator c = new Ator(\"Ator 1\");\r\n\r\n Filme f= new Filme(\"Tropa de elite\", 2011);\r\n\r\n f.addPapel(a,\"papel 1\", false);\r\n f.addPapel(b,\"papel 2\", true);\r\n f.addPapel(c,\"papel 3\", true);\r\n\r\n\r\n System.out.println(a.getFilmes());\r\n /*System.out.println(f.getProtagonista());\r\n System.out.println(f);\r\n System.out.println(a);\r\n System.out.println(b);\r\n System.out.println(c);*/\r\n\r\n\r\n }", "public void nouveau(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "public static void main(String[] args) {\n\t\tEtudiant E1 = new Etudiant(\"Toto\");\n\t\tEtudiant E2 = new Etudiant(\"Toto\");\n\t\t//System.out.println(E1.travailler());\n\t\t//System.out.println(E2.seReposer());\n\t\tE1.travailler();\n\t\tE2.seReposer();\n}", "public void pruebaDesdeClase3() {\n Clase1 clase1 = new Clase1();\n System.out.println(\"\");\n System.out.println(\"Atributo público: \" + clase1.atrPublico + \" o heredado: \" + atrPublico);\n System.out.println(\"Atributo protegido (heredado): \" + atrProtegido);\n System.out.println(\"Atributo de paquete: no se puede acceder desde paquete externo\");\n System.out.println(\"Atributo privado: acceso denegado\");\n \n //constructor público\n new Clase1();\n //Los demás constructores no se pueden probar así, sino desde el constructor de esta clase\n //ya que esta es una subclase en otro paquete\n \n System.out.println(\"\");\n System.out.println(\"Método público: \" + clase1.metodoPublico());\n System.out.println(\"Método protegido (heredado): \" + metodoProtegido());\n System.out.println(\"Método de paquete: no se puede acceder desde un paquete externo\");\n System.out.println(\"Método privado: acceso denegado\");\n }", "public void chequearDeclaraciones() throws Exception{\n\t\tfor (EntradaVarInst v: entradaVar.values()) {\r\n\t\t\t\t//si es de tipo idClase,\r\n\t\t\t\tif (noTipoPrimitivo(v.getTipo().getTipo())) {\r\n\t\t\t\t\t\t//ahora si veo si esa clase esta declarada\r\n\t\t\t\t\t\t// si no es asi -> error\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(v.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(v.getTipo().getTipo(), v.getToken().getNroLinea(), v.getToken().getNroColumna());\r\n\t\t\t\t}\t\r\n\t\t}//fin for\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Chequeo cada Ctor de mi clase\r\n\t\tfor (EntradaCtor c: entradaCtor.values()) {\t\r\n\t\t\t//chequeo parametros del Ctor...\r\n\t\t\t//para cada parametro de mi metodo\r\n\t\t\tfor (EntradaPar p: c.getEntradaParametros()) {\r\n\t\t\t\t//si es de tipo idClase, chequeo que ese idClase exista\r\n\t\t\t\tif (noTipoPrimitivo(p.getTipo().getTipo())) {\r\n\t\t\t\t\t\t// si no es asi -> error\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(p.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(p.getTipo().getTipo(), p.getToken().getNroLinea(), p.getToken().getNroColumna());\r\n\t\t\t\t}\r\n\t\t\t}//fin for\r\n\t\t}//fin for\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Chequeo metodos de mi clase:\r\n\t\t//para cada metodo de mi clase\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t\r\n\t\t\t// si no es un tipo de dato primitivo, chequeo que esa clase/tipo de dato exista\r\n\t\t\tif (noTipoPrimitivo(m.getTipoRetorno().getTipo())) {\r\n\t\t\t\t\t//si no es clase declarada -> error\r\n\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(m.getTipoRetorno().getTipo())==null)\r\n\t\t\t\t\t\tthrow new claseNoDeclarada(m.getTipoRetorno().getTipo(), m.getToken().getNroLinea(), m.getToken().getNroColumna());\t\t\r\n\t\t\t}//fin if\r\n\t\t\t\r\n\t\t\t//para cada parametro de mi metodo\r\n\t\t\tfor (EntradaPar p: m.getEntradaParametros()) {\r\n\t\t\t\t\t//si es de tipo idClase, chequeo que ese idClase exista\r\n\t\t\t\t\tif (noTipoPrimitivo(p.getTipo().getTipo())) {\r\n\t\t\t\t\t\tif (Analizador_Sintactico.TS.esClaseDeclarada(p.getTipo().getTipo())==null)\r\n\t\t\t\t\t\t\tthrow new claseNoDeclarada(p.getTipo().getTipo(), p.getToken().getNroLinea(), p.getToken().getNroColumna());\t\r\n\t\t\t\t\t}\r\n\t\t\t}//fin for p\r\n\t\t\t\r\n\t\t\tif (m.getModificador().equals(\"dynamic\"))\r\n\t\t\t\tmetodosDyn.add(m);\r\n\t\t\r\n\t\t}//fin for m\r\n\t\t\r\n\t\t\r\n\t}", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "public static void main (String [] args){\r\n Jefatura jefe_RR=new Jefatura(\"Jeanpool\",55000,2006,9,25);\r\n jefe_RR.estableceIncentivo(2570);\r\n Empleado [] misEmpleados=new Empleado[6];\r\n misEmpleados[0]=new Empleado(\"Paco Gomez\",85000,1990,12,17);\r\n misEmpleados[1]=new Empleado(\"Ana Lopez\",95000,1995,06,02);\r\n misEmpleados[2]=new Empleado(\"Maria Martin\",105000,2002,03,15);\r\n misEmpleados[3]=new Empleado(\"Jeanpool Guerrero\");\r\n misEmpleados[4]=jefe_RR;/**--Polimorfismo: Prinicipio de sustitucion*/\r\n misEmpleados[5]=new Jefatura(\"Maria\",95000,1999,5,26);\r\n Jefatura jefa_Finanzas=(Jefatura)misEmpleados[5];/** CASTING CONVERTIR UN OBJETO A otro */\r\n jefa_Finanzas.estableceIncentivo(55000);\r\n \r\n \r\n \r\n /** for(int i=0;i<3; i++){\r\n misEmpleados[i].subeSueldo(5);\r\n \r\n }\r\n \r\n for(int i=0;i<3;i++){\r\n System.out.println(\"Nombre \"+misEmpleados[i].dimeNombre() + \"Sueldo: \"+misEmpleados[i].dimeSueldo()+ \"Fecha Alta: \"+misEmpleados[i].dameFechaContrato());\r\n }\r\n */\r\n\r\n for(Empleado elementos:misEmpleados){\r\n \r\n elementos.subeSueldo(5);\r\n \r\n }\r\n \r\n for(Empleado elementos:misEmpleados){\r\n System.out.println(\"Nombre: \"+elementos.dimeNombre()+ \" Sueldo: \"+elementos.dimeSueldo()+ \" Alta Contrato: \"+elementos.dameFechaContrato());\r\n }\r\n \r\n }", "@Override\n public synchronized void demarrer(){\n if(modele.getQuiterJeu()){return;}\n modele.getMoteurJeu().setEtapeJeu(this);\n // apercu dans le termial pour debuger\n System.out.println(\"-----------------nom joueur: \"+modele.getJoueurCourant().getNom());\n System.out.print(\" humain: \"+modele.getJoueurCourant().estHumain());\n System.out.print(\" stand: \"+modele.getJoueurCourant().getMainCourant().getStand());\n System.out.print(\" perdu: \"+modele.getJoueurCourant().getMainCourant().estPerdu());\n System.out.print(\" blackjack: \"+modele.getJoueurCourant().getMainCourant().estBlackJack());\n System.out.println(\" jeu: \"+modele.getJoueurCourant().getMainCourant().getJeu().toString());\n //-------------------------------------------------\n // On ne fait pas une boucle ici pour que l'observer\n // puisse acceder a son observé et se mettre a jour\n //-------------------------------------------------\n new Thread(){\n @Override\n public void run() {\n try {\n // si plus de carte\n if(modele.getPioche().getCartes().size() < 1){\n for(Carte carte:modele.getDefausse().getCartes()){\n carte.setFaceCarte(Face.VERSO);\n modele.getPioche().ajouterDessous(carte);\n }\n modele.getDefausse().vider();\n modele.getPioche().melanger();\n }\n \n \n // si il peut plus jouer\n if(modele.getJoueurCourant().getMainCourant().estBlackJack() || modele.getJoueurCourant().getMainCourant().estPerdu() \n || modele.getJoueurCourant().getMainCourant().getStand() || modele.getJoueurCourant().getMainCourant().est21()\n || modele.getJoueurCourant().getMainCourant().getAAbandonner() || modele.getJoueurCourant().getAPerduJeu()){\n \n // si le joueur a une autre main\n if(modele.getJoueurCourant().mainSuivant()){\n Thread.sleep(2000);\n demarrer();\n \n }\n // sinon si il y a un joueur suivant on fait joueur suivant\n else if(modele.joueurSuivant()){\n Thread.sleep(2000);\n demarrer();\n }else{\n modele.getMoteurJeu().setEtapeJeu(etapeSuivant);\n Thread.sleep(2000);\n modele.setMessage(modele.getCroupier().getNom()+\" plays\");\n // on affiche les carte du croupier\n for(Carte carte: modele.getCroupier().getMainCourant().getJeu().getCartes()){\n carte.setFaceCarte(Face.RECTO);\n }\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++\");\n Thread.sleep(3000);\n demarrerEtapeSuivant();\n\n }\n\n }\n // sinon\n else{\n modele.setMessage(modele.getJoueurCourant().getNom()+\" plays\");\n if(!modele.getJoueurCourant().estHumain()){\n modele.getJoueurCourant().jouer(modele.getPioche(),modele.getDefausse());\n Thread.sleep(3000);\n demarrer();\n }\n \n\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }.start();\n \n }", "public static void main(String[] args) {\n\t\tAdminDepartment A = new AdminDepartment();//Object created to access AdminDepartment class\r\n\t\tHrDepartment H = new HrDepartment(); // Object created to access HrDepartment class\r\n\t\tTechDepartment T = new TechDepartment();//Object created to access TechDepartment class\r\n\t\t\r\n\t A.departmentName();\r\n\t A.getTodaysWork();\r\n\t A.getWorkDeadline();\r\n\t A.isTodayAHoliday();\r\n\t System.out.println(\"\");\r\n\t \r\n\t H.departmentName();\r\n\t H.getTodaysWork();\r\n\t H.getWorkDeadline();\r\n\t H.isTodayAHoliday();\r\n\t System.out.println(\"\");\r\n\t \r\n\t T.departmentName();\r\n\t T.getTodaysWork();\r\n\t T.getWorkDeadline();\r\n\t T.isTodayAHoliday();\r\n\r\n\r\n\r\n\t}", "public void aplicarDescuento();", "public static void main(String[] args) {\n\t\tEmpleados emple1 = new Empleados(\"Paco\");\n\t\tEmpleados emple2 = new Empleados(\"Pablo\");\n\t\tEmpleados emple3 = new Empleados(\"Patron\");\n\t\tEmpleados emple4 = new Empleados(\"JUJUS\");\n\n\t\temple1.CambioSeccions(\"Ventas\");\n\n\t\tSystem.out.println(emple1.DevuelveDatos());\n\n\t\tSystem.out.println(emple2.DevuelveDatos());\n\n\t\tSystem.out.println(emple3.DevuelveDatos());\n\t\t\n\t\tSystem.out.println(emple4.DevuelveDatos());\n\t\t\n\t\tSystem.out.println(Empleados.dameIdSiguiente());\n\t\t\n\t\n\t}", "public static void main(String[] args) {\n \n PersonaIMC persona1 = new PersonaIMC();\n \n \n /* PersonaIMC persona2 = new PersonaIMC(nombre, edad, sexo);\n PersonaIMC persona3 = new PersonaIMC(nombre, edad, sexo, peso, altura);\n \n persona1.setNombre(\"Luisa\");\n persona1.setEdad(28);\n persona1.setSexo('F');\n persona1.setPeso(60);\n persona1.setAltura(1.8);\n \n persona2.setPeso(80.5);\n persona2.setAltura(1.75);\n \n System.out.println(\"Persona 1\");\n muestraMensajePeso(persona1);\n muestraMayorDeEdad(persona1);\n System.out.println(persona1.toString());\n \n System.out.println(\"Persona 2\");\n muestraMensajePeso(persona2);\n muestraMayorDeEdad(persona2);\n System.out.println(persona2.toString());\n \n System.out.println(\"Persona 3\");\n muestraMensajePeso(persona3);\n muestraMayorDeEdad(persona3);\n System.out.println(persona3.toString());*/\n }", "public static void main(String[] args) {\n\n\t\tMulta_Trafico mt1 = new Multa_Trafico(20, \"B\");\n\t\tmt1.setResponsable(\"Paco\");\n\t\tmt1.setDescripcion(\"Exceso de velocidad\");\n\t\tmt1.setMatricula(\"MK\");\n\t\tmt1.setFecha(\"Viernes\");\n\t\tmt1.verdatos();\n\n\t\tMulta_Covid mc2 = new Multa_Covid(10, \"C\");\n\t\tmc2.setResponsable(\"Pepa\");\n\t\tmc2.setDescripcion(\"No llevaba mascarilla\");\n\t\tmc2.setMascarilla(false);\n\t\tmc2.setFecha(\"Jueves\");\n\t\tmc2.verdatos();\n\n\t\t// Para saber de qué tipo es una clase, objeto, etc... con instanceof\n\t\t// Método saberTipo\n\n\t\tExpediente expe1 = new Expediente(10, \"A\");\n\t\tSystem.out.println(saberTipo(expe1));\n\t\tSystem.out.println(saberTipo(mt1));\n\t\tSystem.out.println(saberTipo(mc2));\n\n\t\tMulta m3 = new Multa(10, \"A\"); // variables del metodo ImporteMayor\n\t\tMulta m4 = new Multa(10, \"B\");\n\t\tm3.setDescripcion(\"Multa\");\n\t\tm3.setResponsable(\"Alberto\");\n\t\tm3.setImporte(200);\n\t\tm4.setImporte(2000);\n\n\t\tSystem.out.println(ImporteMayor(m3, m4));\n\t\tSystem.out.println(conocerTipo(m3));\n\t\tSystem.out.println(m3);\n\n\t\t// array de 50 posiciones para el método MultaMayor\n\n\t\tMulta multas[] = new Multa[50];\n\n\t\tfor (int i = 0; i < multas.length; i++) { // Relleno con descripción e importe\n\t\t\tmultas[i] = new Multa(i, \"A\");\n\t\t\tmultas[i].setDescripcion(\"Descripción\" + i);\n\t\t\tmultas[i].setImporte(Math.random() * 1000 + 25);\n\t\t}\n\t\tSystem.out.println(CalcularMayor(multas));\n\n\t}", "public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }", "public static void main(String[] args) {\n\r\n clsAlumno alumno1 = new clsAlumno();\r\n\r\n alumno1.setNombre(\"Eneko\");\r\n\r\n alumno1.setApellido(\"Galdos\");\r\n\r\n alumno1.setDNI(\"72826873H\");\r\n\r\n alumno1.setCreditos(60);\r\n\r\n alumno1.mostrarPersona();\r\n\r\n alumno1.mostrarCreditos();\r\n\r\n System.out.println();\r\n\r\n clsProfesor profesor1 = new clsProfesor();\r\n\r\n profesor1.setNombre(\"Javier\");\r\n\r\n profesor1.setApellido(\"Cerro\");\r\n\r\n profesor1.setDNI(\"11111111A\");\r\n\r\n profesor1.setDepartamento(\"Informática\");\r\n\r\n profesor1.mostrarPersona();\r\n\r\n profesor1.mostrarDepartamento();\r\n\r\n }", "@Test\n public void testCSesionGenerarOrden3() throws Exception {\n System.out.println(\"testCSesionGenerarOrden\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.generarOrden();\n }", "public static void main(String[] args) {\n\t\tProfesor profesor = new Alumno();\r\n\t\tSystem.out.println(\"Profesor: \"+profesor.devolverNombre());\r\n\t\tSystem.out.println(\"Edad: \"+profesor.devolverEdad());\r\n\t\tSystem.out.println();\r\n\t\tPersona persona = new Alumno();\r\n\t\tSystem.out.println(\"Edad: \"+persona.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona.devolverNombre());\r\n\t\t\r\n\t\tPersona persona2 = new Profesor();\r\n\t\tSystem.out.println(\"Edad: \"+persona2.devolverEdad());\r\n\t\tSystem.out.println(\"Nombre: \"+persona2.devolverNombre());\r\n\t\t\r\n\t\tArrayList<Persona> personas = new ArrayList<Persona>();\r\n\t\tpersonas.add(persona);\r\n\t\tpersonas.add(persona2);\r\n\t\t\r\n\t\tfor (Persona persona3 : personas) {\r\n\t\t\tSystem.out.println(\"ENTRO AL FOR\");\r\n\t\t\tSystem.out.println(\"Edad: \"+persona3.devolverEdad());\r\n\t\t\tSystem.out.println(\"Nombre: \"+persona3.devolverNombre());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n\t\tDepartamento dep40= new Departamento ( 40, \"Formacion\", null );\n\t\t\n\t\t\n\t\tEmpleado emp1 =new Empleado(1,\"paco\",\"perez\",\"h\", 5000, 28, 5, dep40) ;\n\t\t\n\t\t// para introducir el departaementp \n\t\t\n\t\t//primer metodo\n\t\t\n\t\t\n\t\t\t\t\n\t\tEmpleado emp2 =new Empleado(2,\"luis\",\"sanchez\",\"h\", 4000, 45, 2, dep40) ;\t\n\t\tEmpleado emp3 =new Empleado(4, \"javi\", \"perez\", \"h\", 8000, 54, 0.2, dep40);\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(emp1);\n\t\tSystem.out.println(emp2);\t\n\t\tSystem.out.println(emp3);\n\t\t\n\t\tdep40.setJefe(emp1); // adjudico el Jefe al departamento 40\n\t\t\n\t\t\n\t\t// creo un departaemnto nuevo adjudicado a un empleado ade un departamento inicial ( no tienen por que ser el departamento del que ahora le reclama) usando el constructoe directamente ne vez de la variable que alude a la clase\n\t\t//departamento= new Departamento(120, \"formacion\", jefe)\n\t\tDepartamento dep120 = new Departamento (120, \"formacion\", new Empleado(5, \"luisa\", \"sanchez\", \"M\", 14000, 35, 2, dep40)); //he creado un empleado del depto 30 y luego le hago jefe del 120\n\t\t dep120.getJefe().setDepartamento(dep120); /* actuando con dos variables. como ese new empleado no tiene variable adjudicada \n\t\t *y tengo que hacer alusion a Úl para cambiaer en el empleado su departaemento , me valgo del un metodo dep120.getJefe()que averigua qcual es la direccion de ese empleado en la tabla departamento y con un set le ingerso el departaento nuievo\n\t\t \n\t\t \n\t\t */\n\t\t System.out.println (\"departaqmento 120\" + dep120.getJefe().getNombre());\n\t\t\n\t/* SALIDA POR CONSOLA :\n\t * el niombre del emp2, su salario y el nombre del departamento al que pertenence.\t// \n\t\t* como el nombre departamento no es un atributo normal sino que es NDE una clase relacionada .SE INVOCA AL GET DE LL ATRIBUTO INCLUIDO CONN LA CLASE Y TRAS EL LOS METODOS GET DE LA CLASE DEPARTAMENTO EN ESTE CLASO EL DEL CAMPO NOMBRE DEL DEPARTAMENTO\n\t*/\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre().toUpperCase());\n\t\t/*\n\t\t * el empleado \n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre());\n\tSystem.out.println(dep120);\n\t// OJO SE BUCLA POR QUE LOS TO STRING DE DEPARTAEMNTO Y CLIENTE SE CRIUZARIAN DEBORDANDO LA MEMORIA. PUEDO HACER VARIAS COSAS\n\t/* PUEDO QUITAR DEUNO DE LOS TO STRING DE UNA CLASE O DE LA OTRA SEGUN ME INTERESE EL CAMPO QUE LAS LIGA ( PEJ DEPARTAMENTO EN EMPLEADO)\n\t * PUEDO CREAR UN METODO QUE SALVE LA CONDICION DE NULL SI ALGUNA VARIABLE ESTA VACICA.\n\t * \n\t * \n\t */\n\t//SALIDA DEL NOMBRE DEL JEFE DEL DEAPARTAEMENTO QUE SEA POR EJEMPLO DE UN EMPLEADO ()\n\t\n\tSystem.out.println ( dep120.getJefe().getNombre()); //get jefe me dedevuelve el monbre de jefe dela tabala departaemnto. get Nombre me devuelve de la tabla empleados el nombre que estaba como jefe en departamento.\n\tSystem.out.println (\"el jefe de emp2 luis: \"+ emp2.getDepartamento().getJefe().getNombre());\n\tSystem.out.println(dep120);\n\t\n\t\n\t\n\t\n\t}", "public Examen generarExamenTest() {\r\n\r\n\t\tPregunta pregunta;\r\n Ejercicio ejercicio;\r\n\t\tMateria materia = new Materia(\"Disenio\");\r\n\t\tExamen ex;\r\n\r\n\t\t// Creo lotes de prueba de Unidades Tematicas\r\n\t\tSet<String> unidadesAbarcadas = new HashSet<String>();\r\n\t\r\n\t\tunidadesAbarcadas.add(\"Patrones\");\r\n\t\tunidadesAbarcadas.add(\"Ciclos de Vida\");\r\n\t\tunidadesAbarcadas.add(\"Estructurado\");\r\n\t\tunidadesAbarcadas.add(\"DFDTR\");\t\r\n\t\r\n\t\tpregunta = new ADesarrollar(\"Patrones\", 75, \"Por que necesitamos a los patrones en las estancias?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tpregunta = new ADesarrollar(\"Estructurado\", 10, \"Alguien usa estructurado hoy en Dia?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tpregunta = new ADesarrollar(\"Estructurado\", 40, \"Cuantos modos de Cohesion Existe?\", ItemExamen.TiposItem.TEORICO); \r\n\t\tmateria.addItem(pregunta);\r\n\r\n\t\tejercicio = new Ejercicio(\"Estructurado\", 75, \"Que es un trampolin de datos?\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n\r\n\t\tejercicio = new Ejercicio(\"Ciclos de Vida\", 10, \"Alguien usa estructurado hoy en Dia?\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n\t \r\n\t\tejercicio = new Ejercicio(\"Ciclos de Vida\", 75, \"Indique los pasos que aplicaria con que ciclo de vida para implementar un Sistema Contable\", ItemExamen.TiposItem.PRACTICO); \r\n\t\tmateria.addItem(ejercicio);\r\n \r\n \r\n\t\tPrototipoItem<Pregunta> protoPregunta = new PrototipoItem<Pregunta>(Pregunta.class);\r\n\t\tprotoPregunta.setTipo(TiposItem.TEORICO);\r\n\t\tPrototipoItem<Ejercicio> protoEjercicio = new PrototipoItem<Ejercicio>(Ejercicio.class);\r\n\t\tprotoEjercicio.setTipo(TiposItem.PRACTICO);\r\n\t\tExamenBuilder builder = new ExamenBuilder(materia,unidadesAbarcadas,Calendar.getInstance());\r\n\t\tbuilder.putPrototipo(protoPregunta, 3);\r\n\t\tbuilder.putPrototipo(protoEjercicio, 3);\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tex = builder.generarExamen();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// No se controlan errores de creacion ya que se genera el examen para el Test\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\treturn ex;\r\n\r\n\t}", "public interface IGestorFaseDescartes {\n\t\n\t/**\n\t * Devuelve el jugador al que le toca jugar respecto\n\t * a su posición en la mesa de juego.\n\t * @return posición\n\t */\n\tpublic int getTurnoJuego();\n\n\t/**\n\t * Devuelve la fase de juego en la que se encuentra la mano\n\t * @return Fase del Juego (MUS, DESCARTE, REPARTO, GRANDE)\n\t */\n\tpublic FaseDescartes faseJuego();\n\t\n\t/**\n\t * Controla si se puede pedir mus o no.\n\t * @param j\n\t * @return boolean\n\t */\n\tpublic boolean pedirMus(Jugador j);\n\t\n\t/**\n\t * Controla si se ha cortado el mus o no para determinar\n\t * si se puede iniciar el descarte.\n\t * @param j\n\t * @return boolean\n\t */\n\tpublic boolean cortarMus(Jugador j);\n\t\n\t/**\n\t * Controla los descartes (nº de cartas y cuales) del jugador\n\t * \n\t * @param j\n\t * @param cartas\n\t * @return boolean\n\t */\n\tpublic boolean pedirDescarte(Jugador j, Carta... cartas);\n\n\t/**\n\t * Una vez que todos han solicitado su descarte utiliza la\n\t * interface de descartes para que lo haga efectivo.\n\n\t * @return\n\t */\n\tpublic boolean ejecutarDescartar();\n\t\n\t/**\n\t * Se encarga de controlar el reparto de cargas teniendo en cuenta los\n\t * descartes realizados.\n\t * @param j\n\t * @return El número de cartas recibidas o -1 en caso de error\n\t */\n\tpublic int reparte(Jugador j);\n\n\t/**\n\t * Inicializa los contadores del gestor\n\t */\n\tpublic void inicializar();\n\t\n}", "void inicializarDiccionarioMultiple();", "public static void main(String[] args) {\n\t\tSecretario s1 = new Secretario(\"Mauro\", \"Pérez\", \"2168\", \"Calle Falsa\", 999, 500, true, \"Fax\");\n\t\tVendedor v1 = new Vendedor(\"Pepe\", \"Martinez\", \"2177\", \"Calle de atras\", 998, 750, 669, \"Alguna\", 0.10);\n\t\tVendedor v2 = new Vendedor(\"Antonio\", \"Martinez\", \"2144\", \"Calle de delante\", 996, 750, 669, \"Alguna\", 0.10);\n\t\tJefeZona j1 = new JefeZona(\"Manolo\", \"Ortega\", \"2155\", \"Una calle\", 997, 1000, true);\n\t\t\n\t\tClientes c1 = new Clientes(\"Cliente 1\");\n\t\tClientes c2 = new Clientes(\"Cliente 2\");\n\t\t\n\t\ts1.setSupervisor(v1);\n\t\t\n\t\tv1.agregarCliente(c1);\n\t\tv1.agregarCliente(c2);\n\t\tv1.eliminarCliente(c1);\n\t\t\n\t\tj1.agregarVendedor(v1);\n\t\tj1.agregarVendedor(v2);\n\t\t\n\t\tSystem.out.println(v1.toString());\n\t\tv1.incrementarSalario();\n\t\tSystem.out.println(v1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(s1.toString());\n\t\ts1.incrementarSalario();\n\t\tSystem.out.println(s1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(j1.toString());\n\t\tj1.incrementarSalario();\n\t\tSystem.out.println(j1.toString());\n\t}", "public static void main(String[] args) {\n\r\n\t\templeado emple = new empleado(\"Jonnhy\", 25, 1800);\r\n\t\tSystem.out.println(emple.toString());\r\n\t\t\r\n\t\tcomercial com = new comercial(\"Joseph\", 23, 1200, 100);\r\n\t\tSystem.out.println(com.toString());\r\n\t\t\r\n\t\trepartidor rep = new repartidor(\"Jonathan\", 45, 43, \"zona2\");\r\n\t\tSystem.out.println(rep.toString());\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\n\tConta conta = new Conta();\t\n\n\t//Colocando valores no conta\n\tconta.titular = \"Duke\";\n\tconta.saldo = 1000000.0;\n\tconta.numero = 12345;\n\tconta.agencia = 54321;\n\tconta.dataAniversario = \"1985/01/12\";\n\n\tconta.saca(100.0);\n\tconta.deposita(1000.0);\n\n\tSystem.out.println(\"Saldo atual: \" + conta.saldo);\n\tSystem.out.println(\"Rendimento atual: \" + conta.calculaRendimento());\n\tSystem.out.println(\"Saldo atual depois do rendimento: \" + conta.saldo);\n\tSystem.out.println(\"Cliente: \" + conta.recuperaDados());\n\n\n\tConta c1 = new Conta();\n\tConta c2 = new Conta();\t\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc1.titular = \"Flavio\";\n\tc1.saldo = 10000.0;\n\tc1.numero = 54321;\n\tc1.agencia = 12345;\n\tc1.dataAniversario = \"1900/01/12\";\n\n\t//Colocando valores na nova conta (cria um objeto novo na memoria com outro registro de memoria)\n\tc2.titular = \"Flavio\";\n\tc2.saldo = 10000.0;\n\tc2.numero = 54321;\n\tc2.agencia = 12345;\n\tc2.dataAniversario = \"1900/01/12\";\n\n\n\tif (c1.titular == c2.titular) {\n\t\tSystem.out.println(\"Iguais\");\t\t\n\t} else {\n\t\tSystem.out.println(\"Diferentes\");\n\t}\t\n\n\tconta.transfere(100000,c1);\n\n\n\t}", "public static void main(String[] args) throws Exception {\n\t\tPerro p1=new Perro();\r\n\t\tPerro p2 =new Perro(\"Chucho\", \"Pastor Aleman\", 3,true);\r\n\t\tPerroPresa pp1=new PerroPresa();\r\n\t\tPerroPresa pp2=new PerroPresa(\"Dientes\",\"pitbull\",5,true);\r\n\t\tpp1.setNombre(\"ŅamŅam\");\r\n\t\tp1.setEdad(-3);\r\n\t\tSystem.out.println(p1.toString());\r\n\t\tSystem.out.println(p2.toString());\r\n\t\tSystem.out.println(pp1.toString());\r\n\t\tpp1.atacar();\r\n\t\tSystem.out.println(pp2.toString());\r\n\t\tpp2.atacar();\r\n\t}", "public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "public void generTirarDados() {\n\r\n\t}", "public static void main(String[] args) {\n // maison.chauffer();\n // System.out.println(\"temperature : \"+maison.temperature);\n // maison.refroidir();\n // System.out.println(\"temperature : \"+maison.temperature);\n\n Batiment batiment = new Batiment(30.);\n System.out.println(\"temperature : \"+batiment.temperature);\n\n DataCenter datacenter = new DataCenter(25.0);\n System.out.println(\"temperature : \"+datacenter.temperature);\n System.out.println(\"temperature : \"+datacenter.temperature);\n datacenter.refroidir();\n System.out.println(\"temperature : \"+datacenter.temperature);\n datacenter.refroidir();\n System.out.println(\"temperature : \"+datacenter.temperature);\n\n Maison maison = new Maison(35.);\n System.out.println(\"temperature : \"+maison.temperature);\n maison.chauffer();\n System.out.println(\"temperature : \"+maison.temperature);\n maison.chauffer();System.out.println(\"temperature : \"+maison.temperature);\n maison.refroidir();\n System.out.println(\"temperature : \"+maison.temperature);\n\n }", "private void doNovo() {\n contato = new ContatoDTO();\n popularTela();\n }", "public Exercicio(){\n \n }", "private IOferta buildOfertaEjemplo3() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tnew PredicadoDiaSemana(Calendar.SATURDAY),\n\t\t\t\tnew ExtraerFechaCreacion());\n\t\tFunction<Compra, Float> descuento = new DescuentoFijo<>(10.0f);\n\t\treturn new OfertaDinero(\"10$ descuento sabados\", condicion,\n\t\t\t\tdescuento);\n\t}", "public static void main(String[] args) {\n\t\tExtraTerestru ext = new ExtraTerestru();\r\n\t\tExtraTerestru.IntraTerestru ext1 = ext.new IntraTerestru();\r\n\t\t\r\n\t\t// instantiere clasa inner dintr o clasa care extinde clasa mama\r\n\t\tExtraTerestru2 ext2 = new ExtraTerestru2();\r\n\t\tExtraTerestru2.IntraTerestru ext3 = ext2.new IntraTerestru();\r\n\t\t\r\n\t\t// instantiere clasa inner ver. 2\r\n\t\tExtraTerestru.IntraTerestru ext4 = new ExtraTerestru().new IntraTerestru();\r\n\t}", "private IOferta buildOfertaEjemplo4() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoLlevaXPagaY(\"11-111-1111\", 3, 2);\n\t\treturn new OfertaDinero(\"Lleva 3 paga 2 en Coca-Cola\", condicion,\n\t\t\t\tdescuento);\n\t}", "public static void main(String[] args) {\n \n Empleado empleado1 =new Empleado();\n empleado1.nombre = \"Hector Rafael\";\n empleado1.apellidos = \"Castillo Molinares\";\n empleado1.genero = \"Masculino\";\n empleado1.fecha_nacimiento = \"24/03/2002\";\n empleado1.nacionalidad = \"Colombiana\";\n empleado1.identificación = \"1129526720\";\n empleado1.telefono = \"123456789\";\n empleado1.profesion = \"ingeniero\";\n empleado1.dirección = \"carrera.25#26-03\";\n empleado1.correo_electronico = \"[email protected]\";\n empleado1.Calcular_Edad();\n \n System.out.println(\"Nombre:\"+ empleado1.nombre + empleado1.apellidos);\n System.out.println(\"Genero:\"+ empleado1.genero);\n System.out.println(\"Fecha de nacimiento:\"+ empleado1.fecha_nacimiento);\n System.out.println(\"Nacionalidad:\"+ empleado1.nacionalidad);\n System.out.println(\"Su documeto de identificacion es:\"+ empleado1.identificación);\n System.out.println(\"Telefono:\"+ empleado1.telefono);\n System.out.println(\"Direccion\"+ empleado1.dirección);\n System.out.println(\"Correo electronico:\"+ empleado1.correo_electronico);\n System.out.println(\"Fecha de nacimiento\"+ empleado1.fecha_nacimiento);\n System.out.println(\"Su edad actual es:\"+ empleado1.Calcular_Edad());\n \n Estudiante estudiante1 =new Estudiante();\n estudiante1.nombre = \"Hector Rafael\";\n estudiante1.apellidos = \"Castillo Molinares\";\n System.out.println(\"El estudiante se llama:\"+ estudiante1.nombre + estudiante1.apellidos);\n \n Scanner lectura =new Scanner (System.in);\n int edad, año_nacimiento, año_actual;\n System.out.println(\"ingrese el año de nacimiento\");\n año_nacimiento =lectura.nextInt();\n System.out.println(\"ingrese el año actual\");\n año_actual =lectura.nextInt();\n edad=año_actual-año_nacimiento;\n System.out.println(\"la edad es:\"+edad);\n \n \n \n }", "public static void main(String[] args) {\n \n empleado[] misEmpleados=new empleado[3];\n //String miArray[]=new String[3];\n \n misEmpleados[0]=new empleado(\"paco gomez\",123321,1998,12,12);\n misEmpleados[1]=new empleado(\"Johana\",28500,1998,12,17);\n misEmpleados[2]=new empleado(\"sebastian\",98500,1898,12,17);\n \n /*for (int i = 0; i < misEmpleados.length; i++) {\n misEmpleados[i].aumentoSueldo(10);\n \n }\n for (int i = 0; i < misEmpleados.length; i++) {\n System.out.println(\"nombre :\" + misEmpleados[i].dameNombre() + \" sueldo \" + misEmpleados[i].dameSueldo()+ \" fecha de alta \"\n + misEmpleados[i].dameContrato());\n }*/\n \n for (empleado e:misEmpleados) {\n e.aumentoSueldo(10);\n \n }\n for (empleado e:misEmpleados) {\n System.out.println(\"nombre :\" + e.dameNombre() + \" sueldo \" + e.dameSueldo()+ \" fecha de alta \"\n + e.dameContrato());\n \n }\n \n }", "public static void main(String[] args) throws Exception {\n Circulo c[] = new Circulo[3];\n c[0] = new Circulo(5);\n c[1] = new Circulo(6);\n c[2] = new Circulo(7);\n System.out.println(c[0].area());\n System.out.println(c[0].perimetro());\n System.out.println(c[1].area());\n System.out.println(c[1].perimetro());\n System.out.println(c[2].area());\n System.out.println(c[2].perimetro());\n\n // vetor de retangulos e suas devidas implementacoes\n Retangulo r[] = new Retangulo[3];\n\n r[0] = new Retangulo(5, 3);\n r[1] = new Retangulo(45, 8);\n r[2] = new Retangulo(5, 5);\n System.out.println(r[0].area());\n System.out.println(r[0].perimetro());\n System.out.println(r[1].area());\n System.out.println(r[1].perimetro());\n System.out.println(r[2].area());\n System.out.println(r[2].perimetro());\n\n Quadrado q[] = new Quadrado[3];\n\n q[0] = new Quadrado(5);\n q[1] = new Quadrado(8);\n q[2] = new Quadrado(3);\n System.out.println(q[0].area());\n System.out.println(q[0].perimetro());\n System.out.println(q[1].area());\n System.out.println(q[1].perimetro());\n System.out.println(q[2].area());\n System.out.println(q[2].perimetro());\n\n }", "public void abrirCerradura(){\n cerradura.abrir();\r\n }", "public static void main(String[] args) {\n Empleado arquitecto1 = new Arquitecto(\"Arq 1\", \"1\", 1, 1 ,\"1\" , 1 );\n Empleado arquitecto2 = new Arquitecto(\"Arq 2\", \"2\", 2, 2 ,\"2\" , 2 );\n Empleado arquitecto3 = new Arquitecto(\"Arq 3\", \"3\", 3, 3 ,\"3\" , 3 );\n Empleado maestro1 = new Maestro(\"Mae 1\", \"1\", 1, 1, \"1\", 1);\n Empleado maestro2 = new Maestro(\"Mae 2\", \"2\", 2, 2, \"2\", 2);\n Empleado maestro3 = new Maestro(\"Mae 3\", \"3\", 3, 3, \"3\", 3);\n Empleado obrero1 = new Obrero(\"Obr 1\", \"1\", 1, 1, \"1\", 1);\n Empleado obrero2 = new Obrero(\"Obr 2\", \"2\", 2, 2, \"2\", 2);\n Empleado obrero3 = new Obrero(\"Obr 3\", \"3\", 3, 3, \"3\", 3);\n//Empresa\n //Lista de Empelado en donde van a estar los empleados de toda la empresa\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(arquitecto1);\n totalEmployeesOnSite.add(maestro1);\n totalEmployeesOnSite.add(obrero1);\n //Lista de obreros en la obra\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n //Lista ed Obras realizadas\n ArrayList<Obra> doneWorks = new ArrayList<>();\n Obra obra1 = new Obra();\n doneWorks.add(obra1);\n Empresa empresa1 = new Empresa(\"Empresa 1\", totalEmployeesOnSite, doneWorks);\n\n System.out.println(empresa1.toString());\n\n//Arquitecto\n\t /* Empleado arquitecto1 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n Empleado arquitecto2 = new Arquitecto(\"Jazmin\", \"1234456788\", 1552364898, 2800 ,\"Creando mi proximo plano\" , 223 );\n//Maestro\n\t Empleado maestro1 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n Empleado maestro2 = new Maestro(\"Nicolas\", \"98745632\", 155236478, 3000, \"Soy maestro y superviso las construcciones\", 29);\n//Obrero\n\t Empleado obrero1 = new Obrero(\"Matilda\", \"12549632\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n Empleado obrero2 = new Obrero(\"Matilda2\", \"125496322\", 155235647, 1200, \"Soy obrro y construyo\", 25);\n//Array Empleado que va a ir a\n ArrayList<Empleado> totalEmployeesOnSite = new ArrayList<>();\n totalEmployeesOnSite.add(empleado4);\n\n System.out.println(empleado1.getWork());\n System.out.println(empleado2.getWork());\n System.out.println(empleado3.getWork());\n\n ArrayList<Empleado> totalEmployees = new ArrayList<>();\n ArrayList<Obra> activeWorks = new ArrayList<>();\n\n Obra obra1 = new Obra(\"Lo De Jaz\", 2, 54, 7, totalEmployeesOnSite );\n\n activeWorks.add(obra1);\n\n totalEmployees.add(empleado1);\n totalEmployees.add(empleado2);\n\n Empresa empresa = new Empresa(\"Lo de Jaz\", totalEmployees, activeWorks);\n\n System.out.println(empresa.toString());\n */\n\n }", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "public static void main(String[] args) throws Exception {\n \n Agenda agenda = new Agenda(new ArrayList<Contato>(){\n {\n add(new Contato(\"Malu\", 123));\n add(new Contato(\"xalala\", 456));\n }\n });\n\n //Adiciona na agenda\n agenda.adicionaContato(new Contato(\"xixixi\", 1515));\n \n agenda.exibeListaContato();\n\n Agenda agenda2 = new Agenda();\n agenda2.adicionaContato(new Contato(\"Matheus\", 456456));\n agenda2.exibeListaContato();\n\n }", "private IOferta buildOfertaEjemplo1() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tPredicates.equalTo(MedioPago.EFECTIVO),\n\t\t\t\tnew ExtraerMedioPago());\n\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoPorcentual(5.0f),\n\t\t\t\tnew ExtraerTotalBruto());\n\n\t\treturn new OfertaDinero(\"5% descuento pago en efectivo\", condicion, descuento);\n\t}", "ConjuntoTDA claves();", "public static void main(String[] args) {\n\t\t\r\n\t\tDate date = new Date();\r\n\t\t\r\n\t\tLocalDate diaHoy = LocalDate.now();\r\n\t\tLocalDate diaFin = diaHoy.plusDays(15);\r\n\t\t\r\n\t\tCursoVacacional curso1 = new CursoVacacional();\r\n\t\tcurso1.setNombre(\"Volley Principiantes\");\r\n\t\tcurso1.setFechaInicio(diaHoy);\r\n\t\tcurso1.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso1.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso1.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso1.getFechaFin());\r\n\t\t\r\n\t\tLocalDate diaHoy2 = LocalDate.now();\r\n\t\tLocalDate diaQueInicio = diaHoy2.minusDays(2);\r\n\t\tLocalDate diaQueFinaliza = diaQueInicio.plusDays(20);\r\n\t\t\r\n\t\tCursoVacacional curso2 = new CursoVacacional();\r\n\t\tcurso2.setNombre(\"Volley Principiantes\");\r\n\t\tcurso2.setFechaInicio(diaHoy);\r\n\t\tcurso2.setFechaFin(diaFin);\r\n\t\t\r\n\t\tSystem.out.println(\"Nombre: \" +curso2.getNombre());\r\n\t\tSystem.out.println(\"F I: \" + curso2.getFechaInicio());\r\n\t\tSystem.out.println(\"F F: \" + curso2.getFechaFin());\r\n\t\t\r\n\t\t\r\n\t}", "public FaseDescartes faseJuego();", "@Override\n\tvoid desligar() {\n\t\tsuper.desligar();\n\t\tSystem.out.println(\"Automovel desligando\");\n\t}", "public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=40;\r\n Persegi p = new Persegi();\r\n p.sisi=40;\r\n lingkaran l= new lingkaran();\r\n l.jari=20;\r\n \r\npp.luas();\r\npp.keliling();\r\np.luas();\r\np.keliling();\r\ns.luas();\r\ns.keliling();\r\nl.luas();\r\nl.keliling();\r\n}", "public void addDicas(){\n\t\tMetaDica metaDicaOac = new MetaDica(oac, \"user1\", \"Não falte as aulas, toda aula tem ponto extra!\");\n\t\tmetaDicaOac.setConcordancias(5);\n\t\tdao.persist(metaDicaOac);\n\n\t\tdicaExerciciosOac = new DicaConselho(\"Os exercicios extras valem muitos pontos, nao deixe de fazer\");\n\t\tdicaExerciciosOac.setTema(temaOacExercicios);\n\t\ttemaOacExercicios.setDisciplina(oac);\n\t\tdicaExerciciosOac.setUser(\"user5\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user2\");\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 20;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 25;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\t\tdao.persist(dicaExerciciosOac);\n\n\t\tdicaRevisaoIcOac = new DicaAssunto(\"Antes das aulas faça uma boa revisao de IC\");\n\t\ttemaOacRevisaoIC.setDisciplina(oac);\n\t\tdicaRevisaoIcOac.setTema(temaOacRevisaoIC);\n\t\tdicaRevisaoIcOac.setUser(\"user4\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user5\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\n\t\t//cria meta dica em si\n\t\tMetaDica metaDicaSi1 = new MetaDica(si1, \"user2\", \"Seja autodidata! Procure por cursos online\");\n\t\tdao.persist(metaDicaSi1);\n\n\t\tdicaLabSi = new DicaConselho(\"Faça todo os labs, não deixe acumular\");\n\t\ttemaMinitestesSi.setDisciplina(si1);\n\t\tdicaLabSi.setTema(temaMinitestesSi);\n\t\tdicaLabSi.setUser(\"user1\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user2\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user3\");\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdao.persist(dicaLabSi);\n\n\t\tdicaPlaySi = new DicaConselho(\"Comece a configurar o Play no primeiro dia de aula, pois dá muuuito trabalho\");\n\t\ttemaPlaySi.setDisciplina(si1);\n\t\tdicaPlaySi.setTema(temaPlaySi);\n\t\tdicaPlaySi.setUser(\"user2\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user5\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user4\");\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdao.persist(dicaPlaySi);\n\n\t\tdicaMaterialSi = new DicaMaterial(\"http://www.wthreex.com/rup/process/workflow/ana_desi/co_swarch.htm\");\n\t\ttemaMaterialSi.setDisciplina(si1);\n\t\tdicaMaterialSi.setTema(temaMaterialSi);\n\t\tdicaMaterialSi.setUser(\"user2\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user5\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user4\");\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdao.persist(dicaMaterialSi);\n\n\n\t\t//cria meta dica logica\n\t\tMetaDica metaDicaLogica = new MetaDica(logica, \"user3\", \"Copie para o seu caderno tudo que o professor copiar no quadro, TUDO!\");\n\t\tdao.persist(metaDicaLogica);\n\n\t\tdicaListasLogica = new DicaConselho(\"Faça todas as listas possíveis\");\n\t\ttemaListasLogica.setDisciplina(logica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setUser(\"user6\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user3\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user5\");\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdao.persist(dicaListasLogica);\n\n\t\tdicaProjetoLogica = new DicaAssunto(\"Peça ajuda ao monitor responsável por seu grupo, começe o projeto assim que for lançado!\");\n\t\ttemaProjetoLogica.setDisciplina(logica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setUser(\"user4\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user1\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user2\");\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdao.persist(dicaProjetoLogica);\n\n\t\tdao.flush();\n\n\t}", "public static void exec() {\n Elvis ELVIS = Elvis.getInstance();\n\n //pattern 3\n ElvisEnum ELVIS2 = ElvisEnum.INSTANCE;\n\n ELVIS.doSomething();\n ELVIS2.doSomething();\n }", "public static void main(String [] args){\n\t\t\r\n\t\tEstadoDAO dao = new EstadoDAO();\r\n\t//\tdao.salvar(estado);\r\n\t\tList<Estado> estados= dao.list();\r\n\t\t \r\n\t\t for(Estado est: estados){\r\n\t\t System.out.println(est.getEstado());\r\n\t\t \r\n\t\t\t\t\r\n\r\n\t\t \r\n\t\t // CidadeDAO dao = new CidadeDAO();\r\n\t\t // cidades = dao.buscartudo();\r\n\t\t // for(Cidade cid: cidades){\r\n\t\t // System.out.println(cid.getNome_cidade());\r\n\t\t }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tEmpleado E1 = new Empleado (\"Jessica\");\n\t\tDirectivo D1 = new Directivo (\"Samanta\");\n\t\tOperario OP1 = new Operario (\"Edson\");\n\t\tOficial OF1 = new Oficial (\"Emilio\");\n\t\tTecnico T1 = new Tecnico (\"Daniela\");\n\t\t\n\t\t// polimorfismo la clase padre puede acceder a elementos de las clases hijas sin tenerlas declaradas\n\t\tEmpleado E2 = new Tecnico (\"Jessica\");\n\t\t\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(E1.toString());\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(D1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(OP1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(OF1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(T1);\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(E2);\n\t\tSystem.out.println(\" \");\n\t\n\t}", "public static void main(String[] args) {\n Punto p1 = new Punto(2, 2);\r\n Punto p2 = new Punto(1, 4);\r\n Punto p3 = new Punto(5, 2);\r\n Punto p4 = new Punto(10, 1);\r\n \r\n Datos d1 = new Datos();\r\n d1.add(p1);\r\n d1.add(p2);\r\n d1.add(p3);\r\n d1.add(p4);\r\n \r\n System.out.println(\"Distancia Media: \"+d1.distanciaMedia());\r\n \r\n \r\n // -- Act 2 Test\r\n //Correcta: Una librería para construir interfaces gráficas\r\n \r\n // -- Act 3 insertaPaisCiudad\r\n PaisCiudades pc = new PaisCiudades();\r\n System.out.println(\"Insertamos: España, Granada. ¿Inserto?: \"+pc.insertaPaisCiudad(\"España\", \"Granada\"));\r\n System.out.println(\"Insertamos: España, Zaidin. ¿Inserto?: \"+pc.insertaPaisCiudad(\"España\", \"Zaidin\"));\r\n System.out.println(\"Insertamos: PatataLandia, Huerto de Patatas. ¿Inserto?: \"+pc.insertaPaisCiudad(\"PatataLandia\", \"Huerto de Patatas\"));\r\n \r\n System.out.println(\"HashMap: \\n\"+pc.toString());\r\n \r\n // -- Act 4 Test\r\n //Correcta: public class Componente implements Printable\r\n \r\n }", "public GestorAtracciones()\n {\n gestor_trabajadores = new GestorTrabajadores();\n atracciones = new ArrayList<>();\n lectura = new Scanner(System.in);\n crearAtracciones();\n calculoTipoAtraccion();\n calculoPersonal();\n }", "public void DiezDias()\n {\n for (int i = 0; i < 10; i++) {\n UnDia();\n }\n }", "public void disparar(){}", "public Exposicao() {\n obras = new TreeSet<Obra>();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Test Combat: \" + new Day15().problemA(COMBAT));\r\n\t\tSystem.out.println(\"Test Combat2: \" + new Day15().problemA(COMBAT2));\r\n\t\tSystem.out.println(\"Test Combat3: \" + new Day15().problemA(COMBAT3));\r\n\t\tSystem.out.println(\"Test Combat4: \" + new Day15().problemA(COMBAT4));\r\n\t\tSystem.out.println(\"Test Combat5: \" + new Day15().problemA(COMBAT5));\r\n\t\tSystem.out.println(\"Test Combat6: \" + new Day15().problemA(COMBAT6));\r\n\t\tSystem.out.println(\"A: \" + new Day15().problemA(LINES));\r\n\t\t\r\n\t\tSystem.out.println(\"B: \" + new Day15().problemB(LINES));\r\n\t}", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}", "@Test\n public void testCSesionAgregarLiena6() throws Exception {\n System.out.println(\"testCSesionAgregarLiena 2 lineas iguales\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n instance.agregaLinea(1, 2);\n }", "public static void main(String[] args) {\n\t\tSupervisor miSupervisor = new Supervisor(\"Raul\");\r\n\t\t\r\n\t\t//Array de Empleados\r\n\t\tEmpleadoStatic[] listaEmpleados = new EmpleadoStatic[7];\r\n\t\tScanner Entrada = new Scanner(System.in);\r\n\t\t\r\n\t\t//Pedido de Empleados\r\n\t\tfor(int i=0;i<5;i++){\t//for(int i=0;i<listaEmpleados.length;i++){\t\r\n\t\t\tSystem.out.print(\"Ingrese nombre: \");\r\n\t\t\tlistaEmpleados[i] = new EmpleadoStatic(Entrada.nextLine());\r\n\t\t}\r\n\t\t\r\n\t\t/*POLIMORFISMO: El programa espera un objeto de la clase padre (Empleado).\r\n\t\t * Pero yo estoy asignando objetos de la clase hija (Supervisor)*/\r\n\t\tlistaEmpleados[5] = miSupervisor;\r\n\t\tlistaEmpleados[6] = new Supervisor(\"Fabio\");\t//última ID\r\n\t\t\t\t\r\n\t\t/*Uso de Arrays.sort() para ordenar los empleados por id, ya que por \r\n\t\t * ejemplo, la primer posición del array tiene al empleado de id 2.\r\n\t\t * Require la interfaz Comparable, agregada en EmpleadoStatic*/\r\n\t\tArrays.sort(listaEmpleados);\r\n\t\t\r\n\t\t/*Recorrida, si en la clase hija se sobreescribe un método, al momento de\r\n\t\t * pasar por ese objeto, se llama al método de la clase hija. Comportamiento \r\n\t\t * según el contexto (Polimorfismo)*/\r\n\t\tfor(EmpleadoStatic e:listaEmpleados)\r\n\t\t\tSystem.out.println(\"id: \" + e.getId() + \"\\t nombre: \" + e.getNombre());\r\n\t\t\r\n\t\tSystem.out.println(\"Proximo ID a asignar: \" + EmpleadoStatic.getIdDisponible());\r\n\t\t\r\n\t\t/*Ejemplo para demostrar el acceso a un método de la interfaz JefesI\r\n\t\t * implementado por la clase Supervisor*/\r\n\t\tSupervisor s = new Supervisor(\"Macri\");\r\n\t\tSystem.out.println(s.tomarDecisiones(\"Un nuevo tarifazo. Vamos juntos!\"));\r\n\t\t\r\n\t\t\tEntrada.close();\r\n\t}", "private IOferta buildOfertaEjemplo2() {\n\t\tPredicate<Compra> condicion = Predicates.compose(\n\t\t\t\tnew PredicadoDiaSemana(Calendar.THURSDAY),\n\t\t\t\tnew ExtraerFechaCreacion());\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoPorcentual(10.0f), \n\t\t\t\tnew ExtraerTotalBrutoProductos(new PredicadoRubro(\"11\")));\n\t\treturn new OfertaDinero(\"10% descuento comida los jueves\", condicion,\n\t\t\t\tdescuento);\n\t}", "@Test\n public void testCSesionAgregarLiena4() throws Exception {\n System.out.println(\"testCSesionAgregarLiena normal\");\n CSesion instance = new CSesion();\n instance.inicioSesion(\"Dan\", \"danr\");\n instance.agregaLinea(1, 2);\n }", "@Test\n public void testCSesionInicioxData2() {\n System.out.println(\"testCSesionInicioxData\");\n CSesion instance = new CSesion();\n DataProveedor TC = new DataProveedor(\"153\", \"tim123\", \"[email protected]\", \"Tim\", \"Cook\", new Date(60, 10, 1));\n instance.inicioSesion(TC);\n }", "private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }", "public static void main(String[] args) {\n Animal A1 = new Animal(5,\"Animal\",1,\"Carnivores\",1);\n Dog d1 = new Dog(2,\"Miller\",4,\"Herbivores\",1);\n\n d1.eat();\n A1.eat();\n\n }", "public static void main(String[] args) {\n Appetizer fruit = new Appetizer(\"fresh fruit\", 5.9);\n Appetizer salad = new Appetizer(\"cesar salad\", 7);\n Appetizer bread = new Appetizer(\"butter and bred\", 3);\n Entree vagePizza = new Entree(\"vege pizza\",\"small\",10);\n Entree mashroomPizza = new Entree(\"mashroom pizza\", \"small\",12);\n Dessert iceCream = new Dessert(\"vanilla ice cearm\", 5);\n Dessert cake = new Dessert(\"banana cake\", false,4.5);\n\n Entree[] arrayOfEntree = {vagePizza,mashroomPizza};\n Appetizer [] arrayOfAppetizer= {fruit,salad,bread};\n Dessert[] arrayOfDessert= {iceCream,cake};\n\n Menu menu= new Menu(arrayOfAppetizer,arrayOfEntree,arrayOfDessert);\n Restaurant restaurant = new Restaurant(\"Mom Moj\", menu);\n restaurant.menu.printMenu();\n }", "private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }", "public static void main (String[] args){\n Vehiculo misVehiculos[] = new Vehiculo[4];\n\n misVehiculos[0] = new Vehiculo (\"XYS34\", \"Volkswagen\", \"Jetta\");\n misVehiculos[1] = new VehiculoTurismo(\"AVF76\", \"Ford\", \"Fiesta\", 4);\n misVehiculos[2] = new VehiculoDeportivo(\"AJK12\", \"Ferrari\", \"A89\", 500);\n misVehiculos[3] = new VehiculoFurgoneta(\"LKU90\", \"Toyota\", \"J9\", 2000);\n\n for(Vehiculo vehiculos: misVehiculos){\n System.out.println(vehiculos.mostrarDatos());\n System.out.println(\" \");\n }\n\n }", "public void verAdicionarDatos(String entidad)\r\n\t{\r\n\t\tif(entidad.equalsIgnoreCase(\"Rol\"))\r\n\t\t{\r\n\t\t\tadicionardatosrol = new AdicionarDatosRol(this);\r\n\t\t\tadicionardatosrol.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Prueba\"))\r\n\t\t{\r\n\t\t\tadicionardatosprueba = new AdicionarDatosPrueba(this);\r\n\t\t\tadicionardatosprueba.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Pregunta\"))\r\n\t\t{\r\n\t\t\tadicionardatospregunta = new AdicionarDatosPregunta(this);\r\n\t\t\tadicionardatospregunta.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Escala\"))\r\n\t\t{\r\n\t\t\tadicionardatosescal = new AdicionarDatosEscala(this);\r\n\t\t\tadicionardatosescal.setVisible(true);\r\n\t\t\tcaracteristicasescal.clear();\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Competencia\"))\r\n\t\t{\r\n\t\t\tadicionarcompetencia = new AdicionarDatosCompetencia(this);\r\n\t\t\tadicionarcompetencia.setVisible(true);\r\n\t\t}\r\n\t\tif(entidad.equalsIgnoreCase(\"Regla\"))\r\n\t\t{\r\n\t\t\tverSelecionarReglaConocimiento(\"Adicionar\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Cuadrado cuad1= new Cuadrado();\r\n cuad1.decirHola();\r\n }", "public void desligar() {\n\r\n\t}", "public void enemigosCatacumba(){\n esq81 = new Esqueleto(1, 8, 400, 160, 30);\n esq82 = new Esqueleto(2, 8, 400, 160, 30);\n esq111 = new Esqueleto(1, 11, 800, 255, 50);\n esq112 = new Esqueleto(2, 11, 800, 255, 50);\n esq141 = new Esqueleto(1, 14, 1000, 265, 60);\n esq142 = new Esqueleto(2, 14, 1000, 265, 60);\n //\n zom81 = new Zombie(1, 8, 1000, 170, 40);\n zom82 = new Zombie(2, 8, 1000, 170, 40);\n zom111 = new Zombie(1, 11, 1300, 250, 50);\n zom112 = new Zombie(2, 11, 1300, 250, 50);\n zom141 = new Zombie(1, 14, 1700, 260, 60);\n zom142 = new Zombie(2, 14, 1700, 260, 60);\n //\n fana81 = new Fanatico(1, 8, 400, 190, 40);\n fana82 = new Fanatico(2, 8, 400, 190, 40);\n fana111 = new Fanatico(1, 11, 700, 250, 50);\n fana112 = new Fanatico(2, 11, 700, 250, 50);\n fana141 = new Fanatico(1, 14, 900, 260, 60);\n fana142 = new Fanatico(2, 14, 900, 260, 60);\n //\n mi81 = new Mimico(1, 8, 3, 1, 3000);\n mi111 = new Mimico(1, 11, 4, 1, 3000);\n mi141 = new Mimico(1, 14, 5, 1, 3200);\n }", "@Test\n\tpublic void testCrearEjercicio2(){\n\t\tEjercicio ej = new Ejercicio(1, true, Plataforma.getFechaActual().plusDays(3), Plataforma.getFechaActual().plusDays(2),\n\t\t\t\ttema1, \"Ejercicio1\", true, mates);\n\t\t\n\t\tassertEquals(ej.getFechaIni(), ej.getFechaIniDefecto());\n\t\tassertEquals(ej.getFechaFin(), ej.getFechaFinDefecto());\n\t\tassertTrue(tema1.getSubcontenido().contains(ej));\n\t}", "public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }", "public abstract Anuncio creaAnuncioGeneral();", "@Override\n protected void getExras() {\n }", "@Test\r\n public void testCoincidenAsignaturasPracticas2() {\r\n System.out.println(\"coincidenAsignaturasPracticas2\");\r\n \r\n ManejaAsignatura mAsig=new ManejaAsignatura();\r\n \r\n List<Asignatura> asignaturas = mAsig.getAsignaturas();\r\n \r\n \r\n Horarios instance = new Horarios();\r\n HorariosPracticas instance2 = new HorariosPracticas();\r\n \r\n List<Asignatura> horarios = new ArrayList<>();\r\n \r\n horarios.add(asignaturas.get(0));\r\n horarios.add(asignaturas.get(3));\r\n horarios.add(asignaturas.get(5));\r\n \r\n instance.VerAsignaturas(horarios);\r\n boolean expResult = false;\r\n boolean result = instance2.coincidenAsignaturasPracticas2(horarios);\r\n assertEquals(expResult, result);\r\n }", "public static void main(String[] args) \n {\n Equipo Boca = new Equipo(2);\n \n //Crear objeto jugador, pasando por parametro sus atributos\n Jugador j1 = new Jugador(\"Andrada\", 1, 1, 20, 100);\n Jugador j2 = new Jugador(\"Salvio\", 4, 7, 20, 100);\n \n // cargar objeto Equipo\n Boca.agregarJugador(j1);\n Boca.agregarJugador(j2);\n \n //Mostrar objeto Equipo\n System.out.println(Boca.listarJugador());\n \n \n \n //Cantidad de jugadores con menos de 10 partidos jugados.\n System.out.print(\"Cantidad de Jugadores con menos de 10 partidos jugados: \");\n System.out.println(Boca.cantidadJugadores());\n \n \n //Nombre del jugador con mayor cantidad de partidos jugados.\n System.out.print(\"Nombre del jugador con mas partidos jugados: \");\n System.out.println(Boca.jugadorMasPartidos());\n \n \n\n //Promedio de estado físico de todo el equipo.\n \n System.out.print(\"Promedio de estado fisico del equipo:\");\n System.out.println(Boca.promedioEstadoFisicoEquipo() + \"%\");\n \n\n //Estado físico de un jugador particular identificado por número de camiseta. \n \n System.out.print(\"Estado fisico de un juegador dado su numero de camiseta: \");\n System.out.println(Boca.estadoFisicoJugador(7) +\"%\");\n \n //Promedio de partidos jugados de los jugadores de cada posición (4resultados).\n \n System.out.println(\"Promedio de partidos jugados de los jugadores de cada posición:\");\n System.out.println(Boca.promedioPartidosJugadosporPuesto());\n \n \n \n \n }", "public static void main(String[] args) {\n\t\tFornitura forn= new Fornitura();\n\t\tArrayList<Dipendente> dip = new ArrayList<Dipendente>();\t\t\n\t\tfor(int j = 0;j<3;j++){\n\t\t\tDipendente d = new Dipendente();\n\t\t\td.setCodAziendaUfficiale(\"soc\"+j);\n\t\t\td.setCodDipendenteUfficiale(\"dip\"+j);\n\t\t\tArrayList<Voce> voc = new ArrayList<Voce>();\n\t\t\tArrayList<Movimento> mov = new ArrayList<Movimento>();\n\t\t\tfor(int i = 0;i<5;i++)\n\t\t\t{\n\t\t\t\tMovimento m = new Movimento();\n\t\t\t\tm.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tm.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\tVoce v = new Voce();\n\t\t\t\tv.setIdCodDipZuc(d.getCodDipendenteUfficiale());\n\t\t\t\tv.setIdCodSocZuc(d.getCodAziendaUfficiale());\n\t\t\t\ttry {\n\t\t\t\t\tm.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeFine(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t\tv.setDatetimeInit(DatatypeFactory.newInstance().newXMLGregorianCalendar(new GregorianCalendar()));\n\t\t\t\t} catch (DatatypeConfigurationException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tm.setGiornoChiusuraStraordinari(\"N\");\n\t\t\t\tm.setNumMinuti(480);\n\t\t\t\tm.setPippo(4.56);\n\t\t\t\tm.setGiustificativo(\"Giustificativo\");\n\t\t\t\tv.setNumMinuti(60);\n\t\t\t\tv.setPippo(100.45);\n\t\t\t\tv.setTopolino(\"Topo Lino\");\n\t\t\t\tmov.add(m);\n\t\t\t\tvoc.add(v);\n\t\t\t}\n\t\t\td.setMovimenti(mov);\n\t\t\td.setVociRetributive(voc);\n\t\t\tdip.add(d);\n\t\t}\n\t\tforn.setDipendente(dip);\n\t\tJAXBContext jc;\n\t\ttry {\n\t\t\tjc = JAXBContext.newInstance(Fornitura.class);\n\t\t\tMarshaller marshaller = jc.createMarshaller();\n\t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tmarshaller.marshal(forn, System.out);\n\t\t} catch (JAXBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry(FileOutputStream fileOut = new FileOutputStream(\"workbook.xlsx\");Workbook wb = new XSSFWorkbook())\n\t\t{\n\t\t XSSFSheet sheetA = (XSSFSheet)wb.createSheet(\"Movimenti\");\n//\t\t XSSFSheet sheetB = (XSSFSheet)wb.createSheet(\"VociRetributive\");\n\n\t\t \n\t\t /*Impostazioni per i movimenti*/\t\t \n\t\t /* Create an object of type XSSFTable */\n\t\t \n\t\t XSSFTable my_table = sheetA.createTable();\n\t\t \n\t\t /* get CTTable object*/\n\t\t CTTable cttable = my_table.getCTTable();\n\t\t \n\t\t /* Let us define the required Style for the table */ \n\t\t CTTableStyleInfo table_style = cttable.addNewTableStyleInfo();\n\t\t table_style.setName(\"TableStyleMedium9\"); \n\t\t \n\t\t /* Set Table Style Options */\n\t\t table_style.setShowColumnStripes(false); //showColumnStripes=0\n\t\t table_style.setShowRowStripes(true); //showRowStripes=1\n\t\t \n\t\t /* Define the data range including headers */\n\t\t AreaReference my_data_range = new AreaReference(new CellReference(0, 0), new CellReference(Fornitura.getNumeroDiMovimenti(forn), 6));\n\t\t \n\t\t /* Set Range to the Table */\n\t\t cttable.setRef(my_data_range.formatAsString());\n\t\t cttable.setDisplayName(\"Movimenti\"); /* this is the display name of the table */\n\t\t cttable.setName(\"Movimenti\"); /* This maps to \"displayName\" attribute in <table>, OOXML */ \n\t\t cttable.setId(1L); //id attribute against table as long value\n\t\t \n\t\t CTTableColumns columns = cttable.addNewTableColumns();\n\t\t CTAutoFilter autoFilter = cttable.addNewAutoFilter();\n\t\t \n\t\t columns.setCount(7L); //define number of columns\n\t\n\t\t /* Define Header Information for the Table */\n\t\t for (int i = 0; i < 7; i++)\n\t\t {\n\t\t CTTableColumn column = columns.addNewTableColumn(); \n\t \t switch(i)\n\t \t {\n\t \t \tcase 0:\n\t \t \t\tcolumn.setName(\"idCodDipZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 1:\n\t \t \t\tcolumn.setName(\"idCodSocZuc\");\n\t \t \t\tbreak;\n\t \t \tcase 2:\n\t \t \t\tcolumn.setName(\"giustificativo\");\n\t \t \t\tbreak;\n\t \t \tcase 3:\n\t \t \t\tcolumn.setName(\"NumMinuti\");\n\t \t \t\tbreak;\n\t \t \tcase 4:\n\t \t \t\tcolumn.setName(\"GiornChiusS\");\n\t \t \t\tbreak;\n\t \t \tcase 5:\n\t \t \t\tcolumn.setName(\"Pippo\");\n\t \t \t\tbreak;\n\t \t \tcase 6:\n\t \t \t\tcolumn.setName(\"Data\");\n\t \t \t\tbreak;\n\t\n\t \t }\n\t \t \n\t \t \n\t \t column.setId(i+1);\n\t \t CTFilterColumn filter = autoFilter.addNewFilterColumn();\n\t \t filter.setColId(i+1);\n\t \t filter.setShowButton(true);\n\t \t sheetA.autoSizeColumn(i);\n\t \t sheetA.setColumnWidth(i, sheetA.getColumnWidth(i) + 1024);\n\t \t \n\t\t }\n\t\t \n\t\t List<Dipendente> ld = forn.getDipendente();\n\t\t int numRowMov = -1;\n\t\t /*Inizializzazione HEADER*/\n\t\t XSSFRow rowAA = sheetA.createRow(++numRowMov);\n\t\t for(int j=0;j<7;j++){\n \t\t\tXSSFCell localXSSFCellFD = rowAA.createCell(j);\n \t\t\tcreaHeader(j, localXSSFCellFD);\t\t\n\t\t }\n\t\t \n//\t\t int numRowVoc = 0;\n\t\t ;\n\t\t for(Dipendente d:ld)\n\t\t {\n\t\t \tList<Movimento> lm = d.getMovimenti();\n\t\t \t//List<Voce> lv = d.getVociRetributive();\n\t\t \tfor(Movimento m:lm)\n\t\t \t{\t \t\t\n\t\t \t\tXSSFRow rowA = sheetA.createRow(++numRowMov);\n\t\t \t\tfor(int j = 0; j < 7; j++)\n\t\t \t\t{\n\t\t \t\t\tXSSFCell localXSSFCell = rowA.createCell(j);\n\t\t\t\t\t\tcreaMovimento(wb, d, m, j, localXSSFCell);\n\t\t \t\t}\n\t\t \t}\n//\t\t \tfor(Voce v:lv)\n//\t\t \t{\n//\t\t \t\t\n//\t\t \t}\n\t\t \t\n\t\t }\n\t\t wb.write(fileOut);\n\t fileOut.flush();\n\t\t fileOut.close();\n\t wb.close();\n\t \n\t System.out.println(\"**** LEGGO IL FILE SCRITTO ****\");\n\t /*Aprire un altro file, leggerlo e generare l'xml*/\n\n FileInputStream excelFile = new FileInputStream(new File(\"workbook.xlsx\"));\n XSSFWorkbook workbook = new XSSFWorkbook(excelFile);\n XSSFSheet foglioMov = workbook.getSheet(\"Movimenti\");\n List<XSSFTable> ltab = foglioMov.getTables();\n HashMap<String,Dipendente> hmsd = new HashMap<String,Dipendente>();\n for(XSSFTable xsfftab:ltab)\n {\n \tif(\"Movimenti\".equals(xsfftab.getName()))\n \t{\n \t\tint iIni =xsfftab.getStartCellReference().getRow();\n \t\tint jIni =xsfftab.getStartCellReference().getCol();\n \t\tint iFin =xsfftab.getEndCellReference().getRow();\n \t\tint jFin =xsfftab.getEndCellReference().getCol();\n \t\tCTTableColumns cttc = xsfftab.getCTTable().getTableColumns();\n \t\tfor(int i = iIni+1;i<=iFin;i++)\n \t\t{\n \t\t\tString codDipZuc = null;\n \t\t\tString codSocZuc = null;\n \t\t\tString giustificativo = null;\n \t\t\tInteger numMin = null;\n \t\t\tString gioChiu = null;\n \t\t\tDouble pippo = null;\n \t\t\tjava.util.Date laData = null;\n \t\t\tfor(int j=jIni;j<=jFin;j++)\n \t\t\t{\n \t\t\t\tSystem.out.println(jFin);\n \t\t\t\tswitch(cttc.getTableColumnArray(j).getName())\n \t\t\t\t{\n \t\t\t\t\tcase \"idCodDipZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodDipZuc = foglioMov.getRow(i).getCell(j).getStringCellValue(); \t\t\t\t\t\t\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"idCodSocZuc\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tcodSocZuc = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"giustificativo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgiustificativo = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"NumMinuti\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tnumMin = (int)foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"GiornChiusS\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getStringCellValue());\n \t\t\t\t\t\tgioChiu = foglioMov.getRow(i).getCell(j).getStringCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Pippo\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getNumericCellValue());\n \t\t\t\t\t\tpippo = foglioMov.getRow(i).getCell(j).getNumericCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase \"Data\":\n \t\t\t\t\t\tSystem.out.println(i+\",\"+j+\": \"+foglioMov.getRow(i).getCell(j).getDateCellValue());\n \t\t\t\t\t\tlaData = foglioMov.getRow(i).getCell(j).getDateCellValue();\n \t\t\t\t\t\tbreak;\n \t\t\t\t}\n\n \t\t\t}\n \t \tif(!hmsd.containsKey(codSocZuc+\";\"+codDipZuc))\n \t \t{\n \t \t\tDipendente dip0 = new Dipendente();\n \t \t\tdip0.setCodAziendaUfficiale(codSocZuc);\n \t \t\tdip0.setCodDipendenteUfficiale(codDipZuc);\n \t \t\tdip0.setMovimenti(new ArrayList<Movimento>());\n \t \t\thmsd.put(codSocZuc+\";\"+codDipZuc,dip0);\n \t \t}\t \t\n \t \tMovimento e = new Movimento();\n \t \tGregorianCalendar gc = GregorianCalendar.from(ZonedDateTime.now());\n \t \te.setIdCodDipZuc(codDipZuc);\n \t \te.setIdCodSocZuc(codSocZuc);\n \t \te.setGiornoChiusuraStraordinari(gioChiu);\n \t \te.setGiustificativo(giustificativo);\n \t \te.setNumMinuti(numMin);\n \t \te.setPippo(pippo);\n \t \tgc.setTime(laData);\n \t \ttry {\n\t\t\t\t\t\t\te.setDatetime(DatatypeFactory.newInstance().newXMLGregorianCalendar(gc));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (DatatypeConfigurationException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n \t \thmsd.get(codSocZuc+\";\"+codDipZuc).getMovimenti().add(e);\t \t\t\t\n \t\t}\n \t\t\t\n \t}\n }\n System.out.println(\"**** SCRIVO IL NUOVO XML ****\");\n Fornitura forni = new Fornitura();\n forni.setDipendente(new ArrayList<Dipendente>(hmsd.values()));\n \t\tJAXBContext jc12;\n \t\ttry {\n \t\t\tjc12 = JAXBContext.newInstance(Fornitura.class);\n \t\t\tMarshaller marshaller = jc12.createMarshaller();\n \t\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n \t\t\tmarshaller.marshal(forni, System.out);\n \t\t} catch (JAXBException e) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te.printStackTrace();\n \t\t}\n \n//\t for(/*TUTTE LE RIGHE DI VOCI RETRIBUTIVA*/)\n//\t {\n//\t \tif(!hmIDDip.containsKey(\"idSoc;idDip\"))\n//\t \t{\n//\t \t\tDipendente dip = new Dipendente();\n//\t \t\tdip.setCodAziendaUfficiale(\"idSoc\");\n//\t \t\tdip.setCodDipendenteUfficiale(\"idDip\");\n//\t \t\tdip.setVociRetributive(new ArrayList<Voce>());\n//\t \t\t\n//\t \t}else if(hmIDDip.get(\"idSoc;idDip\").getVociRetributive()==null)\n//\t \t\thmIDDip.get(\"idSoc;idDip\").setVociRetributive(new ArrayList<Voce>());\n//\t \thmIDDip.get(\"idSoc;idDip\").getVociRetributive().add(e);\n//\t }\n\t \n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t \n \n\t\t\n\t}", "OutputDeviations createOutputDeviations();", "public void soustraction(){\n ObjEmp obj1 = this.depile();\n ObjEmp obj2 = this.depile();\n try{ \n obj2.soustraction(obj1);\n this.empile(obj2);\n }\n catch(NullPointerException nullPE){\n try{\n writer.write(\"Impossible to substract : either obj1=\"+obj1+\" or obj2=\"+obj2+ \" is null\\n\");\n writer.flush();\n }\n catch(IOException e){\n printStream.println(\"I/O exception!!!\");\n }\n if(obj2 != null)\n this.empile(obj2);\n if(obj1 != null)\n this.empile(obj1);\n }\n }", "private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }", "ObligacionDeber createObligacionDeber();", "public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "@Test\n\tpublic void testCrearEjercicio3(){\n\t\tEjercicio ej = new Ejercicio(1, true, Plataforma.getFechaActual().minusDays(3), Plataforma.getFechaActual().plusDays(2),\n\t\t\t\ttema1, \"Ejercicio1\", true, mates);\n\t\t\n\t\tassertEquals(ej.getFechaIni(), ej.getFechaIniDefecto());\n\t\tassertEquals(ej.getFechaFin(), ej.getFechaFinDefecto());\n\t\tassertTrue(tema1.getSubcontenido().contains(ej));\n\t}", "Obligacion createObligacion();", "public Destruir() {\r\n }", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }" ]
[ "0.6460301", "0.64520365", "0.6347844", "0.62612367", "0.6204858", "0.61673415", "0.61444485", "0.6091321", "0.59432423", "0.5901249", "0.58895236", "0.58576995", "0.5827533", "0.58218133", "0.5807099", "0.5791756", "0.57463825", "0.5738842", "0.5724687", "0.5722412", "0.5699386", "0.5695243", "0.5685045", "0.56725967", "0.5668079", "0.5652136", "0.5648172", "0.56450194", "0.5614013", "0.56120634", "0.5595559", "0.55881786", "0.5587358", "0.55696446", "0.5564444", "0.5563416", "0.55505663", "0.55329925", "0.5516699", "0.5489783", "0.54874766", "0.54778653", "0.54706365", "0.54676026", "0.54275966", "0.54223025", "0.54203486", "0.54194444", "0.53996396", "0.5397111", "0.53970706", "0.53931457", "0.5392551", "0.5370935", "0.53698933", "0.5367177", "0.5366846", "0.53666973", "0.53620344", "0.53612864", "0.53555757", "0.53550375", "0.53491634", "0.53344846", "0.5333964", "0.533355", "0.53249407", "0.5323588", "0.5321989", "0.53192306", "0.5318907", "0.5318418", "0.5316279", "0.53029114", "0.5302515", "0.53024876", "0.52992755", "0.5297007", "0.52820927", "0.5276751", "0.5264588", "0.526268", "0.52563345", "0.5250313", "0.52448726", "0.523957", "0.5235442", "0.5235389", "0.5235099", "0.5234427", "0.52310926", "0.52301866", "0.52074134", "0.5206188", "0.5200825", "0.5198817", "0.51956177", "0.5194685", "0.51927966", "0.51891035" ]
0.58748436
11
TODO Autogenerated method stub
public Object getProxy() { return getProxy(this.advised.getTargetClass().getClassLoader()); }
{ "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
public Object getProxy(ClassLoader classLoader) { return Proxy.newProxyInstance(classLoader, this.advised.getTargetClass().getInterfaces(), this); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
this private instance variable holds an object of class keyboardInput
public void loadFile(String fileName) {//Retrieves name of file String line = null; try{ FileReader open = new FileReader(fileName); BufferedReader read = new BufferedReader(open); while((line = read.readLine()) != null) { String[] parts = line.split(" "); String part1 = parts[0]; String part2 = parts[1]; System.out.println(part1 + part2); }read.close();} catch(FileNotFoundException ex) { System.out.println( "Unable to open file '" + fileName + "'"); } catch(IOException ex) { System.out.println( "Error reading file '" + fileName + "'"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void keyboardInput();", "public GameInput() {\n keyboard = new Keyboard();\n mouse = new Mouse();\n mouseWheel = new MouseWheel();\n }", "public Keyboard getKeyboard() {\n return keyboard;\n }", "public abstract Object getInput ();", "public Player(Keyboard input) {\n\t\tthis.input = input;\n\t}", "public static Input getInput() {\r\n return input;\r\n }", "public KeyListener getKeyboardEvent() {\n\treturn new KeyListener() {\n\t // classe anonyme et on est obliger d'implementer toutes les methodes\n\t // de la classe meme si on les utilise pas\n\t @Override\n\t public void keyPressed(KeyEvent e) {\n\t\t// recuperer l'objet board de la classe MainWindow depuis la classe\n\t\t// anonyme\n\t\tBoard board = MainWindow.this.board;\n\t\tswitch (e.getKeyCode()) {\n\t\t case KeyEvent.VK_UP:\n\t\t\tboard.playMove(Direction.UP);\n\t\t\tbreak;\n\t\t case KeyEvent.VK_DOWN:\n\t\t\tboard.playMove(Direction.DOWN);\n\t\t\tbreak;\n\t\t case KeyEvent.VK_LEFT:\n\t\t\tboard.playMove(Direction.LEFT);\n\t\t\tbreak;\n\t\t case KeyEvent.VK_RIGHT:\n\t\t\tboard.playMove(Direction.RIGHT);\n\t\t\tbreak;\n\t\t}\n\t }\n\t \n\t @Override\n\t public void keyTyped(KeyEvent e) {\n\t\t\n\t }\n\n\t @Override\n\t public void keyReleased(KeyEvent e) {\n\t\t\n\t }\n\t};\n }", "public String getInputKey() {\n return this.inputKey;\n }", "protected abstract void getInput();", "public static Keyboard getKeyboard()\r\n\t{\r\n\t\t\r\n\t\tSystem.out.println ( \"What is the brand of keyboard?\" );\r\n\t\tString brand = input.next ( );\r\n\t\tSystem.out.println ( \"What is the model of keyboard?\" );\r\n\t\tString model = input.next ( );\r\n\t\tSystem.out.println ( \"What are the types of switches?\" );\r\n\t\tString switchType = input.next( );\r\n\t\tSystem.out.println ( \"How many do you have in stock?\" );\r\n\t\tint stock = input.nextInt( );\r\n\t\tSystem.out.println ( \"What is the price?\" );\r\n\t\tdouble price = input.nextDouble( );\r\n\t\tKeyboard kb1 = new Keyboard(brand, model, switchType, stock, price);\r\n\r\n\t\treturn kb1;\r\n\t\t\r\n\t}", "Input createInput();", "protected JoystickInput() {\n }", "private Input()\n {\n }", "protected void inputListener(){\n }", "@Override\n public void keyboardAction( KeyEvent ke )\n {\n \n }", "public void input() {\n \n \t\tboolean aPressed = Keyboard.isKeyDown(Keyboard.KEY_A);\n \t\tboolean dPressed = Keyboard.isKeyDown(Keyboard.KEY_D);\n \t\tboolean wPressed = Keyboard.isKeyDown(Keyboard.KEY_W);\n \t\tboolean sPressed = Keyboard.isKeyDown(Keyboard.KEY_S);\n \n \t\tif ((aPressed) && (!dPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_A);\n \t\t} else if ((dPressed) && (!aPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_D);\n \t\t} else if ((wPressed) && (!sPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_W);\n \t\t} else if ((sPressed) && (!wPressed)) {\n \t\t\ttryToMove(Keyboard.KEY_S);\n \t\t}\n \t}", "@DISPID(-2147412107)\n @PropGet\n java.lang.Object onkeydown();", "public InputManager(){\n this.view = new View();\n }", "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "public Input getInput() {\n return this.input;\n }", "Keyboard(){\r\n //Mapping of drawing order to note values\r\n //White keys first\r\n this.draw.put(0, 0);\r\n this.draw.put(1, 2);\r\n this.draw.put(2, 4);\r\n this.draw.put(3, 5);\r\n this.draw.put(4, 7);\r\n this.draw.put(5, 9);\r\n this.draw.put(6, 11);\r\n this.draw.put(7, 12);\r\n this.draw.put(8, 14);\r\n this.draw.put(9, 16);\r\n this.draw.put(10, 17);\r\n this.draw.put(11, 19);\r\n this.draw.put(12, 21);\r\n this.draw.put(13, 23);\r\n this.draw.put(14, 24);\r\n\r\n //Now black keys\r\n this.draw.put(15, 1);\r\n this.draw.put(16, 3);\r\n //SKIP\r\n this.draw.put(18, 6);\r\n this.draw.put(19, 8);\r\n this.draw.put(20, 10);\r\n //SKIP\r\n this.draw.put(22, 13);\r\n this.draw.put(23, 15);\r\n //SKIP\r\n this.draw.put(25, 18);\r\n this.draw.put(26, 20);\r\n this.draw.put(27, 22);\r\n \r\n }", "@Override public View onCreateInputView() {\n mInputView = (KeyboardView) getLayoutInflater().inflate(R.layout.input_view,null);\n mInputView.setOnKeyboardActionListener(this); // @todo 分割\n return mInputView;\n }", "public Input getInput() {\r\n return localInput;\r\n }", "@Override\n public void keyPressed(KeyEvent e) {\n\n\n }", "public interface KeyboardDriver {\n\n void type(char key);\n\n}", "public InputHandler() {\n arrowKeyHandler = null;\n keyHandler = null;\n }", "public interface MonkeyInput {\n\n\tpublic boolean compareState(UIState s1, UIState s2);\n\n\tpublic int getNextClick(UIState s);\n\n\tpublic String getTextInput();\n\n\tpublic long getTimeOut();\n}", "@Override\n public void keyPressed(KeyEvent e) {\n \n \n }", "public void input(){\n\t\tboolean[] inputKeyArray = inputHandler.processKeys();\n\t\tint[] inputMouseArray = inputHandler.processMouse();\n\t\tcurrentLevel.userInput(inputKeyArray, inputMouseArray);\n\t}", "private VirtualKeyboard()\r\n\t{}", "@Override\n\tpublic void keyPressed() {\n\t\t\n\t}", "@Override\n public void keyTyped(KeyEvent e) {\n \n }", "public void setInputKey(String inputKey) {\n this.inputKey = inputKey;\n }", "public void keyPressed(KeyEvent e) { }", "@Override\n public Window reaction(KeyEvent userInput) {\n return null;//tmp\n }", "public void interactWithKeyboard() {\n StdDraw.setCanvasSize(WIDTH * 16, HEIGHT * 16);\n StdDraw.setXscale(0, WIDTH);\n StdDraw.setYscale(0, HEIGHT);\n createMenu();\n StdDraw.enableDoubleBuffering();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char input = Character.toUpperCase(StdDraw.nextKeyTyped());\n if (input == 'v' || input == 'V') {\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n while (true) {\n if (StdDraw.hasNextKeyTyped()) {\n char next = StdDraw.nextKeyTyped();\n if (next == '#') {\n createMenu();\n break;\n } else {\n name += next;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a name: \" + name);\n StdDraw.text(WIDTH / 2, HEIGHT * 5 / 6, \"Press # to finish.\");\n StdDraw.show();\n }\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1);\n interactWithInputString(toInsert);\n ter.renderFrame(world);\n startCommands();\n }\n if (input == 'n' || input == 'N') {\n toInsert += 'n';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n while (true) {\n if (!StdDraw.hasNextKeyTyped()) {\n continue;\n }\n char c = StdDraw.nextKeyTyped();\n if (c == 's' || c == 'S') {\n toInsert += 's';\n StdDraw.enableDoubleBuffering();\n StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show(); interactWithInputString(toInsert);\n ter.renderFrame(world); mouseLocation(); startCommands();\n break;\n }\n if (c != 'n' || c != 'N') {\n toInsert += c;\n StdDraw.enableDoubleBuffering(); StdDraw.clear(Color.BLACK);\n StdDraw.text(WIDTH / 2, HEIGHT * 2 / 3, \"Enter a seed: \" + toInsert);\n StdDraw.show();\n }\n }\n }\n if (input == 'l' || input == 'L') {\n toInsert = loadWorld();\n if (toInsert.substring(0, 1).equals(\"k\")) {\n floorTile = Tileset.GRASS;\n }\n toInsert = toInsert.substring(1); interactWithInputString(toInsert);\n ter.renderFrame(world); startCommands();\n }\n }\n }\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void keyPressed(KeyEvent e) {}", "@DISPID(-2147412105)\n @PropGet\n java.lang.Object onkeypress();", "public abstract void onInput();", "private void GetInput()\r\n {\r\n ///Implicit eroul nu trebuie sa se deplaseze daca nu este apasata o tasta\r\n xMove = 0;\r\n yMove = 0;\r\n\r\n ///Verificare apasare tasta \"sus\"\r\n if(refLink.GetKeyManager().up_arrow && !isJumping)\r\n {\r\n jumpDirection = -1;\r\n isJumping = true;\r\n jumpSpeed = 0;\r\n }\r\n /*\r\n ///Verificare apasare tasta \"jos\"\r\n if(refLink.GetKeyManager().down)\r\n {\r\n yMove = speed;\r\n }*/\r\n ///Verificare apasare tasta \"left\"\r\n if(refLink.GetKeyManager().left_arrow && x + xMove > 15)\r\n {\r\n xMove = -speed;\r\n }\r\n ///Verificare apasare tasta \"dreapta\"\r\n if(refLink.GetKeyManager().right_arrow && x + xMove < 900)\r\n {\r\n xMove = speed;\r\n }\r\n }", "@Override\r\n public void keyPressed(KeyEvent e) {\n\r\n }", "INPUT createINPUT();", "@Override\n public void keyPressed(KeyEvent e) {\n\n }", "@Override\n public void keyPressed(KeyEvent e) {\n\n }", "public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\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\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}", "public void getInput() {\n\t\t\n\t\txMove = 0;\n\t\tyMove = 0;\n\t\tpenetrating = false;\n\t\t\n\t\t\n\t\tif(handler.getKeyManager().up) {\n\t\t\tyMove -= speed;\n\t\t}\n\t\tif(handler.getKeyManager().down) {\n\t\t\tyMove += speed;\n\t\t}\n\n\t\tif(handler.getKeyManager().left) {\n\t\t\txMove -= speed;\n\t\t}\n\t\tif(handler.getKeyManager().right) {\n\t\t\txMove += speed;\n\t\t}\n\t\t\n\t\tisMoving = (xMove != 0 || yMove != 0);\n\t\t\n\t\tmouseX = handler.getMouseManager().getMouseX();\n\t\tmouseY = handler.getMouseManager().getMouseY();\n\t\tisShooting = handler.getMouseManager().isPressingLeft();\n\t\t\n\t\tisReloading = handler.getKeyManager().r;\n\t}", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\n public void keyPressed(KeyEvent e) {\n }", "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "@Override\r\n public void keyTyped(KeyEvent e) {\n\r\n }", "static InputScanner getInputScanner() {\n return inputScanner;\n }", "public boolean keyInput(int code, int action);", "public String getInput() {\n return input;\n }", "public abstract Keyboard createKeyboard(Keyboard.ThemeType theme);", "public abstract void handleInput();", "public abstract InputListener getInputListener(GameObject object);", "@Override\n\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\n\t\t}", "public interface AKeyboardViewProvider {\n}", "public Keyboard(){\n \n for(boolean k: keys){\n k=false;\n }\n }", "TicTacToe(){\n\t\tplayerMgr=new PlayerManager();\n\t\tinterp=new Interpreter();\n\t\tgameMgr=new GameManager();\n\t\tkeyBoard=new Scanner(System.in);\n\t}", "@Override\r\n public void keyPressed(KeyEvent e) {\n \r\n }", "public void keyTyped(KeyEvent e) {\n\r\n }", "@Override\n\tpublic void handleInput() {\n\t\t\n\t}", "@Override\n public void keyTyped(KeyEvent ke) {\n \n }", "public abstract void update(Keyboard keyboard);", "@Override\r\n public void keyTyped(KeyEvent e)\r\n { \r\n }", "public Keyboard(Tetris ts) {\n\t\tthis.ts = ts;\n\t}", "public abstract void keyPressed(int k);", "@Override\r\n public void keyPressed(KeyEvent ke) {\n }", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}", "public InputController(Game game) {\r\n game.addKeyListener(this);\r\n this.game = game;\r\n }", "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}", "interface InputField {\r\n\r\n /**\r\n * Since the solve() method must be placed in a class implementing the\r\n * InputField interface, I need a reference to the Console where output,\r\n * solveInfo, tuProlog engine and the ProcessInput thread are placed.\r\n *\r\n * This behaviour will change as soon as there will be no need of\r\n * separate input components for .NET and Java2, i.e. as soon as\r\n * the AltGr bug in Thinlet, preventing the use of italian keycombo\r\n * AltGr + '?' and AltGr + '+' to write '[' and ']', will be solved.\r\n */\r\n void setConsole(ConsoleManager console);\r\n\r\n /**\r\n\t * Get the goal displayed in the input field.\r\n\t * @return The goal displayed in the input field.\r\n\t */\r\n public String getGoal();\r\n\r\n /**\r\n * Add the displayed goal to the history of the requested goals.\r\n */\r\n //public void addGoalToHistory();\r\n\r\n /**\r\n * Enable or disable the possibility of asking for goals to be solved.\r\n *\r\n * @param flag true if the query device has to be enabled, false otherwise.\r\n */\r\n //public void enableSolveCommands(boolean flag);\r\n\r\n}", "@Override\n\t\t\t\tpublic void keyPressed(KeyEvent arg0)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void inputEnded() {\n\n\t}", "protected Object getInitialInput() {\n return this;\n }", "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\r\n\t}", "public InputEvent getInputEvent() {\r\n return inputEvent;\r\n }", "char getKeyPressChar();", "@Override\r\n\tpublic void keyPressed(KeyEvent keyPressed)\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void inputEnded() {\n\t\t\n\t}", "public abstract void keyPressed(int key);", "@Override\n public void keyTyped(KeyEvent e){\n }", "private void setInputListeners () {\r\n // initialize input state\r\n myLastKeyPressed = NO_KEY_PRESSED;\r\n myKeys = new TreeSet<Integer>();\r\n addKeyListener(new KeyAdapter() {\r\n @Override\r\n public void keyPressed (KeyEvent e) {\r\n // resets key after being used once. Does not affect getKeysPressed.\r\n if (myLastKeyPressed == e.getKeyCode()) {\r\n myLastKeyPressed = NO_KEY_PRESSED;\r\n }\r\n else {\r\n myLastKeyPressed = e.getKeyCode();\r\n }\r\n myKeys.add(e.getKeyCode());\r\n }\r\n\r\n @Override\r\n public void keyReleased (KeyEvent e) {\r\n myKeys.remove(e.getKeyCode());\r\n }\r\n });\r\n myLastMousePosition = NO_MOUSE_PRESSED;\r\n addMouseMotionListener(new MouseMotionAdapter() {\r\n @Override\r\n public void mouseDragged (MouseEvent e) {\r\n myLastMousePosition = e.getPoint();\r\n }\r\n });\r\n addMouseListener(new MouseAdapter() {\r\n @Override\r\n public void mousePressed (MouseEvent e) {\r\n myLastMousePosition = e.getPoint();\r\n myMouseClick = true;\r\n }\r\n\r\n @Override\r\n public void mouseReleased (MouseEvent e) {\r\n myLastMousePosition = NO_MOUSE_PRESSED;\r\n myMouseClick = false;\r\n }\r\n });\r\n }", "@Override\n\tpublic void keyPressed(KeyEvent arg0)\n\t{\n\t\t\n\t}", "public void keyTyped(KeyEvent arg0) {\n\t\n}", "public SimpleStringProperty getKeyReleasedInput(){\n return keyReleasedInput;\n }" ]
[ "0.73652285", "0.7185551", "0.6972753", "0.6787836", "0.67451185", "0.6736263", "0.67242396", "0.6691282", "0.66470826", "0.66253877", "0.6519842", "0.64449275", "0.64438075", "0.64145035", "0.6388001", "0.6348733", "0.6325028", "0.6313814", "0.6275774", "0.6262238", "0.6250802", "0.6242372", "0.62358975", "0.6187042", "0.61861545", "0.61653054", "0.61641836", "0.6153329", "0.613102", "0.6116027", "0.6108738", "0.6108059", "0.61060566", "0.6105045", "0.6104528", "0.60835123", "0.60483766", "0.6047224", "0.6046102", "0.6037793", "0.60358286", "0.6022373", "0.6019279", "0.6008822", "0.6008822", "0.60082984", "0.59967846", "0.5996338", "0.5995224", "0.5995224", "0.5995224", "0.5995224", "0.5995224", "0.5995224", "0.5995224", "0.5995224", "0.59886175", "0.59886175", "0.59859204", "0.59855163", "0.5984083", "0.59806144", "0.59734166", "0.5966507", "0.5959076", "0.5956614", "0.59561694", "0.5955231", "0.59523064", "0.5949046", "0.59444976", "0.5943617", "0.5943054", "0.59404576", "0.5939199", "0.5938192", "0.59369045", "0.5930175", "0.5930175", "0.5930175", "0.59242016", "0.59241056", "0.59241056", "0.59241056", "0.59241056", "0.5922556", "0.59198344", "0.59037924", "0.5901055", "0.5900966", "0.5900966", "0.59007305", "0.5894742", "0.5894683", "0.5893894", "0.5893489", "0.58855927", "0.5882165", "0.5879593", "0.58785284", "0.5878155" ]
0.0
-1
This instance method is the central method of our program. It sets up all we need for keyboard input later, and contains the central loop to which execution returns. It takes no parameters.
public void run() { keyboardInput = new KeyboardInput(); // we will use this object to obtain keyboard input while (true) { // endless while-loop // display the menu and get the user's choice CurrencyExchangeMenu menu = new CurrencyExchangeMenu(); // ...using the int menuChoice = menu.getChoice(keyboardInput); // now process switch (menuChoice) { case 1: listCurrencies(); // output a list of all currencies added to the system break; case 2: addCurrency(); // add a currency to the system break; case 3: showRate(); // show the exchange rate for a given currency break; case 4: convertAmount(); // convert an amount between two currencies break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mainLoop()\n {\n try\n {\n while (true)\n {\n System.out.print( \"\\r\\nJicos> \" );\n System.out.flush();\n\n byte[] input = new byte[1024];\n int read = -1;\n if (-1 == (read = System.in.read( input )))\n {\n break;\n }\n\n try\n {\n performCommand( new String( input, 0, read ) );\n }\n catch (Exception exception)\n {\n System.err.println( exception.getMessage() );\n }\n }\n }\n catch (Exception exception)\n {\n }\n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "public void run() {\n TasksCounter tc = new TasksCounter(tasks);\n new Window(tc);\n Ui.welcome();\n boolean isExit = false;\n Scanner in = new Scanner(System.in);\n while (!isExit) {\n try {\n String fullCommand = Ui.readLine(in);\n Command c = Parser.commandLine(fullCommand);\n c.execute(tasks, members, storage);\n isExit = c.isExit();\n } catch (DukeException e) {\n Ui.print(e.getMessage());\n }\n }\n }", "private void run()\r\n\t{\r\n\t\tboolean programLoop = true;\r\n\t\t\r\n\t\twhile(programLoop)\r\n\t\t{\r\n\t\t\tmenu();\r\n\t\t\tSystem.out.print(\"Selection: \");\r\n\t\t\tString userInput = input.nextLine();\r\n\t\t\t\r\n\t\t\tint validInput = -1;\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tvalidInput = Integer.parseInt(userInput);\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Please enter a valid selection.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tswitch(validInput)\r\n\t\t\t{\r\n\t\t\t\tcase 0: forInstructor();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1: addSeedURL();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2: addConsumer();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3: addProducer();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4: addKeywordSearch();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5: printStats();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t//case 10: debug(); //Not synchronized and will most likely cause a ConcurrentModificationException\r\n\t\t\t\t\t\t //break;\t//if multiple Producer and Consumer Threads are running.\r\n\t\t\t\tdefault: break;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "private void run() \n{\n String answer;\t//console answer\n \tboolean error;\t//answer error flag\n \terror = false;\n \tdo {\t\t\t\t\t\t\t//get the right answer\n \t \t//Take user input\n \t \t//System.out.println(\"\\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\\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\");\n \t\t\tSystem.out.println(\"Would you like to enter GUI or TIO?\");\n \t\t\tanswer = console.nextLine();\n \t \tif(answer.equals(\"GUI\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchGUI();\n \t\t\t}else if(answer.equals(\"TIO\"))\n \t\t\t{\n \t\t\t\terror = false;\n \t\t\t\tlaunchTIO();\n \t\t\t}else\n \t\t\t{\n \t\t\t\t//Error: Not correct format\n \t\t\t\terror = true;\n \t\t\t\tSystem.out.println(\"I couldn't understand your answer. Please enter again \\n\");\n \t\t\t}\n \t\t}while (error == true);\n\n}", "private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}", "@Override\n\tpublic void run() {\n\t\twhile(!exit) {\n\t\t\t//Do something\n\t\t\tgetInput();\n\t\t}\n\t}", "public void run() {\n\t\tprepareVariables(true);\n\t\t\n\t\t// Prepares Map Tables for Song and Key Info.\n\t\tprepareTables();\n\t\t\n\t\t// Selects a Random Song.\n\t\tchooseSong(rgen.nextInt(0, songlist.size()-1));\n\t\t\n\t\t// Generates layout.\n\t\tgenerateLabels();\n\t\tgenerateLines();\n\t\t\n\t\t// Listeners\n\t\taddMouseListeners();\n\t\taddKeyListeners();\n\t\t\n\t\t// Game Starts\n\t\tplayGame();\n\t}", "public void loop(){\n \n \n }", "@Override\n\tpublic void gameLoop() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tLabyrinthMap map = getLabyrinthMap();\n\t\tDirection d;\n\t\twhile (!map.isDone()) {\n\t\t\trenderManager.render(map);\n\t\t\td = readDirectionFromKeyboard(scanner);\n\t\t\tmap.updateMap(d);\n\t\t}\n\t\tSystem.out.println(\"Labirinto Finalizado!\");\n\t}", "public void loop(){\n\t}", "public void loop(){\n\t\t\n\t}", "Loop createLoop();", "public void eventLoop() {\n while (looping) {\n try {\n int c = Util.keyPress(String.format(format, num_threads, time, timeout, print_details, print_incrementers));\n switch (c) {\n case '1':\n startBenchmark();\n break;\n case '2':\n printView();\n break;\n case '4':\n changeFieldAcrossCluster(NUM_THREADS, Util.readIntFromStdin(\"Number of incrementer threads: \"));\n break;\n case '6':\n changeFieldAcrossCluster(TIME, Util.readIntFromStdin(\"Time (secs): \"));\n break;\n case 'd':\n changeFieldAcrossCluster(PRINT_DETAILS, !print_details);\n break;\n case 'i':\n changeFieldAcrossCluster(PRINT_INVOKERS, !print_incrementers);\n break;\n case 't':\n changeFieldAcrossCluster(TIMEOUT, Util.readIntFromStdin(\"incr timeout (ms): \"));\n break;\n case 'v':\n System.out.printf(\"Version: %s, Java version: %s\\n\", Version.printVersion(),\n System.getProperty(\"java.vm.version\", \"n/a\"));\n break;\n case 'x':\n case -1:\n looping = false;\n break;\n case 'X':\n try {\n RequestOptions options = new RequestOptions(ResponseMode.GET_NONE, 0)\n .flags(Message.Flag.OOB, Message.Flag.DONT_BUNDLE, Message.Flag.NO_FC);\n disp.callRemoteMethods(null, new MethodCall(QUIT_ALL), options);\n break;\n } catch (Throwable t) {\n System.err.println(\"Calling quitAll() failed: \" + t);\n }\n break;\n default:\n break;\n }\n } catch (Throwable t) {\n t.printStackTrace();\n }\n }\n stop();\n }", "public void start()\n\t{\n\t\taskUser();\n\t\tloop();\n\n\t}", "@Override public void loop() {\n }", "private void runApp() {\n boolean running = true;\n String command;\n\n while (running) {\n showCommands();\n command = input.next().toLowerCase();\n\n if (command.equals(\"exit\")) {\n running = false;\n } else {\n execute(command);\n }\n }\n\n System.out.println(\"\\nExiting.\");\n }", "public abstract void loop();", "public void start() {\r\n\t\tboolean running = true;\r\n\t\twhile(running) {\r\n\t\t\t// Storage variable for user input\r\n\t\t\tString userInput = null;\r\n\t\t\tString[] systemOutput = null;\r\n\t\t\t\r\n\t\t\t// Check first input\r\n\t\t\tuserInput = getUserFirstInput(input);\r\n\t\t\t\r\n\t\t\t// If first prompt is valid, process accordingly\r\n\t\t\tif(userInput != null) {\r\n\t\t\t\tswitch(userInput) {\r\n\t\t\t\t\tcase \"0\": \r\n\t\t\t\t\t\tSystem.out.println(\"Thanks for using!\");\r\n\t\t\t\t\t\trunning = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"1\":\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"1\", null);\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"2\":\r\n\t\t\t\t\t\tuserInput = getUserPartialOrFull(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"2\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"3\":\r\n\t\t\t\t\t\tuserInput = getUserZipCode(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"3\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"4\":\r\n\t\t\t\t\t\tuserInput = getUserZipCode(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"4\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"5\":\r\n\t\t\t\t\t\tuserInput = getUserZipCode(input);\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"5\", userInput);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tcase \"6\":\r\n\t\t\t\t\t\tsystemOutput = processor.calculateData(\"6\", null);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Print the output\r\n\t\t\t\tif(systemOutput != null) {\r\n\t\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t\t\tSystem.out.println(\"BEGIN OUTPUT\");\r\n\t\t\t\t\tfor(String str : systemOutput) {\r\n\t\t\t\t\t\tSystem.out.println(str);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"END OUTPUT\");\r\n\t\t\t\t} \r\n\t\t\t}\r\n\t\t}\r\n\t\tinput.close();\r\n\t}", "public void run(){\n\t\tinputStreamReader = new InputStreamReader(System.in);\r\n\t\tin = new BufferedReader( inputStreamReader );\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\" + Application.APPLICATION_VENDOR + \" \" + Application.APPLICATION_NAME + \" \" + Application.VERSION_MAJOR + \".\" + Application.VERSION_MINOR + \".\" + Application.VERSION_REVISION + \" (http://ThreatFactor.com)\");\r\n\t\t//System.out.println(\"We are here to help, just go to http://ThreatFactor.com/\");\r\n\t\t\r\n\t\tif( application.getNetworkManager().sslEnabled() )\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 443 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 80 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Interactive console, type help for list of commands\");\r\n\t\t\r\n\t\tcontinueExecuting = true;\r\n\t\twhile( continueExecuting ){\r\n\r\n\t\t\tSystem.out.print(\"> \");\r\n\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tString text = in.readLine();\r\n\t\t\t\t\r\n\t\t\t\tif( continueExecuting && text != null ){\r\n\t\t\t\t\tcontinueExecuting = runCommand( text.trim() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(AsynchronousCloseException e){\r\n\t\t\t\t//Do nothing, this was likely thrown because the read-line command was interrupted during the shutdown operation\r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\t//Catch the exception and move on, the console listener must not be allowed to exit\r\n\t\t\t\tSystem.err.println(\"Operation Failed: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t\t//Stop listening. Otherwise, an exception loop may occur. \r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public synchronized final void\n\t\trun()\n\t{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = null;\n\n\t\ttry {\n\t\t\twhile (this.isRunning() && (null != (line = reader.readLine()))) {\n\t\t\t\ttry {\n\t\t\t\t\t_handler.handleCommand(line);\n\t\t\t\t} catch (RuntimeException ex) {\n\t\t\t\t\t_LOG.error(new Strings(new Object[]\n\t\t\t\t\t\t{this, \":\", StackTrace.formatStackTrace(ex)}));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException ex) {\n\t\t\t_LOG.error(new Strings(new Object[]\n\t\t\t\t{this, \":\", StackTrace.formatStackTrace(ex)}));\n\t\t}\n\n\t\tif (line == null) {\n\t\t\tif (this.isRunning()) {\n\t\t\t\t_handler.handleCommand(\"quit\");\n\t\t\t}\n\t\t}\n\n\t\t_LOG.warn(\"Console exiting.\");\n\t}", "@Override\r\n public void init_loop() {\r\n }", "@Override\r\n public void init_loop() {\r\n }", "public void run(){\t\t\n\t\tSystem.out.println(\"Welcome to Tic Tac Toe!\");\n\t\tdo{\n\t\t\tSystem.out.printf(\"\\n>\");\n\t\t\tchooseFunction();\n\t\t}while(true);\t\t\n\t}", "@Override\n public void loop()\n {\n }", "public static void main(String[] args) {\n\n // create an object to call the instance methods\n Nimsys engine = new Nimsys();\n\n // game welcome instruction\n System.out.println(\"Welcome to Nim\\n\");\n System.out.println(\"Please enter a command to continue\\n\");\n\n // command is for receiving the command from user\n String command;\n\n\n while (true) {\n\n // output the symbol for entering\n System.out.print(\"$ \");\n\n // every input is using next to avoid getting the content\n // in the keyboard buffer\n command = sc.nextLine();\n\n if (command.equalsIgnoreCase(\"start\")) {\n System.out.println();\n engine.start();\n } else if (command.equalsIgnoreCase(\"help\")) {\n engine.help();\n } else if (command.equalsIgnoreCase(\"exit\")) {\n System.out.println();\n engine.exit();\n break;\n } else if (command.equalsIgnoreCase(\"commands\")) {\n System.out.println();\n engine.command();\n }\n }\n System.out.println();\n }", "private void userInteraction() {\n\t\tSystem.out.println(\"Starting user Interaction\");\n\t\twhile (true) {\n\t\t\tint input = Integer.parseInt(getUserInput(\"1 - Read, 2 - Send Email, Any other number - Exit...\"));\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcheckMails(getUserInput(\"Type Folder Name to view details : \"));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tsendEmail();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "public void start() throws Throwable {\n\t\ts = new Scanner(System.in);\n\t\twp = new WordParser();\n\n\t\twhile (keepRunning) {\n\t\t\tSystem.out.println(ConsoleColour.WHITE_BOLD_BRIGHT);\n\t\t\tSystem.out.println(\"***************************************************\");\n\t\t\tSystem.out.println(\"* GMIT - Dept. Computer Science & Applied Physics *\");\n\t\t\tSystem.out.println(\"* *\");\n\t\t\tSystem.out.println(\"* Eamon's Text Simplifier V0.1 *\");\n\t\t\tSystem.out.println(\"* (AKA Confusing Language Generator) *\");\n\t\t\tSystem.out.println(\"* *\");\n\t\t\tSystem.out.println(\"***************************************************\");\n\n\t\t\tSystem.out.print(\"Enter Text>\");\n\t\t\tSystem.out.print(ConsoleColour.YELLOW_BOLD_BRIGHT);\n\n\t\t\tString input = s.nextLine();\n\t\t\tString[] words = input.split(\" \");\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(ConsoleColour.WHITE_BOLD_BRIGHT);\n\t\t\tSystem.out.print(\"Simplified Text>\");\n\t\t\tSystem.out.print(ConsoleColour.YELLOW_BOLD_BRIGHT);\n\t\t\tint count = 0;\n\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\twords[i] = wp.getGoogleWord(words[i]);\n\t\t\t\tSystem.out.print(words[i] + \" \");\n\t\t\t\tcount++;\n\t\t\t\tif (count == 10) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ConsoleColour.RESET);\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public ConsoleGame() {\n\t\tSystem.out.println(\"Welcome to Quoridor!\");\n\t\twhile (!setUp());\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t// Set up Scanner object\n\t\tScanner keyboard = new Scanner(System.in);\n\t\t\n\t\t// Print welcome message\n\t\tSystem.out.println(\"Welcome to JGRAM.\");\n\t\t\n\t\t// Loop until the user indicates they wish to exit\n\t\tboolean keepGoing = true;\n\t\twhile (keepGoing) {\n\t\t\n\t\t\t// Post1 Task and secret prompt\n\t\t\tSystem.out.println(\"\\n---------------------------------[ INPUT ]--\"\n\t\t\t\t\t+ \"-----------------------------------\\n\");\n\t\t\tString task = prompt(TASK_SELECTION, keyboard);\n\t\t\t\n\t\t\t// Post3 Task execution\n\t\t\tswitch (task) {\n\t\t\t\t\n\t\t\t\t// New Document\n\t\t\t\tcase \"1\":\n\t\t\t\t\tTask newDocTask = new NewDocumentTask(keyboard);\n\t\t\t\t\tnewDocTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Evaluation\n\t\t\t\tcase \"2\":\n\t\t\t\t\tString evalSecret = prompt(GET_SECRET, keyboard);\n\t\t\t\t\tSystem.out.println(SECRET_REMINDER);\n\t\t\t\t\tTask evalTask = new EvaluationTask(evalSecret, keyboard);\n\t\t\t\t\tevalTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Tamper\n\t\t\t\tcase \"3\":\n\t\t\t\t\tString tamperSecret = prompt(GET_SECRET, keyboard);\n\t\t\t\t\tSystem.out.println(SECRET_REMINDER);\n\t\t\t\t\tTask tamperTask = new TamperTask(tamperSecret, keyboard);\n\t\t\t\t\ttamperTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t// Report\n\t\t\t\tcase \"4\":\n\t\t\t\t\tTask assignmentReportTask = new AssignmentReportTask(keyboard);\n\t\t\t\t\tassignmentReportTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t// Help\n\t\t\t\tcase \"5\":\n\t\t\t\t\thelp();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Exit\n\t\t\t\tcase \"6\":\n\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Invalid selection\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid selection. Please try again.\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t} // End switch\n\t\t\t\t\t\n\t\t\t\n\t\t} // End while\n\t\t\n\t\tkeyboard.close();\n\t\tSystem.out.println(\"Goodbye...\");\n\t}", "public void intialRun() {\n }", "@Override public void loop () {\n }", "public void runProgram() {\n\n\t\tSystem.out.println(\"\\n Time to start the machine... \\n\");\n\n\t\tpress.pressOlive(myOlives);\n\n\t\tSystem.out.println(\"Total amount of oil \" + press.getTotalOil());\n\t}", "public void run() {\n\n ui.startDuke();\n storage.readFile(lists, ui);\n\n Scanner reader = new Scanner(System.in);\n\n while (true) {\n\n String inp = reader.nextLine();\n parse.checkInstruction(inp, storage, ui, lists, tasks);\n }\n }", "public static void main(String[] args) {\n boolean waitForInput = true;\n Scanner scanner = new Scanner(System.in);\n\n while(waitForInput) {\n System.out.println(\"Type in an integer: \");\n int value = scanner.nextInt();\n Counter counter = new Counter(value);\n counter.start();\n // do something with value\n };\n\n System.out.println(\"Hello, world;\");\n\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "@Override\n public void init_loop() {\n }", "public static void main(String[] args) {\n boolean stillPlaying = true;\r\n // the boolean above passes through the while function, which will start \r\n // the method newGame()\r\n while(stillPlaying==true){\r\n // the stillPlaying may no longer still be equal to the newGame, as the \r\n // newGame may return a boolean stating false. That will close the loop, \r\n // stop the game, and print the results.\r\n stillPlaying = newGame(attempts);\r\n }\r\n }", "private void runAuctionApp() {\r\n exitApp = false;\r\n String command;\r\n input = new Scanner(System.in);\r\n System.out.println(\"Welcome to C-Auction!\");\r\n\r\n loadCarListings();\r\n\r\n while (!exitApp) {\r\n\r\n displayMenu();\r\n command = input.next();\r\n\r\n processInput(command);\r\n\r\n }\r\n System.out.println(\"The application is closing\");\r\n }", "public void run() {\n while (this.isRunning()) {\n String userInput = this.ui.getUserInput();\n Command command = this.getCommand(userInput);\n Result result = executeCommand(command);\n if (command.isEndCommand()) {\n this.exit();\n } else {\n ui.displayResult(result);\n }\n }\n }", "public void run() {\n StringBuffer s = new StringBuffer();\n while (true) { //until they enter exit command\n SysLib.cout(\"Shell[\" + ++commandNumber + \"]% \");\n\n SysLib.cin(s); //read input\n\n while(s.toString().trim().equalsIgnoreCase(\"\")) { //if no input was\n // entered\n SysLib.cout(\"Shell[\" + commandNumber + \"]% \");//reprint command #\n SysLib.cin(s); //ask for input\n }\n\n if(s.toString().equalsIgnoreCase(\"exit\")) //exit case command\n break;\n\n String[] args = SysLib.stringToArgs(s.toString());\n processCommands(args); //spilts and runs the commands\n s.setLength(0);\n }\n SysLib.exit();\n }", "@Override\n public void init_loop() {}", "@Override\n public void loop() {\n\n }", "@Override\n public void loop() {\n\n }", "public void clientRunning() {\n\t\twhile (this.running) {\n\t\t\tString userInputString = textUI.getString(\"Please input (or type 'help'):\");\n\t\t\tthis.processUserInput(userInputString);\n\t\t}\n\t}", "public static void main(String[] args) {\n Model model = new Model();\n View view = new View(model);\n Controller controller = new Controller(model, view);\n\n /*main program (each loop):\n -player token gets set\n -game status gets shown visually and user input gets requested\n -game grid gets updated\n -if the game is determined: messages gets shown and a system exit gets called*/\n while (model.turnCounter < 10) {\n model.setToken();\n view.IO();\n controller.update();\n if (controller.checker()){\n System.out.println(\"player \" + model.playerToken + \" won!\");\n System.exit(1);\n }\n System.out.println(\"draw\");\n }\n }", "public void start () {\n int choice = NO_CHOICE;\n while (choice != EXIT) {\n displayMainMenu();\n choice = readIntWithPrompt(\"Enter choice: \");\n executeChoice(choice);\n }\n }", "public static void main(String[] args) {\n init();\n runIterator();\n Scanner scanner = new Scanner(System.in);\n runApplication(scanner);\n }", "public void run()\n {\n try\n {\n while (!done)\n {\n select();\n handleSelectedKeys();\n // TODO: check command buffer for commands\n }\n }\n catch (final Exception e)\n {\n e.printStackTrace();\n }\n }", "@Override\n public void run()\n {\n int input;\n while(handler.isRunning())\n {\n UIUtils.drawBox(' ', 1, 42, 20, 3);\n UIUtils.drawWindowAt(20, 2, 1, 42);\n \n //TODO: Possibly change to a strategy pattern to allow\n // for different kinds of input\n input = reader.readInt(\"ENTER\", -Integer.MAX_VALUE, Integer.MAX_VALUE, INPUT_POS);\n input--;\n this.handler.input(input);\n }\n }", "public void run() throws Exception\n {\n //Create an object \"observer of the keyboard\" and we start it.\n KeyboardObserver keyboardObserver = new KeyboardObserver();\n keyboardObserver.start();\n\n //We put out the initial value of the variable \"game over\" FALSE\n isGameOver = false;\n //create the first figure from the top in the middle: x - width half, y - 0.\n figure = FigureFactory.createRandomFigure(field.getWidth() / 2, 0);\n\n //until the game is over\n while (!isGameOver)\n {\n //\"Observer\" contains events keystrokes?\n if (keyboardObserver.hasKeyEvents())\n {\n //get the first event from the queue\n KeyEvent event = keyboardObserver.getEventFromTop();\n //If the same character 'q' - out of the game.\n if (event.getKeyChar() == 'q') return;\n //If the \"left arrow\" - move the figure to the left\n if (event.getKeyCode() == KeyEvent.VK_LEFT)\n figure.left();\n //If the \"right arrow\" - move the figure to the right\n else if (event.getKeyCode() == KeyEvent.VK_RIGHT)\n figure.right();\n //If the key code is 12 (\"number 5 on the additional keyboard.\") - Turn figure\n else if (event.getKeyCode() == 12)\n figure.rotate();\n //If the \"gap\" - figure drops down to max\n else if (event.getKeyCode() == KeyEvent.VK_SPACE)\n figure.downMaximum();\n }\n\n step(); //move next step\n field.print(); //print condition \"field\"\n Thread.sleep(300); //pause 300 ml\n }\n\n //write message \"Game Over\"\n System.out.println(\"Game Over\");\n }", "public static void main(String args[]) {\n//\t (new PleaseInput()).start();\n\t (new randomNum()).start();\n\t }", "private void runEventLoop() {\n /*\n This is not very good style, but I will catch any exception, to log and display the message!\n */\n\t\tfor (; ; ) {\n\t\t\ttry {\n\t\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\t\tdisplay.sleep();\n\t\t\t\t\t\tif (isClosing)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlogCritical(\"runEventLoop (Unforseen Exception)\", e);\n\t\t\t}\n\t\t\tif (isClosing)\n\t\t\t\tbreak;\n\t\t}\n\t\t/* Dispose display */\n\t\tdisplay.dispose();\n\t}", "public void run() {\n\t\tSystem.out.println(\"Let's start shopping!\");\n\t\tScanner in = new Scanner(System.in);\n\t\tString input = in.nextLine();\n\t\twhile (!input.equals(\"Q\")) {\n\t\t\tString[] separatedInput = input.split(\" \");\n\t\t\tdoOperation(separatedInput);\n\t\t\tinput = in.nextLine();\n\t\t}\n\n\t\tif (bag.getSize() != 0) {\n\t\t\tcheckoutNotEmptyBag();\n\t\t}\n\n\t\tSystem.out.println(\"Thanks for shopping with us!\");\n\t\tin.close();\n\t}", "public void mainLoop() {\r\n while (isRunning()) {\r\n update();\r\n }\r\n }", "private static void ownerLoop() \n {\n boolean exit = false;\n Scanner input = new Scanner(System.in);\n\n while (!exit) {\n displayOwner();\n\n String[] tokens = input.nextLine().toLowerCase().split(\"\\\\s\");\n char option = tokens[0].charAt(0);\n char dataOpt = 0;\n\n if (tokens.length == 2)\n dataOpt = tokens[1].charAt(0);\n\n switch(option) {\n case 'o': occupancyMenu();\n break;\n case 'd': revenueData();\n break;\n case 's': browseRes();\n break;\n case 'r': viewRooms();\n break;\n case 'b': exit = true;\n break;\n }\n }\n }", "public void run() {\n initialize();\n float currentTime = System.nanoTime();\n float previousTime = currentTime;\n float dt = 0.0f;\n while (!exit) {\n currentTime = System.nanoTime();\n dt = Math.max((currentTime - previousTime) / 1000000.0f, 20.0f);\n input(win.getInputHandler(), dt);\n update(dt);\n render(dt);\n waitFPS();\n previousTime = currentTime;\n postOperation();\n }\n dispose();\n }", "public void run() {\r\n\t\tSystem.out.println(\"\\nFind all sum combinations using 1 through 9\\n\");\r\n\t\tint value = 0;\r\n\t\tString answer = \"\";\r\n\t\tdo {\r\n\t\t\tvalue = Prompt.getInt(\"Input a number\", 1, (LARGEST_NUMBER * 2));\r\n\t\t\t\r\n\t\t\t// iterative version\r\n\t\t\tSystem.out.println(\"\\nPrinting iterative solution:\");\r\n\t\t\tprintCombinations(value);\r\n\t\t\t\r\n\t\t\t// recursive version\r\n\t\t\tSystem.out.println(\"\\nPrinting recursive solution:\");\r\n\t\t\tprintCombinationsRecurse(value);\r\n\t\t\t\r\n\t\t\tanswer = Prompt.getString(\"\\nInput another number? y or n\");\r\n\t\t} while (answer.toLowerCase().equals(\"y\"));\r\n\t\tSystem.out.println(\"\\nThanks for playing!\\n\");\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tinputLoop();\n\t}", "public static void main(String[] args) {\n Engine ry = new Engine();\n ry.interactWithKeyboard();\n // ry.interactWithKeyboard();\n\n }", "public void loop() {\n\t\tloop(1.0f, 1.0f);\n\t}", "private static void driver() {\n Scanner scnr = new Scanner(System.in);\n String promptCommandLine = \"\\nENTER COMMAND: \";\n\n System.out.print(MENU);\n System.out.print(promptCommandLine);\n String line = scnr.nextLine().trim();\n char c = line.charAt(0);\n\n while (Character.toUpperCase(c) != 'Q') {\n processUserCommandLine(line);\n System.out.println(promptCommandLine);\n line = scnr.nextLine().trim();\n c = line.charAt(0);\n }\n scnr.close();\n }", "protected void runGame() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tthis.getRndWord(filePosition);\n\t\twhile((! this.word.isFinished()) && (this.numOfWrongGuess <= this.allowance)) {\n\t\t\tthis.showInfo();\n\t\t\tthis.tryGuess(this.getGuessLetter(sc));\n\t\t}\n\t\tif (this.word.isFinished()) {\n\t\t\tthis.showStat();\n\t\t}else {\n\t\t\tthis.showFacts();\n\t\t}\n\t\tsc.close();\n\n\n\t}", "@Override\r\n public void run() {\r\n InputReader reader = new InputReader();\r\n String choice;\r\n do{\r\n System.out.println(\"Please stand still when probe is in you temple.\");\r\n choice = reader.getText(\"Start? Y for yes / N for no\");\r\n } while (!choice.equalsIgnoreCase(\"y\") && !choice.equalsIgnoreCase(\"n\"));\r\n TimeAux.systemSleep(5);\r\n if(choice.equalsIgnoreCase(\"y\")){\r\n runTests();\r\n System.out.println(getInfo());\r\n }\r\n }", "public void run(){\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tScanner keyboard = new Scanner(System.in);\n\t\t\t\t\tString line = keyboard.nextLine();\n\t\t\t\t\tString[] command = line.split(\" \");\n\t\t\t\t\tSystem.out.println(execute(line));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tSystem.err.println(\"Incorrect command \\\"help\\\" for info\");\n\t\t\t\tex.printStackTrace();\n\t\t\t\trun();\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\r\n public void loop() {\r\n //CodeHere\r\n }", "public static void initiate() {\n System.out.println(\n \" Welcome to crawler by sergamesnius \\n\" +\n \" 1. Start \\n\" +\n \" 2. Options \\n\" +\n \" 3. Print top pages by total hits \\n\" +\n \" 4. Exit \\n\" +\n \"------======------\"\n\n\n );\n try {\n int input = defaultScanner.nextInt();\n switch (input) {\n case 1:\n System.out.println(\"Input URL link\");\n Console.start(defaultScanner.next());\n break;\n case 2:\n Console.options();\n break;\n case 3:\n Console.printResultsFromCSV();\n break;\n case 4:\n return;\n }\n } catch (NoSuchElementException e) {\n System.err.println(\"Incorrect input\");\n defaultScanner.next();\n }\n Console.initiate();\n }", "public void run() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Local IP: \"+InetAddress.getByAddress(simpella.connectIP));\n\t\t} catch (UnknownHostException e1) {\n\t\t\tSystem.out.println(\"Cannot resolve localhost name...exiting\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tSystem.out.println(\"Simpella Net Port: \"+simpella.serverPortNo);\n\t\tSystem.out.println(\"Downloading Port: \"+simpella.downloadPortNo);\n\t\tSystem.out.println(\"simpella version 0.6 (c) 2002-2003 XYZ\");\n\t\tinp=new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true)\n\t\t{\n\t\t\t\t\t\t\n\t\t\ttry {\n\t\t\t\tuserInput = inp.readLine();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//e.printStackTrace();\n\t\t\t\tSystem.out.println(\"Invalid Input!!...Exiting\");\n\t\t\t\t//System.exit(1);\n\t\t\t}\n\t\t\tif(userInput.equalsIgnoreCase(\"quit\") || userInput.equalsIgnoreCase(\"bye\"))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Exiting....\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\telse if(userInput.startsWith(\"info\"))\n\t\t\t{\n\t\t\t\tString[] token=userInput.split(\" \");\n\t\t\t\tif(token.length==2)\n\t\t\t\t\tinfo(token[1]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Usage: info [cdhnqs]\");\n\t\t\t}\n\t\t\telse if(userInput.startsWith(\"share\"))\n\t\t\t{\n\t\t\t\tString[] token=userInput.split(\" \");\n\t\t\t\tString argument=\"\";\n\t\t\t\tfor(int i=1;i<token.length;i++)\n\t\t\t\t\targument=argument + token[i] +\" \";\n\t\t\t\t//System.out.println(argument+\"len=\"+argument.length());\n\t\t\t\tshare(argument);\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t\telse if(userInput.startsWith(\"open\")){\n\t\t\t\t// Insert validation for input string\n\t\t\t\tString[] token=userInput.split(\" \");\n\t\t\t\tif(client.noOfConn<3)\n\t\t\t\topen(token[1]);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"Client:SIMPELLA/0.6 503 Maximum number of connections reached. Sorry!\\r\\n\");\n\t\t\t}\n\t\t\t\n\t\t\telse if(userInput.equals(\"scan\")){\n\t\t\t\tscan();\n\t\t\t}\n\t\t\telse if(userInput.startsWith(\"download\")){\n\t\t\t\tString[] token=userInput.split(\" \");\n\t\t\t\ttry {\n\t\t\t\t\tdownload(Integer.parseInt(token[1]));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Usage: download <number>\");\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(userInput.equals(\"monitor\")){\n\t\t\t\ttry {\n\t\t\t\t\tmonitor();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(userInput.startsWith(\"clear\")){\n\t\t\t\tString[] token=userInput.split(\" \");\n\t\t\t\t//System.out.println(\"No of arguments=\"+token.length);\n\t\t\t\tif(token.length==1)\n\t\t\t\t\tclear(-1);\n\t\t\t\telse\n\t\t\t\t\tclear(Integer.parseInt(token[1]));\n\t\t\t}\n\t\t\telse if(userInput.equals(\"list\")){\n\t\t\t\ttry {\n\t\t\t\t\tint k=Connection.list_port.size();\n\t\t\t\t\tlist1(0, k);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(userInput.startsWith(\"find\")){\n\t\t\t\tString[] token=userInput.split(\" \");\n\t\t\t\tString argument=\"\";\n\t\t\t\tfor(int i=1;i<token.length;i++)\n\t\t\t\t\targument=argument + token[i] +\" \";\n\t\t\t\t//System.out.println(argument+\"len=\"+argument.length());\n\t\t\t\ttry {\n\t\t\t\t\tfind(argument);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(userInput.equals(\"update\")){\n\t\t\t\ttry {\n\t\t\t\t\tupdate();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Client:Error calling update\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Command\");\n\t\t}\n\t}", "public static void main(String[] args) {\n init();\n\n //take input from the players before starting the game\n input();\n\n //the gameplay begins from here\n System.out.println();\n System.out.println();\n System.out.println(\"***** Game starts *****\");\n play();\n }", "public static void main(String[] args){\n Executor game = new Executor();\n\n System.out.println();\n System.out.println();\n game.introduction();\n\n while (! game.gameOver){\n game.day();\n\n if (! game.gameOver){\n wait(2000);\n game.endOfDay();\n }\n\n }\n\n }", "@Override\n public void process() throws IOException {\n outputPrinter.welcome();\n final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n final String input = reader.readLine();\n final ExecutableCommand command = new ExecutableCommand(input);\n processCommand(command);\n if (command.getCommandName().equals(ExitCommand.COMMAND_NAME)) {\n break;\n }\n }\n }", "public void start() {\n io.println(\"Welcome to 2SAT-solver app!\\n\");\n String command = \"\";\n run = true;\n while (run) {\n while (true) {\n io.println(\"\\nType \\\"new\\\" to insert an CNF, \\\"help\\\" for help or \\\"exit\\\" to exit the application\");\n command = io.nextLine();\n if (command.equals(\"new\") || command.equals(\"help\") || command.equals(\"exit\")) {\n break;\n }\n io.println(\"Invalid command. Please try again.\");\n }\n switch (command) {\n case \"new\":\n insertNew();\n break;\n case \"help\":\n displayHelp();\n break;\n case \"exit\":\n io.println(\"Thank you for using this app.\");\n run = false;\n }\n\n }\n }", "public void run()\n\t {\n\t stdin = new Scanner(System.in);\n\t boolean done = false;\n\t while ( !done )\n\t {\n\t String command = stdin.next();\n\t char ccommand=command.charAt(0);\n\t switch (ccommand) \n\t { \n\t case 'I': add('I');\n\t\t\t break; \n\t case 'O': add('O');\n\t break;\n\t case 'N': add('N');\n\t break;\n\t case 'R': remove();\n\t break;\n\t case 'P': print();\n\t break;\n\t case 'Q': \n\t System.out.println(\"Program terminated\");\n\t done = true;\n\t break;\n\t default: //deal with bad command here \n\t System.out.println(\"Command\"+\"'\"+command+\"'\"+\"not supported!\");\t\t\n\t } \n\t }\n\t }", "public static void main(String[] args) \n\t{\n\t\tarray();\n\t\tfilms[0] = new BookingFilm(\"Suicide Squad\", 'M');\n\t\tfilms[1] = new BookingFilm(\"Batman vs Superman\", 'P');\n\t\tfilms[2] = new BookingFilm(\"Zootopia\", 'G');\n\t\tfilms[3] = new BookingFilm(\"Deadpool\", 'M');\n\t\t\n\t\t//greeting message\n\t\tSystem.out.println(\"Welcome to the Cinema Ticket Purchasing System\");\n\t\t\n\t\t//new scanner\n\t\tScanner input = new Scanner(System.in);\n\t\t//car to repeat or not\n\t\tchar repeat = 'Y';\n\t\t\n\t\t//do\n\t\tdo\n\t\t{\n\t\t\t//start this method\n\t\t\tBookingCustomer aClient = customerDetailsInput();\n\t\t\t//start this method\n\t\t\tBookingFilm aMovie = filmSelection();\n\t\t\t\n\t\t\t//print the ticket using the informations in these objects\n\t\t\tSystem.out.println(issueTicket(aClient, aMovie));\n\t\t\t\n\t\t\t//the user decides if wants or not a new order\n\t\t\trepeat = input.next().charAt(0);\n\t\t\t\n\t\t\t//while the command given is Y, it will start everything again from \"do\"\n\t\t} while (repeat == 'Y' || repeat == 'y');\n\t}", "public void run() {\n\t\twhile (true) {\n\t\t\tString ciphertext = in.nextLine();\n\t\t\tif (ciphertext.equals(\"quit\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString hint = in.nextLine();\n\t\t\tchar hint1 = hint.charAt(0);\n\t\t\tchar hint2 = hint.charAt(hint.length() - 1);\n\t\t\tquip = new Cryptoquip(ciphertext, hint1, hint2);\n\t\t\tcipherwords = quip.extractCipherwords();\n\t\t\tint[] mapping = solve();\n\t\t\tfor (int i = 0; i < ciphertext.length(); i++) {\n\t\t\t\tchar cipherchar = ciphertext.charAt(i);\n\t\t\t\tchar plainchar = cipherchar;\n\t\t\t\tif (Character.isLetter(cipherchar)) {\n\t\t\t\t\tplainchar = (char) (96 + mapping[cipherchar % 32]);\n\t\t\t\t}\n\t\t\t\tout.print(plainchar);\n\t\t\t}\n\n\t\t\tout.print('\\n');\n\t\t\tin.nextLine(); // skip over score and average\n\t\t}\n\t\tout.print(\"quit\\n\");\n\t\tout.close();\n\t\tin.close();\n\t}", "public static void main(String[] args) {\n\n printRule();\n\n while (true) {\n // Asks if the user wants to play or quit the game\n System.out.print(\"\\n\\n\\tTo Start enter S\"\n + \"\\n\\tTo Quit enter Q: \");\n String command = input.next();\n char gameStatus = command.charAt(0);\n\n // If s is entered, the game will begin\n switch (gameStatus) {\n case 's':\n case 'S':\n clearBoard(); // initialize the board to zero\n gameOn();\n break;\n case 'q':\n case 'Q':\n System.exit(0);\n default:\n System.out.print(\"Invalid command.\");\n break;\n }\n }\n }", "public void beginControl() {\n\t\tCommandInfo curCommand;\n\t\tCommandExecutor curCommandExecuter;\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\t//take command from the queue\n\t\t\t\tcurCommand = commandsQueue.take();\n\t\t\t} catch(Exception e) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t//execute the command\n\t\t\t\tcurCommandExecuter = this.nameCommandMap.get(curCommand.name);\n\t\t\t\tcurCommandExecuter.execute(curCommand.additionalInfo);\n\t\t\t} catch(NewGameException e) {\n\t\t\t\tSystem.out.println(\"Starting new Game!\");\n\t\t\t\tthis.startCountTime();\n\t\t\t} catch(EndGameException e) {\n\t\t\t\tbreak;\n\t\t\t} catch(Exception ignored) {\n\t\t\t}\n\t\t}\n\t\t//stop time counter thread and stop controller's action .\n\t\tthis.stopCountTime();\n\t\tSystem.exit(0);\n\t}", "public static void runGame() {\n //Create instance of Datacontroller for sample data\n DataController dataController = DataController.getInstance();\n Encounter encounter;\n Scanner scan = new Scanner( System.in);\n\n int commandNum; //Variable that determines state of game\n\n while(true) {\n //TODO: Enter list of options for movement at every iteration\n System.out.println(\"Please enter your command\");\n System.out.println(\"1. Exit Game\\n2. Enter Combat\\n3. Items\");\n commandNum = scan.nextInt();\n\n switch (commandNum) {\n case 1: //Exit Game\n return;\n case 2: // Join Controller.Encounter\n encounter = new Encounter(dataController.getPlayer(),dataController.getEnemy());\n try {\n encounter.startFight();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n break;\n case 3: // View Menu TODO: create menu class\n\n }\n }\n }", "public static void main(String[] args) throws Exception{\n locations = World.getInstance();\n player = Player.getInstance();\n\n startMessage();\n\n try(BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))){\n playerName = reader.readLine();\n printConstantMessage(Constants.HELLO_MSG, playerName);\n System.out.println();\n\n player.moveTo(locations.stream().findFirst().get());\n\n while(runGame){\n System.out.print(Constants.PRE_INPUT_TEXT);\n parseInput(reader.readLine());\n }\n }\n }", "public void start() {\n String command = \"\";\n boolean exitCommandIsNotGiven = true;\n System.out.println(\"\\nSorting Algorithms Demonstration\\n\");\n\n while (exitCommandIsNotGiven) {\n command = initialMenu(command);\n exitCommandIsNotGiven = handleStartMenuCommands(command);\n }\n }", "public static void main(String[] args) {\n while (true){\n menu();\n }\n }", "public static void main(String[] args) {\n // TODO code application logic here\n GameController.start();\n boolean active=true;\n Scanner input = new Scanner(System.in);\n while(active){\n GameController.printBoard();\n System.out.print(GameController.getTurn()+\"'s move: \");\n String move = input.nextLine();\n GameController.playerMove(move);\n }\n }", "private static void mainMenuLogic() {\n\n\t\twhile(true) {\n\n\t\t\tmenuHandler.clrscr();\n\t\t\tint maxChoice = menuHandler.mainMenu();\n\n\t\t\tint userChoice = menuHandler.intRangeInput(\"Please input a number in range [1, \" + maxChoice + \"]\", 1, maxChoice);\n\n\t\t\tswitch(userChoice) {\n\t\t\tcase 1:\n\t\t\t\t// User menu\n\t\t\t\tuserMenuLogic();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t// Printer menu\n\t\t\t\tprinterMenuLogic();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t// Network menu\n\t\t\t\tnetworkMenuLogic();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void run() throws IOException {\n\t\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdisplayMenu();\n\t\tchar input = '0';\n\t\twhile (input != 'x') {\n\t\t\tSystem.out.println(\"______________________________\");\n\t\t\tSystem.out.print(\"\\nOption:\");\n\t\t\tinput = scan.next().charAt(0);\n\t\t\tselectOption(input);\n\t\t}\n\t}", "private static void guestLoop() {\n boolean exit = false;\n Scanner input = new Scanner(System.in);\n\n while (!exit) {\n displayGuest();\n\n char option = input.next().toLowerCase().charAt(0);\n\n switch(option) {\n case 'r': clearScreen();\n roomsAndRates();\n break;\n case 's': clearScreen();\n viewStays();\n break;\n case 'b': exit = true;\n break;\n }\n }\n }", "private void run(){\n while(this.getGo()){\n try{\n String input = this.in.next();\n String args = this.in.nextLine().trim();\n String[] fields = args.trim().split( \" \" );\n\n switch(input){\n case MOLE_UP:\n int spot = Integer.parseInt(fields[0]);\n this.wamBoard.MoleUp(spot);\n break;\n case MOLE_DOWN:\n int spot2 = Integer.parseInt(fields[0]);\n this.wamBoard.MoleDown(spot2);\n break;\n case WHACK:\n case GAME_LOST:\n this.wamBoard.gameLost();\n this.stop();\n break;\n case GAME_TIED:\n this.wamBoard.gameTied();\n this.stop();\n break;\n case GAME_WON:\n this.wamBoard.gameWon();\n this.stop();\n break;\n case SCORE:\n this.wamBoard.changeScore(Integer.parseInt(fields[0]));\n break;\n case ERROR:\n System.out.print(\"Error!\");\n this.wamBoard.error();\n break;\n default:\n System.err.println(\"Unknown Command: \" + input);\n this.stop();\n break;\n }\n }\n\n catch( NoSuchElementException e){\n System.out.print(\"Lost connection: \" + e);\n this.stop();\n }\n catch( Exception f){\n System.out.print(f.getMessage());\n this.stop();\n }\n }\n }" ]
[ "0.71737725", "0.7074282", "0.6833713", "0.6754386", "0.6583977", "0.6566258", "0.6552709", "0.6538948", "0.6537341", "0.6510917", "0.6484569", "0.6470982", "0.643923", "0.64301884", "0.642447", "0.6403859", "0.6401658", "0.6366428", "0.63294226", "0.6316475", "0.6314073", "0.6314056", "0.6314056", "0.63122696", "0.63106453", "0.62946725", "0.6275325", "0.626794", "0.6258913", "0.6237454", "0.623706", "0.62298536", "0.6216461", "0.62079227", "0.620708", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6203348", "0.6202112", "0.62001866", "0.618471", "0.61731064", "0.6158295", "0.61557156", "0.61557156", "0.61509347", "0.61197233", "0.6117728", "0.61124605", "0.6111406", "0.61023843", "0.6100287", "0.60971653", "0.6077317", "0.6071112", "0.6062045", "0.6053113", "0.6041481", "0.6039017", "0.6038149", "0.60348105", "0.60316", "0.60298777", "0.60292256", "0.6012882", "0.6009383", "0.60043126", "0.5998451", "0.59913254", "0.5985724", "0.5979422", "0.59785694", "0.5971254", "0.59679675", "0.596725", "0.59628654", "0.59603673", "0.59562975", "0.5956034", "0.5951281", "0.59478545", "0.5941634", "0.5932713", "0.59147763", "0.5912417", "0.59107935", "0.5906063" ]
0.66107774
4
Asks user to input (string) code and tests whether code is 3 letters long. This is an instance method. Invoked by addCurrency() in CurrencyExchangeProgram. This method takes no parameters.
private String signalThreeLetters(){ System.out.print("Enter a three letter currency code (e.g., AUD, JPY, USD, EUR): "); String userInputCode = keyboardInput.getLine(); if (userInputCode.length() != 3) { System.out.println("\"" + userInputCode + "\" is not a THREE letter code. Returning to menu."); System.out.println(); return null;} System.out.println(); return userInputCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkDigit(String code, int length) {\n int len = length - 1;\n int[] digits = new int[len];\n int digitSum = 0;\n int lastDigit;\n\n if (length == 13) {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n\n if (i % 2 == 0) {\n digits[i] = digit;\n } else {\n digits[i] = digit * 3;\n }\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (10 - (digitSum % 10) == lastDigit) {\n return true;\n } else if ((digitSum % 10) == 0 && lastDigit == 0) {\n return true;\n } else {\n return false;\n }\n\n } else if (length == 10) {\n if (String.valueOf(code.charAt(len)).equals(\"X\") ||\n String.valueOf(code.charAt(len)).equals(\"x\")) {\n lastDigit = 10;\n } else {\n lastDigit = Integer.parseInt(String.valueOf(code.charAt(len)));\n }\n\n int weight = 11;\n for (int i = 0; i < len; i++) {\n int digit = Integer.parseInt(String.valueOf(code.charAt(i)));\n weight--;\n digits[i] = digit * weight;\n }\n\n for (int i = 0; i < digits.length; i++) {\n digitSum = digitSum + digits[i];\n }\n\n if (11 - (digitSum % 11) == lastDigit) {\n return true;\n } else {\n return false;\n }\n\n } else {\n return false;\n }\n }", "static String getCourseCode() {\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter course code: \");\n\t\tString cc = s.nextLine();\n\t\treturn cc;\n\t}", "private String newCode(int length) {\n Random rnd = new SecureRandom();\n StringBuilder code = new StringBuilder(length);\n do {\n code.setLength(0);\n while (code.length() < length) {\n if (rnd.nextBoolean()) { // append a new letter or digit?\n char letter = (char) ('a' + rnd.nextInt(26));\n code.append(rnd.nextBoolean() ? Character.toUpperCase(letter) : letter);\n } else {\n code.append(rnd.nextInt(10));\n }\n }\n } while (exists(code.toString()));\n return code.toString();\n }", "private boolean checkForWrongInput(){\n if(this.studentCode.getText().isEmpty())\n return true;\n //Check for length\n if(this.studentCode.getText().length() != 3)\n return true;\n //Check for invalid characters\n for(char c: this.studentCode.getText().toCharArray())\n if(!Character.isDigit(c))\n return true;\n\n return false;\n }", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "private boolean isIsbn13(String code) {\n return checkDigit(code, 13);\n }", "@ParameterizedTest\n @ValueSource(strings = {\"EU\", \"EURO\"})\n public void currencyLength(final String code)\n {\n assertThrows(IllegalArgumentException.class, () ->\n {\n /* final Currency cleanCurrency = */ Currency.of(code);\n }, CurrencyTests.ILLEGAL_ARGUMENT\n );\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the key:\");\n\t\tString input = sc.nextLine();\n\t\t// condition to check whether the input length is 32 or not\n\t\tif (input.length() == 32) {\n\t\t\taescipher.aesRoundKeys(input);\n\t\t\t// closes the scanner\n\t\t\tsc.close();\n\t\t} else {\n\t\t\tSystem.out.println(\"Input length is not 32\");\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tString cardNum;\n\t\tint a, b, c, d, e;\n\t\tint total = 0;\n\t\tint choice = -1;\n\n\t\tSystem.out.println(\"Welcom 老九商城!\");\n\t\tSystem.out.print(\"请输入您的5位会员编号:\");\n\t\tcardNum = input.nextLine();\n\t\tif (cardNum.length() == 5) {\n\t\t\ta = Integer.parseInt(String.valueOf(cardNum.charAt(0)));\n\t\t\tb = Integer.parseInt(String.valueOf(cardNum.charAt(1)));\n\t\t\tc = Integer.parseInt(String.valueOf(cardNum.charAt(2)));\n\t\t\td = Integer.parseInt(String.valueOf(cardNum.charAt(3)));\n\t\t\te = Integer.parseInt(String.valueOf(cardNum.charAt(4)));\n\t\t\ttotal = a + b + c + d + e;\n\t\t} else {\n\t\t\tSystem.out.println(\"输入错误,必须是5位会员编号!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tif (total > 15) {\n\t\t\tSystem.out.println(\"谢谢小伙伴长久以来的支持!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"恭喜您,称为本次幸运用户,将获得下列奖品之一:\");\n\t\t\tSystem.out.println(\"1:老九定制U盘;2:老九定制笔记本;3:老九纪念勋章\");\n\t\t\tSystem.out.print(\"请输入选择奖品编号:\");\n\t\t\tchoice = input.nextInt();\n\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println(\"恭喜您,获得了 老九定制U盘 一件!\");\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"恭喜您,获得了 老九定制笔记本 一件!\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"恭喜您,获得了 老九纪念勋章 一件!\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"输入错误!很遗憾,您无法获得本次奖品!谢谢您的大力支持!\");\n\t\t\t}\n\t\t}\n\n\t\tinput.close();\n\n\t}", "public void test() {\n test(\"abcabcbb\", 3);\n }", "public void codeJ(int number) {\n\tString d;\n\t\n\t//Scanner scan = new Scanner(System.in);\n\tdo {\n\tdo{\n\t\t\n\t\tif (App.SCANNER.hasNextInt()) {\n\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres\");\n\t\t\tApp.SCANNER.next();\n\t\t}\n\t\t\n\t\n\t}while(!App.SCANNER.hasNextInt()) ;\n\tthis.codeHumain=App.SCANNER.nextInt();\n\td = Integer.toString(codeHumain);\n\t\n\tif(d.length() != number) {\n\t\tSystem.out.println(\" Entrez Uniquement un code a \" + number + \"chiffres svp\" );\n\t}else if(d.length() == number) {\n\t}\n\t\n\t\n\t\n\t}while(d.length() != number) ;\n\t\n\t//scan.close();\n\t}", "public String getCoutryName(String code) {\n\t\tString countryName = code;\n\t\tif (code.length() == 3) {\n\t\t\tcountryName = jsonCountryAlpha3.getString(code);\n\t\t} else if (code.length() == 2) {\n\t\t\tcountryName = jsonCountryAlpha2.getString(code);\n\t\t}\n\t\tif (countryName == null) {\n\t\t\treturn code;\n\t\t}\n\t\treturn countryName;\n\t}", "static String GetCheckDigitAndCheckCode(String input) {\n int sum = 0;\n for(int i = 0; i < input.length(); i++) {\n if(i%2 == 0 || i == 0) {\n\n sum += 3 * Character.getNumericValue(input.charAt(i));\n }else {\n sum += Character.getNumericValue(input.charAt(i));\n }\n }\n int subDigit = ((sum/10) + 1 ) * 10;\n int checkDigit = subDigit - sum;\n\n input = input + checkDigit;\n\n\n int digit1 = get9Digits(input.substring(0, 8));\n int digit2 = get9Digits(input.substring(9));\n\n // NOTE - Not able to understand what means by index of 2\n // digit numbers so here am just adding instead of multiplying the 2 9 digits.\n int result = digit1 + digit2 + 207;\n int remainder = result % 103;\n\n StringBuilder sb = new StringBuilder();\n sb.append(checkDigit);\n sb.append(',');\n sb.append(remainder);\n return sb.toString();\n }", "public static boolean validaPlaca(String placa){\n\t\t if(placa.length() != 7){\n\t\t return false;\n\t\t }\n\t\t if(!placa.substring(0, 3).matches(\"[A-Z]*\")){\n\t\t return false;\n\t\t }\n\t\t return placa.substring(3).matches(\"[0-9]*\");\n\t}", "private boolean isIsbn10(String code) {\n return checkDigit(code, 10);\n }", "public static boolean validateInputLength(String[] args) {\n return args.length == 3;\n }", "public static void main (String[] args) {\n\t\t\n\t\tScanner a=new Scanner(System.in);\n\t String str=a.nextLine();\n\t System.out.println(\"the first 3 letters of \"+str+ \" is \"+ str.substring(0,3));\n\t\t\n\t\t\n\t}", "@Override\n\tpublic boolean checkCourse(String code) {\n\t\treturn false;\n\t}", "public static String crypter (String chaineACrypter, int codeCryptage) {\r\n char car;\r\n char newCar;\r\n int charLength = chaineACrypter.length();\r\n\r\n for(int i = 0; i < charLength; i++){\r\n car = chaineACrypter.charAt(i);\r\n if(car >= 'a' && car <= 'z'){\r\n newCar = (char)(car + codeCryptage);\r\n if (i == 0) {\r\n chaineACrypter = newCar + chaineACrypter.substring(i+1);\r\n }else{\r\n chaineACrypter = chaineACrypter.substring(0, i) + newCar + chaineACrypter.substring(i+1);\r\n }\r\n }else if(car >= 'A' && car <= 'Z'){\r\n newCar = (char)(car - codeCryptage);\r\n if (i == 0) {\r\n chaineACrypter = newCar + chaineACrypter.substring(i+1);\r\n }else{\r\n chaineACrypter = chaineACrypter.substring(0, i) + newCar + chaineACrypter.substring(i+1);\r\n }\r\n }else if(car >= '0' && car <= '9'){\r\n newCar = (char)(car + 7 % codeCryptage);\r\n if (i == 0) {\r\n chaineACrypter = newCar + chaineACrypter.substring(i+1);\r\n }else{\r\n chaineACrypter = chaineACrypter.substring(0, i) + newCar + chaineACrypter.substring(i+1);\r\n }\r\n }\r\n }\r\n\r\n\r\n return chaineACrypter;\r\n }", "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter a SSN: \");\n String ssn = input.next(); \n \n //checks to see if ssn is a valid social security number\n if(ssn.length() == 11 && ValidSSC.areNumbers(ssn)) {\n System.out.println(ssn + \" is a valid social security number\");\n } else {\n System.out.println(ssn + \" is not a valid social security number\");\n }\n }", "@Test\n public void checkUniqueCharacter() {\n int numberOfChars = compressor.getCodes().size();\n assertTrue(numberOfChars == 86 || numberOfChars == 87, \"You appear to have some very strange end-of-line configuration on your machine!\");\n }", "public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n char c=s.next().charAt(0);\n int k=s.nextInt();\n if(c=='c')\n {\n //char m='z';\n System.out.print(\"z \");\n return;\n }\n else if (c>='a' && c<='z')\n {\n int o=c+'a';\n o=(o-k)%26;\n c=(char)(o+'a');\n }\n else if(c>='A' && c<='Z')\n {\n int o=c+'A';\n o=(o-k)%26;\n c=(char)(o+'A');\n }\n System.out.print(c);\n }", "public boolean phoneLengthThree(String chkstr){\r\n\t\tchkstr = chkstr.trim().replaceAll(\" \", \"\");\r\n\t\tif(chkstr.length() != 3){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tjava.util.Scanner stdin = new java.util.Scanner(System.in);\n\t\tSystem.out.println(\"Enter the credit card number: \");\n\t\tString creditCard = stdin.next();\n\n\t\t// First check that the card has a known prefix and a valid length for that prefix\n\t\tboolean validLength = true;\n\t\tString cardType = null;\n\t\tif (creditCard.startsWith(\"34\") || creditCard.startsWith(\"37\")) {\n\t\t\t// American Express\n\t\t\tvalidLength = (creditCard.length() == 15);\n\t\t\tcardType = \"American Express\";\n\t\t} else if (creditCard.startsWith(\"4\")) {\n\t\t\t// Visa\n\t\t\tvalidLength = (creditCard.length() == 13 || creditCard.length() == 16 || creditCard.length() == 19);\n\t\t\tcardType = \"Visa\";\n\t\t} else if (creditCard.startsWith(\"5\")) {\n\t\t\t// MasterCard \n\t\t\tint prefix = Integer.valueOf(creditCard.substring(0, 2));\n\t\t\tif (prefix >= 51 && prefix <= 55) {\n\t\t\t\tvalidLength = (creditCard.length() == 16);\n\t\t\t\tcardType = \"MasterCard\";\n\t\t\t}\n\t\t}\n\n\t\t// If card type is unknown, exit with no further checks\n\t\tif (cardType == null) {\n\t\t\tSystem.out.println(\"Unknown card type\");\n\t\t\tSystem.exit(0);\n\t\t} \n\t\t\n\t\t// Known card type -- print it out and check length\n\t\tSystem.out.println(\"Card type: \" + cardType);\n\t\tif (!validLength) {\n\t\t\tSystem.out.println(\"Invalid length\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\n\t\t\n\t\tstdin.close();\n\t}", "public static String caesar3encrypt(String x) {\n char y[]=x.toCharArray();\n for (int i = 0; i < x.length(); i++) {\n int asciivalue = (int) y[i];\n if ((asciivalue >= 65 && asciivalue <= 87) || (asciivalue >= 97 && asciivalue <= 119)) {\n y[i] = (char) (asciivalue + 3);\n } else if ((asciivalue > 87 && asciivalue <= 90) || (asciivalue > 119 && asciivalue <= 122)) {\n y[i] = (char) (asciivalue - 23);\n }\n }\n return (new String(y));\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint a[] = new int[26];\r\n\t\t\r\n\t\tint i=0;\r\n\t\t\r\n\t\twhile(i<26){\r\n\t\t\ta[i]=sc.nextInt();\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\tString word = sc.next();\r\n\t\t\r\n\t\tint maxLen=0;\r\n\t\tint hA=0;\r\n\t\t\r\n\t\tfor(int j=0; j<word.length(); j++){\r\n\t\t\thA=word.charAt(j)-97;\r\n\t\t\tif(maxLen<a[hA]){\r\n\t\t\t\tmaxLen = a[hA];\r\n\t\t\t}\r\n\t\t}\r\n\t\tint result = word.length()*maxLen;\r\n\t\tSystem.out.println(result);\r\n\t}", "public void setInput3(final String input3) {\n this.input3 = input3;\n }", "public static String CrackThisFixedlen(String input, int pwlength)\n {\n \n System.out.println(\"Started at \" + ShowDate());\n\n String chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,./;'<>?:@[]\\\\{}|!\\\"`¬~#£$%^&*()_+-=\";\n \n // init array\n int[] ticker = new int[pwlength]; // arrays of int are automatically filled with zeroes\n int i = pwlength-1;\n \n while(i >= 0){\n // set up my attempt\n String attempt = \"\";\n for(int a=0; a<pwlength;a++) attempt += chars.charAt(ticker[a]);\n \n // attempt is in 'attempt' - now see if it matches\n \n if(DigestUtils.sha1Hex(attempt).equals(input)){\n System.out.println(\"Finished with positive result at \" + ShowDate());\n return attempt;\n }\n \n //increment the characters in the attempt\n \n if(ticker[i] == chars.length()-1){\n // reset and move left\n ticker[i] = 0;\n i--;\n } else{\n // increment and ensure i is looking at the end of the string\n ticker[i]++;\n i = pwlength-1;\n }\n }\n System.out.println(\"Finished with null result at \" + ShowDate());\n return null;\n }", "public ErrorMessage verifyCode(String code, Integer year, Long exception);", "private static String getUserInput(Scanner scanner) {\n\t\tString stringGuess = \"\";\n\t\t//16\n while (true) {\n\t\t System.out.println(\"Enter a three-digit number guess:\");\n\t\t stringGuess = scanner.nextLine(); \n\t\t if (stringGuess.length() == 3){\n\t\t break;\n\t\t }\n\t\t}\n\t\treturn stringGuess;\n\t}", "private static boolean valid_input(String user_input) {\n \n boolean output = false;\n \n if(user_input.length() == 2){\n \n output = (user_input.substring(0,1).matches(\"[0-9]\") && user_input.substring(1,2).matches(\"[a-zA-Z]\"));\n } else if (user_input.length() == 3) {\n \n output = (user_input.substring(0,2).matches(\"[1-2][0-9]\") && user_input.substring(2,3).matches(\"[a-zA-Z]\"));\n \n if(Integer.parseInt(user_input.substring(0,2))>TicTacToe.game.gridSize){\n output = false;\n }\n }\n \n return output;\n }", "private static String getReservCodeOrQ() \n {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter reservation code for more details \"\n\t + \"(or (q)uit to exit): \");\n String rvCode = input.next();\n return rvCode;\n }", "public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\t\tchar alphabet;\n\t\tSystem.out.print(\"Input Character:\");\n\t\talphabet = input.next().charAt(0);//문자 입력받기\n\t\t\n\t\t\n\t\tif(alphabet >= 'A' && alphabet<='Z') {\n\t\t\tSystem.out.println(\"result: \" + (char)(alphabet+32));\t\t\t\n\t\t}//대문자일 경우 32를 더해 소문자로 변경한다.\n\t\t\n\t\telse if(alphabet>='a' && alphabet<='z') {\n\t\t\tSystem.out.println(\"result: \" + (char)(alphabet-32));\n\t\t}//소문자일 경우에는 32를 빼 대문자로 변경해준다. \n\t\t\n\t\telse {\n\t\t\tSystem.out.println(\"입력오류!\");\n\t\t}\n\t}", "private static boolean validateZipCode(String zipCode) {\n try {\n if (zipCode.length() >= 5) {\n return Integer.parseInt(zipCode) > 0;\n }\n } catch (Exception ignored) {\n }\n\n return false;\n }", "public void zipCodeFieldTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", 10)) {\r\n\t\t\t\r\n\t\t\t//Verifies the zip code field populates with the user's zip code\r\n\t\t\tString zipInputBoxTextContent = \r\n\t\t\t\t\tStep.Extract.getContentUsingJS(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Field\");\r\n\t\t\tif(zipInputBoxTextContent.isEmpty()) {\r\n\t\t\t\tStep.Failed(\"Zip Code Field is empty\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Passed(\"Zip Code Field populated with user's location\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Verifies special characters aren't accepted\r\n\t\t\tStep.Wait.forSeconds(1);\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"!@#$%\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Veriies invalid zip codes aren't accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip code Input field\", \"00000\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote button\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Verifies that only 5 digits are accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"1234567\");\r\n\t\t\tzipInputBoxTextContent = Step.Extract.getContentUsingJS(QuoteForm_ComponentObject.zipCodeFieldLocator,\r\n\t\t\t\t\t\"Zip code text box\");\r\n\t\t\tif(zipInputBoxTextContent.length() > 5) {\r\n\t\t\t\tStep.Failed(\"Zip Code Input Field contains more than 5 digits\");\r\n\t\t\t} else {\r\n\t\t\t\tStep.Passed(\"Zip Code Input Field does not accept more than 5 digits\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Verifies user cannot submit a blank zip code\r\n\t\t\tStep.Action.clear(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeInValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Input Field shows invalid input\", 10);\r\n\t\t\t\r\n\t\t\t//Verifies that a valid input is accepted\r\n\t\t\tStep.Action.typeText(QuoteForm_ComponentObject.zipCodeFieldLocator, \"Zip Code Input Field\", \"48146\");\r\n\t\t\tStep.Action.click(QuoteForm_ComponentObject.seeYourQuoteButtonLocator, \"See Your Quote Button\");\r\n\t\t\tStep.Wait.forElementVisible(QuoteForm_ComponentObject.zipCodeValidInputLocator,\r\n\t\t\t\t\t\"Zip Code Field displays as valid input\", 10);\r\n\t\t}\r\n\t}", "private static String getRoomCodeOrQ() {\n Scanner input = new Scanner(System.in);\n System.out.print(\"Enter room code for more details \"\n\t + \"(or (q)uit to exit): \");\n String roomCode = input.next();\n return roomCode;\n }", "private static String getUserTextTyped () {\n\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tBoolean loop = true;\n\t\tString text = \"\";\n\t\tdo {\n\t\t\ttry {\n\t\t\t\ttext = myReader.readLine();\n\n\t\t\t\tif ((text.length() < 3)) {\n\t\t\t\t\tshowMessage(\"Please type a minimum of 3 characters: \\n\");\n\t\t\t\t} else {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid.\");\n\t\t\t}\n\t\t} while (loop);\n\n\n\t\treturn text;\n\n\t}", "public static void main(String[] args) {\n\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter number n: \");\n\t\tint num = input.nextInt();\n\t\tchar maxChar = (char)((int)'A' + num - 1);\n\t\t\n\t\tchar[][] list1 = new char[num][num];\n\t\t\n\t\tint i, j;\n\t\tint wrongInput = 0;\n\t\tfor (i = 0;i < list1.length;i++) {\n\t\t\tfor (j = 0;j < list1[i].length;j++) {\n\t\t\t\tlist1[i][j] = input.next().charAt(0);\n\t\t\t\t\n\t\t\t\tif (list1[i][j] > maxChar)\n\t\t\t\t\twrongInput = 1;\n\t\t\t}\n\t\t\t\n\t\t\tif (wrongInput == 1) {\n\t\t\t\tSystem.out.print(\"Wrong input: the letters must be from A to \" + maxChar);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\twrongInput = 0;\n\t\t}\n\t\t\n\t\t//calculate result\n\t\tif (isLatinsquare(list1)) {\n\t\t\tSystem.out.print(\"The input array is a Latin square\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.print(\"The input array is not a Latin square\");\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Type your name: \");\n String name = scanner.nextLine();\n int i = 0;\n while((i<3)&& name.length()>3){\n\n System.out.println((i+1)+\". \"+\"character: \" + name.charAt(i));\n i++;\n }\n\n }", "static int size_of_cnz(String passed){\n\t\treturn 3;\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tString password;\r\n\t\tint num;\r\n\r\n\t\tpassword = scan.next();\r\n\t\tscan.close();\r\n\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tnum = password.charAt(i) + 2;\r\n\r\n\t\t\tif (num > 122) {\r\n\t\t\t\tnum -= 122;\r\n\t\t\t\tnum += 96;\r\n\t\t\t}\r\n\t\t\tSystem.out.printf(\"%c\", num);\r\n\t\t}\r\n\r\n\t}", "void mo303a(C0237a c0237a, String str, String str2, String str3);", "public static boolean isThirdArgumentValid(String input) {\n\t\tif (CommonUtils.isNotNullOrEmpty(input)\n\t\t\t\t&& (input.contains(Constants.TO_CONSTANT) || input.contains(Constants.IN_CONSTANT)))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n /*\n Write a program that asks the user to enter the name of his or her favorite city. \n Use a String variable to store the input. The program should display the following:\n The number of characters in the city name\n The name of the city in all uppercase letters\n The name of the city in all lowercase letters\n The first character in the name of the city\n */\n\n String city;\n\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"What is your favorite city?\");\n city = scanner.nextLine();\n\n String upper = city.toUpperCase();\n String lower = city.toLowerCase();\n char letter = city.charAt(2);\n int stringSize = city.length();\n System.out.println(city + \" has \" + stringSize + \" letters.\");\n System.out.println(city.toUpperCase());\n System.out.println(city.toLowerCase());\n System.out.println(city.charAt(0));\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the Software Key\");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tString softwareKey = input.nextLine();\r\n\t\tSystem.out.println(\"Enter the length of key\");\r\n\t\tint lengthOfKey = input.nextInt();\r\n\t\tString refinedSoftwareKey = refiningSoftwareKey(softwareKey,lengthOfKey);\r\n\t\tSystem.out.println(\"Software Key=: \" + refinedSoftwareKey);\r\n\t\tinput.close();\r\n\t}", "@Test\n public void testCheckInputValidation() {\n GreekNumberValidation instance = new GreekNumberValidation();\n assertEquals(false, instance.checkInputValidation(\"69 88 89 89 35\"));\n assertEquals(false, instance.checkInputValidation(\"69 885 896 897 35\"));\n assertEquals(false, instance.checkInputValidation(\"6 885 896 8 35\"));\n assertEquals(true, instance.checkInputValidation(\"6985898731\"));\n assertEquals(true, instance.checkInputValidation(\"asd 34 5\"));\n assertEquals(true, instance.checkInputValidation(\"asd gfd g\"));\n assertEquals(true, instance.checkInputValidation(\"asdgfdg\"));\n\n }", "private void insureMinimumLettersInTypeCode(StringBuffer buffer, String type) {\r\n buffer.append(type.charAt(1));\r\n int ndx = 2;\r\n char ch = type.charAt(ndx);\r\n while (isVowel(ch)) {\r\n buffer.append(ch);\r\n ndx++;\r\n ch = type.charAt(ndx);\r\n }\r\n buffer.append(ch);\r\n }", "@Override\n\tpublic boolean validataRepeat(String code) throws Exception {\n\t\treturn false;\n\t}", "static int size_of_cz(String passed){\n\t\treturn 3;\n\t}", "public void input(String key) {\n\n // Just one guess per change\n if(mHasInput) {\n return;\n }\n\n mHasInput = true;\n if(key.length() == 1) {\n\n key = key.toUpperCase();\n char in = key.charAt(0);\n\n if(in > 64 && in < 92) {\n mInput = in;\n\n // Check input against generated char\n if(mInput != mCurrent) {\n // Failed\n fail();\n }\n\n } else {\n fail();\n throw new IllegalArgumentException();\n }\n\n } else {\n fail();\n throw new IllegalArgumentException();\n }\n }", "static int size_of_cnc(String passed){\n\t\treturn 3;\n\t}", "public static String Caesarify(String Normal, int InputNo) {\n Scanner input = new Scanner(System.in);\r\n int TotalChar = Normal.length(); //total length\r\n String NewNormal = Normal;\r\n String Empty =\"\";\r\n //calculation to get the letters after shift\r\n StringBuffer rtnString = new StringBuffer();\r\n\r\n for (int n = 0; n < TotalChar; n++) {\r\n /*while (InputNo >=27) {\r\n System.out.println(\"Please input your number\");\r\n InputNo = input.nextInt();\r\n }*/\r\n String fixChar = Normal.substring(n, n + 1);\r\n int AlphaNo = shiftAlphabet(0).indexOf(fixChar);\r\n String AlphaChar = shiftAlphabet(InputNo).substring(AlphaNo, AlphaNo + 1);\r\n //rtnString.append(AlphaChar);\r\n for(int j=0;j<AlphaChar.length();j++) {\r\n char vowel = (AlphaChar).charAt(j);\r\n if (vowel == 'A' || vowel == 'E' || vowel == 'I' || vowel == 'O' || vowel == 'U' || vowel == 'Y') {\r\n rtnString.append(\"OB\");\r\n }\r\n rtnString.append(AlphaChar.charAt(j));\r\n }\r\n }\r\n System.out.println(rtnString);\r\n return String.valueOf(rtnString);\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tString s = \"123.5MA1C2034\";\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t\tif(((int) s.charAt(i)>= 65 && (int)s.charAt(i)<= 91)||(int) s.charAt(i)>= 97 && (int)s.charAt(i)<= 122)\n\t\t\t\tSystem.out.println(s.charAt(i));\n\t\t\t\n\t}", "public static int checkCharType(char input){\n\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Enter a Character : \");\n // char input = scanner.next().charAt(0);\n //scanner.close();\n\n if(input >='a' && input <= 'z'){\n System.out.println(\"Small case Letter.\");\n return 1;\n }\n else if(input >='A' && input <= 'Z'){\n System.out.println(\"Capital Letter.\");\n return 2;\n }\n else if(input >='0' && input <= '9'){\n System.out.println(\"A Digit.\");\n return 3;\n }\n else{\n System.out.println(\"Special Character.\");\n return 4;\n }\n }", "private IbanMod97Check() {\n\t}", "public static void main(String[] args) {\n\t\tString string=\" 14539148803436467\";\n\t\tif(isLuhn(string))\n\t\t\tSystem.out.println(\"valid\");\n\t\telse\n\t\t\tSystem.out.println(\"not valid\");\n\t\t\n\t}", "public static String userInput()\r\n {\r\n Scanner link = new Scanner(System.in);\r\n String word = link.next();\r\n char[] chars = word.toCharArray();\r\n boolean checkWord = false; \r\n for(int i = 0; i < chars.length; i++)\r\n {\r\n char c = chars[i];\r\n if((c < 97 || c > 122))\r\n {\r\n checkWord = true;\r\n }\r\n }\r\n link.close();\r\n if(!checkWord)\r\n {\r\n return word;\r\n } \r\n else \r\n System.out.println(\"Not a valid input\");\r\n return null;\r\n }", "public boolean verifyCode(int inputCode){\n \n if(confirmationCode == inputCode)\n return true;\n else\n return false;\n \n }", "public static void main(String[] args) {\n int n = 0;\n String pass = \"\";\n Scanner scanner = new Scanner(System.in);\n\n n = scanner.nextInt();\n scanner.nextLine();\n pass = scanner.nextLine().toLowerCase();\n\n if (n > 100) {\n System.out.println(\"NO\");\n } else {\n System.out.println(check(n, pass));\n }\n\n }", "public static boolean checkValidInputSMSCode(String smsCode) {\n return smsCode.length() == 6;\n }", "private static String checkAddress(String raw) \n\t{\n\t\t// Check to see if the length is greater than the maxLength of user input.\n\t\tif(raw.length() > maxLength) \n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\treturn raw;\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.nextLine();\n\t\tString result = \"\";\n\t\tfor(int i=0; i<str.length(); i++) {\n\t\t\tchar ch = str.charAt(i);\n\t\t\tif(ch>='a' && ch <='z') {\n\t\t\t\tch+=13;\n\t\t\t\tif(ch>'z') {\n\t\t\t\t\tch-=26;\n\t\t\t\t}\n\t\t\t}else if(ch>='A' && ch <='Z') {\n\t\t\t\tch+=13;\n\t\t\t\tif(ch>'Z') {\n\t\t\t\t\tch-=26;\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult+=ch;\n\t\t}\n\t\tSystem.out.println(result);\n\t}", "public boolean checkInvalid4(String x) {\n int temp = x.length();\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i))))\n temp--;\n }\n return temp > 3;\n }", "public void testOtacTooLong()\n {\n form.setVerificationCode(\"123456789\");\n validator.validate(form, errors);\n assertTrue(errors.hasErrors());\n }", "public static String promptZip(){\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter the zip code: \");\n String output = scan.nextLine();\n return output;\n }", "@Test void test3() {\n\t\tAztecCode marker = new AztecEncoder().\n\t\t\t\taddPunctuation(\"?\").addPunctuation(\"?\").\n\t\t\t\taddUpper(\"ABC\").addUpper(\"CDEF\").\n\t\t\t\taddLower(\"ab\").addLower(\"erf\").fixate();\n\n\t\t// clear the old data\n\t\tclearMarker(marker);\n\n\t\tassertTrue(new AztecDecoder().process(marker));\n\n\t\tassertEquals(\"??ABCCDEFaberf\", marker.message);\n\t\tassertEquals(0, marker.totalBitErrors);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tString name;\r\n\t\tString upname;\r\n\t\tint l;\r\n\t\tSystem.out.println(\"enter your name\");\r\n\t\tScanner scanner=new Scanner(System.in);\r\n\t\tname=scanner.nextLine();\r\n\t\tupname=name.toUpperCase();\r\n\t\tl=name.length();\r\n\t\tSystem.out.println(upname);\r\n\t\tSystem.out.println(\"length: \" +l);\r\n\t\t\r\n\r\n\t}", "public static boolean validigits(String pass){\n\t\tif (pass.length()>=8){\n\t\t\treturn true;\n\t\t}\n\t\telse \n\t\t\treturn false;\n\t}", "public static char validateProduct(char product)\n {\n while (product != 'W' && product != 'G')\n {\n System.out.print\n (\"ERROR in your input. You must select either W for widgets or G for gizmos (W/G): \");\n System.out.print(\"\\nPlease re-enter either W for widgets or G for gizmos (W/G): \");\n product = GetInput.readLineNonwhiteChar();\n product = Character.toUpperCase(product);\n }//end of while loop\n return (product);\n }", "private String getPassword(){\n System.out.println(\"Enter the Password Minimum Of 8 Charters\");\n return sc.next();\n }", "public boolean isCryptoInputValid(String input) {\n\t\tOnlineCourseQuery query = new OnlineCourseQuery();\n\t\t\n\t\tList<String> tempFiatCurrencyList = Arrays.asList(\"CHF\");\n\t\tList<String> tempcryptoCurrencyList = Arrays.asList(input);\n\t\t\n\t\ttry {\n\t\t\tJSONObject resultObject = query.getOnlineCourseData(tempcryptoCurrencyList, tempFiatCurrencyList);\n\t\t\t\n\t\t\t Iterator<String> keys = resultObject.keys();\n\t\t\t String str = keys.next();\n\t\t\t String result = resultObject.optString(str);\n\t\t\t \n\t\t\t if (result.equals(\"Error\")) {\n\t\t\t\t return false;\n\t\t\t }\n\t\t\t \n\t\t\t return true;\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n //variables to use\n int lowerCase, upperCase;\n while (true) {\n //output\n System.out.println(\"Enter an ASCII code (within the range of 97 - 122):\");\n lowerCase = scan.nextInt();\n if(lowerCase < 97 || lowerCase > 122){\n continue;\n }\n break;\n }\n //calculate uppercase val\n upperCase = lowerCase - 32;\n //convert uppercase and lowercase to char\n char upper = (char) upperCase;\n char lower = (char) lowerCase;\n System.out.println(\"The lower case character is \" + lower + \" and its equivelent upper case is \" + upper);\n }", "public static void main(String[] args) {\n\t\tScanner a = new Scanner(System.in);\t\t\r\n\t\tSystem.out.print(\"Enter a country: \");\r\n\t\tString country = a.next();\r\n\t\t\r\n\t\t\r\n\t\tif(country.substring(country.length() - 1).equals(\"e\")) {\r\n\t\t\tif (country.equals(\"Belize\") || country.equals(\"Camboge\") || country.equals(\"Mexique\") || country.equals(\"Mozambique\") || country.equals(\"Zaïre\") || country.equals(\"Zimbabwe\")) {\r\n\t\t\t\tSystem.out.print(\"le \" + country);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.print(\"la \" + country);\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(country.substring(country.length() - 1).equals(\"s\")) {\r\n\t\t\tSystem.out.print(\"les \" + country);\r\n\t\t}\r\n\t\t\r\n\t}", "private void validateUPC(KeyEvent evt) {\n\t\t\n\t\tif (UPCTypeSwitch != QRCODE && UPCTypeSwitch != CODE39){\n\t\t\n\t\t\tchar UPCNumbers[] = upcTextField.getText().toCharArray();\n\t\t\t//System.out.println(\"matcher: \" + matcher.group());\n\t\t\t\n\t\t\tboolean InvalidUPC = false;\n\t\t\tfor (int i = 0; i < UPCNumbers.length; i++){\n\t\t\t\t//System.out.println(Character.isDigit(UPCNumbers[i]));\n\t\t\t\t//System.out.println(Character.isDigit(Integer.parseInt(Character.toString(UPCNumbers[i]))));\n\t\t\t\tif (Character.isDigit(UPCNumbers[i]) == false){\n\t\t\t\t\tInvalidUPC = true;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tInvalidUPC = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(\"UPCNumber: \" + jTextField1.getText() + \" | UPCLengthConstraint: \" + UPCLengthConstraint + \" | InvalidUPC: \" + InvalidUPC);\n\t\t\tif (upcTextField.getText().length() != UPCLengthConstraint || InvalidUPC == true){\n\t\t\t\tcheckdigitTextField.setText(\"\");\n\t\t\t\tfileMenuItem1.setEnabled(false);\n\t\t\t\texportButton.setEnabled(false);\n\t\t\t\tupdateButton.setEnabled(false);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfileMenuItem1.setEnabled(true);\n\t\t\t\texportButton.setEnabled(true);\n\t\t\t\tupdateButton.setEnabled(true);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if (UPCTypeSwitch == QRCODE && qrCodeTextArea.getText().length() > 0){\n\t\t\t\n\t\t\tfileMenuItem1.setEnabled(true);\n\t\t\texportButton.setEnabled(true);\n\t\t\tupdateButton.setEnabled(true);\n\t\t\t\n\t\t}\n\t\telse if (UPCTypeSwitch == QRCODE && qrCodeTextArea.getText().length() == 0){\n\t\t\t\n\t\t\tfileMenuItem1.setEnabled(false);\n\t\t\texportButton.setEnabled(false);\n\t\t\tupdateButton.setEnabled(false);\n\t\t\t\n\t\t}\n\t\telse if (UPCTypeSwitch == CODE39 && upcTextField.getText().length() > 0){\n\t\t\t\n\t\t\tfileMenuItem1.setEnabled(true);\n\t\t\texportButton.setEnabled(true);\n\t\t\tupdateButton.setEnabled(true);\n\t\t\t\n\t\t}\n\t\telse if (UPCTypeSwitch == CODE39 && upcTextField.getText().length() == 0){\n\t\t\t\n\t\t\tfileMenuItem1.setEnabled(true);\n\t\t\texportButton.setEnabled(true);\n\t\t\tupdateButton.setEnabled(true);\n\t\t\t\n\t\t}\n\t}", "public void addcode(String code){//להחליף את סטרינג למחלקה קוד או מזהה מספרי של קוד\r\n mycods.add(code);\r\n }", "public boolean isPincodeValid(String pincode){\n Pattern p = Pattern.compile(\"\\\\d{6}\\\\b\");\n Matcher m = p.matcher(pincode);\n return (m.find() && m.group().equals(pincode));\n }", "Character getCode();", "public static void main(String[] args) {\n //ENTER CODE HERE\n Scanner scan =new Scanner(System.in);\n System.out.println(\"Enter price in cents:\");\n\n int itemPrice = scan.nextInt();\n\n if (itemPrice < 25 || itemPrice > 100 || (itemPrice % 5 != 0) ) {\n System.out.println(\"Invalid entry\");\n }\n else\n {\n int change=(100-itemPrice);\n int quarterCount = change / 25;\n int remainder1 = change % 25;\n int dimeCount = remainder1 / 10;\n int remainder2 = remainder1 % 10;\n int nickelCount = remainder2 / 5;\n\n System.out.println(\"When you give $1 for \" +itemPrice+ \"cents item. You will get back \"+\n quarterCount+ (quarterCount>1 ? \"quarters \" :\"quarter \")+\n dimeCount + (dimeCount > 1 ? \"dimes \" : \"dime \") +\n nickelCount+ (nickelCount > 1 ? \"nickels \" :\"nickel \") );\n\n }\n\n\n\n }", "java.lang.String getC3();", "public static void main(String[] args) {\n\t\tSU.ll(\"123. Best Time to Buy and Sell Stock III\");\n//\t\tString str = \"()()\";\n\t\tString str = \"))()(()()))\";\n\t\tSystem.out.println(\"\" + longestValidParentheses(str));\n\t\tString str2 = \" ) )a ( b ) ( c( )(d )+ -) ) \";\n\t\tSystem.out.println(\"\" + longestValidParentheses2(str2));\n\t}", "public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tStringBuffer stb = new StringBuffer(\"abcdefghigklmnopqrstuvwxyz\");\r\n\t\tStringBuffer result = new StringBuffer(\"\");\r\n\t\t\r\n\t\tString stP = sc.nextLine();\r\n\t\tString stK = sc.nextLine();\r\n\t\tint numP;\r\n\t\tint numK;\r\n\t\tint index;\r\n\t\t\r\n\t\tint j=0;\r\n\t\tfor(int i=0;i<stP.length();i++){\r\n\t\t\t\r\n\t\t\tif(j!=stK.length()){\r\n\t\t\t\t\r\n\t\t\t\tif((int)stP.charAt(i)==32){\r\n\t\t\t\t\tresult.append(\" \");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tnumP=((int)stP.charAt(i)-96);\r\n\t\t\t\t\tnumK=((int)stK.charAt(j)-96);\r\n\t\t\t\t\tindex = numP-numK;\r\n\t\t\t\t\r\n\t\t\t\t\tif(index<=0) index += 26;\r\n\t\t\t\t\r\n\t\t\t\t\tresult.append(stb.charAt(index-1));\r\n\t\t\t\t}\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tj=0; i--;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(result.toString());\r\n\t\r\n\t}", "public static boolean isFourthArgumentValid(String input) {\n\t\tif (CommonUtils.isNotNullOrEmpty(input) && isValidCurrency(input))\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Test\n\tpublic void caseNameWithWrongLength() {\n\t\tString caseName = \"le\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t\tfail();\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}", "public static boolean Q5(String test) {\n\t\tSystem.out.println(Pattern.matches(\"^\\\\d\\\\D{3}\",test));\n\t\treturn Pattern.matches(\"[abc].+\",test);\n\t}", "public void setInputCode(String inputCode) {\r\n this.inputCode = inputCode == null ? null : inputCode.trim();\r\n }", "public String searchByZipUI() {\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++++\");\n console.promptForPrintPrompt(\" + PLEASE ENTER ZIPCODE TO SEARCH BY +\");\n console.promptForPrintPrompt(\" +++++++++++++++++++++++++++++++++++++\");\n console.promptForString(\"\");\n String zip = console.promptForString(\" ZIPCODE: \");\n return zip;\n }", "public static void main(String[] args) {\n\n Scanner keyboard = new Scanner(System.in);\n\n System.out.println(\"Enter the name of your favorite city\");\n System.out.println(\"I will display the number of characters in the city name\");\n System.out.println(\"I will also diplay the city name in both uppercase and lowercase and give you the first character in the name of the city\");\n\n String city = keyboard.nextLine();\n\n int characters = city.length();\n\n\n System.out.println(\"Number of characters: \" + characters);\n System.out.println(\"City name in Uppercase characters: \" + city.toUpperCase());\n System.out.println(\"City name in Lowercase characters: \" + city.toLowerCase());\n System.out.println(\"First character in the name of the city: \" + city.charAt(0));\n\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String x = scanner.nextLine();\n scanner.close();\n\n System.out.println(countUpperCharacters(x));\n }", "public static void main(String[] args) {\n\t\tScanner in = new Scanner (System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter four digit number to be decrypted.\");\n\t\tString num = in.next();\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Your decrypted number is \" +num);\n\t\tSystem.out.print((((num.charAt(2)-48)+10)-7)%10);\n\t System.out.print((((num.charAt(3)-48)+10)-7)%10);\n\t System.out.print((((num.charAt(0)-48)+10)-7)%10);\n\t System.out.print((((num.charAt(1)-48)+10)-7)%10);\n\t\t\n\t\t\n\t\t\n\t}", "public static boolean Q3(String test) {\n\t\tSystem.out.println(Pattern.matches(\".*[abc]{2,3}.*\",test));\n\t\treturn Pattern.matches(\".*[abc]{2,3}.*\",test);\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 }", "public static boolean isValidIranianNationalCode(String input) {\n if (!input.matches(\"^\\\\d{10}$\"))\n return false;\n\n int check = Integer.parseInt(input.substring(9, 10));\n\n int sum = 0;\n\n for (int i = 0; i < 9; i++) {\n sum += Integer.parseInt(input.substring(i, i + 1)) * (10 - i);\n }\n\n sum = sum % 11;\n\n return (sum < 2 && check == sum) || (sum >= 2 && check + sum == 11);\n }", "public static void main(String[] args) {\n\t\t\n\t\tString number=\"48982\";\n\t\t\n\t\tString number1=\"\";\n\t\t\n\t\tfor(int i=number.length()-1;i>=0;i--)\n\t\t{\n\t\t\tnumber1=number1+number.charAt(i);\n\t\t}\n\t\t\n\t\tif(number.equalsIgnoreCase(number1))\n\t\t{\n\t\t\tSystem.out.println(\"yes\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No\");\n\n\t}", "public static String caesar3decrypt(String x) {\n char y[]=x.toCharArray();\n for (int i = 0; i < x.length(); i++) {\n int asciivalue = (int) y[i];\n if ((asciivalue >= 68 && asciivalue <= 90) || (asciivalue >= 100 && asciivalue <= 122)) {\n y[i] = (char) (asciivalue - 3);\n } else if ((asciivalue >= 65 && asciivalue <= 67) || (asciivalue >= 97 && asciivalue <= 99)) {\n y[i] = (char) (asciivalue + 23);\n }\n }\n return (new String(y));\n }", "public void setIndustryCode3(\n @Nullable\n final String industryCode3) {\n rememberChangedField(\"IndustryCode3\", this.industryCode3);\n this.industryCode3 = industryCode3;\n }", "@Test\n public void validCodenameShouldReturnClues()\n {\n String codename = DatabaseHelper.getRandomCodename();\n assertTrue(DatabaseHelper.getCluesForCodename(codename).length > 0);\n }", "public static void main(String[] args) {\n Numbers numbers = new Numbers(9,988,77,66);\n String maxnum = numbers.getMaxNum();\n //if (maxnum.equals(\"99989788\")) {\n if (maxnum.equals(\"99887766\")) {\n System.out.println(\"right\");\n } else {\n System.out.println(\"wrong\");\n }\n }", "public boolean validate() {\n\n String plate = _licensePlate.getText().toString();\n\n if(plate.isEmpty() || plate.length() < 8)\n return false;\n\n else if(plate.charAt(2) == '-' || plate.charAt(5) == '-') {\n\n if (Character.isUpperCase(plate.charAt(0)) && Character.isUpperCase(plate.charAt(1))) { // first case\n if (Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(3)) && Character.isUpperCase(plate.charAt(4))) { // second case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(6)) && Character.isUpperCase(plate.charAt(7))) { // third case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4)))\n return true;\n }\n\n else\n return false;\n\n }\n\n return false;\n }", "public static void main(String args[])\n {\n Scanner getInput = new Scanner(System.in);\n System.out.print(\"Please enter your name: \");\n String name = getInput.next();\n System.out.println(\"My name is \" +name);\n System.out.println(\"My name has \"+name.length()+\" characters\");\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint num = sc.nextInt();\r\n\t\tProblem3 pObj = new Problem3();\r\n\t\tint result = pObj.productDigits(num);\r\n\t\tSystem.out.println((result>-1)?result:\"Invalid Input\");\r\n\t}" ]
[ "0.57329994", "0.55823267", "0.55532634", "0.5537916", "0.549012", "0.54746485", "0.5421977", "0.5396737", "0.5243813", "0.5187713", "0.51819086", "0.5180788", "0.5151597", "0.5151027", "0.5145972", "0.51214725", "0.5090946", "0.50733095", "0.506641", "0.50599825", "0.5059741", "0.5058009", "0.50553185", "0.502584", "0.5023162", "0.50189143", "0.50176626", "0.50145715", "0.5000344", "0.49924845", "0.4989751", "0.49894825", "0.49878106", "0.49817464", "0.49800545", "0.49773398", "0.49742952", "0.4969426", "0.49634063", "0.4945053", "0.4941503", "0.4938358", "0.49356166", "0.49217406", "0.49146405", "0.49131954", "0.4906454", "0.4896612", "0.48924056", "0.48902714", "0.48854852", "0.48848772", "0.48805422", "0.48782292", "0.48769796", "0.48695835", "0.48571345", "0.48412842", "0.48386493", "0.48386255", "0.48309684", "0.48309648", "0.48300764", "0.48263016", "0.48258346", "0.4822524", "0.4821898", "0.48179346", "0.48143092", "0.48099908", "0.48080635", "0.47939286", "0.47925234", "0.47890273", "0.47784334", "0.47702935", "0.47664523", "0.4762901", "0.47584963", "0.4757647", "0.47570273", "0.47545895", "0.47468558", "0.4745699", "0.4744545", "0.47441617", "0.47428772", "0.47321218", "0.47300208", "0.47280118", "0.4726803", "0.4723524", "0.47235203", "0.47218361", "0.47165716", "0.47071147", "0.46885896", "0.4687059", "0.46778595", "0.4677026" ]
0.7763627
0
This private instance method outputs a list of all currencies stored in the private instance variable currencies. The method takes no parameters.
private void listCurrencies() { // Test whether we already have currencies if (currencies == null) { // No, so complain and return System.out.println("There are currently no currencies in the system."); System.out.println("Please add at least one currency."); System.out.println(); return; } // Reset the index into the currencies list currencies.reset(); Currency currency; // Output all currencies while ((currency = currencies.next()) != null) { System.out.println(currency.getCode()); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrencies() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getcurrencies\");\n\t}", "List<CurrencyDTO> getCurrencies();", "@SkipValidation\n public String getAllCurrency() {\n currencyList = currencyService.getAllCurrency();\n return SUCCESS;\n }", "public List<String> retrieveAllCurrencieNames() {\n List<String> currenciesAvailable = new ArrayList<>(2);\n getCurrencyBuilder()\n .getCurrencyModels()\n .forEach(currencyModel ->\n currenciesAvailable.add(currencyModel.getCurrencyName()));\n return currenciesAvailable;\n }", "Collection<String> getAllSupportedCurrenciesByShops();", "@Override\n public HttpClientApiLayerEntity getCuotesByCurrencies(String currencies) {\n HttpRequest<?> req = HttpRequest.GET(uri+\"&currencies=\"+currencies);\n return (HttpClientApiLayerEntity) httpClient.retrieve(req, Argument.of(List.class, HttpClientApiLayerEntity.class)).blockingSingle().get(0);\n }", "public List<ModelCurrency> getModelCurrencyList() {\r\n\t\treturn modelCurrencyList;\r\n\t}", "@Transactional(readOnly = true)\n public List<Currency> findAll() {\n log.debug(\"Request to get all Currencies\");\n return currencyRepository.findAll();\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\t public List<Country> listCountry(){\n\t Session session = factory.openSession();\n\t Transaction tx = null;\n\t List<Country> countries = null;\n\t \n\t tx = session.beginTransaction();\n\t Query query = session.createQuery(\"FROM Country\");\n\t //countries = (List<Country>)session.createQuery(\"FROM Country\");\n\t countries = (List<Country>)query.list();\n\t \n\t System.out.print(\"Currency: \" );\n\t \n\t tx.commit();\n\t return countries;\n\t }", "@PostConstruct\n public void initCurrencies() {\n if (converterFacade.getAllCurrencies().isEmpty()) {\n converterFacade.createCurrency(\"EUR\", \"Euros\", 0.1023976481d);\n converterFacade.createCurrency(\"SEK\", \"Swedish Krona\", 1d);\n converterFacade.createCurrency(\"USD\", \"US Dollar\", 0.1100736983d);\n converterFacade.createCurrency(\"BGP\", \"British Pound\", 0.0872583118);\n }\n }", "private static Set<String> getCurrencySet() {\n Set<String> currencySet = new HashSet<>();\n for (int i= 0; i<getDataBase().length;i++){\n currencySet.add(getDataBase()[i][0]);\n }\n return Collections.synchronizedSet(currencySet);\n }", "@Override\r\n public ArrayList<CurrencyTuple> getSymbols() throws MalformedURLException, IOException{\r\n String symbolsUrl = \"https://api.binance.com/api/v1/ticker/24hr\";\r\n String charset = \"UTF-8\";\r\n String symbol = this.pair;\r\n URLConnection connection = new URL(symbolsUrl).openConnection();\r\n connection.setRequestProperty(\"Accept-Charset\", charset);\r\n InputStream stream = connection.getInputStream();\r\n ByteArrayOutputStream responseBody = new ByteArrayOutputStream();\r\n byte buffer[] = new byte[1024];\r\n int bytesRead = 0;\r\n while ((bytesRead = stream.read(buffer)) > 0) {\r\n responseBody.write(buffer, 0, bytesRead);\r\n }\r\n String responseString = responseBody.toString();\r\n int position = 0;\r\n ArrayList<CurrencyTuple> toReturn = new ArrayList<>();\r\n for (int i = 0; i < 100; i++){\r\n position = responseString.indexOf(\"symbol\", position + 6);\r\n String symbols = responseString.substring(position + 9, position + 15);\r\n String symbolOwned = symbols.substring(0, 3);\r\n String symbolNotOwned = symbols.substring(3, 6);\r\n if (responseString.substring(position+9, position + 16).contains(\"\\\"\")\r\n || responseString.substring(position+9, position + 16).contains(\"USD\")){\r\n if (symbolOwned.contains(\"USD\")) {\r\n symbolOwned = symbolOwned.concat(\"T\");\r\n }\r\n if (symbolNotOwned.contains(\"USD\")) {\r\n symbolOwned = symbolNotOwned.concat(\"T\");\r\n }\r\n Currency CurrencyOwned = new Currency(symbolOwned, 0.0);\r\n Currency CurrencyNotOwned = new Currency(symbolNotOwned, 0.0);\r\n CurrencyTuple tuple = new CurrencyTuple(CurrencyOwned, CurrencyNotOwned);\r\n System.out.println(CurrencyOwned.getName() + \" - \" + CurrencyNotOwned.getName());\r\n toReturn.add(tuple);\r\n }\r\n }\r\n return toReturn;\r\n }", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getPriceList();", "@Override\n public String get_rates(String betrag, String currency, List<String> targetcurrencies) {\n String api = null;\n try {\n api = new String(Files.readAllBytes(Paths.get(\"src/resources/OfflineData.json\")));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n JSONObject obj = new JSONObject(api);\n ArrayList<String> calculatedrates = new ArrayList<>();\n if (currency.equals(\"EUR\")) {\n for (String targetcurrency : targetcurrencies) {\n float rate = obj.getJSONObject(\"rates\").getFloat(targetcurrency);\n calculatedrates.add((Float.parseFloat(betrag) * rate) + \" \" + targetcurrency + \" (Kurs: \" + rate + \")\");\n }\n } else {\n float currencyrate = obj.getJSONObject(\"rates\").getFloat(currency);\n for (String targetcurrency : targetcurrencies) {\n float rate = obj.getJSONObject(\"rates\").getFloat(targetcurrency);\n calculatedrates.add((Float.parseFloat(betrag) / currencyrate * rate) + \" \" + targetcurrency + \" (Kurs: \" + rate / currencyrate + \")\");\n }\n }\n return Data.super.display(betrag, currency, calculatedrates, obj.get(\"date\").toString());\n }", "public Collection getAllExchangeRates()\n throws RemoteException;", "@Override\n public String toString() {\n return \"Currency: \" + name + \" - Rate: \" + rate;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TCcCurrencyConnection> getCurrConnList() {\n\t\tLong selectRateSourceId = null;\n\t\tLong selectRateTargetId = null;\n\t\tString hql = \"from TCcCurrencyConnection t where 1 = 1\";\n\t\tif(!StringUtil.isBlank(selectRateSource) && !\"default\".equals(selectRateSource)) {\n\t\t\tselectRateSourceId = Long.parseLong(selectRateSource);\n\t\t\thql += \" and t.originCurrencyId = \" + selectRateSourceId;\n\t\t}\n\t\tif(!StringUtil.isBlank(selectRateTarget) && !\"default\".equals(selectRateTarget)) {\n\t\t\tselectRateTargetId = Long.parseLong(selectRateTarget);\n\t\t\thql += \" and t.targetCurrencyId = \" + selectRateTargetId;\n\t\t}\n\t\tcurrConnList = currencyService.getGenericDao().query(hql);\n\t\tif (currConnList!=null &&currConnList.size()!= 0 ) {\n\t\t\tfor (TCcCurrencyConnection currency : currConnList) {\n\t\t\t\t\tTCcObject originObject = (TCcObject) currencyService.getGenericDao().get(TCcObject.class,currency.getOriginCurrencyId());\n\t\t\t\t\tTCcObject targetObject = (TCcObject) currencyService.getGenericDao().get(TCcObject.class,currency.getTargetCurrencyId());\n\t\t\t\t\tif (originObject!= null&&targetObject!=null) {\n\t\t\t\t\t\tString originName =originObject.getObjectName();\n\t\t\t\t\t\tString targetName = targetObject.getObjectName();\n\t\t\t\t\t\tcurrency.setConnName(originName+\"-\"+targetName);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn currConnList;\n\t}", "public static Collection<CurrencyManipulator> getAllCurrencyManipulators(){\n return currencyManipulators.values();\n }", "public String getCurrencies() {\n try {\n URLConnection connection = new URL(url).openConnection();\n connection.setConnectTimeout(30000);\n connection.setReadTimeout(60000);\n return inputStreamToString(connection.getInputStream());\n } catch (IOException ignored) {\n }\n return null;\n // return \"{\\\"success\\\":true,\\\"timestamp\\\":1522438448,\\\"base\\\":\\\"EUR\\\",\\\"date\\\":\\\"2018-03-30\\\",\\\"rates\\\":{\\\"AED\\\":4.525864,\\\"AFN\\\":85.161016,\\\"ALL\\\":129.713915,\\\"AMD\\\":591.02486,\\\"ANG\\\":2.194225,\\\"AOA\\\":263.604778,\\\"ARS\\\":24.782964,\\\"AUD\\\":1.603522,\\\"AWG\\\":2.193728,\\\"AZN\\\":2.094523,\\\"BAM\\\":1.959078,\\\"BBD\\\":2.464863,\\\"BDT\\\":102.168576,\\\"BGN\\\":1.956367,\\\"BHD\\\":0.464385,\\\"BIF\\\":2157.962929,\\\"BMD\\\":1.232432,\\\"BND\\\":1.622501,\\\"BOB\\\":8.454972,\\\"BRL\\\":4.072329,\\\"BSD\\\":1.232432,\\\"BTC\\\":0.000181,\\\"BTN\\\":80.292916,\\\"BWP\\\":11.742489,\\\"BYN\\\":2.403731,\\\"BYR\\\":24155.657915,\\\"BZD\\\":2.462157,\\\"CAD\\\":1.588901,\\\"CDF\\\":1929.376385,\\\"CHF\\\":1.174759,\\\"CLF\\\":0.027287,\\\"CLP\\\":743.649213,\\\"CNY\\\":7.730802,\\\"COP\\\":3437.005101,\\\"CRC\\\":692.811412,\\\"CUC\\\":1.232432,\\\"CUP\\\":32.659435,\\\"CVE\\\":110.314948,\\\"CZK\\\":25.337682,\\\"DJF\\\":217.930869,\\\"DKK\\\":7.455792,\\\"DOP\\\":60.88212,\\\"DZD\\\":140.270429,\\\"EGP\\\":21.66663,\\\"ERN\\\":18.474632,\\\"ETB\\\":33.546785,\\\"EUR\\\":1,\\\"FJD\\\":2.489994,\\\"FKP\\\":0.876387,\\\"GBP\\\":0.878367,\\\"GEL\\\":2.977929,\\\"GGP\\\":0.878427,\\\"GHS\\\":5.436305,\\\"GIP\\\":0.876757,\\\"GMD\\\":58.022879,\\\"GNF\\\":11085.722017,\\\"GTQ\\\":9.041167,\\\"GYD\\\":251.699486,\\\"HKD\\\":9.672744,\\\"HNL\\\":29.022579,\\\"HRK\\\":7.425898,\\\"HTG\\\":79.270474,\\\"HUF\\\":312.396738,\\\"IDR\\\":16958.257802,\\\"ILS\\\":4.30267,\\\"IMP\\\":0.878427,\\\"INR\\\":80.242385,\\\"IQD\\\":1459.198927,\\\"IRR\\\":46515.663531,\\\"ISK\\\":121.33288,\\\"JEP\\\":0.878427,\\\"JMD\\\":154.325077,\\\"JOD\\\":0.873183,\\\"JPY\\\":130.921205,\\\"KES\\\":124.16795,\\\"KGS\\\":84.307561,\\\"KHR\\\":4914.197347,\\\"KMF\\\":490.729577,\\\"KPW\\\":1109.188805,\\\"KRW\\\":1306.217196,\\\"KWD\\\":0.368748,\\\"KYD\\\":1.011066,\\\"KZT\\\":393.096349,\\\"LAK\\\":10204.533468,\\\"LBP\\\":1860.972035,\\\"LKR\\\":191.667756,\\\"LRD\\\":162.373324,\\\"LSL\\\":14.567811,\\\"LTL\\\":3.757319,\\\"LVL\\\":0.764786,\\\"LYD\\\":1.634332,\\\"MAD\\\":11.330857,\\\"MDL\\\":20.258758,\\\"MGA\\\":3919.132681,\\\"MKD\\\":61.251848,\\\"MMK\\\":1639.134357,\\\"MNT\\\":2940.582048,\\\"MOP\\\":9.954478,\\\"MRO\\\":432.583892,\\\"MUR\\\":41.29107,\\\"MVR\\\":19.189425,\\\"MWK\\\":879.265951,\\\"MXN\\\":22.379772,\\\"MYR\\\":4.759698,\\\"MZN\\\":75.486896,\\\"NAD\\\":14.553832,\\\"NGN\\\":438.746047,\\\"NIO\\\":38.143757,\\\"NOK\\\":9.665842,\\\"NPR\\\":128.377096,\\\"NZD\\\":1.702979,\\\"OMR\\\":0.474245,\\\"PAB\\\":1.232432,\\\"PEN\\\":3.975213,\\\"PGK\\\":3.925342,\\\"PHP\\\":64.28409,\\\"PKR\\\":142.185629,\\\"PLN\\\":4.210033,\\\"PYG\\\":6843.692686,\\\"QAR\\\":4.487658,\\\"RON\\\":4.655145,\\\"RSD\\\":118.061885,\\\"RUB\\\":70.335482,\\\"RWF\\\":1038.853498,\\\"SAR\\\":4.62113,\\\"SBD\\\":9.587829,\\\"SCR\\\":16.588987,\\\"SDG\\\":22.246869,\\\"SEK\\\":10.278935,\\\"SGD\\\":1.615324,\\\"SHP\\\":0.876757,\\\"SLL\\\":9588.317692,\\\"SOS\\\":693.859366,\\\"SRD\\\":9.145099,\\\"STD\\\":24512.446842,\\\"SVC\\\":10.784232,\\\"SYP\\\":634.677563,\\\"SZL\\\":14.552187,\\\"THB\\\":38.403022,\\\"TJS\\\":10.877199,\\\"TMT\\\":4.202592,\\\"TND\\\":2.98138,\\\"TOP\\\":2.726513,\\\"TRY\\\":4.874764,\\\"TTD\\\":8.17041,\\\"TWD\\\":35.851887,\\\"TZS\\\":2774.203779,\\\"UAH\\\":32.339456,\\\"UGX\\\":4541.510587,\\\"USD\\\":1.232432,\\\"UYU\\\":34.915237,\\\"UZS\\\":10007.344406,\\\"VEF\\\":60824.193529,\\\"VND\\\":28089.579347,\\\"VUV\\\":129.873631,\\\"WST\\\":3.158603,\\\"XAF\\\":655.530358,\\\"XAG\\\":0.075316,\\\"XAU\\\":0.00093,\\\"XCD\\\":3.33201,\\\"XDR\\\":0.847694,\\\"XOF\\\":655.530358,\\\"XPF\\\":119.368042,\\\"YER\\\":307.923024,\\\"ZAR\\\":14.559828,\\\"ZMK\\\":11093.367083,\\\"ZMW\\\":11.622277,\\\"ZWL\\\":397.280478}}\";\n }", "public java.util.Set<java.lang.String> cashflowCurrencySet()\n\t{\n\t\tjava.util.Set<java.lang.String> setCcy = new java.util.HashSet<java.lang.String>();\n\n\t\tsetCcy.add (payCurrency());\n\n\t\tsetCcy.add (couponCurrency());\n\n\t\treturn setCcy;\n\t}", "@Override\r\n\tpublic List<CurrencyAccountCorporate> findAll() {\n\t\treturn em.createQuery(\"from CurrencyAccountCorporate\",\r\n\t\t\t\tCurrencyAccountCorporate.class).getResultList();\r\n\t}", "List<Consumption> listAll();", "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 }", "public static Map<Integer,String> getCurrencyMap(){\n Map<Integer,String> currencyMap = new HashMap<>();\n int temp = 1; // number of first currency\n for (Object s : getCurrencySet()){\n currencyMap.put(temp,s.toString());\n temp++;\n }\n return Collections.synchronizedMap(currencyMap);\n }", "public static List getAllPrices() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT cena FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n int naziv = result.getInt(\"cena\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }", "public List<StokContract> getAll() {\n\t\treturn null;\n\t}", "List<Country> listCountries();", "public void getMainListForActions() {\n mMainListForActions = mDatabaseManager.getAllCurrenciesForCurrenciesFragment(false);\n checkDefaultData();\n setLang();\n }", "public void saveCurrencyListToDb() {\n LOGGER.info(\"SAVING CURRENCY LIST TO DB.\");\n List<Currency> currencyList = currencyService.fetchCurrencyFromCRB();\n currencyRepository.saveAll(currencyList);\n }", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> \n getFundsList();", "public String exchangeRateList() {\r\n\t\tif (exRateS == null) {\r\n\t\t\texRateS = new ExchangeRate();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\texchangeRateList = service.exchangeRateList(exRateS);\r\n\t\ttotalCount = ((PagenateList) exchangeRateList).getTotalCount();\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}", "public List<SermCit> getCits(){\n return citations;\n }", "@Override\n @Nullable\n public Currency getCurrency(String key) {\n return currencies.get(key);\n }", "public String getCurrency() {\n return this.currency;\n }", "String getExchangeRates(String currency) throws Exception\n\t{\n\t\tString[] rateSymbols = { \"CAD\", \"HKD\", \"ISK\", \"PHP\", \"DKK\", \"HUF\", \"CZK\", \"GBP\", \"RON\", \"HRK\", \"JPY\", \"THB\",\n\t\t\t\t\"CHF\", \"EUR\", \"TRY\", \"CNY\", \"NOK\", \"NZD\", \"ZAR\", \"USD\", \"MXN\", \"AUD\", };\n\n\t\tString rates = \"\";\n\n\t\tfinal String urlHalf1 = \"https://api.exchangeratesapi.io/latest?base=\";\n\n\t\tString url = urlHalf1 + currency.toUpperCase();\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement rateElement = jObject.get(\"rates\");\n\n\t\t\tif (rateElement.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject rateObject = rateElement.getAsJsonObject();\n\n\t\t\t\tfor (int i = 0; i < rateSymbols.length; i++)\n\t\t\t\t{\n\t\t\t\t\tJsonElement currentExchangeElement = rateObject.get(rateSymbols[i]);\n\n\t\t\t\t\trates += rateSymbols[i] + \"=\" + currentExchangeElement.getAsDouble()\n\t\t\t\t\t\t\t+ (i < rateSymbols.length - 1 ? \" \" : \".\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rates;\n\t}", "public static Collection getCostingRates() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getCostingEngine().getRates();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }", "public static Vector<Company> getAllPrices(){\n\t\treturn all_prices;\n\t}", "public CurrencyRates() {\n this(DSL.name(\"currency_rates\"), null);\n }", "public static Collection selectALLCurrencySplitConfig() {\n\t\t\treturn null;\r\n\t\t}", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public String getCurrencyPair() {\n return _ccyPair;\n }", "public String getCurrency() {\r\n return currency;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn amount + \" \" + currency; \n\t}", "public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> getPriceList() {\n if (priceBuilder_ == null) {\n return java.util.Collections.unmodifiableList(price_);\n } else {\n return priceBuilder_.getMessageList();\n }\n }", "List<String> getCompanySymbols() throws StorageException;", "List<Curso> obtenerCursos();", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public List<String> getCcs() {\r\n\t\treturn ccs;\r\n\t}", "java.util.List<hr.client.appuser.CouponCenter.AppCoupon> \n getCouponListList();", "private static Map<String, Double> createCurrencyPairRates() {\n\t\t\n\t\tMap<String, Double> currencyRates = new HashMap<>();\n\t\tcurrencyRates.put(\"AUDUSD\", 0.8371);\n\t\tcurrencyRates.put(\"CADUSD\", 0.8711);\n\t\tcurrencyRates.put(\"CNYUSD\", 6.1715);\n\t\tcurrencyRates.put(\"EURUSD\", 1.2315);\n\t\tcurrencyRates.put(\"GBPUSD\", 1.5683);\n\t\tcurrencyRates.put(\"NZDUSD\", 0.7750);\n\t\tcurrencyRates.put(\"USDJPY\", 119.95);\n\t\tcurrencyRates.put(\"EURCZK\", 27.6028);\n\t\tcurrencyRates.put(\"EURDKK\", 7.4405);\n\t\tcurrencyRates.put(\"EURNOK\", 8.6651);\n\t\t\n\t\treturn currencyRates;\n\t\t\n\t}", "@RequestMapping(value = \"/getCountries\", method = RequestMethod.GET, produces = \"application/json\")\n @ResponseBody\n public SPResponse getCountries(@RequestParam(defaultValue = \"en_US\") String locale) {\n \n locale = LocaleHelper.isSupported(locale);\n \n String countryList = countryListMap.get(locale);\n \n if (countryList == null) {\n String fileName = null;\n if (Constants.DEFAULT_LOCALE.equalsIgnoreCase(locale)) {\n fileName = \"countryList.json\";\n } else {\n fileName = \"countryList_\" + locale.toString() + \".json\";\n }\n \n ObjectMapper mapper = new ObjectMapper();\n try {\n Resource resource = resourceLoader.getResource(\"classpath:\" + fileName);\n Countries readValue = mapper.readValue(resource.getFile(), Countries.class);\n countryList = mapper.writeValueAsString(readValue);\n } catch (Exception e) {\n LOG.error(\"error occurred retreving the country list for the locale \" + locale + \": file :\"\n + fileName, e);\n Resource resource = resourceLoader.getResource(\"classpath:countryList.json\");\n Countries readValue;\n try {\n readValue = mapper.readValue(resource.getFile(), Countries.class);\n countryList = mapper.writeValueAsString(readValue);\n } catch (IOException e1) {\n LOG.error(\"Error occurred while getting the country list\", e1);\n }\n }\n \n if (countryList == null) {\n countryList = MessagesHelper.getMessage(\"countries.list\");\n } else {\n countryListMap.put(locale, countryList);\n }\n }\n return new SPResponse().add(\"countries\", countryList);\n }", "public BigDecimal getPriceList();", "@Override\n\t/** Returns all Coupons as an array list */\n\tpublic Collection<Coupon> getAllCoupons() throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve all Coupons via prepared\n\t\t\t// statement\n\t\t\tString getAllCouponsSQL = \"select * from coupon\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getAllCouponsSQL);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}", "public Currency getCurrency();", "List<ServiceChargeSubscription> getSCPackageList() throws EOTException;", "public List<Ohlc> getBySymbol(String symbol);", "@Override\n\tpublic List<Clock> getAll() {\n\t\tString sql = \"SELECT * FROM clocks\";\n\t\t\n\t\tList<Clock> clocks = namedParameterJdbcTemplate.query(sql, new ClockRowMapper());\n\t\treturn clocks;\n\t}", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "public List<Contract> allContracts() {\r\n\r\n\t\tQuery query = this.em.createQuery(\"SELECT c FROM Contract c order by c.contractId desc\");\r\n\t\tList<Contract> contractList = null;\r\n\t\tif (query != null) {\r\n\t\t\tcontractList = query.getResultList();\r\n\t\t\tSystem.out.println(\"List:\"+contractList);\r\n\t\t}\r\n\t\treturn contractList;\r\n\t}", "public String listarCursosInscripto(){\n StringBuilder retorno = new StringBuilder();\n \n Iterator<Inscripcion> it = inscripciones.iterator();\n while(it.hasNext())\n {\n Inscripcion i = it.next();\n retorno.append(\"\\n\");\n retorno.append(i.getCursos().toString());\n retorno.append(\" en condición de: \");\n retorno.append(i.getEstadoInscripcion());\n }\n return retorno.toString();\n }", "Currency getCurrency();", "public static List<ScrumPokerCard> getDeck() {\n return Arrays.stream(values()).collect(Collectors.toList());\n }", "java.util.List<cosmos.base.v1beta1.Coin> \n getTotalDepositList();", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "@Override\n public String toString() {\n return \"\" + currency + amount;\n }", "public Map<String, Double> getAllExchangeRates() {\n init();\n return allExchangeRates;\n }", "ResponseEntity<List<TOURates>> getTouRates();", "public static void loadCurrencyInformation(Context context) {\n SharedPreferences sharedPrefs = context\n .getSharedPreferences(Darwin.SHARED_PREFERENCES, Context.MODE_PRIVATE);\n currencyThousandsDelim = sharedPrefs\n .getString(Darwin.KEY_SELECTED_COUNTRY_THOUSANDS_STEP, \",\");\n currencyFractionCount = sharedPrefs.getInt(Darwin.KEY_SELECTED_COUNTRY_NO_DECIMALS, 0);\n currencyFractionDelim = sharedPrefs\n .getString(Darwin.KEY_SELECTED_COUNTRY_DECIMALS_STEP, \".\");\n currencyUnitPattern = sharedPrefs\n .getString(Darwin.KEY_SELECTED_COUNTRY_CURRENCY_SYMBOL, \".\");\n }", "@JsonIgnore\n\tpublic List<Card> getAvailableCards() {\n\t\tList<Card> availableCards = new ArrayList<>();\n\t\tfor (int i = dealtCards.get(); i < Deck.DECK_SIZE; i++) {\n\t\t\tCard card = cards.get(i);\n\t\t\tavailableCards.add(card);\n\t\t}\n\t\treturn availableCards;\n\t}", "@RequestMapping(value=\"/api/combocustomerinvoicepay\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic List<CustomerInvoiceDto> getDataCombox(){\n\t\treturn customerPayableService.getComboCPayInvoice();\n\t}", "public String[] getAllCopiers();", "private String marketPrices() {\r\n\t\tdouble[] prices=market.getPrices();\r\n\t\tString out = \"Prices Are: \";\r\n\t\tfor(int i=0; i<prices.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+String.format(\"%.2f\", prices[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "public com.google.protobuf.ProtocolStringList\n getCiphersList() {\n return ciphers_.getUnmodifiableView();\n }", "@Override\n\tpublic List<ComBorrowings> getAllComBorrowingsInfo() {\n\t\treturn comBorrowingsMapper.selectByExample(new ComBorrowingsExample());\n\t}", "public java.lang.String getCurrency() {\n return currency;\n }", "@Override\n public List<ICart> All() throws ServiceUnavailableException {\n if(cartRepository==null)\n throw new ServiceUnavailableException(\"Missing persitance repository!\");\n \n return cartRepository.findAll().stream().map(cart -> (ICart)cart).collect(Collectors.toList());\n }", "@GetMapping(\"/covs\")\n @Timed\n public List<Cov> getAllCovs() {\n log.debug(\"REST request to get all Covs\");\n return covService.findAll();\n }", "public String listOfColors() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Color> it = colors.iterator(); it.hasNext();){\r\n\t\t\t Color c = (Color) it.next();\r\n \t sb.append(c.toString() + NL);\r\n }\r\n return sb.toString();\r\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "@RequestMapping(value = \"/countries\", method = RequestMethod.GET)\n public List<Country> countries() {\n return dictionaryService.findAllCountries();\n }", "String getTradeCurrency();", "public List<SerCj> listCj() {\n\t\treturn sercjmapper.listCj();\n\t}", "public void showCatalogue() {\n for (Record r : cataloue) {\n System.out.println(r);\n }\n }", "private static void mostrarListaDeComandos() {\n System.out.println(\"Lista de comandos:\");\n for (int i = 0; i < comandos.length; i++){\n System.out.println(comandos[i]);\n }\n }", "List<Stock> retrieveAllStocks(String symbol);", "@Override\r\n\tpublic List<CreditCard> findAll() {\n\t\treturn this.cardList;\r\n\t\t\r\n\t}", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "public List<String> getCountries() {\n\t\tif (countries == null) {\r\n\t\t\tcountries = new ArrayList<>();\r\n\t\t\tif (Files.exists(countriesPath)) {\r\n\t\t\t\ttry (BufferedReader in = new BufferedReader(\r\n\t\t\t\t\t\t new FileReader(countriesFile))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//read countries from file into array list\r\n\t\t\t\t\tString line = in.readLine();\r\n\t\t\t\t\twhile (line != null) {\r\n\t\t\t\t\t countries.add(line);\r\n\t\t\t\t\t line = in.readLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFiles.createFile(countriesPath);\r\n\t\t\t\t\tSystem.out.println(\"** countries file create!\");\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn countries;\r\n\t}", "public static PayabbhiCollection<Payout> all() throws PayabbhiException {\n\t\treturn requestCollection(Method.GET, urlFor(Payout.class), null, Payout.class);\n\t}", "public static ArrayList<Integer> getRates(){\n\t\treturn heartRates;\n\t}", "public java.util.List<SitbMoneyCollection> findAll();", "@java.lang.Override\n public java.util.List<cosmos.base.v1beta1.CoinOuterClass.Coin> getPriceList() {\n return price_;\n }", "public static ArrayList<Curriculum> getCurriculums() {\n ClientResponse clientResponse = HttpRequest.get(\"/curriculum\");\n ArrayList<Curriculum> curriculums = null;\n\n if (clientResponse == null) {\n System.out.println(\"No sdk\");\n } else {\n String encryptedJson = clientResponse.getEntity(String.class);\n if (clientResponse.getStatus() == 200) {\n String decryptedJson = Cryptor.encryptDecryptXOR(encryptedJson);\n curriculums = new Gson().fromJson(decryptedJson, new TypeToken<ArrayList<Curriculum>>() {\n }.getType());\n } else {\n System.out.println(\"Error\");\n }\n }\n clientResponse.close();\n return curriculums;\n }", "@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}", "public String toString () {\r\n // write out amount of cash\r\n String stuffInWallet = \"The total amount of Bills in your wallet is: $\" + getAmountInBills() + \"\\n\" +\r\n \"The total amount of Coins in your wallet is: $\" + getAmountInCoins() + \"\\n\";\r\n\r\n // add in the charge (credit and debit) cards\r\n // for each element in the chargeCards list, calls its toString method\r\n for ( int i = 0; i < chargeCards.size(); i++ ) {\r\n stuffInWallet += chargeCards.get( i ) + \"\\n\";\r\n }\r\n\r\n for ( int i = 0; i < idCards.size(); i++ ) {\r\n stuffInWallet += idCards.get( i ) + \"\\n\";\r\n }\r\n\r\n return stuffInWallet;\r\n }", "@RequestMapping(value = \"/charitys\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Charity> getAll() {\n log.debug(\"REST request to get all Charitys\");\n return charityRepository.findAll();\n }" ]
[ "0.7907136", "0.72539216", "0.7184228", "0.7177237", "0.6800835", "0.6676059", "0.66116256", "0.65852326", "0.59307927", "0.5920187", "0.58896273", "0.5816435", "0.5793343", "0.5697556", "0.5662829", "0.5661563", "0.565588", "0.56402636", "0.5572537", "0.55631906", "0.5542344", "0.55324894", "0.55314755", "0.550498", "0.54741025", "0.5457295", "0.54489136", "0.5431582", "0.54076165", "0.540148", "0.540148", "0.539773", "0.5392353", "0.53849345", "0.53811395", "0.53704894", "0.5359216", "0.5357532", "0.53554654", "0.53514475", "0.5347588", "0.5320707", "0.529387", "0.52860457", "0.5282776", "0.5266766", "0.5265529", "0.52584517", "0.52584517", "0.52584517", "0.52584517", "0.5248953", "0.5238252", "0.5229874", "0.5220685", "0.51934284", "0.5191005", "0.5181534", "0.5181434", "0.5177709", "0.5173799", "0.51655966", "0.5165113", "0.5164115", "0.5163633", "0.5161278", "0.51578134", "0.5139311", "0.51363707", "0.51291573", "0.5125018", "0.5122182", "0.5121544", "0.5112911", "0.51060516", "0.5102782", "0.5093981", "0.5085083", "0.5081323", "0.5073403", "0.5064958", "0.5061406", "0.50565875", "0.5056363", "0.5050346", "0.50497174", "0.5049183", "0.50455993", "0.50316334", "0.5029888", "0.5028092", "0.5025181", "0.5024708", "0.5021837", "0.50092256", "0.50060207", "0.50038856", "0.49947944", "0.499058", "0.49876404" ]
0.8597004
0
This private instance method adds a currency to the private instance variable currencies. The method takes no parameters.
private void addCurrency() { String currencyCode = signalThreeLetters(); if (currencyCode == null){ return; } System.out.print("Enter the exchange rate (value of 1 " +currencyCode+ " in NZD): "); String exchangeRateStr = keyboardInput.getLine(); double exchangeRate = Double.parseDouble(exchangeRateStr); if (exchangeRate <= 0) { System.out.println("Negative exchange rates not permitted. Returning to menu."); System.out.println(); return; } System.out.println(); if (currencies == null) { currencies = new Currencies(); } currencies.addCurrency(currencyCode, exchangeRate); System.out.println("Currency " +currencyCode+ " with exchange rate " + exchangeRate + " added"); System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCurrency(String csymbol, String cname, BigDecimal crate, BigDecimal cunit) {\n CurrencyExchangeRateBean bean = new CurrencyExchangeRateBean();\n bean.setCurrencyId(csymbol);\n bean.setExchangeRate(crate);\n bean.setUnit(cunit);\n currencies.add(bean);\n }", "public void addCurrency(String csymbol, String cname, BigDecimal crate, BigDecimal cunit) {\n CurrencyExchangeRateBean bean = new CurrencyExchangeRateBean();\n bean.setCurrencyId(csymbol);\n bean.setExchangeRate(crate);\n bean.setUnit(cunit);\n currencies.add(bean);\n }", "void setAddTransactionCurrency(String currency);", "void setCurrency(Currency currency);", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }", "public void setCurrency(java.lang.String currency) {\n this.currency = currency;\n }", "public void setCurrency(java.lang.String currency) {\r\n this.currency = currency;\r\n }", "public void addCustomerMoney(Coin c){\n customerMoney.add(c);\n }", "@PostConstruct\n public void initCurrencies() {\n if (converterFacade.getAllCurrencies().isEmpty()) {\n converterFacade.createCurrency(\"EUR\", \"Euros\", 0.1023976481d);\n converterFacade.createCurrency(\"SEK\", \"Swedish Krona\", 1d);\n converterFacade.createCurrency(\"USD\", \"US Dollar\", 0.1100736983d);\n converterFacade.createCurrency(\"BGP\", \"British Pound\", 0.0872583118);\n }\n }", "public void setCurrency(Currency usd) {\n\t\t\n\t}", "public ArrayList<ArrayList<Float>> addNewCurrencyToForex(ArrayList<ArrayList<Float>> currenciesPrices){\n currenciesPrices.add(getRandomZlotyPrices(currenciesPrices.size()));\n for(ArrayList<Float> currency : currenciesPrices){\n currency.add(generator.nextFloat() * 10);\n }\n currenciesPrices.get(currenciesPrices.size() - 1).set(currenciesPrices.size() - 1, 1.f);\n return currenciesPrices;\n }", "public void addTo(int dollars,int cents)\n\t{\n\t\tsetDollars(getDollars()+dollars);\n\t\tsetCents(getCents()+cents);\n\t\t\n\t}", "public void registerCurrency(String identifier, BigDecimal exchangeRate) {\n if (exchangeRates.containsKey(identifier))\n throw new IllegalArgumentException(\"Currency identifier already used.\");\n\n exchangeRates.put(identifier, exchangeRate);\n }", "public void insertCurrency(String currency, String text) {\r\n\t\tFrames.selectMainFrame(webDriver);\r\n\t\tcurrencyElement(currency).sendKeys(text);\r\n\t}", "protected void setCurrency(String currency) {\n this.currency = currency;\n }", "public void addPayment(double amount, String currency){\r\n\t\tpayments.add(new Payment(amount, currency));\r\n\t\tcurrencies.insertCurrency(currency);\r\n\t}", "public void setCurrency(java.lang.String currency)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CURRENCY$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CURRENCY$10);\n }\n target.setStringValue(currency);\n }\n }", "public Builder mergeCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (((bitField0_ & 0x00000400) == 0x00000400) &&\n currency_ != Pokemon.Currency.getDefaultInstance()) {\n currency_ =\n Pokemon.Currency.newBuilder(currency_).mergeFrom(value).buildPartial();\n } else {\n currency_ = value;\n }\n onChanged();\n } else {\n currencyBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }", "public void setCurrencyID(String value) {\n this.currencyID = value;\n }", "public String insertOrUpdateCurrency() {\n if (currency.getHcmoCurrencyId() == null) {\n currencyList = currencyService.getAllCurrency();\n if (currencyList.size() == 1) {\n addActionError(getText(\"errors.currency.restriction\"));\n return INPUT;\n } else {\n Map session = ActionContext.getContext().getSession();\n EmployeesVO oEmp = (EmployeesVO) session.get(\"EMPLOYEE_OBJECT\");\n// currency.setCreated(DateUtils.getCurrentDateTime());\n// currency.setCreatedBy(oEmp);\n // currency.setUpdatedBy(oEmp);\n currency.setIsActive(1);\n currencyService.insertCurrency(currency);\n addActionMessage(getText(\"Added Successfully\"));\n }\n } else {\n Map session = ActionContext.getContext().getSession();\n EmployeesVO oEmp = (EmployeesVO) session.get(\"EMPLOYEE_OBJECT\");\n // currency.setUpdatedBy(oEmp);\n currencyService.updateCurrency(currency);\n addActionMessage(getText(\"Updated Successfully\"));\n }\n // For Drop down List\n return SUCCESS;\n }", "public void setCurrency(String value) {\n setAttributeInternal(CURRENCY, value);\n }", "public static Currency Add(Currency op1, Currency op2) throws CurrencyException {\r\n\t\tif(!op1.getType().equals(op2.getType()))\r\n\t\t\tthrow new CurrencyException(\"Addition: different currency types!\");\r\n\t\t\r\n\t\tCurrency result = new Currency(op1.getType());\r\n\r\n\t\treturn result.setValue(op1.getValue()+op2.getValue());\r\n\t}", "public void xsetCurrency(org.apache.xmlbeans.XmlString currency)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(CURRENCY$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CURRENCY$10);\n }\n target.set(currency);\n }\n }", "private void listCurrencies() {\r\n\t\t// Test whether we already have currencies\r\n\t\tif (currencies == null) {\r\n\t\t\t// No, so complain and return\r\n\t\t\tSystem.out.println(\"There are currently no currencies in the system.\");\r\n\t\t\tSystem.out.println(\"Please add at least one currency.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Reset the index into the currencies list\r\n\t\tcurrencies.reset();\r\n\t\tCurrency currency;\r\n\t\t// Output all currencies\r\n\t\twhile ((currency = currencies.next()) != null) {\r\n\t\t\tSystem.out.println(currency.getCode());\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}", "public void setCurrency1(BigDecimal newCurrency1) {\n\tcurrency1 = newCurrency1;\n}", "public void setCurrency(CurrencyVO newCurrency) {\n\tcurrency = newCurrency;\n}", "public Currency() {\n // Instances built via this constructor have undefined behavior.\n }", "public void setCurrency2(BigDecimal newCurrency2) {\n\tcurrency2 = newCurrency2;\n}", "Currency getCurrency();", "public void setCURRENCY(BigDecimal CURRENCY) {\r\n this.CURRENCY = CURRENCY;\r\n }", "public String getCurrency() {\n return this.currency;\n }", "public void saveCurrencyListToDb() {\n LOGGER.info(\"SAVING CURRENCY LIST TO DB.\");\n List<Currency> currencyList = currencyService.fetchCurrencyFromCRB();\n currencyRepository.saveAll(currencyList);\n }", "@Override\n public void addAll(@NonNull Collection<? extends CurrencyModel> items) {\n if (items instanceof List) {\n this.currencyRates = (List<CurrencyModel>) items;\n }\n super.addAll(items);\n }", "void setCurrencyId(Long currencyId);", "public void setCurrency (de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency currency) {\r\n\t\tthis.currency = currency;\r\n\t}", "public String getCurrency() {\r\n return currency;\r\n }", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public CurrencyRates() {\n this(DSL.name(\"currency_rates\"), null);\n }", "public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n return currency_;\n }", "public void setCurrencyRate(String currencyCode, BigDecimal value)\n {\n currencyRates.put(currencyCode, value);\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public void addCoin(Coin c) {\n\t\tcurrentCoin.addCoin(c);\n\t\tcoin.addCoin(c);\n\t}", "public void addCash(double amount) {\r\n cash += amount;\r\n }", "public void save(Currency currency) {\n startTransaction();\n manager.persist(currency);\n endTransaction();\n }", "public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n if (currencyBuilder_ != null) {\n return currencyBuilder_.getMessageOrBuilder();\n } else {\n return currency_;\n }\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "public void buy(Currency c, double amount)\r\n throws NoMoneyException, DoesntExistException {\r\n if (!Main.currencyMarket.getCurrencies().contains(c))\r\n throw new DoesntExistException(\"Can't find \" + c.getName());\r\n if (this.budget<amount*c.getBasicRate()*(1+Main.currencyMarket.markup))\r\n throw new NoMoneyException(c);\r\n \r\n synchronized(this) {\r\n try {\r\n c.sell();\r\n this.budget-=amount*c.getBasicRate()*(1+Main.currencyMarket.markup);\r\n this.capital.put(c, amount);\r\n this.currencies.put(c, amount);\r\n }\r\n catch (Exception e) {\r\n //System.out.println(e.getMessage());\r\n }\r\n \r\n }\r\n \r\n \r\n }", "public Price currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }", "boolean isCurrencyAware();", "@Override\n @Nullable\n public Currency getCurrency(String key) {\n return currencies.get(key);\n }", "public static void setReferenceCurrency(Currency currency) {\n REFERENCE.set(currency);\n TO_REFERENCE.clear();\n TO_REFERENCE.put(currency.getCode(), 1.0);\n }", "public abstract void setCurrencyType(String currencyType);", "List<CurrencyDTO> getCurrencies();", "@Override\n public HttpClientApiLayerEntity getCuotesByCurrencies(String currencies) {\n HttpRequest<?> req = HttpRequest.GET(uri+\"&currencies=\"+currencies);\n return (HttpClientApiLayerEntity) httpClient.retrieve(req, Argument.of(List.class, HttpClientApiLayerEntity.class)).blockingSingle().get(0);\n }", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "@Override\n\tpublic void createCurrencies(List<Currency> list) {\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\tfor (Currency c : list) {\n\t\t\tQuery query = session.createQuery(\"from Currency where code=:code\"); \n\t\t\tquery.setParameter(\"code\", c.getCode()); \n\t\t\tif (query.list().size() > 0)\n\t\t\t\tcontinue; \n\t\t\telse \n\t\t\t\tsession.save(c); \n\t\t}\n\t\tsession.getTransaction().commit(); \n\t}", "public void setCurrency(String currency) {\n this.currency = currency == null ? null : currency.trim();\n }", "public BigDecimal getCURRENCY() {\r\n return CURRENCY;\r\n }", "@Override\n\tpublic int getC_Currency_ID() {\n\t\treturn 0;\n\t}", "public void addCash(double added_cash) {\n cash += added_cash;\n }", "public void setCurrency(String currency) {\r\n this.currency = currency == null ? null : currency.trim();\r\n }", "public Builder setCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currency_ = value;\n onChanged();\n } else {\n currencyBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }", "public Money add(Money moneyA, Money moneyB) throws NoSuchExchangeRateException {\n return Money(moneyA.amount.add(convert(moneyB, moneyA.currency).amount), moneyA.currency);\n }", "public void setUserCurrency(String userCurrency) {\n sessionData.setUserCurrency(userCurrency);\n }", "public void updateAmount(double amount, Double rate){\r\n\t\t\tcurrencyAmount = currencyAmount + amount;\r\n\t\t\tdefaultCurrencyAmount = rate == null ? 0 : defaultCurrencyAmount + amount * rate.doubleValue();\r\n\t\t}", "public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "@Test(expected=CurrencyMismatchRuntimeException.class)\n public void testAdd() {\n \n BigDecimal magnitude1 = new BigDecimal(\"1.11\");\n BigDecimal magnitude2 = new BigDecimal(\"2.22\");\n BigDecimal magnitude3 = new BigDecimal(\"3.33\");\n \n Currency usd = Currency.getInstance(\"USD\");\n Currency cad = Currency.getInstance(\"CAD\");\n \n Money moneyUsd = new Money(magnitude1, usd, RoundingMode.CEILING);\n Money moneyUsd2 = new Money(magnitude2, usd, RoundingMode.FLOOR);\n Money moneyCad = new Money(magnitude3, cad);\n\n Money sum = moneyUsd.add(moneyUsd2);\n assertTrue(\"Addition result has same currency\", sum.getCurrency().equals(moneyUsd.getCurrency()));\n assertTrue(\"Addition result has base rounding mode\", sum.getRoundingMode().equals(moneyUsd.getRoundingMode()));\n assertTrue(\"Amounts add up\", sum.getAmount().equals( magnitude1.add(magnitude2)));\n \n // Different currencies should throw an exception\n sum = moneyUsd.add(moneyCad);\n \n fail(\"Addition: different currencies should throw an exception\");\n \n }", "public Currency getCurrency();", "void setEditTransactionCurrency(String currency);", "@Override\n\tpublic Price convertToCurrency(Price price, Currency currency) {\n if (price == null || currency == null) {\n throw new IllegalArgumentException(\"Price or currency is null\");\n }\n\n\t\tBigDecimal convertRate = CurrencyRateUtils.getCurrencyRate(price.getCurrency(), currency);\n if (convertRate == null) {\n convertRate = BigDecimal.ONE;\n }\n\n BigDecimal newPrice = price.getValue().multiply(convertRate).setScale(2, RoundingMode.HALF_UP);\n price.setValue(newPrice);\n\n return price;\n\t}", "public void add(Money money2) {\n dollars += money2.getDollars();\n cents += money2.getCents();\n if (cents >= 100) {\n dollars += 1;\n cents -= 100;\n }\n }", "public void setSalaryCurrency(String cur) {\n \tthis.salaryCurrency = cur;\n }", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "@SkipValidation\n public String setUpCurrency() {\n if ((currency != null) && (currency.getHcmoCurrencyId() != null)) {\n currency = currencyService.getCurrency(currency.getHcmoCurrencyId());\n }\n return SUCCESS;\n }", "protected String getCurrency() {\n return currency;\n }", "@Scheduled(cron = \"*/30 * * * * ?\")\n private void seedCurrencies() {\n List<SeedCurrencyBindingModel> rawCurrencies;\n try {\n rawCurrencies = this.currencyScrape.getCurrencyNameEuroRate();\n areAllCurrenciesValid(rawCurrencies);\n } catch (Exception e) {\n try {\n rawCurrencies = this.secondaryCurrencyScrape.getCurrencyNameEuroRate();\n areAllCurrenciesValid(rawCurrencies);\n } catch (Exception ex) {\n rawCurrencies = null;\n }\n }\n if (rawCurrencies == null) {\n throw new NullPointerException();\n }\n\n rawCurrencies.forEach(rawCurrency -> {\n if (this.currencyRepository.existsByCode(rawCurrency.getCode())) {\n this.currencyRepository.updateCurrencyRate(rawCurrency.getCode(), rawCurrency.getEuroRate());\n } else {\n this.currencyRepository.save(this.modelMapper.map(rawCurrency, Currency.class));\n }\n });\n }", "public OldSwedishCurrency()\r\n\t{\r\n\t\tthis(0, 0, 0);\r\n\t}", "public boolean hasCurrency() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public void setBasecurrency(java.lang.Integer newBasecurrency) {\n\tbasecurrency = newBasecurrency;\n}", "void setCurrencyCalculatorConfig(CurrencyCalculatorConfig config);", "com.google.ads.googleads.v6.resources.CurrencyConstantOrBuilder getCurrencyConstantOrBuilder();", "public void addCoins(int coins) {\n total_bal += coins;\n }", "public void setC_Currency_ID (int C_Currency_ID);", "public boolean hasCurrency() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "@SkipValidation\n public String getAllCurrency() {\n currencyList = currencyService.getAllCurrency();\n return SUCCESS;\n }", "public void add(String item, int number) {\n\t\tcouponManager.put(item, number);\n\t}", "public void addPriceComponent(PriceComponent pc)\n\t{\n\t\tthis.priceComponents.add(pc);\n\t}", "public void addCompositeAmount(ArmCurrency compositeAmount) {\n try {\n this.compositeAmount = this.compositeAmount.add(compositeAmount);\n } catch (CurrencyException ex) {\n System.out.println(\"currency excpetion: \" + ex);\n }\n }", "public synchronized void setUsdConversionRate(Currency currency, BigDecimal rate) {\n usdConversionRateMap.put(currency, rate);\n }", "private static Map<String, Double> createCurrencyPairRates() {\n\t\t\n\t\tMap<String, Double> currencyRates = new HashMap<>();\n\t\tcurrencyRates.put(\"AUDUSD\", 0.8371);\n\t\tcurrencyRates.put(\"CADUSD\", 0.8711);\n\t\tcurrencyRates.put(\"CNYUSD\", 6.1715);\n\t\tcurrencyRates.put(\"EURUSD\", 1.2315);\n\t\tcurrencyRates.put(\"GBPUSD\", 1.5683);\n\t\tcurrencyRates.put(\"NZDUSD\", 0.7750);\n\t\tcurrencyRates.put(\"USDJPY\", 119.95);\n\t\tcurrencyRates.put(\"EURCZK\", 27.6028);\n\t\tcurrencyRates.put(\"EURDKK\", 7.4405);\n\t\tcurrencyRates.put(\"EURNOK\", 8.6651);\n\t\t\n\t\treturn currencyRates;\n\t\t\n\t}", "public void setCurrencyCd(String value) {\n setAttributeInternal(CURRENCYCD, value);\n }", "public Currency getCurrency() {\n return currencyCode;\n }", "public void setCurrencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n }" ]
[ "0.7169517", "0.7169517", "0.6682563", "0.6378934", "0.635232", "0.635232", "0.625712", "0.6124701", "0.6097335", "0.608587", "0.6072201", "0.6039362", "0.6002406", "0.59650695", "0.59305376", "0.5900615", "0.58473635", "0.5843803", "0.58151144", "0.5795265", "0.57927054", "0.5780827", "0.5767687", "0.57630175", "0.5702141", "0.56886536", "0.5678357", "0.5663183", "0.56523055", "0.5645039", "0.56225383", "0.56093705", "0.5597603", "0.5586079", "0.55746144", "0.5543306", "0.5533156", "0.55307716", "0.54913056", "0.5470079", "0.5469457", "0.54629385", "0.53984714", "0.5393604", "0.5393604", "0.5393604", "0.5393604", "0.5374613", "0.5358104", "0.5350606", "0.53490967", "0.533415", "0.53331316", "0.53252745", "0.53230596", "0.5318335", "0.53124547", "0.5308409", "0.53031594", "0.5299056", "0.5285902", "0.52801716", "0.5270289", "0.52696425", "0.5267685", "0.52656513", "0.52487564", "0.52114934", "0.51980615", "0.5193091", "0.51869005", "0.5176874", "0.51558304", "0.51440483", "0.5138473", "0.51363003", "0.51264393", "0.51160645", "0.51142585", "0.5105191", "0.51010966", "0.509871", "0.5095706", "0.5091825", "0.508787", "0.5087094", "0.5079617", "0.50714123", "0.5068285", "0.50627327", "0.5061987", "0.5061329", "0.50527966", "0.50462896", "0.5044293", "0.50333565", "0.5030678", "0.5030065", "0.50245893", "0.5018934" ]
0.73363084
0
Displays exchange rate of chosen currency object This is an instance method
private void showRate() { String currencyCode = signalThreeLetters(); if (currencyCode == null){ return; } //needed if-else to check if currencies is null. As currencies.getCurrencyByCode doesn't work if currencies is null if (currencies == null){ System.out.println("There are currently no currencies in the system."); System.out.println();} else{ Currency currency = currencies.getCurrencyByCode(currencyCode); if (currency == null) { // No, so complain and return System.out.println("\"" + currencyCode + "\" is is not in the system."); System.out.println();} else { System.out.println("Currency " +currencyCode+ " has exchange rate " + currency.getExchangeRate() + "."); System.out.println();} } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return \"Currency: \" + name + \" - Rate: \" + rate;\n }", "public BigDecimal getExchangeRate() {\n return exchangeRate;\n }", "@SkipValidation\n public String currencyView() {\n if ((currency != null) && (currency.getHcmoCurrencyId() != null)) {\n currency = currencyService.getCurrency(currency.getHcmoCurrencyId());\n }\n return SUCCESS;\n }", "public ViewAdminRates() {\n initComponents();\n initRates();\n }", "public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}", "void printRate(Rate iRate)\n {\n System.out.println(iRate.getElementValue());\n }", "public void display() {\r\n dlgRates.show();\r\n }", "public String getCurrency() {\n return this.currency;\n }", "public String getExchangeRateType() {\n return this.exchangeRateType;\n }", "public String getExchangeRateUrl() {\n return exchangeRateUrl;\n }", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "@Override\n public String getDescription() {\n return \"Buy currency\";\n }", "@Override\n public String getDescription() {\n return \"Sell currency\";\n }", "public String exchangeRateList() {\r\n\t\tif (exRateS == null) {\r\n\t\t\texRateS = new ExchangeRate();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\texchangeRateList = service.exchangeRateList(exRateS);\r\n\t\ttotalCount = ((PagenateList) exchangeRateList).getTotalCount();\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t}", "Currency getCurrency();", "private void addCurrency() {\r\n\t\tString currencyCode = signalThreeLetters();\r\n\t\tif (currencyCode == null){\r\n\t\t\treturn;\r\n\t\t}\r\n System.out.print(\"Enter the exchange rate (value of 1 \" +currencyCode+ \" in NZD): \");\r\n String exchangeRateStr = keyboardInput.getLine();\r\n \r\n double exchangeRate = Double.parseDouble(exchangeRateStr);\r\n if (exchangeRate <= 0) {\r\n \tSystem.out.println(\"Negative exchange rates not permitted. Returning to menu.\");\r\n \tSystem.out.println();\r\n \treturn;\r\n }\r\n System.out.println();\r\n if (currencies == null) {\r\n \tcurrencies = new Currencies();\r\n }\r\n currencies.addCurrency(currencyCode, exchangeRate);\r\n System.out.println(\"Currency \" +currencyCode+ \" with exchange rate \" + exchangeRate + \" added\");\r\n System.out.println();\r\n\t}", "public Currency getCurrency();", "@Override\n public Currency getCurrency() {\n return currency;\n }", "@Override\n public String getDescription() {\n return \"Issue currency\";\n }", "public String getCurrency() {\r\n return currency;\r\n }", "public String toString(){\r\n return \"Depreciating\" + super.toString() + \" rate: \" + String.format(\"%.1f\", rate) + \"%\";\r\n }", "@Override\n public String toString() {\n return \"\" + currency + amount;\n }", "@Override\n public String getDescription() {\n return \"Transfer currency\";\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "private void displayPrice(int number) {\n }", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "protected String getCurrency() {\n return currency;\n }", "private void displayPrice(int number) {\n TextView priceTextView = findViewById(R.id.textPrice);\n// priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n priceTextView.setText(\"KES \" + number);\n }", "String getTradeCurrency();", "public void setRate(int rate) { this.rate = rate; }", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "@Override\n\tpublic String showPrice() {\n\t\treturn \"煎饼的价格是5元 \";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn amount + \" \" + currency; \n\t}", "private void displayPrice(int number){\n TextView priceTV = (TextView) findViewById(R.id.price_tv);\n priceTV.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "public static double getValue(Exchange exchange, String name) {\n\n double rate = -1.0;\n\n switch (name) {\n case \"AUD\":\n rate = exchange.getRates().getAUD();\n break;\n case \"BGN\":\n rate = exchange.getRates().getBGN();\n break;\n case \"BRL\":\n rate = exchange.getRates().getBRL();\n break;\n case \"CAD\":\n rate = exchange.getRates().getCAD();\n break;\n case \"CHF\":\n rate = exchange.getRates().getCHF();\n break;\n case \"CNY\":\n rate = exchange.getRates().getCNY();\n break;\n case \"CZK\":\n rate = exchange.getRates().getCZK();\n break;\n case \"DKK\":\n rate = exchange.getRates().getDKK();\n break;\n case \"GBP\":\n rate = exchange.getRates().getGBP();\n break;\n case \"HKD\":\n rate = exchange.getRates().getHKD();\n break;\n case \"HRK\":\n rate = exchange.getRates().getHRK();\n break;\n case \"HUF\":\n rate = exchange.getRates().getHUF();\n break;\n case \"IDR\":\n rate = exchange.getRates().getIDR();\n break;\n case \"ILS\":\n rate = exchange.getRates().getILS();\n break;\n case \"INR\":\n rate = exchange.getRates().getINR();\n break;\n case \"JPY\":\n rate = exchange.getRates().getJPY();\n break;\n case \"KRW\":\n rate = exchange.getRates().getKRW();\n break;\n case \"MXN\":\n rate = exchange.getRates().getMXN();\n break;\n case \"MYR\":\n rate = exchange.getRates().getMYR();\n break;\n case \"NOK\":\n rate = exchange.getRates().getNOK();\n break;\n case \"NZD\":\n rate = exchange.getRates().getNZD();\n break;\n case \"PHP\":\n rate = exchange.getRates().getPHP();\n break;\n case \"PLN\":\n rate = exchange.getRates().getPLN();\n break;\n case \"RON\":\n rate = exchange.getRates().getRON();\n break;\n case \"RUB\":\n rate = exchange.getRates().getRUB();\n break;\n case \"SEK\":\n rate = exchange.getRates().getSEK();\n break;\n case \"SGD\":\n rate = exchange.getRates().getSGD();\n break;\n case \"THB\":\n rate = exchange.getRates().getTHB();\n break;\n case \"TRY\":\n rate = exchange.getRates().getTRY();\n break;\n case \"ZAR\":\n rate = exchange.getRates().getZAR();\n break;\n case \"EUR\":\n rate = exchange.getRates().getEUR();\n break;\n case \"USD\":\n rate = exchange.getRates().getUSD();\n break;\n default:\n break;\n }\n\n return rate;\n }", "double getRate();", "void setCurrency(Currency currency);", "public BigDecimal getEXCH_RATE() {\r\n return EXCH_RATE;\r\n }", "public interface ICurrencyExchangeService {\n/**\n * Requests the current exchange rate from one currency\n * to another.\n * @param fromCurrency the original Currency\n * @param toCurrency the 'destination' or final Currency\n * @return the currency exchange rate\n */\n\n double requestCurrentRate(String fromCurrency,\n String toCurrency);\n}", "double requestCurrentRate(String fromCurrency,\n String toCurrency);", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "public void setExchrate(BigDecimal exchrate) {\n this.exchrate = exchrate;\n }", "public void setCurrency(Currency usd) {\n\t\t\n\t}", "@Override\n\tpublic void viewPrice() {\n\t\t\n\t}", "public void testGetExchangeRateForCurrency() {\n final String destinationCurrency = \"EUR\";\n final String sourceCurrency = \"GBP\";\n \n final ExchangeRateUtil exchangeRateUtilities =\n new ExchangeRateUtil(true, destinationCurrency);\n exchangeRateUtilities.loadExchangeRatesFromCurrency(sourceCurrency);\n \n final double factor =\n exchangeRateUtilities.getExchangeRateForCurrency(sourceCurrency,\n ExchangeRateType.BUDGET);\n \n assertEquals(\"1.18\", String.valueOf(factor));\n }", "public void setEXCH_RATE(BigDecimal EXCH_RATE) {\r\n this.EXCH_RATE = EXCH_RATE;\r\n }", "public DDbExchangeRate() {\n super(DModConsts.F_EXR);\n initRegistry();\n }", "public float getRate(){\r\n return rate;\r\n }", "private void displayPrice(double number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }", "public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }", "org.adscale.format.opertb.AmountMessage.Amount getExchangeprice();", "public void displayAmount(char r,int t,double s){\n ObjectListNode p=payroll.getFirstNode();\n Employee e;\n r=Character.toUpperCase(r);\n System.out.printf(\"\\nEmployees of %d or more years with a %s salary of %.2f or greater:\\n\",t,r=='H'?\"hourly\":\"weekly\",s);\n pw.printf(\"\\nEmployees of %d or more years with a %s salary of %.2f or greater:\\n\",t,r=='H'?\"hourly\":\"weekly\",s);\n while(p!=null){\n e=(Employee)p.getInfo();\n if(e.getTenure()<t&&e.getRate()==r&&\n s<=(e.getSalary())){\n System.out.printf(\"\\n%s %s %.2f\\n\",e.getLastName(),e.getFirstName(),e.getSalary());\n pw.printf(\"\\n%s %s %.2f\\n\",e.getLastName(),e.getFirstName(),e.getSalary());\n }\n p=p.getNext();\n }\n }", "public Currency getCurrency() {\n return currencyCode;\n }", "public java.lang.String getCurrency() {\n return currency;\n }", "private View createCurrency() {\r\n\t\tTextView t = new TextView(getContext());\r\n\t\tLayoutParams blp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\tblp.leftMargin = 5;\r\n\t\tt.setLayoutParams(blp);\r\n\r\n\t\tif (account.getCurrency().length() > 3) {\r\n\t\t\tt.setText(account.getCurrency().substring(3));\r\n\t\t} else {\r\n\t\t\tt.setText(account.getCurrency());\r\n\t\t}\r\n\t\tt.setTextSize(16);\r\n\t\tTypeface font = CurrencyUtil.currencyFace;\r\n\t\tt.setTypeface(font);\r\n\t\tif (account.getBalance() < 0) {\r\n\t\t\tt.setTextColor(getContext().getResources().getColor(R.color.negative));\r\n\t\t} else {\r\n\t\t\tt.setTextColor(getContext().getResources().getColor(R.color.positive));\r\n\t\t}\r\n\t\treturn t;\r\n\t}", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "public void setRate();", "@PostMapping(\"/exchange\")\n public ResponseEntity<ExchangeResult> getExchangeRate(@RequestBody ExchangeRequest exchangeRequest) {\n\n ExchangeResult result = currencyExchangeService.calculate(exchangeRequest);\n\n\n// 4. do nbp exchange downoloaderprzekazujemy date i walute(wartosci nie bo jąliczymy w serwisie)\n// 5. w nbp exchange downoloader wstzukyjemy rest tempplate\n// 6. majac wynik wracamy do currency exchange servise(typem zwracamyn bedzie obiekt ktory bedzie zawierał rating i error message(typ string))\n// i w momencie jak nie bedzie błedu uzupełniamy rating lub error , dodac boolena ktory nam powie czy jest ok czy nie\n// jak jest ok to wyciagamy stawke rate i dzielimy ją\n// 7. nastepnie mamy wynik\n\n\n return new ResponseEntity<>(result, result.getStatus());\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "public double getRate() {\n return rate;\n }", "public double getRate() {\n return rate;\n }", "public java.lang.String payCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).payCurrency();\n\t}", "public String display(){\r\n\t\tif(this.AWD==true){\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" AWD\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn super.display()+\" \"+model+\" \"+this.price+\"$ SF: \"+this.safetyRating+\" RNG: \" +this.maxRange+\" 2WD\";\r\n\t\t}\r\n \r\n\t}", "public int getRate() {\n return rate_;\n }", "@Override\n public String getCurrency() {\n return currency != null ? currency : App.getContext().getString(R.string.example_currency);\n }", "public void getPrice(){\n System.out.println(\"Price: $\" + price); \n }", "public Integer getRate() {\r\n return rate;\r\n }", "private void updateCardBalanceUI() {\n exactAmount.setText(decimalFormat.format(cardBalance));\n }", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void InterestRate() {\n\t\t\tSystem.out.println(\"9 percent\");\n\t\t}", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance(Locale.getDefault()).format(number));\n\n }", "public String toString()\n\t{\n\t\treturn this.value+\" \"+this.currency;\n\t}", "String getExchangeRates(String currency) throws Exception\n\t{\n\t\tString[] rateSymbols = { \"CAD\", \"HKD\", \"ISK\", \"PHP\", \"DKK\", \"HUF\", \"CZK\", \"GBP\", \"RON\", \"HRK\", \"JPY\", \"THB\",\n\t\t\t\t\"CHF\", \"EUR\", \"TRY\", \"CNY\", \"NOK\", \"NZD\", \"ZAR\", \"USD\", \"MXN\", \"AUD\", };\n\n\t\tString rates = \"\";\n\n\t\tfinal String urlHalf1 = \"https://api.exchangeratesapi.io/latest?base=\";\n\n\t\tString url = urlHalf1 + currency.toUpperCase();\n\n\t\tJsonParser parser = new JsonParser();\n\n\t\tString hitUrl = url;\n\t\tString jsonData = getJsonData(hitUrl);\n\n\t\tJsonElement jsonTree = parser.parse(jsonData);\n\n\t\tif (jsonTree.isJsonObject())\n\t\t{\n\t\t\tJsonObject jObject = jsonTree.getAsJsonObject();\n\n\t\t\tJsonElement rateElement = jObject.get(\"rates\");\n\n\t\t\tif (rateElement.isJsonObject())\n\t\t\t{\n\t\t\t\tJsonObject rateObject = rateElement.getAsJsonObject();\n\n\t\t\t\tfor (int i = 0; i < rateSymbols.length; i++)\n\t\t\t\t{\n\t\t\t\t\tJsonElement currentExchangeElement = rateObject.get(rateSymbols[i]);\n\n\t\t\t\t\trates += rateSymbols[i] + \"=\" + currentExchangeElement.getAsDouble()\n\t\t\t\t\t\t\t+ (i < rateSymbols.length - 1 ? \" \" : \".\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rates;\n\t}", "public CurrencyVO getCurrency() {\n\treturn currency;\n}", "public void setHourly_rate(String hourly_rate) {\r\n TextView rate = (TextView) mView.findViewById(R.id.current_bid_price);\r\n rate.setText(\"$\"+hourly_rate +\"per/hr\");\r\n\r\n }", "public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }", "public CurrencyRenderer() {\n\t\t\tsuper();\n\t\t\tthis.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t}", "public double getExchRate() {\n return _exchRate;\n }", "@Override\n public String toString() {\n String printString;\n if (cents == 0) {\n printString = String.format(\"$%d.00\", dollars);\n } else {\n printString = String.format(\"$%d.%d\", dollars, cents);\n }\n return printString;\n }", "public org.adscale.format.opertb.AmountMessage.Amount getExchangeprice() {\n return exchangeprice_;\n }", "@TargetApi(Build.VERSION_CODES.N)\n private void displayPrice(int number) {\n TextView priceTextView = (TextView)\n findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }", "@Override\n public String get_rates(String betrag, String currency, List<String> targetcurrencies) {\n String api = null;\n try {\n api = new String(Files.readAllBytes(Paths.get(\"src/resources/OfflineData.json\")));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n JSONObject obj = new JSONObject(api);\n ArrayList<String> calculatedrates = new ArrayList<>();\n if (currency.equals(\"EUR\")) {\n for (String targetcurrency : targetcurrencies) {\n float rate = obj.getJSONObject(\"rates\").getFloat(targetcurrency);\n calculatedrates.add((Float.parseFloat(betrag) * rate) + \" \" + targetcurrency + \" (Kurs: \" + rate + \")\");\n }\n } else {\n float currencyrate = obj.getJSONObject(\"rates\").getFloat(currency);\n for (String targetcurrency : targetcurrencies) {\n float rate = obj.getJSONObject(\"rates\").getFloat(targetcurrency);\n calculatedrates.add((Float.parseFloat(betrag) / currencyrate * rate) + \" \" + targetcurrency + \" (Kurs: \" + rate / currencyrate + \")\");\n }\n }\n return Data.super.display(betrag, currency, calculatedrates, obj.get(\"date\").toString());\n }", "public int getRate() {\n return rate_;\n }", "public CurrencyRates() {\n this(DSL.name(\"currency_rates\"), null);\n }", "public double getRate() {\n\t\treturn rate;\n\t}", "private void listCurrencies() {\r\n\t\t// Test whether we already have currencies\r\n\t\tif (currencies == null) {\r\n\t\t\t// No, so complain and return\r\n\t\t\tSystem.out.println(\"There are currently no currencies in the system.\");\r\n\t\t\tSystem.out.println(\"Please add at least one currency.\");\r\n\t\t\tSystem.out.println();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Reset the index into the currencies list\r\n\t\tcurrencies.reset();\r\n\t\tCurrency currency;\r\n\t\t// Output all currencies\r\n\t\twhile ((currency = currencies.next()) != null) {\r\n\t\t\tSystem.out.println(currency.getCode());\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public CoinDisplay getCoinDisplay() {\n\t\treturn cDisplay;\n\t}", "public static String formatR(Currency c) {\r\n return c.twoDecFormat();\r\n }", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "@Override\n public String getDescription() {\n return \"Mint currency\";\n }", "public BigDecimal getExchrate() {\n return exchrate;\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "public void viewBalance() {\n\t\tSystem.out.println(\"This is your current Balance $\" + tuitionBalance);\n\t}", "double getTransRate();", "public String toString() {\n return \"The card has \" + this.balance + \" euros\";\n }", "private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.println(\"Cisco - Share Price: \" + game.cisco.getSharePrice() + \" [\" + game.cisco.top() + \"]\");\n out.println(\"Dell - Share Price: \" + game.dell.getSharePrice() + \" [\" + game.dell.top() + \"]\");\n out.println(\"Ericsson - Share Price: \" + game.ericsson.getSharePrice() + \" [\" + game.ericsson.top() + \"]\");\n\n out.println(\"\\n-PLAYERS-\");\n// System.out.println(playerList.toString());\n for (Player e : playerList) {\n if (e.equals(player)) {\n out.println(e.toString() + \" (you)\");\n } else {\n out.println(e.toString());\n }\n }\n }" ]
[ "0.7035818", "0.67331046", "0.65086424", "0.64577407", "0.64399093", "0.6407972", "0.6407019", "0.6382801", "0.63412", "0.6279151", "0.6266435", "0.62453926", "0.6233482", "0.6229092", "0.62015265", "0.61938256", "0.6189089", "0.6171701", "0.6128131", "0.61231166", "0.611356", "0.60884166", "0.60850036", "0.603043", "0.603043", "0.603043", "0.603043", "0.6027857", "0.601674", "0.5996606", "0.5986922", "0.5984783", "0.59800476", "0.59775156", "0.5972493", "0.5950433", "0.5938803", "0.5938455", "0.5934471", "0.5934263", "0.5915037", "0.5911653", "0.5868188", "0.58655316", "0.5858971", "0.58473", "0.584495", "0.5843691", "0.5812301", "0.57913744", "0.5786309", "0.57708377", "0.5763657", "0.5756981", "0.5755601", "0.57495683", "0.5745095", "0.57401377", "0.5734115", "0.5732826", "0.5722422", "0.5717913", "0.57040143", "0.57040143", "0.5698333", "0.5696734", "0.5683514", "0.5676049", "0.5670078", "0.5645643", "0.5638468", "0.5631431", "0.5631431", "0.56295884", "0.56260777", "0.562459", "0.5621091", "0.5603805", "0.5602122", "0.55998266", "0.5597749", "0.5590828", "0.5589334", "0.5574213", "0.5569298", "0.55530775", "0.55489117", "0.55447036", "0.5529191", "0.55280894", "0.5523579", "0.55231655", "0.5518876", "0.55175537", "0.5516244", "0.55114526", "0.55069655", "0.55068487", "0.55064994", "0.5505594" ]
0.792146
0
Displays the conversion of currency at a chosen amount This is an instance method
private void convertAmount() { System.out.println("Select the currency to convert FROM."); String currencyCodeFrom = signalThreeLetters(); if (currencyCodeFrom == null){ return; } System.out.println("Select the currency to convert TO."); String currencyCodeTo = signalThreeLetters(); if (currencyCodeTo == null){ return; } //needed if-else to check if currencies is null. As currencies.getCurrencyByCode doesn't work if currencies is initially null //also if both currencies are not in the system it will say both currencies are not in the system instead of one of them if (currencies == null){ System.out.println("\"" + currencyCodeFrom +"\" and \""+ currencyCodeTo+ "\" is not on the system. Returning to menu."); return;} else {Currency currencyFrom = currencies.getCurrencyByCode(currencyCodeFrom); Currency currencyTo = currencies.getCurrencyByCode(currencyCodeTo); if (currencyFrom == null & currencyTo == null){ System.out.println("\"" + currencyCodeFrom +"\" and \""+ currencyCodeTo+ "\" is not on the system. Returning to menu."); return;} if (currencyFrom == null) { System.out.println("\"" + currencyCodeFrom + "\" is not on the system. Returning to menu."); return;} if (currencyTo == null) { System.out.println("\"" + currencyCodeTo + "\" is not on the system. Returning to menu."); return; } System.out.println(); System.out.print("How many " + currencyCodeFrom + " would you like to convert to " + currencyCodeTo + "? Amount: "); String amountStr = keyboardInput.getLine(); Amount amount = new Amount(currencyFrom, Double.parseDouble(amountStr)); System.out.println(); System.out.printf("%.2f %s = %.2f %s", amount.getAmount(), amount.getCurrency().getCode(), amount.getAmountIn(currencyTo), currencyTo.getCode()); System.out.println(); //Next line below(line167) is invokes my overloaded method System.out.println(amount.getAmountIn(currencyTo, currencyFrom)); System.out.println(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SkipValidation\n public String currencyView() {\n if ((currency != null) && (currency.getHcmoCurrencyId() != null)) {\n currency = currencyService.getCurrency(currency.getHcmoCurrencyId());\n }\n return SUCCESS;\n }", "private void convert()\n {\n if (choiceBox.getValue().equals(\"US-Dollar\"))\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double dollar = currencyConverter.euroToDollar(euro);\n txtYen.setText(DEC2FORMAT.format(dollar));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n else\n {\n try\n {\n double euro = DEC2FORMAT.parse(txtEuro.getText()).doubleValue();\n double yen = currencyConverter.euroToYen(euro);\n txtYen.setText(DEC2FORMAT.format(yen));\n }\n catch (ParseException e)\n {\n System.out.println(e.getMessage());\n }\n }\n }", "private View createCurrency() {\r\n\t\tTextView t = new TextView(getContext());\r\n\t\tLayoutParams blp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\tblp.leftMargin = 5;\r\n\t\tt.setLayoutParams(blp);\r\n\r\n\t\tif (account.getCurrency().length() > 3) {\r\n\t\t\tt.setText(account.getCurrency().substring(3));\r\n\t\t} else {\r\n\t\t\tt.setText(account.getCurrency());\r\n\t\t}\r\n\t\tt.setTextSize(16);\r\n\t\tTypeface font = CurrencyUtil.currencyFace;\r\n\t\tt.setTypeface(font);\r\n\t\tif (account.getBalance() < 0) {\r\n\t\t\tt.setTextColor(getContext().getResources().getColor(R.color.negative));\r\n\t\t} else {\r\n\t\t\tt.setTextColor(getContext().getResources().getColor(R.color.positive));\r\n\t\t}\r\n\t\treturn t;\r\n\t}", "private void displayPrice(int number) {\n TextView priceTextView = findViewById(R.id.textPrice);\n// priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n priceTextView.setText(\"KES \" + number);\n }", "private void updateCardBalanceUI() {\n exactAmount.setText(decimalFormat.format(cardBalance));\n }", "private void showRate() {\r\n\t\tString currencyCode = signalThreeLetters();\r\n\t\tif (currencyCode == null){\r\n\t\t\treturn;\r\n }\r\n //needed if-else to check if currencies is null. As currencies.getCurrencyByCode doesn't work if currencies is null\r\n if (currencies == null){\r\n \tSystem.out.println(\"There are currently no currencies in the system.\");\r\n \tSystem.out.println();}\r\n \t\r\n else{\r\n Currency currency = currencies.getCurrencyByCode(currencyCode);\r\n if (currency == null) {\r\n\t\t\t// No, so complain and return\r\n\t\t\tSystem.out.println(\"\\\"\" + currencyCode + \"\\\" is is not in the system.\");\r\n\t\t\tSystem.out.println();}\r\n else {\r\n System.out.println(\"Currency \" +currencyCode+ \" has exchange rate \" + currency.getExchangeRate() + \".\");\r\n System.out.println();}\r\n \r\n }\r\n \r\n\t}", "private void displayPrice(int number){\n TextView priceTV = (TextView) findViewById(R.id.price_tv);\n priceTV.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n payment = Float.parseFloat(txtPayment.getText());\n cashChange = String.valueOf(String.format(\"%.02f\", payment - finalTotal) );\n lblChange.setVisible(true);\n lblChange.setText(\"Change \" + \"£ \" + cashChange);\n btnPrint.setVisible(true);\n\n }", "public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}", "public CurrencyPanel() {\n\t\tActionListener listener = new ConvertListener();\n\n\t\tcurrencyCombo = new JComboBox<String>(currencyName);// declares the string type for combo box\n\t\tcurrencyCombo.setToolTipText(\"Select to convert\");// sets tool tips for combo box\n\n\t\tJLabel inputLabel = new JLabel(\"Enter value: in GBP\");\n\n\t\tconvertButton = new JButton(\"Convert\");\n\t\tconvertButton.addActionListener(listener); // convert values when the button is pressed\n\t\tconvertButton.setToolTipText(\"Click to Convert\");// sets tool tips for convert button\n\t\tconvertButton.setBorder(BorderFactory.createLineBorder(new Color(158,215,246)));\n\t\t\n\n\t\tcurrencyResultLabel = new JLabel(\"---\");// stores the result after conversion\n\t\t\n\t\tcurrencyInput = new JTextField(5);// takes the number from the user for conversion\n\t\tcurrencyInput.setToolTipText(\"Enter a number to convert.\");// sets tool tips for test field\n\t\tcurrencyInput.addActionListener(listener);// when return is pressed the action listener is called so the values\n\t\t\t\t\t\t\t\t\t\t\t\t\t// are\n\t\t\t\t\t\t\t\t\t\t\t\t\t// converted\n\t\tcurrencyInput.setBorder(BorderFactory.createLineBorder(new Color(158,215,246)));\n\n\t\t// adds the objects to the panel\n\t\tadd(currencyCombo);\n\t\tadd(inputLabel);\n\t\tadd(currencyInput);\n\t\tadd(convertButton);\n\t\tadd(currencyResultLabel);\n\n\t\t// setting boundaries\n\t\tcurrencyResultLabel.setForeground(Color.red);// changes the color of result label\n\t\tsetPreferredSize(new Dimension(600, 400));\n\t\tsetBackground(Color.LIGHT_GRAY);// adds background color\n\t\tcurrencyCombo.setBounds(50, 50, 150, 30);\n\t\tinputLabel.setBounds(230, 50, 150, 20);\n\t\tcurrencyInput.setBounds(233, 70, 100, 20);\n\t\tconvertButton.setBounds(375, 50, 100, 40);\n\t\tcurrencyResultLabel.setBounds(250, 100, 150, 20);\n\n\t\tsetLayout(null);\n\n\t}", "@Override\n public String getDescription() {\n return \"Transfer currency\";\n }", "private void displayPrice(double number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance(Locale.getDefault()).format(number));\n\n }", "@Override\n public String toString() {\n return \"\" + currency + amount;\n }", "@Override\n public String getDescription() {\n return \"Buy currency\";\n }", "private void displayPrice(int number) {\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = total * amount2;\n String.valueOf(total);\n //displaying what user chose\n JOptionPane.showMessageDialog(null, total + \" seconds \" + nameItem +\" \"+ amount2 );\n }", "public void displayCoins(int cc) {\n\t\tcollectCash.setValue(cc);\n\t}", "@TargetApi(Build.VERSION_CODES.N)\n private void displayPrice(int number) {\n TextView priceTextView = (TextView)\n findViewById(R.id.price_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n\n }", "public String getCurrency() {\n return this.currency;\n }", "@Override\n public String getDescription() {\n return \"Issue currency\";\n }", "public void getCredit(){\n System.out.println(\"Total Credit: \" +\"£\" + getUserMoney());\n }", "private void displayPrice(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(number));\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = total * amount1;\n String.valueOf(amount1);\n String.valueOf(total);\n //displaying what user chose\n JOptionPane.showMessageDialog(null, total + \" seconds \" + nameItem +\" \"+ amount1 );\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = total * amount3;\n String.valueOf(total);\n //displaying what user chose\n JOptionPane.showMessageDialog(null, total + \" seconds \" + nameItem +\" \"+ amount3 );\n }", "private static void displayConversion(double celsius, double fahrenheit) {\n String celsiusOutput = String.format(\"%.2f\", celsius);\n String fahrenheitOutput = String.format(\"%.2f\", fahrenheit);\n System.out.println(\"\\n\" + celsiusOutput + \" degrees Celsius is equal to \" + fahrenheitOutput + \" degrees Fahrenheit.\");\n }", "public void amount() {\n \t\tfloat boxOHamt=boxOH*.65f*48f;\n \t\tSystem.out.printf(boxOH+\" boxes of Oh Henry ($0.65 x 48)= $%4.2f \\n\",boxOHamt);\n \t\tfloat boxCCamt=boxCC*.80f*48f;\n \t\tSystem.out.printf(boxCC+\" boxes of Coffee Crisp ($0.80 x 48)= $%4.2f \\n\", boxCCamt);\n \t\tfloat boxAEamt=boxAE*.60f*48f;\n \t\tSystem.out.printf(boxAE+\" boxes of Aero ($0.60 x 48)= $%4.2f \\n\", boxAEamt);\n \t\tfloat boxSMamt=boxSM*.70f*48f;\n \t\tSystem.out.printf(boxSM+\" boxes of Smarties ($0.70 x 48)= $%4.2f \\n\", boxSMamt);\n \t\tfloat boxCRamt=boxCR*.75f*48f;\n \t\tSystem.out.printf(boxCR+\" boxes of Crunchies ($0.75 x 48)= $%4.2f \\n\",boxCRamt);\n \t\tSystem.out.println(\"----------------------------------------------\");\n \t\t//display the total prices\n \t\tsubtotal=boxOHamt+boxCCamt+boxAEamt+boxSMamt+boxCRamt;\n \t\tSystem.out.printf(\"Sub Total = $%4.2f \\n\", subtotal);\n \t\ttax=subtotal*.07f;\n \t\tSystem.out.printf(\"Tax = $%4.2f \\n\", tax);\n \t\tSystem.out.println(\"==============================================\");\n \t\ttotal=subtotal+tax;\n \t\tSystem.out.printf(\"Amount Due = $%4.2f \\n\", total);\n \t}", "private void displayTotal() {\n Log.d(\"Method\", \"displayTotal()\");\n\n TextView priceTextView = (TextView) findViewById(\n R.id.price_text_view);\n\n priceTextView.setText(NumberFormat.getCurrencyInstance().format(calculateTotal()));\n }", "public void btnEuro (View v) {\n\n convDevise(1,'€');\n\n }", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }", "Currency getCurrency();", "public static void displayCarInsurance(double amount)\n{\n\tamount = CAR_INSURANCE;\n\tSystem.out.println(\"Car Insurance is: \" + CAR_INSURANCE);\n}", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "@Override\n public String getDescription() {\n return \"Sell currency\";\n }", "public static String formatCurrency( double amt ) {\n return formatCurrency( amt, 2 );\n }", "@Override\n\tpublic String toString() {\n\t\treturn amount + \" \" + currency; \n\t}", "@Override\n\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == Activity.RESULT_OK && requestCode == 0) {\n Bundle extras = data.getExtras();\n value = extras.getString(\"value\");\n cost_btn.setText(DecimalFormat.getCurrencyInstance().format(Double.parseDouble(value)));\n }\n }", "public void print(String code){\r\n\t\t\tlong amount = Math.round(currencyAmount);\r\n\t\t\tNumberFormat formatter = new DecimalFormat(\"#0.00\"); \r\n\t\t\tBigDecimal defAmount = BigDecimal.valueOf(defaultCurrencyAmount);\r\n\t\t\tif( amount != 0){\r\n\t\t\t\tSystem.out.println(code + \" \" + amount + (defAmount.compareTo(new BigDecimal(0)) == 0 ? \" (\" + Currencies.DEFAULT_CURRENCY_CODE + \" not defined )\" : \" (\" + Currencies.DEFAULT_CURRENCY_CODE + \" \" + formatter.format(defAmount) + \" )\"));\r\n\t\t\t}\r\n\t\t}", "public void displayTotalCash(int tc) {\n\t\tString stc;\n\n\t\tstc = new String(tc + \" C\");\n\t\ttotalCash.setValue(stc);\n\t}", "void setCurrency(Currency currency);", "@Test\n public void desiredCurNumberConversionUSD(){\n //standard set up\n CurrencyRates one = new CurrencyRates();\n //checks if 2 corresponds to USD\n assertEquals(\"USD\", one.desiredCurNumberConversion(2));\n }", "public ResponseCurrencyConversionBo converCurrency() {\n\n ResponseCurrencyConversionBo responseCurrencyConversionBo = new ResponseCurrencyConversionBo();\n\n try {\n long startTime = System.nanoTime();\n HttpClient client = HttpClientBuilder.create().build();\n String url = myPropertiesReader.getPropertyValue(\"unitconvertersUrl\");\n url = MessageFormat.format(url, requestCurrencyConversionBo.getSourceCountryCurrency(),requestCurrencyConversionBo.getTargetCountryCurrency());\n HttpGet post = new HttpGet(url);\n\n HttpResponse response = client.execute(post);\n if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {\n\n BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\n String finalResult = \"\";\n StringBuffer result = new StringBuffer();\n String line = \"\";\n while ((line = rd.readLine()) != null) {\n result.append(line);\n }\n\n finalResult = result.toString();\n log.info(finalResult);\n String currencyRate = finalResult.substring(finalResult.indexOf(\"<p class=\\\"bigtext\\\">\"),finalResult.lastIndexOf(\"<p class=\\\"bigtext\\\">\"));\n log.info(currencyRate);\n currencyRate = currencyRate.replace(\"<p class=\\\"bigtext\\\">\",\"\").replace(\"</p>\",\"\");\n log.info(currencyRate);\n String[] currencyRateSplitByBR = currencyRate.split(\"<br>\");\n log.info(currencyRateSplitByBR[0]);\n String finalCurrencyRate = currencyRateSplitByBR[0].split(\"=\")[1].replaceAll(\"[a-zA-Z]\", \"\").trim();\n log.info(finalCurrencyRate);\n responseCurrencyConversionBo.setCurrencyRate(finalCurrencyRate);\n }\n } catch (Exception e) {\n e.printStackTrace();\n log.error(e.getMessage());\n }\n\n return responseCurrencyConversionBo;\n }", "public static void displayOutput(double monthlyPayment, double totalPaid, double interestPaid)\r\n {\r\n // Your code goes here ... use cut and paste as much as possible!\r\n DecimalFormat df = new DecimalFormat (\"$#,###,###.00\");\r\n\r\n System.out.println();\r\n System.out.println(\"The monthly payment is \" + df.format (monthlyPayment));\r\n System.out.println(\"The total paid on the loan is \" + df.format (totalPaid));\r\n System.out.println(\"The total interest paid on loan is \" + df.format (interestPaid));\r\n\r\n \r\n }", "public void conversion(double amount, Currency convertTo) {\n\t\tDollar dollar = new Dollar();\n\t\tif(dollar.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Dollar\"+(amount*0.014));\n\t\t}\n\t\tEuro euro= new Euro();\n\t\tif(euro.getClass().getName() == convertTo.getClass().getName()) {\n\t\t\tSystem.out.println(\"Rupee to Euro\"+(amount*0.012));\n\t\t}\n\t}", "@Override\n\tpublic void print() {\n\t\tSystem.out.print(amount + \" \" + currencyFrom + \" to \" + currencyTo + \" is \" + ans);\n\t}", "@Override\n public void onBindViewHolder(CurrencyRecyclerViewAdapter.ViewHolder viewHolder, int position) {\n Currency currency = this.currencies.get(position);\n if (currency.getConvertedValue() > 0) {\n viewHolder.convertedValueTxt.setVisibility(View.VISIBLE);\n viewHolder.convertedValueTxt.setText(activity.getResources().getString(R.string.converted_value_label) + \" \" + currency.getConvertedValue());\n }\n\n viewHolder.codeTxt.setText(String.valueOf(currency.getCode()));\n viewHolder.rateTxt.setText(String.valueOf(currency.getRate()));\n }", "@Override\n public void start(Stage primaryStage) throws Exception{\n AllOtherCurrencies cc = new AllOtherCurrencies();\n Database db = new Database();\n CalcRates calculator = new CalcRates();\n\n\n\n\n\n Label fromLabel = new Label(\"From \");\n Label toLabel = new Label(\"To \");\n Label resultLabel = new Label();\n resultLabel.setText(\"...\");\n Label vyslednaHodnota = new Label(\"výsledná hodnota\");\n Label resultConversionLabel = new Label();\n resultConversionLabel.setText(\"...\");\n resultConversionLabel.setStyle(\"-fx-background-color: black ; \\n\" +\n \"-fx-text-fill: white; \\n \" + \"-fx-font-size: 30px; \");\n\n ComboBox<String> fromCurrencies = new ComboBox<>();\n fromCurrencies.setEditable(false);\n fromCurrencies.getItems().addAll(\"USD\",\"EUR\",\"CZK\",\"GBP\");\n fromCurrencies.setPromptText(\"Currency\");\n fromCurrencies.setPrefWidth(100);\n ComboBox<String> toCurrencies = new ComboBox<>();\n toCurrencies.setEditable(false);\n toCurrencies.getItems().addAll(\"USD\",\"EUR\",\"CZK\",\"GBP\",\"BTC\");\n toCurrencies.setPromptText(\"Currency\");\n toCurrencies.setPrefWidth(100);\n\n TextField from = new TextField();\n from.setPromptText(\"1\");\n from.setPrefWidth(100);\n\n Button calculate = new Button();\n calculate.setText(\"CONVERT\");\n calculate.setPrefWidth(70);\n calculate.setStyle(\"-fx-background-color: green; \\n\" +\n \"-fx-text-fill: white; \");\n calculate.setOnAction(event -> {\n System.out.println(\"say hello :D Converting...\");\n fromCurr = fromCurrencies.getValue();\n toCurr = toCurrencies.getValue();\n Double kolko = Double.parseDouble(from.getText().trim());\n System.out.println(\"kolko: \"+kolko+ \" \"+ fromCurr);\n\n if(fromCurr.equals(\"EUR\") && toCurr.equals(\"BTC\")){\n\n resultLabel.setText(\"Kurz: too much difficult\");\n String btcResult = calculator.calculationBTCfromEUR(kolko);\n resultConversionLabel.setText(btcResult);\n // saving data to MONGO\n db.saveDataFromCalculator(fromCurr,kolko,toCurr,btcResult);\n }else if ((!fromCurr.equals(\"EUR\")) && toCurr.equals(\"BTC\")){\n\n resultConversionLabel.setText(\"Nepodporovaná konverzia\");\n resultConversionLabel.setStyle(\"-fx-background-color: red ; \\n\" +\n \"-fx-text-fill: white; \\n \" + \"-fx-font-size: 15px; \");\n }else {\n try {\n //kurz statement\n resultik = cc.convertorApi(fromCurr,toCurr);\n resultLabel.setText(\"Kurz: \" + resultik.toString());\n\n //result statement\n String vysledok = calculator.calculatorMultiExchange(kolko,fromCurr,toCurr);\n resultConversionLabel.setText(\"=\"+vysledok + \" \"+toCurr);\n System.out.println(\"= \"+vysledok + \" \"+toCurr);\n\n // saving data to MONGO\n db.saveDataFromCalculator(fromCurr,kolko,toCurr,vysledok);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n });\n\n\n\n\n GridPane middle = new GridPane();\n middle.setMinSize(400, 200);\n //middle.setPadding(new Insets(10, 10, 10, 10));\n middle.setVgap(5);\n middle.setHgap(5);\n middle.setAlignment(Pos.CENTER);\n\n\n middle.add(fromLabel, 0, 0);\n middle.add(toLabel, 0, 1);\n middle.add(from, 2, 0);\n\n middle.add(fromCurrencies,1,0);\n middle.add(toCurrencies,1,1);\n\n middle.add(calculate,1,2);\n middle.add(vyslednaHodnota,2,2);\n middle.add(resultLabel,1,4);\n middle.add(resultConversionLabel,2,4);\n\n\n BorderPane BPane = new BorderPane(middle);\n BPane.setTop(new Label(\"CONVERTOOOR 2021\"));\n\n\n primaryStage.setTitle(\"Currency Convertor by Daniel Martinek using free API\");\n primaryStage.setScene(new Scene(BPane, 400, 200));\n primaryStage.show();\n\n }", "public String getCurrency() {\r\n return currency;\r\n }", "public void printCost() {\r\n double cost;\r\n cost = quantity * price;\r\n System.out.printf(\"Total cost = $%.2f\", cost);\r\n }", "@Override\n public String toString() {\n return \"Currency: \" + name + \" - Rate: \" + rate;\n }", "@Override\n\tpublic CurrencyConversionBean getCoversionAmount(Double amount, String fromcurrency, String tocurrency) {\n\t\treturn new CurrencyConversionBean(amount, fromcurrency,tocurrency);\n\t}", "public void display() {\r\n dlgRates.show();\r\n }", "public void viewBalance() {\n\t\tSystem.out.println(\"This is your current Balance $\" + tuitionBalance);\n\t}", "@OnClick(R.id.converter_currency_cv)\n public void chooseCurrency() {\n mDialog = new DialogList(mContext,\n mCurrencyDialogTitle, mListForCurrencyDialog, null,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n mCurrencyShortForm = mMainListForActions.get(position).getCurrency().getShortTitle().toUpperCase();\n mPreferenceManager.setConverterCurrencyShortForm(mCurrencyShortForm);\n mDialog.getDialog().dismiss();\n checkDefaultData();\n setLang();\n }\n });\n ((ImageView) mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done))\n .setImageResource(R.drawable.ic_tr);\n mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done)\n .setBackground(getResources().getDrawable(R.drawable.ic_tr));\n }", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Type the country: \");\n String country = scanner.nextLine();\n\n switch (country) {\n case \"bulgaria\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro = scanner.nextDouble();\n double exchangeRateGBP = 1.96;\n double bulgarianMoney = euro * exchangeRateGBP;\n Locale locale = new Locale(\"en\", \"BG\");\n NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance(locale);\n String output = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro, exchangeRateGBP, currencyFormatter.format(bulgarianMoney));\n System.out.println(output);\n break;\n case \"turkey\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro1 = scanner.nextDouble();\n double exchangeRateTurkishLira = 6.97;\n double turkishMoney = euro1 * exchangeRateTurkishLira;\n Locale locale1 = new Locale(\"en\", \"TR\");\n NumberFormat currencyFormatter1 = NumberFormat.getCurrencyInstance(locale1);\n String output1 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro1, exchangeRateTurkishLira, currencyFormatter1.format(turkishMoney));\n System.out.println(output1);\n break;\n case \"romania\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro2 = scanner.nextDouble();\n double exchangeRateRomanianRon = 4.84;\n double romanianMoney = euro2 * exchangeRateRomanianRon;\n Locale locale2 = new Locale(\"en\", \"RO\");\n NumberFormat currencyFormatter2 = NumberFormat.getCurrencyInstance(locale2);\n String output2 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro2, exchangeRateRomanianRon, currencyFormatter2.format(romanianMoney));\n System.out.println(output2);\n break;\n case \"moldavia\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro3 = scanner.nextDouble();\n double exchangeRateMoldavianLeu = 19.48;\n double moldavianMoney = euro3 * exchangeRateMoldavianLeu;\n Locale locale3 = new Locale(\"en\", \"MD\");\n NumberFormat currencyFormatter3 = NumberFormat.getCurrencyInstance(locale3);\n String output3 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro3, exchangeRateMoldavianLeu, currencyFormatter3.format(moldavianMoney));\n System.out.println(output3);\n break;\n case \"canada\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro4 = scanner.nextDouble();\n double exchangeRateCanadianDollar = 1.55;\n double canadianMoney = euro4 * exchangeRateCanadianDollar;\n Locale locale4 = new Locale(\"en\", \"CA\");\n NumberFormat currencyFormatter4 = NumberFormat.getCurrencyInstance(locale4);\n String output4 = String.format(\" %.2f euro at an exchange rate of %.2f is %s.\", euro4, exchangeRateCanadianDollar, currencyFormatter4.format(canadianMoney));\n System.out.println(output4);\n break;\n case \"usa\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro5 = scanner.nextDouble();\n double exchangeRateUSDollar = 1.09;\n double americanMoney = euro5 * exchangeRateUSDollar;\n Locale locale5 = new Locale(\"en\", \"US\");\n NumberFormat currencyFormatter5 = NumberFormat.getCurrencyInstance(locale5);\n String output5 = String.format(\" %.2f euros at an exchange rate of %.2f is %s.\", euro5, exchangeRateUSDollar, currencyFormatter5.format(americanMoney));\n System.out.println(output5);\n break;\n case \"hungary\":\n System.out.println(\"How many euros are you exchanging?\");\n double euro6 = scanner.nextDouble();\n double exchangeRateHungarianForint = 354.97;\n double hungarianMoney = euro6 * exchangeRateHungarianForint;\n Locale locale6 = new Locale(\"en\", \"HU\");\n NumberFormat currencyFormatter6 = NumberFormat.getCurrencyInstance(locale6);\n String output6 = String.format(\" %.2f euros at an exchange rate of %.2f is %s.\", euro6, exchangeRateHungarianForint, currencyFormatter6.format(hungarianMoney));\n System.out.println(output6);\n break;\n default:\n System.out.println(\"The entered country is not in our list but you can still calculate if you know the exchange rate.\\nWhat is the exchange rate?\");\n double exchangeRate = scanner.nextDouble();\n System.out.println(\"How many euros are you exchanging?\");\n double euro7 = scanner.nextDouble();\n double exchangedMoney = euro7 * exchangeRate;\n String output7 = String.format(\" %.2f euros at an exchange rate of %.2f is %.2f.\", euro7, exchangeRate, exchangedMoney);\n System.out.println(output7);\n }\n }", "private String currencyFormat(BigDecimal amount) {\n return NumberFormat.getCurrencyInstance(getLocalCurrency().getLocale()).format(amount);\n }", "private void addCurrency() {\r\n\t\tString currencyCode = signalThreeLetters();\r\n\t\tif (currencyCode == null){\r\n\t\t\treturn;\r\n\t\t}\r\n System.out.print(\"Enter the exchange rate (value of 1 \" +currencyCode+ \" in NZD): \");\r\n String exchangeRateStr = keyboardInput.getLine();\r\n \r\n double exchangeRate = Double.parseDouble(exchangeRateStr);\r\n if (exchangeRate <= 0) {\r\n \tSystem.out.println(\"Negative exchange rates not permitted. Returning to menu.\");\r\n \tSystem.out.println();\r\n \treturn;\r\n }\r\n System.out.println();\r\n if (currencies == null) {\r\n \tcurrencies = new Currencies();\r\n }\r\n currencies.addCurrency(currencyCode, exchangeRate);\r\n System.out.println(\"Currency \" +currencyCode+ \" with exchange rate \" + exchangeRate + \" added\");\r\n System.out.println();\r\n\t}", "public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }", "public void setCurrency(Currency usd) {\n\t\t\n\t}", "private void display(float newConvertedTemperature) {\n\t\tString unit = isC_to_F_selected? \"F\" : \"C\";\n\n\n\t\t//System.out.println(\"The new temperature is: \"+ newConvertedTemperature +\" \" + unit );\n\t\t//but we have to show an alert box\n\t\tAlert alert = new Alert(Alert.AlertType.INFORMATION);\n\t\talert.setTitle(\"Result\");\n\t\talert.setContentText(\"The new temperature is: \"+ newConvertedTemperature +\" \" + unit);\n\t\talert.show();\n\t}", "public String toString() {\n return \"$\"+getDollars() +\".\"+ getCents();\n }", "String getTradeCurrency();", "@Override\n public String toString() {\n String printString;\n if (cents == 0) {\n printString = String.format(\"$%d.00\", dollars);\n } else {\n printString = String.format(\"$%d.%d\", dollars, cents);\n }\n return printString;\n }", "public Currency getCurrency();", "public Debit_Money() {\n initComponents();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null,\"El precio a pagar por el alquiler de las peliculas es: \" + totalc + \"€\");\n\t\t\t}", "public static String getDisplayCurrencyFormatSimple(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\"#.##\");\n\t\tformat.setMaximumFractionDigits(2);\n\n\t\treturn format.format(val);\n\n\t}", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "protected String getCurrency() {\n return currency;\n }", "protected abstract void selectedCurrencyChanged();", "private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }", "String format(double balance);", "public static String getDisplayCurrencyFormat(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.##\");\n\t\tformat.setMaximumFractionDigits(2);\n\n\t\treturn format.format(val);\n\n\t}", "@Override\n public String getDescription() {\n return \"Mint currency\";\n }", "public static void main(String[] args){\n NumberFormat currency = NumberFormat.getCurrencyInstance();\n String result =currency.format(123456.789);//A method for formatting values\n System.out.println(result);\n }", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "@Override\n\tpublic String showPrice() {\n\t\treturn \"煎饼的价格是5元 \";\n\t}", "private void updateBalanceLabel() {\n balanceLabel.setText(String.format(\"<html><b>Balance</b><br>$%.2f</html>\", balance));\n }", "public void calculateAndDisplay() {\n fromUnitString = fromUnitEditText.getText().toString();\r\n if (fromUnitString.equals(\"\")) {\r\n fromValue = 0;\r\n }\r\n else {\r\n fromValue = Float.parseFloat(fromUnitString);\r\n }\r\n\r\n // calculate the \"to\" value\r\n toValue = fromValue * ratio;\r\n\r\n // display the results with formatting\r\n NumberFormat number = NumberFormat.getNumberInstance();\r\n number.setMaximumFractionDigits(2);\r\n number.setMinimumFractionDigits(2);\r\n toUnitTextView.setText(number.format(toValue));\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tEditText getAmount = (EditText) findViewById(com.prageeth.con.R.id.editText3);\n\t\t\t\tgetAmount.setTypeface(tf);\n\t\t\t\tString aa = getAmount.getText().toString();\n\t\t\t\tif (getAmount.getText().toString().length() < 1) {\n\t\t\t\t\tToast.makeText(main, \"ドル量を入力してください\", Toast.LENGTH_LONG)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t} else {\n\n\t\t\t\t\tTextView tsetRae = (TextView) findViewById(com.prageeth.con.R.id.textView3);\n\t\t\t\t\tString ss = tsetRae.getText().toString();\n\n\t\t\t\t\tTextView tsetRaed = (TextView) findViewById(com.prageeth.con.R.id.textView2);\n\t\t\t\t\tString sss = tsetRaed.getText().toString();\n\n\t\t\t\t\tdouble i = Double.parseDouble(aa);\n\t\t\t\t\tdouble rate = Double.parseDouble(ss);\n\t\t\t\t\tdouble totals = i * rate;\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"#\");\n\t\t\t\t\tdf.setMaximumFractionDigits(2);\n\n\t\t\t\t\t// TextView c = (TextView)\n\t\t\t\t\t// findViewById(com.prageeth.con.R.id.textView5);\n\t\t\t\t\t// c.setText(String.valueOf(df.format(totals))+\" \"+sss);\n\t\t\t\t\t// c.setTypeface(tf);\n\n\t\t\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(main)\n\t\t\t\t\t\t\t.create(); // Read Update\n\t\t\t\t\talertDialog.setTitle(\"USD:\" + aa + \"=\");\n\t\t\t\t\talertDialog.setMessage(df.format(totals) + \" \" + sss);\n\n\t\t\t\t\talertDialog.setButton(\"OK\",\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t// here you can add functions\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\talertDialog.show();\n\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void show(int cid, double money) {\n\t\tob.show(cid, money);\n\t}", "public Currency(String country,double value, double valueUSD){\n this.country = country;\n this.value = value;\n this.valueUSD = valueUSD;\n}", "@Test\n public void desiredCurNumberConversionEUR(){\n CurrencyRates one = new CurrencyRates();\n assertEquals(\"EUR\", one.desiredCurNumberConversion(4));\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "void CeltoFah() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + celcius + \" degrees fahrenheit.\");\t// prints out converted degrees, with celcius = converioin.celcius\r\n\t}", "public void Display(){\n System.out.println(\"************************************************************\");\n System.out.println(\"Customer Account Number: \"+getAccountNo());\n System.out.println(\"Customer Account Id: \"+getAccountId());\n System.out.println(\"Customer Type: \"+getAccountType());\n System.out.println(\"Customer Balance: $\"+getAccountBal());\n System.out.println(\"Thank you for banking with us!\");\n System.out.println(\"************************************************************\");\n }", "public static void main(String[] args) {\n int cents = new Scanner(System.in).nextInt();\n double convertedCents = cents*131;\n int wholeDollars = (int) (convertedCents/100);\n int wholeCents = (int) (convertedCents%100);\n\n System.out.printf(\"%03d.%03d\",wholeDollars, wholeCents);\n\n }", "public String conversion() {\n try {\n transactionFailure = null;\n amountConverted = converterFacade.conversion(fromCurrencyCode,\n toCurrencyCode, amountToConvert);\n } catch (Exception e) {\n handleException(e);\n }\n return jsf22Bugfix();\n }", "public String getResult() {\n\t\tDecimalFormat df = new DecimalFormat(\"##.00\");\n\t\tswitch(currentUnit) {\n\t\t\tcase 0:\n\t\t\t\tresult = \"<html>\"+df.format(celsius)+\"\\u00B0C = \"+df.format(fahrenheit)+\"\\u00B0F<br />\"\n\t\t\t\t\t+df.format(celsius)+\"\\u00B0C = \"+df.format(kelvin)+\"\\u00B0K</html\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tresult = \"<html>\"+df.format(fahrenheit)+\"\\u00B0F = \"+df.format(celsius)+\"\\u00B0C<br />\"\n\t\t\t\t\t\t+df.format(fahrenheit)+\"\\u00B0F = \"+df.format(kelvin)+\"\\u00B0K</html\";\n\t\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tresult = \"<html>\"+df.format(kelvin)+\"\\u00B0K = \"+df.format(celsius)+\"\\u00B0C<br />\"\n\t\t\t\t\t\t+df.format(kelvin)+\"\\u00B0K = \"+df.format(fahrenheit)+\"\\u00B0F</html\";\n\t\t\t\t\tbreak;\t\n\t\t}\n\t\treturn result;\n\t}", "public static void changeCurrencyFromBottom() {\n click(CHANGE_CURRENCY_BOTTOM_BUTTON);\n }", "public static String formatR(Currency c) {\r\n return c.twoDecFormat();\r\n }", "private String formatUsNumber(Editable text) {\n\t\tStringBuilder cashAmountBuilder = null;\n\t\tString USCurrencyFormat = text.toString();\n//\t\tif (!text.toString().matches(\"^\\\\$(\\\\d{1,3}(\\\\,\\\\d{3})*|(\\\\d+))(\\\\.\\\\d{2})?$\")) { \n\t\t\tString userInput = \"\" + text.toString().replaceAll(\"[^\\\\d]\", \"\");\n\t\t\tcashAmountBuilder = new StringBuilder(userInput);\n\n\t\t\twhile (cashAmountBuilder.length() > 3 && cashAmountBuilder.charAt(0) == '0') {\n\t\t\t\tcashAmountBuilder.deleteCharAt(0);\n\t\t\t}\n\t\t\twhile (cashAmountBuilder.length() < 3) {\n\t\t\t\tcashAmountBuilder.insert(0, '0');\n\t\t\t}\n\t\t\tcashAmountBuilder.insert(cashAmountBuilder.length() - 2, '.');\n\t\t\tUSCurrencyFormat = cashAmountBuilder.toString();\n\t\t\tUSCurrencyFormat = Util.getdoubleUSPriceFormat(Double.parseDouble(USCurrencyFormat));\n\n//\t\t}\n\t\tif(\"0.00\".equals(USCurrencyFormat)){\n\t\t\treturn \"\";\n\t\t}\n\t\tif(!USCurrencyFormat.contains(\"$\"))\n\t\t\treturn \"$\"+USCurrencyFormat;\n\t\treturn USCurrencyFormat;\n\t}", "public static String getDisplayCurrencyFormatTwoDecimalFixedAccounting(double val) {\n\n\t\tjava.text.NumberFormat format = new java.text.DecimalFormat(\n\t\t\t\t\"###,###.#\");\n\t\tformat.setMaximumFractionDigits(2);\n\t\tformat.setMinimumFractionDigits(2);\n\t\t\n\t\tif (val < 0){\n\t\t\treturn \"(\"+ format.format(val * -1) + \")\";\t\n\t\t}else{\n\t\t\treturn format.format(val);\t\n\t\t}\n\n\t}", "public void tpsTax() {\n TextView tpsView = findViewById(R.id.checkoutPage_TPStaxValue);\n tpsTaxTotal = beforeTaxTotal * 0.05;\n tpsView.setText(String.format(\"$%.2f\", tpsTaxTotal));\n }" ]
[ "0.6991927", "0.6984552", "0.65963644", "0.65927553", "0.6568271", "0.6535936", "0.65208447", "0.6496852", "0.64752305", "0.6397534", "0.63716125", "0.6352744", "0.6325755", "0.6261209", "0.62424153", "0.62196034", "0.61936784", "0.61377937", "0.61183274", "0.6117916", "0.6107729", "0.60917664", "0.6090998", "0.6089173", "0.6085939", "0.60786945", "0.6076635", "0.607629", "0.605481", "0.60517335", "0.60432225", "0.6043156", "0.60370564", "0.6007828", "0.60052323", "0.59999734", "0.5994264", "0.5982257", "0.5980972", "0.597776", "0.592516", "0.59246945", "0.59168607", "0.59029377", "0.58954835", "0.5892728", "0.588727", "0.58865535", "0.5885237", "0.58785224", "0.5875737", "0.5865328", "0.58608156", "0.5858685", "0.58581966", "0.5843795", "0.5840807", "0.5836041", "0.5827028", "0.58237755", "0.58199537", "0.58198756", "0.5795621", "0.57924175", "0.5786683", "0.57788974", "0.5777774", "0.57772195", "0.57753557", "0.57691044", "0.57621473", "0.57621473", "0.57621473", "0.57621473", "0.57488924", "0.57460123", "0.57403845", "0.57370126", "0.57201624", "0.5717371", "0.5704577", "0.5703689", "0.5701051", "0.5693114", "0.5692016", "0.5675845", "0.56736124", "0.5656853", "0.5656143", "0.5648744", "0.56450665", "0.5642426", "0.5635119", "0.563492", "0.56251246", "0.5625056", "0.5606856", "0.5602306", "0.5600115", "0.55946803" ]
0.6413816
9
Returns a list of view files whose relative path from a view directory equals the supplied relative path.
static List<PsiFile> findViewFiles(String relativePath, Project project) { PsiManager psiManager = PsiManager.getInstance(project); // If no extension is specified, it's a PHP file relativePath = PhpExtensionUtil.addIfMissing(relativePath); List<PsiFile> viewFiles = new ArrayList<>(); for (PsiFileSystemItem fileSystemItem : getViewDirectories(project)) { VirtualFile viewDirectory = fileSystemItem.getVirtualFile(); VirtualFile viewFile = viewDirectory.findFileByRelativePath(relativePath); if (viewFile != null && !viewFile.isDirectory()) { PsiFile psiFile = psiManager.findFile(viewFile); if (psiFile != null) { viewFiles.add(psiFile); } } } return viewFiles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List listFiles(String path);", "List<Path> getFiles();", "List<IDirectory> getSourcePath();", "public List<Path> getAllPaths();", "java.util.List<java.lang.String>\n getSourcepathList();", "public static List<String> getFiles(String path) {\n\t try {\n\t\t\tURI uri = getResource(path).toURI();\n\t\t String absPath = getResource(\"..\").getPath();\n\t\t\tPath myPath;\n\t\t\tif (uri.getScheme().equals(\"jar\")) {\n\t\t\t FileSystem fileSystem = FileSystems.newFileSystem(uri, Collections.<String, Object>emptyMap());\n\t\t\t myPath = fileSystem.getPath(path);\n\t\t\t \n\t\t\t} else {\n\t\t\t myPath = Paths.get(uri);\n\t\t\t}\n\t\t\t\n\t\t\t List<String> l = Files.walk(myPath)\t\n\t\t\t \t\t\t\t\t .map(filePath -> pathAbs2Rel(absPath, filePath))\n\t\t\t \t .collect(Collectors.toList());\n\t\t\t return l;\n\t\t} catch (URISyntaxException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return null;\n\t \n\t}", "private Stream<File> getFileStreamFromView() {\n // Copy the values out of the UI and into a temp list, so that the UI\n // can be updated without stomping on the grabbed values.\n final List<DirectoryListItem> items = new ArrayList<>(gridView.getItems());\n\n return items.stream().map(DirectoryListItem::getFile);\n }", "java.util.List<java.lang.String>\n getSourcepathList();", "private List<DMTFile> listFilesRecursive(String path) {\n\t\tList<DMTFile> list = new ArrayList<DMTFile>();\n\t\tDMTFile file = getFile(path); //Get the real file\n\t\t\n\t\tif (null != file ){ //It checks if the file exists\n\t\t\tif (! file.isDirectory()){\n\t\t\t\tlist.add(file);\n\t\t\t} else {\n\t\t\t\tDMTFile[] files = listFilesWithoutConsoleMessage(file.getPath());\n\t\t\t\tfor (int x = 0; x < files.length; x++) {\n\t\t\t\t\tDMTFile childFile = files[x];\t\t \n\t\t\t\t\tif (childFile.isDirectory()){\n\t\t\t\t\t\tlist.addAll(listFilesRecursive(childFile.getPath()));\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.add(childFile);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "List<String> getListPaths();", "List<String> getFiles(String path) throws IOException;", "static void viewFiles()\r\n\t {\n\t\t File directoryPath = new File(\"D:\\\\java_project\");\r\n\t File filesList[] = directoryPath.listFiles();\r\n System.out.println(\"List of files and directories in the specified directory:\");\r\n\t for(File file : filesList) \r\n\t {\r\n\t System.out.println(\"File name: \"+file.getName());\r\n\t System.out.println(\"File path: \"+file.getAbsolutePath());\r\n\t System.out.println(\"Size :\"+file.getTotalSpace());\r\n\t System.out.println(\"last time file is modified :\"+new Date(file.lastModified()));\r\n System.out.println(\" \");\r\n\t }\r\n }", "public File[] showFiles(String filePath) throws FileNotFoundException {\r\n File folder = new File(filePath);\r\n File[] listOfFiles = folder.listFiles();\r\n if (listOfFiles == null) {\r\n throw new FileNotFoundException(\"No files found in directory\");\r\n }\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n if (listOfFiles[i].isFile()) {\r\n System.out.println(\"(\"+i+\") \" + listOfFiles[i].getName());\r\n }\r\n }\r\n return listOfFiles;\r\n }", "AntiIterator<FsPath> listFilesAndDirectories(FsPath dir);", "public List<Resource> getFileLocations() throws IOException;", "protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}", "java.util.List<java.lang.String>\n getPathsList();", "private List<String> getFiles(String path){\n workDir = Environment.getExternalStorageDirectory().getAbsolutePath() + path;\n List<String> files = new ArrayList<String>();\n File file = new File(workDir);\n File[] fs = file.listFiles();\n for(File f:fs)\n if (f.isFile())\n files.add(String.valueOf(f).substring(workDir.length()));\n return files;\n }", "public void listMyFiles(){\n\t\tpeer.removeFiles();\n\t\tint count = localModel.getRowCount();\n\t\tif (count > 0){\n\t\t\tfor (int i = count-1; i >= 0; i--){\n\t\t\t\tlocalModel.removeRow(i);\n\t\t\t}\n\t\t}\n\t\tFile folder = fileChooser.getSelectedFile();\n\t\tpeer.setFolder(folder.getAbsolutePath());\n shareFolder = folder.getAbsolutePath();\n\t\tconsole(\"\\\"\" + folder.getAbsolutePath() + \"\\\" set as Shared Directory.\");\n\t\tmyFiles = folder.listFiles();\n\t\tfor(File file : myFiles){\n\t\t\tlocalModel.addRow(new Object[]{file.getName(),file.length()});\n\t\t\ttry {\n\t\t\t\tpeer.addFile(file.getName(),file.length());\n\t\t\t} catch (UnknownHostException e1) {e1.printStackTrace();}\n\t\t}\n\t}", "File[] getFilesInFolder(String path) {\n return new File(path).listFiles();\n }", "private List<Path> listSourceFiles(Path dir) throws IOException {\n\t\tList<Path> result = new ArrayList<>();\n\t\ttry (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, \"*.json\")) {\n\t\t\tfor (Path entry: stream) {\n\t\t\t\tresult.add(entry);\n\t\t\t}\n\t\t} catch (DirectoryIteratorException ex) {\n\t\t\t// I/O error encounted during the iteration, the cause is an IOException\n\t\t\tthrow ex.getCause();\n\t\t}\n\t\treturn result;\n\t}", "private static String[] findFiles(String dirpath) {\n\t\tString fileSeparator = System.getProperty(\"file.separator\");\n\t\tVector<String> fileListVector = new Vector<String>();\n\t\tFile targetDir = null;\n\t\ttry {\n\t\t\ttargetDir = new File(dirpath);\n\t\t\tif (targetDir.isDirectory())\n\t\t\t\tfor (String val : targetDir.list(new JavaFilter()))\n\t\t\t\t\tfileListVector.add(dirpath + fileSeparator + val);\n\t\t} catch(Exception e) {\n\t\t\tlogger.error(e);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\tString fileList = \"\";\n\t\tfor (String filename : fileListVector) {\n\t\t\tString basename = filename.substring(filename.lastIndexOf(fileSeparator) + 1);\n\t\t\tfileList += \"\\t\" + basename;\n\t\t}\n\t\tif (fileList.equals(\"\")) \n\t\t\tfileList += \"none.\";\n\t\tlogger.trace(\"Unpackaged source files found in dir \" + dirpath + fileSeparator + \": \" + fileList);\n\t\t\n\t\treturn (String[]) fileListVector.toArray(new String[fileListVector.size()]);\n\t}", "public void showDirPath(String[] list);", "public List<String> getFiles();", "List<File> list(String directory) throws FindException;", "public String resolvePath();", "public String getRelativePath();", "java.lang.String getPaths(int index);", "private File[] getFilesInDirectory() {\n\t\t//Show Directory Dialog\n\t\tDirectoryChooser dc = new DirectoryChooser();\n\t\tdc.setTitle(\"Select Menu File Directory\");\n\t\tString folderPath = dc.showDialog(menuItemImport.getParentPopup().getScene().getWindow()).toString();\n\t\t\n\t\t//Update Folder location text\n\t\ttxtFolderLocation.setText(\"Import Folder: \" + folderPath);\n\t\t//Now return a list of all the files in the directory\n\t\tFile targetFolder = new File(folderPath);\n\t\t\n\t\treturn targetFolder.listFiles(); //TODO: This returns the names of ALL files in a dir, including subfolders\n\t}", "public List <WebFile> getChildFiles()\n{\n if(_type==FileType.SOURCE_DIR) return getSourceDirChildFiles();\n return _file.getFiles();\n}", "private List<String> getNotComputedFilesPath(String absolutePath) {\r\n\t\tList<String> res = new ArrayList<String>();\r\n\t\tFile f = new File(absolutePath);\r\n\t\tString[] list = f.list();\r\n\t\t\r\n\t\tfor(String s : list) {\r\n\t\t\tString elemPath = AppUtil.createFilePath(new String[]{absolutePath, s});\r\n\t\t\tif(!s.contains(COMPUTED_FILES_FOLDER_NM)) {\r\n\t\t\t\tFile f2 = new File(elemPath);\r\n\t\t\t\tif(f2.isDirectory()) {\r\n\t\t\t\t\tres.addAll(getNotComputedFilesPath(elemPath));\r\n\t\t\t\t} else if(f2.isFile()) {\r\n\t\t\t\t\tres.add(elemPath);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}", "List<String> getFiles(String path, String searchPattern) throws IOException;", "@Override\n public java.util.List<Path> getSourcePathList() {\n return sourcePath_;\n }", "public java.util.List<Path> getSourcePathList() {\n if (sourcePathBuilder_ == null) {\n return java.util.Collections.unmodifiableList(sourcePath_);\n } else {\n return sourcePathBuilder_.getMessageList();\n }\n }", "public List<String> paths(String path) throws SystemException;", "private void update() {\r\n \tthis.pathTextView.setText(this.currentPath);\r\n \tthis.fileListAdapter.clear();\r\n \tthis.fileListAdapter.add(\"[\"+getResources().getString(R.string.go_home)+\"]\");\r\n \tif (!this.currentPath.equals(\"/\"))\r\n \t\tthis.fileListAdapter.add(\"..\");\r\n \t\r\n \tFile files[] = new File(this.currentPath).listFiles(this.fileFilter);\r\n\r\n \tif (files != null) {\r\n\t \ttry {\r\n\t\t \tArrays.sort(files, new Comparator<File>() {\r\n\t\t \t\tpublic int compare(File f1, File f2) {\r\n\t\t \t\t\tif (f1 == null) throw new RuntimeException(\"f1 is null inside sort\");\r\n\t\t \t\t\tif (f2 == null) throw new RuntimeException(\"f2 is null inside sort\");\r\n\t\t \t\t\ttry {\r\n\t\t \t\t\t\tif (dirsFirst && f1.isDirectory() != f2.isDirectory()) {\r\n\t\t \t\t\t\t\tif (f1.isDirectory())\r\n\t\t \t\t\t\t\t\treturn -1;\r\n\t\t \t\t\t\t\telse\r\n\t\t \t\t\t\t\t\treturn 1;\r\n\t\t \t\t\t\t}\r\n\t\t \t\t\t\treturn f1.getName().toLowerCase().compareTo(f2.getName().toLowerCase());\r\n\t\t \t\t\t} catch (NullPointerException e) {\r\n\t\t \t\t\t\tthrow new RuntimeException(\"failed to compare \" + f1 + \" and \" + f2, e);\r\n\t\t \t\t\t}\r\n\t\t\t\t\t}\r\n\t\t \t});\r\n\t \t} catch (NullPointerException e) {\r\n\t \t\tthrow new RuntimeException(\"failed to sort file list \" + files + \" for path \" + this.currentPath, e);\r\n\t \t}\r\n\t \t\r\n\t \tfor(int i = 0; i < files.length; ++i) this.fileListAdapter.add(files[i].getName());\r\n \t}\r\n \t\r\n \tif (isHome(currentPath)) {\r\n \t\trecent = new Recent(this);\r\n \t\t\r\n \tfor (int i = 0; i < recent.size(); i++) {\r\n \t\tthis.fileListAdapter.insert(\"\"+(i+1)+\": \"+(new File(recent.get(i))).getName(), \r\n \t\t\t\tRECENT_START+i);\r\n \t}\r\n \t}\r\n \telse {\r\n \t\trecent = null;\r\n \t}\r\n \t\r\n \tthis.filesListView.setSelection(0);\r\n }", "List<ViewResourcesMapping> get(String viewResourceId) throws Exception;", "public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}", "public abstract List<String> path();", "public List<File> getFiles();", "public ArrayList<String> getDirFiles(String filePath){\n ArrayList<String> results = new ArrayList<String>();\n File[] files = new File(filePath).listFiles();\n\n for (File file : files){\n if (file.isFile()) {\n results.add(file.getName());\n }\n }\n return results;\n }", "public Map<String,List<RevisionFile>> getSourceFiles();", "private static void inferPathsFromSourceDir(File sourceDir,\n Properties props) {\n String pidFiles = \"\";\n String xsltFiles = \"\";\n for (File file : sourceDir.listFiles()) {\n if (file.getName().endsWith(\".xslt\")\n || file.getName().endsWith(\".xsl\")) {\n String path = file.getPath();\n int i = path.lastIndexOf(\".\");\n String pathPrefix = path.substring(0, i);\n File pidFile = getPidFile(pathPrefix);\n if (pidFile != null) {\n if (xsltFiles.length() > 0) {\n xsltFiles += \" \";\n }\n xsltFiles += path;\n if (pidFiles.length() > 0) {\n pidFiles += \" \";\n }\n pidFiles += pidFile.getPath();\n }\n }\n }\n props.setProperty(\"xsltFiles\", xsltFiles);\n props.setProperty(\"pidFiles\", pidFiles);\n }", "Path getRequestListFilePath();", "private void traverseFile(File file, String relativePath)\n {\n if(!file.isDirectory())\n {\n currentInfo.add(relativePath);\n return;\n }\n\n\n File[] files = file.listFiles();\n\n //currently we do not send an empty file...\n if(files == null)return;\n\n for (int i = 0;i< files.length;++i)\n {\n traverseFile(files[i], relativePath + \"/\" + files[i].getName() );\n }\n\n }", "private static File[] filesMiner(String path) {\n try {\n File directoryPath = new File(path);\n FileFilter onlyFile = new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isFile();\n }\n }; // filter directories\n return directoryPath.listFiles(onlyFile);\n } catch (Exception e) {\n System.err.println(UNKNOWN_ERROR_WHILE_ACCESSING_FILES);\n return null;\n }\n\n }", "private ArrayList<String> getTrackPathList() {\n String MEDIA_TRACKS_PATH = \"CuraContents/tracks\";\n File fileTracks = new File(Environment.getExternalStorageDirectory(), MEDIA_TRACKS_PATH);\n if (fileTracks.isDirectory()) {\n File[] listTracksFile = fileTracks.listFiles();\n ArrayList<String> trackFilesPathList = new ArrayList<>();\n for (File file1 : listTracksFile) {\n trackFilesPathList.add(file1.getAbsolutePath());\n }\n return trackFilesPathList;\n }\n return null;\n }", "public void listFiles(String path) {\r\n String files;\r\n File folder = new File(path);\r\n File[] listOfFiles = folder.listFiles();\r\n\r\n for (int i = 0; i < listOfFiles.length; i++) {\r\n\r\n if (listOfFiles[i].isFile()) {\r\n files = listOfFiles[i].getName();\r\n if (files.endsWith(\".png\") || files.endsWith(\".PNG\")\r\n || files.endsWith(\".gif\") || files.endsWith(\".GIF\")) {\r\n //System.out.println(files);\r\n pathList.add(path+\"\\\\\");\r\n fileList.add(files);\r\n }\r\n }\r\n \r\n else {\r\n listFiles(path+\"\\\\\"+listOfFiles[i].getName());\r\n }\r\n }\r\n }", "Enumeration<String> getEntryPaths(String path) throws IOException;", "public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }", "private DirectoryTreeNode getItemGivenRelativePath(IDirectory parentDirectory,\r\n String relativePath) {\r\n // Get the full path of the parentDirectory\r\n String pathOfParent = this.getPath(parentDirectory);\r\n // Initialize fullPath with the parent directory's path\r\n String fullPath = pathOfParent;\r\n // If the parent directory is the root directory of the directory tree\r\n if (parentDirectory.equals(this.getRootDirectory())) {\r\n // Add the relative path to the fullPath\r\n fullPath += relativePath;\r\n // If the parent directory is not the root directory\r\n } else {\r\n // Add the relative path to full path preceded by a / to get proper format\r\n // of the path\r\n fullPath += \"/\" + relativePath;\r\n }\r\n // Return the file using the full path\r\n return this.getItemGivenFullPath(fullPath);\r\n }", "public ArrayList<String> getSimilarFilePaths(String file_name) {\n\n\t\t//\n\t\t// read directories\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_PATH }, FILE_FIELD_PATH + \" LIKE ?\",\n\t\t\t\tnew String[] { \"%/\" + file_name }, null, null, null);\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result set\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// return result list\n\t\t//\n\t\treturn list;\n\t}", "@Override\n public List<GEMFile> getLocalFiles(String directory) {\n File dir = new File(directory);\n List<GEMFile> resultList = Lists.newArrayList();\n File[] fList = dir.listFiles();\n if (fList != null) {\n for (File file : fList) {\n if (file.isFile()) {\n resultList.add(new GEMFile(file.getName(), file.getParent()));\n } else {\n resultList.addAll(getLocalFiles(file.getAbsolutePath()));\n }\n }\n gemFileState.put(STATE_SYNC_DIRECTORY, directory);\n }\n return resultList;\n }", "public com.google.protobuf.ProtocolStringList\n getSourcepathList() {\n return sourcepath_.getUnmodifiableView();\n }", "public List<AttachFile> getFiles(int no) {\n\t\treturn sqlSession.selectList(\"org.zerock.mapper.agentMapper.viewFiles\", no);\n\t}", "java.util.List<MateriliazedView>\n getViewsList();", "public final List<File> mo14817d() {\n ArrayList arrayList = new ArrayList();\n try {\n if (mo14820g().exists()) {\n if (mo14820g().listFiles() != null) {\n for (File file : mo14820g().listFiles()) {\n if (!file.getCanonicalPath().equals(mo14819f().getCanonicalPath())) {\n arrayList.add(file);\n }\n }\n return arrayList;\n }\n }\n return arrayList;\n } catch (IOException e) {\n f6563c.mo14884b(6, \"Could not process directory while scanning installed packs. %s\", new Object[]{e});\n }\n }", "List<String> getFiles(String path, String searchPattern, String searchOption) throws IOException;", "private void initListView() {\n lv.setAdapter(new PathListViewAdapter(getActivity(), R.layout.file_list_row, values));\n lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (new File(values.get(position).getPath()).isDirectory()) {\n FileGridViewFragment fragment = new FileGridViewFragment();\n Bundle b = new Bundle();\n b.putString(\"dir\", values.get(position).getPath());\n b.putString(\"filetype\",getArguments().getString(\"filetype\"));\n fragment.setArguments(b);\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(contentId, fragment)\n .addToBackStack(getArguments().getString(\"filetype\")).commit();\n } else {\n Toast.makeText(getActivity(), values.get(position).getPath(), Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "private static List<String> loadDocuments(String path) throws Exception {\n\t\tFile folder = new File(path);\n\t\tArrayList<String> documents = new ArrayList<String>();\n\t\tfor (final File fileEntry : folder.listFiles()) {\n\t\t\tSystem.out.println(fileEntry.getName());\n\t\t\tif (fileEntry.isFile() && !fileEntry.isHidden()) {\n\t\t\t\tString content = getTextFromHtml(fileEntry);\n\t\t\t\tdocuments.add(content);\n\t\t\t}\n\t\t}\n\t\treturn documents;\n\t}", "List<IViewRelation> getViewRelations();", "private Collection<String> searchMessagesIntoViewFile(String folderName, String viewName){\r\n\t\tCollection<String> res = new HashSet<String>();\r\n\t\tFileManager fileMngr = new FileManager(viewsFoldersPath+\"/\"+folderName+\"/\"+viewName);\r\n\t\tString content;\r\n\t\tint codeBeginIndex, codeEndIndex; //i18n&l10n start and end indexes\r\n\t\t\r\n\t\t//code=codigoi18n&l10n\r\n\t\tcontent = fileMngr.readFile();\r\n\t\tcodeBeginIndex = content.indexOf(\"code=\")+6;\r\n\t\twhile(true){\r\n\t\t\tcodeEndIndex = content.indexOf(\"\\\"\", codeBeginIndex);\r\n\t\t\tres.add(content.substring(codeBeginIndex, codeEndIndex));\r\n\t\t\tcodeBeginIndex = content.indexOf(\"code=\", codeEndIndex)+6;\r\n\t\t\t\r\n\t\t\tif(codeBeginIndex<codeEndIndex) break;\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}", "@Override\n\tpublic ViewingObjectHolder getHolderFromFiles(String path) {\n\t\treturn new ViewingObjectHolder();\n\t}", "public Vector getTypedFilesForDirectory(File dir) {\r\n\tboolean useCache = dir.equals(getCurrentDirectory());\r\n\r\n\tif(useCache && currentFilesFresh) {\r\n\t return currentFiles;\r\n\t} else {\r\n\t Vector resultSet;\r\n\t if (useCache) {\r\n\t\tresultSet = currentFiles;\r\n\t\tresultSet.removeAllElements();\r\n\t } else {\r\n\t\tresultSet = new Vector();\r\n\t }\r\n\t \r\n\t String[] names = dir.list();\r\n\r\n\t int nameCount = names == null ? 0 : names.length;\r\n\t for (int i = 0; i < nameCount; i++) {\r\n\t\tTypedFile f;\r\n\t\tif (dir instanceof WindowsRootDir) {\r\n\t\t f = getTypedFile(names[i]);\r\n\t\t} else {\r\n\t\t f = getTypedFile(dir.getPath(), names[i]);\r\n\t\t}\r\n\r\n\t\tFileType t = f.getType();\r\n\t\tif ((shownType == null || t.isContainer() || shownType == t)\r\n\t\t && (hiddenRule == null || !hiddenRule.testFile(f))) {\r\n\t\t resultSet.addElement(f);\r\n\t\t}\r\n\t }\r\n\r\n\t // The fake windows root dir will get mangled by sorting\r\n\t if (!(dir instanceof DirectoryModel.WindowsRootDir)) {\r\n\t\tsort(resultSet);\r\n\t }\r\n\r\n\t if (useCache) {\r\n\t\tcurrentFilesFresh = true;\r\n\t }\r\n\r\n\t return resultSet;\r\n\t}\r\n }", "public abstract List<String> getControlledPaths();", "public List<File> listCacheDirs() {\n List<File> cacheDirs = new ArrayList<File>();\n File file = new File(parent);\n if(file.exists()) {\n File[] files = file.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n // TODO Auto-generated method stub\n return pathname.isDirectory() && \n pathname.getName().startsWith(CacheDirectory.cacheDirNamePrefix(identity));\n }\n \n });\n cacheDirs = Arrays.asList(files);\n }\n return cacheDirs;\n }", "private void loadBasePaths() {\n\n Log.d(TAG, \"****loadBasePaths*****\");\n List<FileInfo> paths = BaseMediaPaths.getInstance().getBasePaths();\n for (FileInfo path : paths) {\n\n }\n }", "private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }", "protected abstract ArrayList<String> getFileNamesByPath(\n\t\t\tfinal String path);", "public abstract List<String> getFiles( );", "public Stream<Path> loadAll() {\n\t\ttry\n\t\t{\n\t\t\tSystem.out.println(\"File Retrived\");\n\t\t\treturn Files.walk(this.path, 1).filter(path->!path.equals(this.path)).map(this.path::relativize);\n\t\t}catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"File Retrived Error\");\n\t\t}\n\t\treturn null;\n\t}", "public ScanResult getFilesRecursively() {\n\n final ScanResult scanResult = new ScanResult();\n try {\n Files.walkFileTree(this.basePath, new SimpleFileVisitor<Path>() {\n @Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n if (!attrs.isDirectory() && PICTURE_MATCHER.accept(file.toFile())) {\n scanResult.addEntry(convert(file));\n System.out.println(file.toFile());\n }\n return FileVisitResult.CONTINUE;\n }\n });\n } catch (IOException e) {\n // intentional fallthrough\n }\n\n return new ScanResult();\n }", "ds.hdfs.generated.FileMetadata getFiles(int index);", "abstract public List<S> getPath();", "List<String> getDirectories(String path) throws IOException;", "public abstract List<LocalFile> getAllFiles();", "public List<String> getListFilePath() throws AncestryException {\n\t\tList<String> listFormKey = new ArrayList<String>();\n\t\tConnection con = null;\n\t\tString sql = \"\";\n\t\ttry {\n\t\t\tsql = \"SELECT filepath FROM \" + management + \" WHERE step =4 GROUP BY filepath ORDER BY filepath\";\n\t\t\tcon = db.getConnectByProject(project);\n\t\t\tlistFormKey = JdbcHelper.queryToSingleList(con, sql , true);\n\t\t} catch (Exception e) {\n\t\t\tthrow new AncestryException(\"getListFilePath : \" + e.toString() ,e);\n\t\t}\n\t\tfinally {\n\t\t\tJdbcHelper.close(con);\n\t\t}\n\t\treturn listFormKey;\n\t}", "String getAbsolutePathWithinSlingHome(String relativePath);", "IIndexFragmentFile[] getFiles(IIndexFileLocation location) throws CoreException;", "public void setFolderPath(String relativeFolderPath) {\r\n this.relativeFolderPath = relativeFolderPath;\r\n }", "public static ArrayList<File> getListXMLFiles(File parentDir) {\n ArrayList<File> inFiles = new ArrayList<File>();\n File[] files = parentDir.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n inFiles.addAll(getListXMLFiles(file));\n } else {\n if(file.getName().endsWith(\".xml\")){\n inFiles.add(file);\n }\n }\n }\n return inFiles;\n }", "java.util.List<org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D> getPathList();", "String[] getResourceListing(Class<?> clazz, String path) throws URISyntaxException, IOException{\n\t\tURL dirURL = clazz.getClassLoader().getResource(path);\n\t\tif(dirURL != null && dirURL.getProtocol().equals(\"file\")){\n\t\t\t/* A file path: easy enough */\n\t\t\treturn new File(dirURL.toURI()).list();\n\t\t}\n\t\tif(dirURL == null){\n\t\t\t// In case of a jar file, we can't actually find a directory. Have to assume the same jar as clazz.\n\t\t\tfinal String me = clazz.getName().replace(\".\", \"/\") + \".class\";\n\t\t\tdirURL = clazz.getClassLoader().getResource(me);\n\t\t}\n\t\tif(dirURL.getProtocol().equals(\"jar\")){\n\t\t\t// A JAR path\n\t\t\tfinal String jarPath = dirURL.getPath().substring(5, dirURL.getPath().indexOf(\"!\")); // strip out only the JAR file\n\t\t\tfinal JarFile jar = new JarFile(URLDecoder.decode(jarPath, \"UTF-8\"));\n\t\t\tfinal Enumeration<JarEntry> entries = jar.entries(); // gives ALL entries in jar\n\t\t\tfinal Set<String> result = new HashSet<>(); // avoid duplicates in case it is a subdirectory\n\t\t\twhile(entries.hasMoreElements()){\n\t\t\t\tfinal String name = entries.nextElement().getName();\n\t\t\t\tif(name.startsWith(path)){ // filter according to the path\n\t\t\t\t\tString entry = name.substring(path.length());\n\t\t\t\t\tint checkSubdir = entry.indexOf(\"/\");\n\t\t\t\t\tif(checkSubdir >= 0){\n\t\t\t\t\t\t// if it is a subdirectory, we just return the directory name\n\t\t\t\t\t\tentry = entry.substring(0, checkSubdir);\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(entry);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result.toArray(new String[result.size()]);\n\t\t}\n\t\tthrow new UnsupportedOperationException(\"Cannot list files for URL \" + dirURL);\n\t}", "public java.util.List<? extends PathOrBuilder>\n getSourcePathOrBuilderList() {\n if (sourcePathBuilder_ != null) {\n return sourcePathBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(sourcePath_);\n }\n }", "public static ArrayList<String> listFilesInFolder(String pFolderPath, boolean pIncludeSubfolders,\n String pExtension) {\n ArrayList<String> list = new ArrayList<String>();\n\n /*\n * depth = 0 -> only the specified file/folder is returned. To get all\n * files inside a folder, depth must be set to 1.\n */\n int depth = 1;\n if (pIncludeSubfolders) {\n depth = Integer.MAX_VALUE;\n }\n\n String matcherString = \"glob:**\";\n if (!ObjectUtils.isObjectEmpty(pExtension)) {\n matcherString += \".\" + pExtension;\n }\n PathMatcher matcher = FileSystems.getDefault().getPathMatcher(matcherString);\n\n try (Stream<Path> paths = Files.walk(Paths.get(pFolderPath), depth)) {\n // paths.filter(Files::isRegularFile).filter(path ->\n // matcher.matches(path))\n // .forEach(path ->\n // System.out.println(path.normalize().toString()));\n paths.filter(Files::isRegularFile).filter(path -> matcher.matches(path))\n .forEach(path -> list.add(path.normalize().toString()));\n } catch (IOException e) {\n LogUtils.logError(DirectoryUtils.class, \"IOException while listing files in folder [\" + pFolderPath + \"]\",\n e);\n }\n\n return list;\n }", "public List<Path> getTestFiles() throws Exception {\n try (Stream<Path> stream = Files.list(Paths.get(BibTeXMLImporterTest.class.getResource(\"\").toURI()))) {\n return stream.filter(p -> !Files.isDirectory(p)).collect(Collectors.toList());\n }\n\n }", "public static List<String> getFilesFromDirectory(){\n File wordTextFolder = new File(FOLDER_OF_TEXT_FILES.toString());\n File[] filesInsideFolder = wordTextFolder.listFiles();\n List<String> paths = new ArrayList<>();\n String name;\n\n for (File txtFile : filesInsideFolder){\n paths.add( txtFile.getPath() );\n name = txtFile.getName();\n name = name.substring(0, name.lastIndexOf('.'));\n\n if(name.length() > Table.maxFileNameLength){\n Table.setMaxFileNameLength(name.length());\n }\n }\n return paths;\n }", "public IFileColl getViewableAttachedFiles(IDataSet args, boolean edit)\n throws OculusException;", "private void loadViews(){\n\t}", "Views getViews();", "private static void iteratorFilePath(File file){\n while(file.isDirectory()){\n for(File f : file.listFiles()){\n System.out.println(f.getPath());\n iteratorFilePath(f);\n }\n break;\n }\n }", "public IFileColl getViewableAttachedFiles(IDataSet args)\n throws OculusException;", "public void testFilesView() {\n FilesTabOperator filesTabOper = FilesTabOperator.invoke();\n // needed for slower machines\n JemmyProperties.setCurrentTimeout(\"JTreeOperator.WaitNextNodeTimeout\", 30000); // NOI18N\n Node sourcePackagesNode = new Node(filesTabOper.getProjectNode(SAMPLE_PROJECT_NAME), \"src\"); // NOI18N\n Node sample1Node = new Node(sourcePackagesNode, SAMPLE1_PACKAGE_NAME); // NOI18N\n Node sampleClass1Node = new Node(sample1Node, SAMPLE1_FILE_NAME);\n // It is possible to test also pop-up menu actions as in testProjectsView, but\n // it is redundant IMO\n }", "private File[] getResourceFolderFiles(String folder) {\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\t\tURL url = loader.getResource(folder);\n\t\tString path = url.getPath();\n\n\t\treturn new File(path).listFiles();\n\n\t}", "private void showList() {\n\n if(USE_EXTERNAL_FILES_DIR) {\n mList = mFileUtil.getFileNameListInExternalFilesDir();\n } else {\n mList = mFileUtil.getFileListInAsset(FILE_EXT);\n }\n mAdapter.clear();\n mAdapter.addAll(mList);\n mAdapter.notifyDataSetChanged();\n mListView.invalidate();\n}", "@Override\r\n\tpublic String globFilesDirectories(String[] args) {\r\n\t\treturn globHelper(args);\r\n\t}", "public File[] getLocalFiles() {\n\t\tFile[] filesArray = new File(this.fileStorage.toString()).listFiles(\n\t\t\t\tnew FileFilter() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean accept(File file) {\n\t\t\t\t\t\treturn !file.isHidden();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\treturn filesArray;\n\t}", "public String[] GetAllFileNames() {\n \tFile dir = new File(fileStorageLocation.toString());\n \tString[] matchingFiles = dir.list(new FilenameFilter() {\n \t public boolean accept(File dir, String name) {\n \t return name.startsWith(\"1_\");\n \t }\n \t});\n \t\n \tfor (int i=0; i < matchingFiles.length; i++)\n \t{\n \t\tmatchingFiles[i] = matchingFiles[i].replaceFirst(\"1_\", \"\");\n \t}\n \t\n return matchingFiles;\n }", "@GetMapping(\"/files\")\n public ResponseEntity<List<FileInfo>> getListFiles() {\n List<FileInfo> fileInfos = storageService.loadAll().map(path -> {\n String filename = path.getFileName().toString();\n String url = MvcUriComponentsBuilder\n .fromMethodName(FilesController.class, \"getFile\", path.getFileName().toString()).build().toString();\n\n return new FileInfo(filename, url);\n }).collect(Collectors.toList());\n\n return ResponseEntity.status(HttpStatus.OK).body(fileInfos);\n }", "private static Stream<Path> listRecur(Path p) {\n if (Files.isDirectory(p)) {\n try {\n return Files.list(p).flatMap(DirectoryClassPath::listRecur);\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n } else {\n return Stream.of(p);\n }\n }" ]
[ "0.5798651", "0.56287926", "0.56155795", "0.5397496", "0.53547263", "0.5349039", "0.531082", "0.5295767", "0.5275346", "0.5260564", "0.52495205", "0.52371335", "0.51893115", "0.51470405", "0.50896204", "0.5085489", "0.50460726", "0.50433576", "0.5014451", "0.49798182", "0.4977859", "0.49588385", "0.49575022", "0.49457255", "0.49207097", "0.49014696", "0.49002352", "0.48994857", "0.489906", "0.48888776", "0.48879674", "0.4885187", "0.4882577", "0.48719037", "0.48657376", "0.48582295", "0.48345998", "0.4811218", "0.48058796", "0.48055568", "0.480341", "0.48030278", "0.47929642", "0.4791608", "0.4786941", "0.4780026", "0.47784558", "0.477715", "0.4770103", "0.47664124", "0.47559613", "0.47466126", "0.47463605", "0.47378364", "0.47340795", "0.47337767", "0.4733189", "0.47313142", "0.4706661", "0.47007602", "0.46998507", "0.46996123", "0.4693564", "0.469231", "0.46847743", "0.46831068", "0.46776307", "0.46760228", "0.46736294", "0.4663601", "0.46614024", "0.46585655", "0.46561214", "0.46499574", "0.4640726", "0.4639568", "0.46379957", "0.4630329", "0.46256462", "0.46214876", "0.46161294", "0.46160358", "0.4611176", "0.46092984", "0.4604246", "0.4584362", "0.45840696", "0.45825636", "0.45824188", "0.45811456", "0.4576682", "0.45761064", "0.45745558", "0.45742744", "0.45699316", "0.4559049", "0.45556772", "0.45549828", "0.45548823", "0.45541537" ]
0.80575246
0
There's no guarantee that this function is ever called.
@Override public void onTerminate() { super.onTerminate(); /*2012-8-3, add by bvq783 for plugin*/ if (mModel != null && mModel.getPluginHost() != null) mModel.getPluginHost().onModelDestroy(); /*2012-8-3, add end*/ unregisterReceiver(mModel); ContentResolver resolver = getContentResolver(); resolver.unregisterContentObserver(mFavoritesObserver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public int retroceder() {\n return 0;\n }", "public final void mo51373a() {\n }", "public boolean method_4088() {\n return false;\n }", "public void method_4270() {}", "public void smell() {\n\t\t\n\t}", "public static void SelfCallForLoading() {\n\t}", "private void m50366E() {\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "@Override\n public void perish() {\n \n }", "public boolean method_4093() {\n return false;\n }", "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "public boolean method_2434() {\r\n return false;\r\n }", "public boolean method_196() {\r\n return false;\r\n }", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public boolean method_218() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "protected boolean func_70041_e_() { return false; }", "public boolean method_208() {\r\n return false;\r\n }", "@Override\n\tpublic void call() {\n\t\t\n\t}", "@Override\r\n\tpublic void just() {\n\t\t\r\n\t}", "public boolean method_4102() {\n return false;\n }", "public boolean method_216() {\r\n return false;\r\n }", "@Override\n public Object preProcess() {\n return null;\n }", "public boolean method_210() {\r\n return false;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "protected void onFirstUse() {}", "public boolean method_3897() {\r\n return false;\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic boolean deterministic() {\n\t\treturn true;\n\t}", "private void getStatus() {\n\t\t\n\t}", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public boolean callCheck() {\n return last == null;\n }", "@Override\n\tprotected void interr() {\n\t}", "public boolean method_109() {\r\n return true;\r\n }", "protected final void _verifyAlloc(Object buffer)\n/* */ {\n/* 269 */ if (buffer != null) throw new IllegalStateException(\"Trying to call same allocXxx() method second time\");\n/* */ }", "public int method_209() {\r\n return 0;\r\n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void m23075a() {\n }", "public void swrap() throws NoUnusedObjectExeption;", "private void test() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public boolean method_1456() {\r\n return true;\r\n }", "public int method_113() {\r\n return 0;\r\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public final void mo91715d() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}", "public boolean refresh() {\n/* 153 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void gored() {\n\t\t\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void one() {\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 }", "@Override\n\tpublic boolean postIt() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}", "public abstract void mo70713b();", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nadar() {\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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\n public boolean needsToRunAfterFinalized() {\n return false;\n }", "@Override\n public int f() {\n return 0;\n }", "private void m50367F() {\n }", "public void method_9653() {\r\n this.field_9138.method_4479(false);\r\n }", "@Override\n\tpublic void doIt() {\n\t\t\n\t}", "boolean pullingOnce();", "@Override\r\n public boolean isSafe() {\n return false;\r\n }", "@Override\n\tpublic synchronized void init() {\n\t}", "public abstract void mo56925d();", "static void m61437a() {\n if (!m61442b()) {\n throw new IllegalStateException(\"Method call should happen from the main thread.\");\n }\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public void method_191() {}", "@Override\n protected void checkLocation() {\n // nothing\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected abstract void beforeCall();", "public Unsafe method_4123() {\n return null;\n }", "@Override\r\n\tprotected boolean Initialize() {\n\t\treturn false;\r\n\t}", "@Override\r\n\tprotected void doVerify() {\n\t\t\r\n\t}", "@Override\n\tpublic void inorder() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}" ]
[ "0.6598963", "0.63163215", "0.6293116", "0.6151569", "0.6126072", "0.6121868", "0.61058736", "0.60968083", "0.60677594", "0.6064049", "0.60636806", "0.6053894", "0.6047335", "0.6029823", "0.60297817", "0.6003079", "0.5971969", "0.5963108", "0.59614664", "0.59136784", "0.5904672", "0.59046566", "0.588938", "0.58738256", "0.5854126", "0.58283615", "0.5819461", "0.58159876", "0.5769472", "0.57583284", "0.5743086", "0.5743086", "0.5741597", "0.57332444", "0.5726533", "0.5720146", "0.5709363", "0.57023066", "0.5702299", "0.5694788", "0.56939304", "0.5693748", "0.56920964", "0.5688811", "0.5682884", "0.56771684", "0.56664205", "0.5652351", "0.5652351", "0.56492555", "0.5642326", "0.5636139", "0.56337553", "0.5626441", "0.5621307", "0.5620438", "0.56110555", "0.5609658", "0.5608026", "0.56016093", "0.5599571", "0.55990565", "0.55990565", "0.5582103", "0.5581435", "0.5566175", "0.5560529", "0.5560529", "0.5560529", "0.5560529", "0.5560529", "0.5560529", "0.55418247", "0.55302274", "0.552904", "0.5523918", "0.55208665", "0.5520438", "0.5520438", "0.5520268", "0.5519565", "0.5517436", "0.5516564", "0.55012286", "0.5499792", "0.54994303", "0.5496656", "0.549144", "0.5488836", "0.54881895", "0.5486968", "0.5484802", "0.54835", "0.5481596", "0.54807377", "0.5474357", "0.5469238", "0.5462756", "0.54621196", "0.5457367", "0.54557943" ]
0.0
-1
If the database has ever changed, then we really need to force a reload of the workspace on the next load
@Override public void onChange(boolean selfChange) { mModel.resetLoadedState(false, true); mModel.startLoaderFromBackground(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}", "private void updateDB() {\n }", "private boolean reloadDatabase() {\n\t\t\ttry {\n\t\t\t\tthis.db = xmlp.readFromXMLFile();\n\t\t\t\treturn true;\n\t\t\t} catch (SAXException | IOException | ParserConfigurationException e) {\n\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\treturn false;\n\t\t\t}\n\t}", "public boolean updateDatabaseConnections() {\n WorkspaceConfig workspace = mvc.model.getWorkspace();\n if (workspace != null && workspace.database != null) {\n DatabaseConfig config = workspace.database;\n try {\n mvc.controller.database.refreshConnections(config, 10);\n return true;\n } catch (SQLException e) {\n // falls through to return false\n }\n }\n mvc.controller.database.closeConnections();\n return false;\n }", "private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }", "void reloadInternal()\r\n {\r\n final ArrayList<Workspace> newWorkspaces = new ArrayList<Workspace>();\r\n\r\n final File[] files = FileUtil.getFiles(new File(FileUtil.getGenericPath(WORKSPACE_PATH)), new FileFilter()\r\n {\r\n @Override\r\n public boolean accept(File file)\r\n {\r\n // only accept xml file\r\n return FileUtil.getFileExtension(file.getPath(), true).toLowerCase().equals(EXT);\r\n }\r\n }, true, false, false);\r\n\r\n for (File file : files)\r\n {\r\n final Workspace workspace = new Workspace(file);\r\n\r\n // don't load the specific system workspace\r\n if (!workspace.getName().equals(Workspace.WORKSPACE_SYSTEM_NAME))\r\n {\r\n // empty workspace ?\r\n if (workspace.isEmpty())\r\n {\r\n // don't show this message for default workspace\r\n // if (!workspace.getName().equals(Workspace.WORKSPACE_DEFAULT_NAME))\r\n System.err.println(\"Empty workspace '\" + workspace.getName() + \"' is not loaded\");\r\n }\r\n else\r\n newWorkspaces.add(workspace);\r\n }\r\n }\r\n\r\n // sort list\r\n Collections.sort(newWorkspaces);\r\n\r\n // set workspace list\r\n workspaces = newWorkspaces;\r\n\r\n // notify change\r\n changed();\r\n }", "public void loadFreshWorkspace() {\n if (workspaceLoaded) {\n resetWorkspace();\n }\n if (langDefDirty) {\n loadBlockLanguage(langDefRoot);\n }\n workspace.loadWorkspaceFrom(null, langDefRoot);\n workspaceLoaded = true;\n \n }", "@Override\n public void updateDatabase() {\n }", "public void reloadData() {\n\t\tinitializeStormData();\n\t\tsuper.reloadData();\n\t}", "@Override\n public void reDownloadDB(String newVersion)\n {\n }", "public boolean isDbToUpdate() {\n\t\treturn !(this.properties.getProperty(SoundLooperProperties.KEY_DB_TO_UPDATE, \"0\").equals(\"0\"));\n\t}", "public void reload() {\n\n\t}", "public void reload() {\n reloading = true;\n }", "public void reload() {\n\t\treload = true;\n\t}", "private boolean processReload(boolean isDefault) {\n\t\tcleanDatabase();\n\n\t\t// reload desktop first\n\t\tboolean res = reloadDesktop(isDefault);\n\t\t\n// reloadHotseat();\n\t\treturn res;\n\t}", "private void loadDataFromDatabase() {\n mSwipeRefreshLayout.setRefreshing(true);\n mPresenter.loadDataFromDatabase();\n }", "public void reload() {\n reload(true);\n reload(false);\n }", "@Override\n\tpublic void doReload() throws BusinessException, Exception {\n\t\t\n\t}", "void rebuildIfNecessary();", "public boolean initializeDB() {\n return false;\n }", "void reloadFromDiskSafe();", "private void loadDatabaseSettings() {\r\n\r\n\t\tint dbID = BundleHelper.getIdScenarioResultForSetup();\r\n\t\tthis.getJTextFieldDatabaseID().setText(dbID + \"\");\r\n\t}", "public void reload(ODatabaseDocumentInternal database) {\n lock.writeLock().lock();\n try {\n identity = new ORecordId(database.getStorageInfo().getConfiguration().getSchemaRecordId());\n ODocument document = new ODocument(identity);\n //noinspection NonAtomicOperationOnVolatileField\n document = database.reload(document, null, true, true);\n fromStream(document);\n forceSnapshot(database);\n } finally {\n lock.writeLock().unlock();\n }\n }", "private void checkForUpdates() {\n File dbFile = new File(peopleDBPath + \"people.protostuff\");\n try {\n BasicFileAttributes readAttributes = Files.readAttributes(dbFile.toPath(), BasicFileAttributes.class);\n if (lastModifiedDate.getTime() < readAttributes.lastModifiedTime().toMillis()) {\n // db = MAPPER.readValue(dbFile, PeopleDB.class);\n db = daoProtostuff.load(dbFile.getAbsolutePath(), PeopleDB.class);\n System.out.println(\"DB loaded\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void updateDatabase() {\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\tArrayList<String> updatedRecords = serializer.serialize(records);\n\t\tDatabaseHandler.writeToDatabase(DATABASE_NAME, updatedRecords);\n\t}", "public void reload();", "@Override\n public void reloadWorkspace(AppDataComponent dataComponent) {\n \n CourseData data = (CourseData)dataComponent;\n taData.reloadOfficeHoursGrid(data);\n }", "protected void preUpdateSchema(CiDb db) throws OrmException, SQLException {\n }", "void reload();", "void reload();", "void reload();", "private void reloadData() {\n if (DataFile == null)\n DataFile = new File(dataFolder, DATAFILENAME);\n Data = YamlConfiguration.loadConfiguration(DataFile);\n }", "public abstract void updateDatabase();", "public static void forceReload() {\n properties = null;\n getProperties();\n }", "protected void relocateDatabaseIfNeeded() {\n File databaseDir = new File(config.dataDir(), Constants.DATABASE_DIR);\n File blocksDir = new File(databaseDir, \"block\");\n\n if (blocksDir.exists()) {\n LeveldbDatabase db = new LeveldbDatabase(blocksDir);\n byte[] header = db.get(Bytes.merge((byte) 0x00, Bytes.of(0L)));\n db.close();\n\n if (header == null || header.length < 33) {\n logger.info(\"Unable to decode genesis header. Quit relocating\");\n } else {\n String hash = Hex.encode(Arrays.copyOfRange(header, 1, 33));\n switch (hash) {\n case \"1d4fb49444a5a14dbe68f5f6109808c68e517b893c1e9bbffce9d199b5037c8e\":\n moveDatabase(databaseDir, config.databaseDir(Network.MAINNET));\n break;\n case \"abfe38563bed10ec431a4a9ad344a212ef62f6244c15795324cc06c2e8fa0f8d\":\n moveDatabase(databaseDir, config.databaseDir(Network.TESTNET));\n break;\n default:\n logger.info(\"Unable to recognize genesis hash. Quit relocating\");\n }\n }\n }\n }", "@Override\r\n\tpublic void refresh(boolean keepChanges) throws RepositoryException {\n\t\t\r\n\t}", "Snapshot refresh();", "private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }", "private boolean inDatabase() {\r\n \t\treturn inDatabase(0, null);\r\n \t}", "public void resetDB()\n\t{\n\t\tshutdown();\n\t\t\n\t\tif(Files.exists(m_databaseFile))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t\t\n\t\tloadDatabase();\n\t\tupdateCommitNumber();\n\t\tupdateDatabase();\n\t}", "private void reloadPlanTable() {\n\t\t\r\n\t}", "public void updateWorkspace()\n {\n workspace.update();\n }", "public void reload() {\n if ( _build_file != null ) {\n openBuildFile( _build_file );\n }\n }", "public void reload(){\n\t\tplugin_configuration.load();\n\t\tflarf_configuration.load();\n\t\tmessages_configuration.load();\n\t\tstadiumlisting.load();\n\t}", "private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}", "@Test\n\tpublic void reload_is_clean() {\n\t\tEnvironmentContext cx = null;\n\t\ttry {\n\t\t\tcx = new EnvironmentContext();\n\t\t} catch (Exception e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// And a new repository with that connection\n\t\tBuildProjectRepository repository = new BuildProjectRepositoryApiClient(cx);\n\n\t\tQueryResult result = null;\n\t\ttry {\n\t\t\tresult = cx.getServices().retrieve(repository.buildQueryForAllBuildProjects());\n\t\t} catch (ConnectionException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (APIException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (OidException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfor (Asset asset : result.getAssets()) {\n\t\t\tfor (Entry<String, Attribute> attribute : asset.getAttributes().entrySet()) {\n\t\t\t\ttry {\n\t\t\t\t\tString k = attribute.getKey();\n\t\t\t\t\tObject v = attribute.getValue().getValue();\n\t\t\t\t} catch (APIException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// When I reload the repository\n\t\ttry {\n\t\t\trepository.reload();\n\t\t} catch (BuildProjectRepositoryException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t// Then the repository is not dirty\n\t\tboolean dirty = false;\n\t\ttry {\n\t\t\tdirty = repository.isDirty();\n\t\t} catch (BuildProjectRepositoryException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\tassertFalse(dirty);\n\t}", "private void recreateDatabaseSchema() {\n\t\t// Fetch database schema\n\t\tlogger.info(\"Reading database schema from file\");\n\t\tString[] schemaSql = loadFile(\"blab_schema.sql\", new String[] { \"--\", \"/*\" }, \";\");\n\n\t\tConnection connect = null;\n\t\tStatement stmt = null;\n\t\ttry {\n\t\t\t// Get the Database Connection\n\t\t\tlogger.info(\"Getting Database connection\");\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnect = DriverManager.getConnection(Constants.create().getJdbcConnectionString());\n\n\t\t\tstmt = connect.createStatement();\n\n\t\t\tfor (String sql : schemaSql) {\n\t\t\t\tsql = sql.trim(); // Remove any remaining whitespace\n\t\t\t\tif (!sql.isEmpty()) {\n\t\t\t\t\tlogger.info(\"Executing: \" + sql);\n\t\t\t\t\tSystem.out.println(\"Executing: \" + sql);\n\t\t\t\t\tstmt.executeUpdate(sql);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (ClassNotFoundException | SQLException ex) {\n\t\t\tlogger.error(ex);\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\tstmt.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tlogger.error(ex);\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (connect != null) {\n\t\t\t\t\tconnect.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException ex) {\n\t\t\t\tlogger.error(ex);\n\t\t\t}\n\t\t}\n\t}", "public void refreshDatabaseTables() {\n \n try {\n SQLQuery = jTextAreaQuery.getText();\n DatabaseTables.setModel(dm.TableModel(SQLQuery));\n\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(new JFrame(), \"Table Does Not Exist \\n\" + \"Please Check \\\"Table Names\\\"\", \"SQLException\", JOptionPane.ERROR_MESSAGE);\n }\n }", "public void testDatabaseUpgrade_Incremental() {\n create1108(mDb);\n upgradeTo1109();\n upgradeTo1110();\n assertDatabaseStructureSameAsList(TABLE_LIST, /* isNewDatabase =*/ false);\n }", "public void reloadDatasources(){\n refreshDataCache();\n refreshListbox();\n \n if (this.geselecteerdeStageplaats != null)\n { \n this.geselecteerdeStageplaats = this.dbFacade.getStageplaatsByID(this.geselecteerdeStageplaats.getId());\n }\n refreshDisplayedStageplaats();\n }", "private void initialize() {\n if (databaseExists()) {\n SharedPreferences prefs = PreferenceManager\n .getDefaultSharedPreferences(mContext);\n int dbVersion = prefs.getInt(SP_KEY_DB_VER, 1);\n if (DATABASE_VERSION != dbVersion) {\n File dbFile = mContext.getDatabasePath(DBNAME);\n if (!dbFile.delete()) {\n Log.w(TAG, \"Unable to update database\");\n }\n }\n }\n if (!databaseExists()) {\n createDatabase();\n }\n }", "public void open() throws SQLException {\n\t\t \n\t\t mDatabase = mDbHelper.getWritableDatabase();\n\t\t mDatabase = mDbHelper.getWritableDatabase();\n\n\t\t //refreshCompanies();\n\t }", "public void reload() {\n log.debug(\"Reloading bicycles after update to table\");\n try{\n bicycles.clear();\n bicycles.addAll(bicycleManager.findAllBicycles());\n checkAvail();\n fireTableDataChanged();\n }catch(ServiceFailureException ex){\n log.error(\"SFE reloading bicycles after update\");\n throw new ServiceFailureException(ex);\n }catch(IllegalArgumentException ex){\n log.error(\"IAE reloading bicycles\");\n }\n }", "private boolean loadDatabase(){\n Input input = new Input();\n recipes = input.getDatabase();\n if(recipes == null){\n recipes = new ArrayList<>();\n return false;\n }\n return true;\n }", "public static void reload() {\n try {\n lstEvents = getEventFromDB();\n } catch (SQLException ex) {\n mLog.error(ex.getMessage(), ex);\n }\n }", "private void loadStateDatabase() {\n new Thread( new Runnable() {\n public void run() {\n try {\n loadStates();\n } catch ( final IOException e ) {\n throw new RuntimeException( e );\n }\n }\n }).start();\n }", "@And(\"^See if database has been updated$\")\n public void seeIfDatabaseHasBeenUpdated() throws SQLException, ClassNotFoundException {\n\n myResultSet = myConn.execute(\"select name, user_id from wishlist where id =\" + id);\n\n while(myResultSet.next()){\n String result = myResultSet.getString(1);\n String result2 = myResultSet.getString(2);\n System.out.println(result + \" and \" + result2);\n }\n\n myConn.closeConnection();\n\n }", "@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}", "private void loadDatabase() {\n Runnable load = new Runnable() {\n public void run() {\n try {\n boolean isSuccess = false;\n File data = Environment.getDataDirectory();\n\n String currentDbPath = \"//data//com.udacity.adcs.app.goodintents//databases//goodintents.db\";\n\n File currentDb = new File(data, currentDbPath);\n File restoreDb = getFileFromAsset(mActivity, mActivity.getExternalFilesDir(null) + \"/\", \"goodintents.db\");\n\n if (restoreDb != null ? restoreDb.exists() : false) {\n FileInputStream is = new FileInputStream(restoreDb);\n FileOutputStream os = new FileOutputStream(currentDb);\n\n FileChannel src = is.getChannel();\n FileChannel dst = os.getChannel();\n dst.transferFrom(src, 0, src.size());\n\n is.close();\n os.close();\n src.close();\n dst.close();\n isSuccess = true;\n }\n\n if (isSuccess) {\n PreferencesUtils.setBoolean(mActivity, R.string.initial_db_load_key, true);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n } finally {\n mActivity.runOnUiThread(loadDatabaseRunnable);\n }\n }\n };\n\n Thread thread = new Thread(null, load, \"loadDatabase\");\n thread.start();\n }", "@Override\r\n public void refresh(@NotNull final Project project) {\n ChangeListManager.getInstance(project).ensureUpToDate(true);\r\n }", "void changeDatabase(String databaseName);", "public abstract boolean isDatabaseSet();", "public void reload() {\n reloadConfig();\n loadConfiguration();\n }", "boolean hasDatabase();", "public void obrir() throws SQLException {\n\t\tbdClimb = dbHelper.getWritableDatabase();\n\t}", "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 }", "private void jButtonRefreshActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonRefreshActionPerformed\n // TODO add your handling code here:\n refreshDatabaseTables();\n }", "public Object workspaceReload(CancelChecker cancelChecker) {\n return new Object();\n }", "private void checkDatabaseStructure(DatabaseUpdateType update) {\n }", "public void updateDatabase()\n\t{\n\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\tfor(Record<?> cr : ldr.getRecordPluginManagers())\n\t\t{\n\t\t\tcr.updateTable();\n\t\t}\n\t}", "private void tryUpdateDbConnection() {\n try {\n updateDbConnection();\n } catch (SQLException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "private void refreshData() {\n try {\n setDataSource(statement.executeQuery(\"select * from \" + sourceTableName));\n } catch (SQLException e) {\n System.err.println(\"Can't execute statement\");\n e.printStackTrace();\n }\n }", "@Override\r\n public void onRestart() {\r\n super.onRestart();\r\n refreshData();\r\n }", "public void recover() {\n _siteStatus = true;\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList;\n if (varIndex % 2 == 0) {\n dataList = _dataMap.get(varIndex);\n Data d = dataList.get(dataList.size() - 1);\n // set the last commit variable to unavailable to read\n d.setAccess(false);\n // set the unavailable time for the variable which is the time it fails\n // When a particular version of variable is unavailable, it will never\n // become available, but we may have new version of variable\n d.setUnavailableTime(_lastFailTime);\n }\n }\n }", "public void wipeDatabaseData() {\n\t\tdbHelper.onUpgrade(database, 0, 1);\n\t}", "protected void refreshFromWorkspace() {\r\n\t\r\n\t\tif (fTreeViewer != null) {\r\n\t\t\tfTreeViewer.setInput(null);\r\n\t\t}\t\t\r\n\t\r\n\t\tif (fWorkspaceObjects == null ) {\r\n\t\t\tfWorkspaceObjects = resourceContentProvider.getElements( ResourcesPlugin.getWorkspace().getRoot() );\r\n\t\t}\t\t\r\n\t\t\t\t \t\r\n\t\tif (fFilteredList != null) {\r\n\t\t\t\r\n\t\t\tfFilteredList.setEnabled(true);\r\n\t\t\tfFilteredList.setAllowDuplicates(showDuplicates);\r\n\t\t\tfFilteredList.setElements(contentProvider.getElements( fWorkspaceObjects ));\t\t\t\t\t\t\r\n\t\t}\t\t\r\n\t}", "protected abstract void refresh() throws RemoteException, NotBoundException, FileNotFoundException;", "protected void refresh() {\n\t}", "private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }", "private void handleStore() throws ApplicationException\n {\n try\n {\n getService().reload();\n }\n catch (Exception e)\n {\n Logger.error(\"unable to restart scripting service\",e);\n throw new ApplicationException(i18n.tr(\"Fehler beim Laden der Scripts: {0}\",e.getMessage()));\n }\n }", "public void testRefresh() throws RepositoryException{\n boolean refreshMode = true;\n \n session.refresh(refreshMode);\n \n sessionControl.replay();\n sfControl.replay();\n \n jt.refresh(refreshMode);\n }", "private void getDatabase(){\n\n }", "public void mo23021d() {\n this.f26122b.edit().putLong(\"last.refresh.otherapp\", System.currentTimeMillis()).apply();\n }", "public void init() {\r\n\t\tdbVersion = new DBVersion( getDefaultDatabase(), progress, upgradeFile.versionTableName, upgradeFile.logTableName );\r\n\t}", "public void refreshDb() {\n Ion.with(mContext)\n .load(mGetUrl)\n .asJsonObject()\n .setCallback(new FutureCallback<JsonObject>() {\n @Override\n public void onCompleted(Exception e, JsonObject result) {\n try {\n // do stuff with the result or error\n DatabaseClient databaseClient = new DatabaseClient(mContext);\n /**\n * if the return jsonObject is null, then don't clear the table\n * */\n if (result != null) {\n databaseClient.clearTablePage(\"bookpage\");\n }\n\n JsonArray array = result.getAsJsonArray(\"books\");\n /**\n * put data into db\n * */\n ContentResolver contentResolver = mContext.getContentResolver();\n Uri uri = Uri.parse(\"content://com.example.root.libapp_v1.SQLiteModule.Bookpage.BookpageProvider/bookpage\");\n for (int i = 0; i < array.size(); i++) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"name\", array.get(i).getAsJsonObject().get(\"name\").getAsString());\n contentValues.put(\"detail_info\", array.get(i).getAsJsonObject().get(\"detail_info\").getAsString());\n contentValues.put(\"author_info\", array.get(i).getAsJsonObject().get(\"author_info\").getAsString());\n contentValues.put(\"unique_id\", array.get(i).getAsJsonObject().get(\"id\").getAsString());\n contentValues.put(\"catalog_info\", array.get(i).getAsJsonObject().get(\"catalog_info\").getAsString());\n contentValues.put(\"timestamp\", array.get(i).getAsJsonObject().get(\"timestamp\").getAsString());\n Uri tmp = contentResolver.insert(uri, contentValues);\n }\n initData(mView);\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n });\n }", "public synchronized void resetOrdenDBList() {\n ordenDBList = null;\n }", "public static void useTempFileDatabase() {\n\t\tsetDatabaseMap(TempFileDatabaseMap.class);\n\t}", "@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }", "public void refresh ()\n\t{\n\t\tString query;\n\t\tquery = \"SELECT templates.id, size, evaluations, plans.description \" +\n\t\t\t\t\"FROM templates, observations, plans \" +\n\t\t\t\t\"WHERE blockinguser_id=NN AND \" +\n\t\t\t\t\"templates.field = observations.description AND \" +\n\t\t\t\t\"observations.plan_id = plans.id\";\n\t\tquery = query.replace(\"NN\", \"\"+FitsZoo.getUser_id());\n\t\tSystem.out.println(\"query=\"+query);\n\t\tFitsZoo.zwickyDB.conectar();\n\t\ttry {\n\n\t\t\tstatement = FitsZoo.zwickyDB.getConnect().prepareStatement\t(\n\t\t\t\t\tquery.toString(),\n\t\t\t\t\tResultSet.TYPE_FORWARD_ONLY, \n\t\t\t\t\tResultSet.CONCUR_READ_ONLY\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\ttry {\n\t\t\tstatement.setFetchSize(Integer.MIN_VALUE);\n\t\t} catch (SQLException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\tthis.lockedTemplates = new Vector<TemplateCycle>();\n\n\t\tResultSet resultSet;\n\t\ttry {\n\t\t\tresultSet = statement.executeQuery();\n\t\t\tint template_id;\n\t\t\tint fileSize;\n\t\t\tint evaluations;\n\t\t\tString jpgURL;\n\t\t\twhile (resultSet.next())\t\t\t\n\t\t\t{\t\t\t\t\n\t\t\t\ttemplate_id = resultSet.getInt(1);\n\t\t\t\tfileSize = resultSet.getInt(2);\n\t\t\t\tevaluations = resultSet.getInt(3);\t\n\t\t\t\tjpgURL = resultSet.getString(4);\n\t\t\t\tthis.lockedTemplates.add(new TemplateCycle(template_id, fileSize, evaluations, jpgURL));\t\n\t\t\t\tSystem.out.println(\"bloqueo en template_id=\"+template_id);\n\t\t\t}\n\t\t\tresultSet.close();\n\t\t\tFitsZoo.zwickyDB.close();\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\trefreshResumen ();\n\t\tthis.MuestraSiguienteTemplate();\n\t}", "@Override\n public void onRefresh() {\n load_remote_data();\n }", "@Override\n\tpublic boolean isFresh() {\n\t\treturn false;\n\t\t//return fresh;\n\t}", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}", "void resourceChanged(IPath workspacePath);", "public void refreshCompanies() {\n\t\t \n\t\t mDbHelper.refreshTable(mDatabase, MySQLiteHelper.TABLE_COMPANIES);\n\t }", "public void load() {\r\n try {\r\n project = ProjectAccessor.findFromTitle(title, conn);\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void update(){\r\n\t\tthis.loadRecords();\r\n\t}", "public void updatePersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tserializeToFile(file);\n\t\tupdatePersistentSettings();\n\t}", "boolean isDbInitialized() {return dbInitialized;}", "@Override\n public void onDatabaseLoaded() {}", "public final void markProjectForRebuild() {\r\n forceNonIncremental = true;\r\n// rbLogic.forceNonIncremental();\r\n }", "public void resetDatabaseState(String databaseName, boolean defaultDatabase) {\n versionSource.clearAllExecutedScripts();\n\n List<Script> allScripts = scriptSource.getAllUpdateScripts(dialect, databaseName, defaultDatabase);\n for (Script script : allScripts) {\n versionSource.registerExecutedScript(new ExecutedScript(script, new Date(), true));\n }\n }" ]
[ "0.68777364", "0.6820049", "0.6631385", "0.65526175", "0.65461624", "0.63562393", "0.6304675", "0.6257151", "0.61766493", "0.61517304", "0.6113906", "0.60950667", "0.60944456", "0.6069827", "0.59673846", "0.59530085", "0.593739", "0.5923947", "0.5919771", "0.59170216", "0.58961856", "0.58937454", "0.5878137", "0.5855147", "0.58511883", "0.58450323", "0.58135784", "0.5808101", "0.5802971", "0.5802971", "0.5802971", "0.5792121", "0.57891864", "0.5774347", "0.57651263", "0.5743581", "0.5741484", "0.57410103", "0.5732159", "0.5717971", "0.571476", "0.5704739", "0.56980664", "0.565731", "0.5638028", "0.563668", "0.5622163", "0.5593399", "0.5591468", "0.5587279", "0.5582107", "0.5578392", "0.5574896", "0.5564976", "0.5562452", "0.5560432", "0.5545385", "0.5532036", "0.55246335", "0.55244905", "0.55229324", "0.5508244", "0.5499729", "0.54904246", "0.5485585", "0.5477071", "0.54728776", "0.54701406", "0.54645437", "0.5462907", "0.54557115", "0.5455272", "0.5453553", "0.5445087", "0.54450744", "0.54359263", "0.5430472", "0.5427604", "0.54146177", "0.54015696", "0.5398399", "0.5396438", "0.5392399", "0.5388244", "0.53798383", "0.5366862", "0.5365846", "0.5365419", "0.5360979", "0.53595567", "0.53572166", "0.53562224", "0.53541285", "0.5349263", "0.53483456", "0.5337759", "0.53371024", "0.53310347", "0.5327202", "0.5325055", "0.5318217" ]
0.0
-1
added by amt_wangpeipei 2012/07/11 for switchui2121 begin
LauncherModel setLauncher(Launcher launcher) { mLauncher = launcher; //added by amt_wangpeipei 2012/07/11 for switchui-2121 end if (mModel != null) mModel.initialize(launcher); return mModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo4359a() {\n }", "public void mo12628c() {\n }", "private void kk12() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void mo6081a() {\n }", "private static void cajas() {\n\t\t\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 }", "private void strin() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void sbbActivate() {\n\t}", "private void level7() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private void presentShowcaseSequence() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "private void emgPh2ActionPerformed(java.awt.event.ActionEvent evt) {\n\t }", "public void mo9848a() {\n }", "public final void mo51373a() {\n }", "public void baocun() {\n\t\t\n\t}", "public void mo21825b() {\n }", "@Override\n protected void incrementStates() {\n\n }", "private USI_TRLT() {}", "protected void mo6255a() {\n }", "static void q8(){\t\n\t}", "public void mo21783H() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo1531a() {\n }", "static void feladat9() {\n\t}", "public static String _registerbutt_click() throws Exception{\n_inputregis();\n //BA.debugLineNum = 104;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\r\n\tprotected void doF9() {\n\t\t\r\n\t}", "@Override\n\tpublic void show4() {\n\t\t\n\t}", "private static String m128157b(int i) {\n StringBuilder sb = new StringBuilder(\"android:switcher:\");\n sb.append(R.id.edp);\n sb.append(\":\");\n sb.append(i);\n return sb.toString();\n }", "private void poetries() {\n\n\t}", "public void switchDisplayable (Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch\n // write pre-switch user code here\nDisplay display = getDisplay ();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch\nif (alert == null) {\ndisplay.setCurrent (nextDisplayable);\n} else {\ndisplay.setCurrent (alert, nextDisplayable);\n}//GEN-END:|5-switchDisplayable|1|5-postSwitch\n // write post-switch user code here\n}", "public void mo3376r() {\n }", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo3370l() {\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 abstract void mo70713b();", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo21791P() {\n }", "static void sui_with_acc(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(passed.substring(4));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "public void mo21781F() {\n }", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "public abstract void mo20900UP();", "static void feladat8() {\n\t}", "void mo57277b();", "public void skystonePos6() {\n }", "public void mo21787L() {\n }", "public final void mo8775b() {\n }", "private void info3(int i) {\n\t\t\n\t}", "private void handle_mode_display() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "public void mo21879u() {\n }", "public void Goto() {\n\t\t\n\t}", "public void mo23813b() {\n }", "private void level6() {\n }", "public void skystonePos4() {\n }", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void mo97908d() {\n }", "private void gotoSTK(){\n\t short buf_length = (short) MyText.length;\n\t short i = buf_length;\n\t initDisplay(MyText, (short) 0, (short) buf_length, (byte) 0x81,(byte) 0x04);\n}", "private void getStatus() {\n\t\t\n\t}", "switch(curState) {\r\n${stateoutputcases}\r\n default:\r\n break; //no action taken\r\n }", "private void changefivetext(int i) {\n\r\n\t\tif (btn_menu1_int == i) {\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else if (btn_menu2_int == i) {\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else if (btn_menu3_int == i) {\r\n\t\t\tbtn_menu3_int = btn_menu2_int;\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else if (btn_menu4_int == i) {\r\n\t\t\tbtn_menu4_int = btn_menu3_int;\r\n\t\t\tbtn_menu3_int = btn_menu2_int;\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else {\r\n\t\t\tbtn_menu5_int = btn_menu4_int;\r\n\t\t\tbtn_menu4_int = btn_menu3_int;\r\n\t\t\tbtn_menu3_int = btn_menu2_int;\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t}\r\n\t\tif (tickettypecode == 1) {\r\n\t\t\twritetj();\r\n\t\t} else if (tickettypecode == 2) {\r\n\t\t\twritexj();\r\n\t\t} else if (tickettypecode == 3) {\r\n\t\t\twritejx();\r\n\t\t} else if (tickettypecode == 4) {\r\n\t\t\twritecq();\r\n\t\t}\r\n\r\n\t}", "void mo21070b();", "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "void mo57278c();", "void mo80455b();", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "void mo60893b();", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void interr() {\n\t}", "static void inx_rp(String passed){\n\t\tint h,l;\n\t\tswitch(passed.charAt(4)){\n\t\tcase 'B':\n\t\t\th = hexa_to_deci(registers.get('B'));\n\t\t\tl = hexa_to_deci(registers.get('C'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('C',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('B',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\th = hexa_to_deci(registers.get('D'));\n\t\t\tl = hexa_to_deci(registers.get('E'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('E',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('D',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\th = hexa_to_deci(registers.get('H'));\n\t\t\tl = hexa_to_deci(registers.get('L'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\t}\n\t}", "private void enterSequence_mainRegion_State1_default() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.mainRegion_State1;\n\t}", "static void jump_to_pchl(String passed){\n\t\tString ad = registers.get('H')+registers.get('L');\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified = true;\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "void mo80457c();", "public abstract void mo6549b();", "protected boolean func_70041_e_() { return false; }", "@Override\n\tprotected void logic() {\n\n\t}", "void mo4833b();", "public void mo21794S() {\n }", "private void enterSequence_mainRegion_State2__region0_State4__region0_State7__region0_State8_default() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.mainRegion_State2__region0_State4__region0_State7__region0_State8;\n\n\t\thistoryVector[2] = stateVector[0];\n\t}", "private static void menuno(int menuno2) {\n\t\t\r\n\t}", "public void mo97906c() {\n }", "void mo88524c();", "void mo67924c();" ]
[ "0.5769379", "0.5743307", "0.5730233", "0.5727206", "0.5717504", "0.5702941", "0.56836855", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.56811416", "0.5641477", "0.5638069", "0.5599141", "0.55882007", "0.55878437", "0.5558293", "0.550566", "0.5480059", "0.54788566", "0.5472461", "0.54569805", "0.54494274", "0.54459757", "0.5438884", "0.543824", "0.5407915", "0.54051805", "0.53879493", "0.538445", "0.5378731", "0.5351841", "0.5337221", "0.5329199", "0.53284615", "0.5322267", "0.5306458", "0.5304399", "0.53020203", "0.5299434", "0.5299397", "0.52952594", "0.52897334", "0.52859235", "0.5280627", "0.5280058", "0.5280058", "0.52734065", "0.52692515", "0.5267602", "0.52617216", "0.52521175", "0.52511775", "0.52498376", "0.5248083", "0.5242013", "0.5240202", "0.523739", "0.5236403", "0.5234574", "0.52304524", "0.5226723", "0.5225249", "0.52230734", "0.5218388", "0.52104264", "0.5209647", "0.52048254", "0.5203212", "0.52028763", "0.520246", "0.5197814", "0.5192087", "0.5190059", "0.5187649", "0.5185521", "0.5183918", "0.51836264", "0.51836264", "0.5181753", "0.51803184", "0.5178248", "0.5171447", "0.5169728", "0.51674455", "0.5166123", "0.5165959", "0.5163717", "0.5163358", "0.5162121", "0.516098", "0.5156495", "0.5151987", "0.5151849", "0.515039", "0.51453084", "0.51441455", "0.514289" ]
0.0
-1
added by amt_wangpeipei 2012/07/11 for switchui2121
public Launcher getLauncher(){ return mLauncher; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String m128157b(int i) {\n StringBuilder sb = new StringBuilder(\"android:switcher:\");\n sb.append(R.id.edp);\n sb.append(\":\");\n sb.append(i);\n return sb.toString();\n }", "public void mo12628c() {\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 }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private boolean poleSwitchEngaged(){\n return true; //poleSwitch.get();\n }", "public void mo6081a() {\n }", "public void mo4359a() {\n }", "private void handle_mode_display() {\n\t\t\t\n\t\t}", "private void kk12() {\n\n\t}", "public void mo55254a() {\n }", "public void mo38117a() {\n }", "private void initSwitchEvents(){\n s1.setOnClickListener(v ->\n eventoSuperficie()\n );\n s2.setOnClickListener(v ->\n eventoSemiSumergido()\n );\n s3.setOnClickListener(v ->\n eventoSumergido()\n );\n // Hace click en el estado actual\n switch (PosicionBarrasReactor.getPosicionActual()){\n case SUMERGIDO:\n s3.toggle();\n break;\n case SEMI_SUMERGIDO:\n s2.toggle();\n break;\n case SUPERFICIE:\n s1.toggle();\n break;\n }\n // -\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "static void inx_rp(String passed){\n\t\tint h,l;\n\t\tswitch(passed.charAt(4)){\n\t\tcase 'B':\n\t\t\th = hexa_to_deci(registers.get('B'));\n\t\t\tl = hexa_to_deci(registers.get('C'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('C',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('B',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\th = hexa_to_deci(registers.get('D'));\n\t\t\tl = hexa_to_deci(registers.get('E'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('E',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('D',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\th = hexa_to_deci(registers.get('H'));\n\t\t\tl = hexa_to_deci(registers.get('L'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\t}\n\t}", "private void level7() {\n }", "protected abstract void switchOnCustom();", "public void switchDisplayable (Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch\n // write pre-switch user code here\nDisplay display = getDisplay ();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch\nif (alert == null) {\ndisplay.setCurrent (nextDisplayable);\n} else {\ndisplay.setCurrent (alert, nextDisplayable);\n}//GEN-END:|5-switchDisplayable|1|5-postSwitch\n // write post-switch user code here\n}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private USI_TRLT() {}", "@Override\r\n public void onChange(SwitchButton sb, boolean state) {\n Log.d(\"switchButton\", state ? \"锟斤拷\":\"锟斤拷\");\r\n mImgView.setImageBitmap(null);\r\n //defreckle\r\n if(qubanSBtn.isSwitchOn())\r\n mImgView.setImageBitmap(mFaceEditor.BFDefreckleAuto());//));\r\n else\r\n mImgView.setImageBitmap(mFaceEditor.getBaseImage());\r\n }", "private void strin() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected void mo6255a() {\n }", "private static String getSwitchCaseMapping(String windowName2) {\n\r\n\t\tString switchcase = \"\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tswitchcase = switchcase + \" case \" + i + \":\\n\";\r\n\t\t\tswitchcase = switchcase + \"value = \" + windowName2.toLowerCase()\r\n\t\t\t\t\t+ \".get\" + mp.getMethodName() + \"();\\n break; \\n\";\r\n\r\n\t\t}\r\n\t\treturn switchcase;\r\n\t}", "static void sui_with_acc(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(passed.substring(4));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "static void q8(){\t\n\t}", "public static String _butpaso4_click() throws Exception{\nmostCurrent._butpaso1.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 189;BA.debugLine=\"butPaso2.Visible = False\";\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 190;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 191;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 192;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 193;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 194;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 195;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 196;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 197;BA.debugLine=\"lblPaso4.Visible = True\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 198;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 199;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 200;BA.debugLine=\"imgMosquito.Visible = True\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 201;BA.debugLine=\"imgMosquito.Top = 170dip\";\nmostCurrent._imgmosquito.setTop(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (170)));\n //BA.debugLineNum = 202;BA.debugLine=\"imgMosquito.Left = 30dip\";\nmostCurrent._imgmosquito.setLeft(anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (30)));\n //BA.debugLineNum = 203;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 204;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 205;BA.debugLine=\"lblEstadio.Text = \\\"Mosquito\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Mosquito\"));\n //BA.debugLineNum = 206;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso1, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso1,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 207;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n\tpublic void guiTinNhan() {\n\n\t}", "public abstract void mo20900UP();", "public void mo9848a() {\n }", "public static void changeScreens() {\r\n\t\tnone = true;\r\n\t\toption1 = false;\r\n\t\toption2 = false;\r\n\t\toption3 = false;\r\n\t\toption4 = false;\r\n\t\toption5 = false;\r\n\t\tbackToRegFromItem = false;\r\n\t\toverItem = false;\r\n\t\toverYes = false;\r\n\t\toverNo = false;\r\n\t\toverNext = false;\r\n\t\toverHealth = false;\r\n\t\toverAlly = false;\r\n\t\toverPummel = false;\r\n\t\toverLaser = false;\r\n\t\titemSelect = false;\r\n\t\tgoBackFromProg = false;\r\n\t\tgoBackFromAlly = false;\r\n\t\toverAnAlly = false;\r\n\t\tgoBackFromAttire = false;\r\n\t\toverAnOutfit = false;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public abstract void mo115901b(IUiManagr eVar);", "@Override\n protected void incrementStates() {\n\n }", "public void sbbActivate() {\n\t}", "private void emgPh2ActionPerformed(java.awt.event.ActionEvent evt) {\n\t }", "public void mo115190b() {\n }", "public static String _butpaso3_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 171;BA.debugLine=\"butPaso3.Visible = False\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 172;BA.debugLine=\"butPaso4.Visible = True\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 173;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 174;BA.debugLine=\"lblPaso2a.Visible = False\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 175;BA.debugLine=\"lblPaso2b.Visible = False\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 176;BA.debugLine=\"lblPaso3.Visible = True\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 177;BA.debugLine=\"lblPaso3a.Visible = True\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 178;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 179;BA.debugLine=\"imgPupas.Visible = True\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 180;BA.debugLine=\"imgLarvas.Visible = False\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 181;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 182;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 183;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 184;BA.debugLine=\"lblEstadio.Text = \\\"Pupa\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Pupa\"));\n //BA.debugLineNum = 185;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso4, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso4,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 186;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public final void mo7656e(int i, int i2, String str, C1207m c1207m) {\n AppMethodBeat.m2504i(41891);\n HoneyPayMainUI.m56320b(HoneyPayMainUI.this);\n HoneyPayMainUI.this.mController.removeAllOptionMenu();\n if (c28288f.nqC.wxk == null || c28288f.nqC.wxk.isEmpty()) {\n C4990ab.m7416i(HoneyPayMainUI.this.TAG, \"empty card\");\n HoneyPayMainUI.m56315a(HoneyPayMainUI.this, c28288f.nqC.wxl);\n HoneyPayMainUI.this.nsu.setVisibility(8);\n HoneyPayMainUI.this.nqT = C25738R.color.a69;\n HoneyPayMainUI.this.setMMTitle(\"\");\n } else {\n HoneyPayMainUI.m56324d(HoneyPayMainUI.this);\n HoneyPayMainUI.m56318a(HoneyPayMainUI.this, c28288f.nqC.wxk);\n C4990ab.m7417i(HoneyPayMainUI.this.TAG, \"show open card: %s\", Boolean.valueOf(c28288f.nqC.wxn));\n if (c28288f.nqC.wxn) {\n HoneyPayMainUI.this.nsu.setVisibility(0);\n } else {\n HoneyPayMainUI.this.nsu.setVisibility(8);\n }\n HoneyPayMainUI.this.nqT = C25738R.color.f12094s2;\n HoneyPayMainUI.this.setMMTitle((int) C25738R.string.ccl);\n }\n HoneyPayMainUI.m56316a(HoneyPayMainUI.this, c28288f.nqC.wxo);\n HoneyPayMainUI.this.bFY();\n HoneyPayMainUI.this.findViewById(2131824915).setBackgroundResource(HoneyPayMainUI.this.nqT);\n C28289c.m44885b(HoneyPayMainUI.this, c28288f.nqC.wxm, null, 0, null);\n HoneyPayMainUI.this.findViewById(2131824926).setVisibility(8);\n C7060h.pYm.mo15419k(875, 0, 1);\n AppMethodBeat.m2505o(41891);\n }", "private void switches() {\n finland.setChecked(true);\n chosenArea = \"Finland\";\n wholeWorld.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n europe.setChecked(false);\n nordic.setChecked(false);\n finland.setChecked(false);\n chosenArea = \"Whole world\";\n }\n }\n });\n europe.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n wholeWorld.setChecked(false);\n nordic.setChecked(false);\n finland.setChecked(false);\n chosenArea = \"Europe\";\n\n }\n }\n });\n nordic.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n wholeWorld.setChecked(false);\n europe.setChecked(false);\n finland.setChecked(false);\n chosenArea = \"Nordic countries and Estonia\";\n }\n }\n });\n finland.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n wholeWorld.setChecked(false);\n europe.setChecked(false);\n nordic.setChecked(false);\n chosenArea = \"Finland\";\n }\n }\n });\n }", "public void mo21783H() {\n }", "void mo88524c();", "public void ShowData() {\t\n\t\t\t\n\t\t\tShort SR0= cpu.getR0();\n\t\t\tString strR0 = String.format(\"%16s\",Integer.toBinaryString(SR0.intValue())).replace(' ', '0');\n\t\t\tif(strR0.length()>16){\n\t\t\t\tstrR0=strR0.substring(strR0.length()-16,strR0.length());\n\t\t\t}\n\t\t\tint a = 0;\n\t\t\twhile(a < strR0.length()) {\n\t\t\t\tchar[] chara = strR0.toCharArray();\n\t\t\t\tif (chara[a] == '1') {\n\t\t\t\t\tR0[a].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR0[a].setSelected(false);\n\t\t\t\t}\n\t\t\t\ta++;\n\t\t\t}\n\n\t\t\tShort SR1 = cpu.getR1();\n\t\t\tString strR1 = String.format(\"%16s\",Integer.toBinaryString(SR1.intValue())).replace(' ', '0');\n\t\t\tif(strR1.length()>16){\n\t\t\t\tstrR1=strR1.substring(strR1.length()-16,strR1.length());\n\t\t\t}\n\t\t\tint b = 0;\n\t\t\twhile(b < strR1.length()) {\n\t\t\t\tchar[] charb = strR1.toCharArray();\n\t\t\t\tif (charb[b] == '1') {\n\t\t\t\t\tR1[b].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR1[b].setSelected(false);\n\t\t\t\t}\n\t\t\t\tb++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SR2 = cpu.getR2();\n\t\t\tString strR2 = String.format(\"%16s\",Integer.toBinaryString(SR2.intValue())).replace(' ', '0');\n\t\t\tif(strR2.length()>16){\n\t\t\t\tstrR2=strR2.substring(strR2.length()-16,strR2.length());\n\t\t\t}\n\t\t\tint c = 0;\n\t\t\twhile(c < strR2.length()) {\n\t\t\t\tchar[] charc = strR2.toCharArray();\n\t\t\t\tif (charc[c] == '1') {\n\t\t\t\t\tR2[c].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR2[c].setSelected(false);\n\t\t\t\t}\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SR3 = cpu.getR3();\n\t\t\tString strR3 = String.format(\"%16s\",Integer.toBinaryString(SR3.intValue())).replace(' ', '0');\n\t\t\tif(strR3.length()>16){\n\t\t\t\tstrR3=strR3.substring(strR3.length()-16,strR3.length());\n\t\t\t}\n\t\t\tint d = 0;\n\t\t\twhile(d < strR3.length()) {\n\t\t\t\tchar[] chard = strR3.toCharArray();\n\t\t\t\tif (chard[d] == '1') {\n\t\t\t\t\tR3[d].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR3[d].setSelected(false);\n\t\t\t\t}\n\t\t\t\td++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX1 = cpu.getX1();\n\t\t\tString strX1 = String.format(\"%16s\",Integer.toBinaryString(SX1.intValue())).replace(' ', '0');\n\t\t\tif(strX1.length()>16){\n\t\t\t\tstrX1=strX1.substring(strX1.length()-16,strX1.length());\n\t\t\t}\n\t\t\tint f = 0;\n\t\t\twhile(f < strX1.length()) {\n\t\t\t\tchar[] charf = strX1.toCharArray();\n\t\t\t\tif (charf[f] == '1') {\n\t\t\t\t\tX1[f].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX1[f].setSelected(false);\n\t\t\t\t}\n\t\t\t\tf++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX2 = cpu.getX2();\n\t\t\tString strX2 = String.format(\"%16s\",Integer.toBinaryString(SX2.intValue())).replace(' ', '0');\n\t\t\tif(strX2.length()>16){\n\t\t\t\tstrX2=strX2.substring(strX2.length()-16,strX2.length());\n\t\t\t}\n\t\t\tint g = 0;\n\t\t\twhile(g < strX2.length()) {\n\t\t\t\tchar[] charg = strX2.toCharArray();\n\t\t\t\tif (charg[g] == '1') {\n\t\t\t\t\tX2[g].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX2[g].setSelected(false);\n\t\t\t\t}\n\t\t\t\tg++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX3 = cpu.getX3();\n\t\t\tString strX3 = String.format(\"%16s\",Integer.toBinaryString(SX3.intValue())).replace(' ', '0');\n\t\t\tif(strX3.length()>16){\n\t\t\t\tstrX3=strX3.substring(strX3.length()-16,strX3.length());\n\t\t\t}\n\t\t\tint h = 0;\n\t\t\twhile(h < strX3.length()) {\n\t\t\t\tchar[] charh = strX3.toCharArray();\n\t\t\t\tif (charh[h] == '1') {\n\t\t\t\t\tX3[h].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX3[h].setSelected(false);\n\t\t\t\t}\n\t\t\t\th++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SMAR = cpu.getMar();\n\t\t\tString strMAR = String.format(\"%16s\",Integer.toBinaryString(SMAR.intValue())).replace(' ', '0');\n\t\t\tif(strX3.length()>16){\n\t\t\t\tstrMAR=strMAR.substring(strMAR.length()-16,strMAR.length());\n\t\t\t}\n\t\t\tint j = 0;\n\t\t\twhile(j < strMAR.length()) {\n\t\t\t\tchar[] charj = strMAR.toCharArray();\n\t\t\t\tif (charj[j] == '1') {\n\t\t\t\t\tMAR[j].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tMAR[j].setSelected(false);\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SMBR = cpu.getMbr();\n\t\t\tString strMBR = String.format(\"%16s\",Integer.toBinaryString(SMBR.intValue())).replace(' ', '0');\n\t\t\tif(strMBR.length()>16){\n\t\t\t\tstrMBR=strMBR.substring(strMBR.length()-16,strMBR.length());\n\t\t\t}\n\t\t\tint k = 0;\n\t\t\twhile(k < strMBR.length()) {\n\t\t\t\tchar[] chark = strMBR.toCharArray();\n\t\t\t\tif (chark[k] == '1') {\n\t\t\t\t\tMBR[k].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tMBR[k].setSelected(false);\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SIR = cpu.getIr();\n\t\t\tString strIR = String.format(\"%16s\",Integer.toBinaryString(SIR.intValue())).replace(' ', '0');\n\t\t\tif(strIR.length()>12){\n\t\t\t\tstrIR=strIR.substring(strIR.length()-16,strIR.length());\n\t\t\t}\n\t\t\tint l = 0;\n\t\t\twhile(l < strIR.length()) {\n\t\t\t\tchar[] charl = strIR.toCharArray();\n\t\t\t\tif (charl[l] == '1') {\n\t\t\t\t\tIR[l].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tIR[l].setSelected(false);\n\t\t\t\t}\n\t\t\t\tl++;\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tShort SPC = cpu.getPc();\n\t\t\tString strPC = String.format(\"%12s\",Integer.toBinaryString(SPC.intValue())).replace(' ', '0');\n\t\t\tif(strPC.length()>12){\n\t\t\t\tstrPC=strPC.substring(strPC.length()-16,strPC.length());\n\t\t\t}\n\t\t\tint m = 0;\n\t\t\twhile(m < strPC.length()) {\n\t\t\t\tchar[] charm = strPC.toCharArray();\n\t\t\t\tif (charm[m] == '1') {\n\t\t\t\t\tPC[m].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tPC[m].setSelected(false);\n\t\t\t\t}\n\t\t\t\tm++;\n\t\t\t}\t\t\t\n\t\t\t\n\t}", "public void onReceive(android.content.Context r9, android.content.Intent r10) {\n /*\n r8 = this;\n java.lang.String r0 = r10.getAction()\n int r1 = r0.hashCode()\n r2 = 4\n r3 = 3\n r4 = 2\n r5 = 1\n r6 = 0\n switch(r1) {\n case -1897205914: goto L_0x0039;\n case -1727841388: goto L_0x002f;\n case -837322541: goto L_0x0025;\n case -615389090: goto L_0x001b;\n case 798292259: goto L_0x0011;\n default: goto L_0x0010;\n }\n L_0x0010:\n goto L_0x0043\n L_0x0011:\n java.lang.String r1 = \"android.intent.action.BOOT_COMPLETED\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r2\n goto L_0x0044\n L_0x001b:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.STOP\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r5\n goto L_0x0044\n L_0x0025:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.ENABLE_DEBUG\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r4\n goto L_0x0044\n L_0x002f:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.SWITCH_INTERVAL\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r3\n goto L_0x0044\n L_0x0039:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.START\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r6\n goto L_0x0044\n L_0x0043:\n r1 = -1\n L_0x0044:\n java.lang.String r7 = \"SwitchBoardReceiver.onReceive: action=\"\n if (r1 == 0) goto L_0x011d\n if (r1 == r5) goto L_0x00f3\n if (r1 == r4) goto L_0x00d5\n if (r1 == r3) goto L_0x008d\n if (r1 == r2) goto L_0x0066\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"SwitchBoardReceiver.onReceive: undefined case: action=\"\n r1.append(r2)\n r1.append(r0)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n goto L_0x015c\n L_0x0066:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logv(r1)\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n android.os.Message r2 = r2.obtainMessage(r3)\n r1.sendMessage(r2)\n goto L_0x015c\n L_0x008d:\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n java.lang.String r2 = \"WifiToLteDelayMs\"\n int r2 = r10.getIntExtra(r2, r6)\n int unused = r1.mWifiToLteDelayMs = r2\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n r2 = 5000(0x1388, float:7.006E-42)\n java.lang.String r3 = \"LteToWifiDelayMs\"\n int r2 = r10.getIntExtra(r3, r2)\n int unused = r1.mLteToWifiDelayMs = r2\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r2 = \", mWifiToLteDelayMs: \"\n r1.append(r2)\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n int r2 = r2.mWifiToLteDelayMs\n r1.append(r2)\n java.lang.String r2 = \", mLteToWifiDelayMs: \"\n r1.append(r2)\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n int r2 = r2.mLteToWifiDelayMs\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n goto L_0x015c\n L_0x00d5:\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n java.lang.String r3 = \"DEBUG\"\n boolean r3 = r10.getBooleanExtra(r3, r6)\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3)\n android.os.Message r2 = r2.obtainMessage(r4, r3)\n r1.sendMessage(r2)\n goto L_0x015c\n L_0x00f3:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r6)\n android.os.Message r2 = r2.obtainMessage(r5, r3)\n r1.sendMessage(r2)\n goto L_0x015c\n L_0x011d:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r2 = \"AlwaysPolling\"\n r1.append(r2)\n boolean r3 = r10.getBooleanExtra(r2, r6)\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n boolean r2 = r10.getBooleanExtra(r2, r6)\n boolean unused = r1.mWifiInfoPollingEnabledAlways = r2\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r5)\n android.os.Message r2 = r2.obtainMessage(r5, r3)\n r1.sendMessage(r2)\n L_0x015c:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.samsung.android.server.wifi.SwitchBoardService.SwitchBoardReceiver.onReceive(android.content.Context, android.content.Intent):void\");\n }", "public void reLoadFooterMenu(){\n if(itemFocused == UISettings.MESSAGEBOX){\n if(msgKey == 4 || msgKey == 23){\n UISettings.lOByte = 7; //Okay Constants Index\n UISettings.rOByte = -1;\n } else if(msgKey == 5){\n UISettings.lOByte = 7; //Okay Constants Index\n UISettings.rOByte = 8; //Cancel Constants Index\n } else if(msgKey == 6){\n UISettings.lOByte = 43; //Yes Constants Index\n UISettings.rOByte = -1;\n } else if(msgKey == 7){\n UISettings.lOByte = 43; //Yes Constants Index\n UISettings.rOByte = 44; //No Constants Index\n } else if(msgKey == 8){\n UISettings.lOByte = 15; //Accept Constants Index\n UISettings.rOByte = 8; //Cancel Constants Index\n } else if(msgKey == 9){\n UISettings.lOByte = 11; //Remined me constants Index\n UISettings.rOByte = 12; //Don't remined Constatns Index\n } else if(msgKey == 10){\n UISettings.lOByte = 45; //Now constants Index\n UISettings.rOByte = 46; //Later Constants Index\n //Now Reserved for some otherOption\n } else if(msgKey == 14){\n UISettings.lOByte = 40; //Dismiss Constants Index\n UISettings.rOByte = -1;\n } else if(msgKey == 19 || msgKey == 24){\n UISettings.lOByte = 49; //Retry Constants Index\n UISettings.rOByte = 8; //Cancel constants Index\n } else if(msgKey == 18){\n UISettings.lOByte = 7; //Okay Constants Index\n UISettings.rOByte = 40; //Dismiss constants Index\n } else if(msgKey == 21) { //CR 12165\n UISettings.lOByte = 7; //Okay Constants Index\n UISettings.rOByte = 22; //Back constants Index\n } else if(msgKey == 22) { //\n UISettings.lOByte = 51; //Reconnect Constants Index\n UISettings.rOByte = -1;\n } else if(msgKey == 25){\n UISettings.lOByte = 49; //Retry Constants Index\n UISettings.rOByte = -1; \n }\n //<--CR 13332\n else if(msgKey == 26){\n UISettings.lOByte = 52;\n UISettings.rOByte = 8; //Cancel constants Index\n }\n //CR 13332-->\n\n } else if(itemFocused == UISettings.NOTIFICATION){\n if(popupKey == 11){\n UISettings.lOByte = 39; //Goto constants Index\n UISettings.rOByte = -1;\n } else if(popupKey == 12){\n UISettings.lOByte = -1; \n UISettings.rOByte = 40; //Dismiss Constants Index\n } else if(popupKey == 13){\n UISettings.lOByte = 39; //Goto constants Index\n UISettings.rOByte = 40; //Dismiss Constants Index\n } else if(popupKey == 17){\n UISettings.lOByte = 50; //Chat Contanstas Index\n UISettings.rOByte = 40; //Dismiss Constants Index\n }\n } else if(itemFocused == UISettings.SYMBOLS){\n if(popupKey == 15){ //Symbol Pop-up not have any option key\n UISettings.lOByte = 7;\n UISettings.rOByte = 8;\n }\n }\n }", "public void mo21825b() {\n }", "private void changefivetext(int i) {\n\r\n\t\tif (btn_menu1_int == i) {\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else if (btn_menu2_int == i) {\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else if (btn_menu3_int == i) {\r\n\t\t\tbtn_menu3_int = btn_menu2_int;\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else if (btn_menu4_int == i) {\r\n\t\t\tbtn_menu4_int = btn_menu3_int;\r\n\t\t\tbtn_menu3_int = btn_menu2_int;\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t} else {\r\n\t\t\tbtn_menu5_int = btn_menu4_int;\r\n\t\t\tbtn_menu4_int = btn_menu3_int;\r\n\t\t\tbtn_menu3_int = btn_menu2_int;\r\n\t\t\tbtn_menu2_int = btn_menu1_int;\r\n\t\t\tbtn_menu1_int = i;\r\n\t\t}\r\n\t\tif (tickettypecode == 1) {\r\n\t\t\twritetj();\r\n\t\t} else if (tickettypecode == 2) {\r\n\t\t\twritexj();\r\n\t\t} else if (tickettypecode == 3) {\r\n\t\t\twritejx();\r\n\t\t} else if (tickettypecode == 4) {\r\n\t\t\twritecq();\r\n\t\t}\r\n\r\n\t}", "static void sbb_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tmult%=256;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "public static String _butpaso2_click() throws Exception{\nmostCurrent._butpaso2.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 152;BA.debugLine=\"butPaso3.Visible = True\";\nmostCurrent._butpaso3.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 153;BA.debugLine=\"butPaso4.Visible = False\";\nmostCurrent._butpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 154;BA.debugLine=\"lblLabelPaso1.Visible = False\";\nmostCurrent._lbllabelpaso1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 155;BA.debugLine=\"lblPaso2a.Visible = True\";\nmostCurrent._lblpaso2a.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 156;BA.debugLine=\"lblPaso2b.Visible = True\";\nmostCurrent._lblpaso2b.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 157;BA.debugLine=\"lblPaso3.Visible = False\";\nmostCurrent._lblpaso3.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 158;BA.debugLine=\"lblPaso3a.Visible = False\";\nmostCurrent._lblpaso3a.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 159;BA.debugLine=\"lblPaso4.Visible = False\";\nmostCurrent._lblpaso4.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 160;BA.debugLine=\"imgPupas.Visible = False\";\nmostCurrent._imgpupas.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 161;BA.debugLine=\"imgLarvas.Visible = True\";\nmostCurrent._imglarvas.setVisible(anywheresoftware.b4a.keywords.Common.True);\n //BA.debugLineNum = 162;BA.debugLine=\"imgMosquito.Visible = False\";\nmostCurrent._imgmosquito.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 163;BA.debugLine=\"imgMosquito1.Visible = False\";\nmostCurrent._imgmosquito1.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 164;BA.debugLine=\"imgHuevos.Visible = False\";\nmostCurrent._imghuevos.setVisible(anywheresoftware.b4a.keywords.Common.False);\n //BA.debugLineNum = 165;BA.debugLine=\"lblEstadio.Text = \\\"Larva\\\"\";\nmostCurrent._lblestadio.setText(BA.ObjectToCharSequence(\"Larva\"));\n //BA.debugLineNum = 166;BA.debugLine=\"utilidades.CreateHaloEffect(Activity, butPaso3, C\";\nmostCurrent._vvvvvvvvvvvvvvvvvvvvv7._vvvvvvvvv3 /*void*/ (mostCurrent.activityBA,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(mostCurrent._activity.getObject())),mostCurrent._butpaso3,anywheresoftware.b4a.keywords.Common.Colors.Red);\n //BA.debugLineNum = 168;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "@Override\n\tpublic void show4() {\n\t\t\n\t}", "private void m11882g() {\n Boolean bool = (Boolean) this.f9673b.getTag(R.id.dp7);\n if (bool == null) {\n bool = Boolean.valueOf(this.f9685n.mo25024a(\"hotsoon.pref.LAST_SET_LANDSCAPE\", true));\n this.f9673b.setTag(R.id.dp7, bool);\n }\n if (!bool.booleanValue()) {\n this.f9676e.setImageResource(R.drawable.cb0);\n this.f9677f.setText(R.string.f49);\n return;\n }\n this.f9676e.setImageResource(R.drawable.caz);\n this.f9677f.setText(R.string.f46);\n }", "public void mo3370l() {\n }", "protected void choixModeTri(){\r\n boolean choix = false;\r\n OPMode.menuChoix=true;\r\n OPMode.telemetryProxy.addLine(\"**** CHOIX DU MODE DE TRI ****\");\r\n OPMode.telemetryProxy.addLine(\" Bouton X : GAUCHE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton B : DROITE\");\r\n OPMode.telemetryProxy.addLine(\" Bouton Y : UNE SEULE COULEUR\");\r\n OPMode.telemetryProxy.addLine(\" Bouton A : MANUEL\");\r\n OPMode.telemetryProxy.addLine(\" CHOIX ? .........\");\r\n OPMode.telemetryProxy.update();\r\n while (!choix){\r\n if (gamepad.x){\r\n OPMode.modeTri = ModeTri.GAUCHE;\r\n choix = true;\r\n }\r\n if (gamepad.b){\r\n OPMode.modeTri = ModeTri.DROITE;\r\n choix = true;\r\n }\r\n if (gamepad.y){\r\n OPMode.modeTri = ModeTri.UNI;\r\n choix = true;\r\n }\r\n if (gamepad.a){\r\n OPMode.modeTri = ModeTri.MANUEL;\r\n choix = true;\r\n }\r\n }\r\n OPMode.menuChoix = false;\r\n\r\n }", "public void mo12930a() {\n }", "private void preSwitchPanel()\n {\n switchPanel = true;\n configureNext = true;\n configurePrevious = true;\n }", "private void handleSwitchModem(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSwitchModem(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSwitchModem(int):void\");\n }", "@Override\r\n public void initControl() {\n \r\n }", "@Override\n public String visit(SwitchEntry n, Object arg) {\n return null;\n }", "public void mo3376r() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "public void keyPressed()\n{\n switch (key)\n {\n case ' ': //play and pause\n s =! s;\n if (s == false)\n {\n //pausets = millis()/4;\n controlP5.getController(\"play\").setLabel(\"Play\");\n } else if (s == true )\n {\n //origint = origint + millis()/4 - pausets;\n controlP5.getController(\"play\").setLabel(\"Pause\");\n }\n break; \n\n case TAB: //change of basemap\n if (mapwd == map1)\n {\n mapwd = map3;\n mapwk = map4; \n } else\n {\n mapwd = map1;\n mapwk = map2;\n }\n break; \n\n case ',': //backwards\n runtimes = runtimes - 300;\n break;\n\n case '<': //backwards\n runtimes = runtimes - 300;\n break; \n\n case '.': //forwards\n runtimes = runtimes + 300;\n break;\n\n case '>': //forwards\n runtimes = runtimes + 300;\n break;\n\n case 'z': //zoom to origin layer\n mapwk.zoomAndPanTo(BeijingLocation, 12);\n mapwd.zoomAndPanTo(BeijingLocation, 12);\n break;\n\n// case 'q': //switch mode\n// f.show();\n// break;\n }\n}", "@Override\r\n public int SelectBrandOfConnection(int brand) {\n if(brand == 1){\r\n System.out.println(\"Dialog\");\r\n return Reload_Interface.dialog;\r\n }\r\n else if(brand == 2){\r\n System.out.println(\"Mobitel\");\r\n return Reload_Interface.mobitel;\r\n } \r\n else if(brand == 3){\r\n System.out.println(\"Hutch\");\r\n return Reload_Interface.hutch;\r\n } \r\n else if(brand == 4){\r\n System.out.println(\"Airtel\");\r\n return Reload_Interface.airtel;\r\n } \r\n else{\r\n System.out.println(\"Invalid Input ...!\");\r\n }\r\n\t\treturn 0; \r\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void addedSwitch(IOFSwitch sw) \n\t{\n\n\t}", "public final void mo8775b() {\n }", "public HashMap<String,SLR1_automat.State> get_switches();", "protected void dopositiveClick2() {\n\n }", "public abstract Menu mo2158c();", "public final void mo3855c() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0279ch.m1117n(sb, str, 100);\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.startBluetoothSco();\n }\n }", "switch(curState) {\r\n${stateoutputcases}\r\n default:\r\n break; //no action taken\r\n }", "static void dcx_rp(String passed){\n\t\tint h,l;\n\t\tswitch(passed.charAt(4)){\n\t\tcase 'B':\n\t\t\th = hexa_to_deci(registers.get('B'));\n\t\t\tl = hexa_to_deci(registers.get('C'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\tregisters.put('C',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('B',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\th = hexa_to_deci(registers.get('D'));\n\t\t\tl = hexa_to_deci(registers.get('E'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('E',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('D',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\th = hexa_to_deci(registers.get('H'));\n\t\t\tl = hexa_to_deci(registers.get('L'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\t}\n\t}", "void mo67924c();", "public final void mo3856d() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0550gu.m1820b(str, sb.toString());\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.stopBluetoothSco();\n }\n }", "public void mo21879u() {\n }", "void mo21070b();", "void mo57278c();", "static void transfer_hl_to_sp(String passed){\n\t\tSP = hexa_to_deci(registers.get('H')+registers.get('L'));\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "public void add_switch(String symbol, SLR1_automat.State state) throws Exception;", "static void feladat8() {\n\t}", "static void sbb_with_mem(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "static void jump_to_pchl(String passed){\n\t\tString ad = registers.get('H')+registers.get('L');\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified = true;\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void m14901f() {\n C3239b bVar = new C3239b(this.f8713b, this.f8735x, this.f8718g, this.f8717f, this.f8734w);\n this.f8704H = bVar;\n this.f8702F = (ViewGroup) ((ViewGroup) this.f8713b.findViewById(16908290)).getParent().getParent();\n this.f8702F.postDelayed(new Runnable() {\n public void run() {\n if (C3243f.this.f8713b != null && !C3243f.this.f8713b.isFinishing()) {\n C3243f fVar = (C3243f) C3243f.this.f8702F.findViewWithTag(\"ShowCaseViewTag\");\n C3243f.this.setClickable(!C3243f.this.f8733v);\n if (fVar == null) {\n C3243f.this.setTag(\"ShowCaseViewTag\");\n if (C3243f.this.f8732u) {\n C3243f.this.m14903g();\n }\n C3243f.this.setLayoutParams(new LayoutParams(-1, -1));\n C3243f.this.f8702F.addView(C3243f.this);\n C3243f.this.f8712a = new C3241d(C3243f.this.f8713b);\n C3243f.this.f8712a.mo10432b(C3243f.this.f8698B, C3243f.this.f8699C);\n if (C3243f.this.f8704H.mo10425f()) {\n C3243f.this.f8700D = C3243f.this.f8704H.mo10422d();\n C3243f.this.f8701E = C3243f.this.f8704H.mo10424e();\n }\n C3243f.this.f8712a.mo10430a(C3243f.this.f8719h, C3243f.this.f8704H);\n if (C3243f.this.f8708L > 0 && C3243f.this.f8709M > 0) {\n C3243f.this.f8704H.mo10416a(C3243f.this.f8705I, C3243f.this.f8706J, C3243f.this.f8708L, C3243f.this.f8709M);\n }\n if (C3243f.this.f8707K > 0) {\n C3243f.this.f8704H.mo10415a(C3243f.this.f8705I, C3243f.this.f8706J, C3243f.this.f8707K);\n }\n C3243f.this.f8712a.mo10431a(C3243f.this.f8711O);\n C3243f.this.f8712a.setLayoutParams(new FrameLayout.LayoutParams(-1, -1));\n if (C3243f.this.f8720i != 0 && C3243f.this.f8726o > 0) {\n C3243f.this.f8712a.mo10429a(C3243f.this.f8720i, C3243f.this.f8726o);\n }\n if (C3243f.this.f8727p > 0) {\n C3243f.this.f8712a.mo10428a(C3243f.this.f8727p);\n }\n C3243f.this.addView(C3243f.this.f8712a);\n if (C3243f.this.f8725n == 0) {\n C3243f.this.m14907i();\n } else {\n C3243f.this.m14892a(C3243f.this.f8725n, C3243f.this.f8728q);\n }\n C3243f.this.m14905h();\n C3243f.this.m14913l();\n }\n }\n }\n }, this.f8737z);\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public boolean onPreferenceChange(android.preference.Preference r8, java.lang.Object r9) {\n /*\n r7 = this;\n r2 = 0;\n r3 = 1;\n r4 = com.whatsapp.DialogToastActivity.f;\n r0 = android.os.Build.MODEL;\n r1 = z;\n r5 = 5;\n r1 = r1[r5];\n r0 = r0.contains(r1);\n if (r0 != 0) goto L_0x001d;\n L_0x0011:\n r0 = android.os.Build.MODEL;\n r1 = z;\n r1 = r1[r2];\n r0 = r0.contains(r1);\n if (r0 == 0) goto L_0x0032;\n L_0x001d:\n r0 = r9.toString();\n r1 = z;\n r5 = 4;\n r1 = r1[r5];\n r0 = r0.equals(r1);\n if (r0 != 0) goto L_0x0032;\n L_0x002c:\n r0 = r7.a;\n r1 = 7;\n r0.showDialog(r1);\n L_0x0032:\n r0 = r8;\n r0 = (android.preference.ListPreference) r0;\n r1 = r9;\n r1 = (java.lang.String) r1;\n r1 = r0.findIndexOfValue(r1);\n r0 = r0.getEntries();\n r0 = r0[r1];\n r0 = r0.toString();\n r8.setSummary(r0);\n r1 = r8.getKey();\n r0 = -1;\n r5 = r1.hashCode();\n switch(r5) {\n case -1806012668: goto L_0x0059;\n case -1040361276: goto L_0x0067;\n default: goto L_0x0055;\n };\n L_0x0055:\n switch(r0) {\n case 0: goto L_0x0074;\n case 1: goto L_0x0089;\n default: goto L_0x0058;\n };\n L_0x0058:\n return r3;\n L_0x0059:\n r5 = z;\n r6 = 2;\n r5 = r5[r6];\n r5 = r1.equals(r5);\n if (r5 == 0) goto L_0x0055;\n L_0x0064:\n if (r4 == 0) goto L_0x009b;\n L_0x0066:\n r0 = r2;\n L_0x0067:\n r2 = z;\n r5 = 6;\n r2 = r2[r5];\n r1 = r1.equals(r2);\n if (r1 == 0) goto L_0x0055;\n L_0x0072:\n r0 = r3;\n goto L_0x0055;\n L_0x0074:\n r0 = r8.getContext();\n r1 = com.whatsapp.a3b.a(r0);\n r0 = z;\n r2 = 3;\n r2 = r0[r2];\n r0 = r9;\n r0 = (java.lang.String) r0;\n r1.e(r2, r0);\n if (r4 == 0) goto L_0x0058;\n L_0x0089:\n r0 = r8.getContext();\n r0 = com.whatsapp.a3b.a(r0);\n r1 = z;\n r1 = r1[r3];\n r9 = (java.lang.String) r9;\n r0.e(r1, r9);\n goto L_0x0058;\n L_0x009b:\n r0 = r2;\n goto L_0x0055;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.awk.onPreferenceChange(android.preference.Preference, java.lang.Object):boolean\");\n }", "void mo17021c();", "void mo4833b();", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }" ]
[ "0.57426125", "0.56199574", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.55962527", "0.5537044", "0.5515841", "0.55154663", "0.5506171", "0.55016273", "0.54710007", "0.54700065", "0.54474473", "0.5419821", "0.54014844", "0.5396971", "0.53865904", "0.5378839", "0.53686893", "0.53637195", "0.5356842", "0.53550446", "0.53448063", "0.5344054", "0.53046846", "0.52939236", "0.52819943", "0.52746123", "0.52693105", "0.52689236", "0.52536905", "0.5249205", "0.52407026", "0.5232428", "0.52295685", "0.52283764", "0.5224644", "0.52231956", "0.5212763", "0.5208785", "0.5196634", "0.51917875", "0.51878375", "0.5187711", "0.5187356", "0.51862746", "0.51846635", "0.5180662", "0.5168585", "0.51676697", "0.51663756", "0.5154429", "0.5153823", "0.5151838", "0.5149924", "0.51462024", "0.5145817", "0.5145786", "0.513617", "0.51327384", "0.5131683", "0.5120515", "0.5117702", "0.5117191", "0.51161623", "0.51161623", "0.5108537", "0.5104596", "0.50980246", "0.50940263", "0.509223", "0.5091826", "0.5088195", "0.50868213", "0.508255", "0.5080495", "0.50800765", "0.5075326", "0.50694484", "0.50690824", "0.5063525", "0.50626016", "0.5060051", "0.5059048", "0.505192", "0.505192", "0.50510997", "0.50491387", "0.50462073", "0.5043724", "0.5036784", "0.5033926", "0.5033771", "0.50309247", "0.50305486", "0.50268", "0.5026432" ]
0.0
-1
Modified by e13775 at 19 June 2012 for organize apps' group
public IconCache getIconCache() { return mIconCache; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GroupDescription {\n /**\n * Types of the group supported by ONOS.\n */\n enum Type {\n /**\n * Load-balancing among different buckets in a group.\n */\n SELECT,\n /**\n * Single Bucket Group.\n */\n INDIRECT,\n /**\n * Multicast to all buckets in a group.\n */\n ALL,\n /**\n * Similar to {@link Type#ALL} but used for cloning of packets\n * independently of the egress decision (singleton treatment or other\n * group).\n */\n CLONE,\n /**\n * Uses the first live bucket in a group.\n */\n FAILOVER\n }\n\n /**\n * Returns type of a group object.\n *\n * @return GroupType group type\n */\n Type type();\n\n /**\n * Returns device identifier on which this group object is created.\n *\n * @return DeviceId device identifier\n */\n DeviceId deviceId();\n\n /**\n * Returns application identifier that has created this group object.\n *\n * @return ApplicationId application identifier\n */\n ApplicationId appId();\n\n /**\n * Returns application cookie associated with a group object.\n *\n * @return GroupKey application cookie\n */\n GroupKey appCookie();\n\n /**\n * Returns groupId passed in by caller.\n *\n * @return Integer group id passed in by caller. May be null if caller\n * passed in null to let groupService determine the group id.\n */\n Integer givenGroupId();\n\n /**\n * Returns group buckets of a group.\n *\n * @return GroupBuckets immutable list of group bucket\n */\n GroupBuckets buckets();\n}", "public boolean isAppGroup() {\n if (getNotification().getGroup() != null || getNotification().getSortKey() != null) {\n return true;\n }\n return false;\n }", "public abstract String getDefaultGroup();", "private String getAPNameString(List<AirplaneModel> association,\r\n\t\t\tViewAirplaneModel type, StringBuilder grp) {\r\n\t\tfor(AirplaneModel model:association){\r\n\t\t\tif(type.getAirplaneModelTypeID()==model.getAirplaneModelTypeID().getAirplaneModelTypeID().longValue()){\r\n\t\t\t\tgrp.append(model.getGroupID().getGroupOwner().trim()).append(NEWLINE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString str=grp.toString();\r\n\t\tif(str.endsWith(NEWLINE)){\r\n\t\t\tstr=str.substring(0, str.length()-1);\r\n\t\t}\r\n\t\tString st[] = new String[WsrdConstants.HUNDRED];\r\n\t\tst= str.split(NEWLINE);\r\n\t\tArrays.sort(st);\r\n\t\r\n\t\tStringBuilder st1= new StringBuilder();\r\n\t\tfor(int j=0;j<=st.length-1;j++){\r\n\t\t\tst1.append(st[j]);\r\n\t\t\tst1.append(NEWLINE);\r\n\t\t}\r\n\t\treturn st1.toString();\r\n\t}", "public interface Group extends Item {\n\n /**\n * Gets all parents of this group in no particular order.\n * \n * @return array of parent groups, or empty array if there are no parent groups.\n * @throws AccessManagementException\n */\n Group[] getParents() throws AccessManagementException;\n\n /**\n * Gets all members of this group in no particular order.\n * \n * @return array of members, or empty array if there are no members.\n * @throws AccessManagementException\n */\n Item[] getMembers() throws AccessManagementException;\n\n // TODO: Because of scalability issues We should introduce an iterator for getting all members\n\n /**\n * Adds a member to this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item already is a member of this group, or if something\n * else goes wrong.\n */\n void addMember(Item item) throws AccessManagementException;\n\n /**\n * Removes item from this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item is not a member of this group, or if something else\n * goes wrong.\n */\n void removeMember(Item item) throws AccessManagementException;\n\n /**\n * Indicates whether the item is a member of this group.\n * \n * @param item\n * @return true if the item is a member of this group, false otherwise.\n * @throws AccessManagementException\n */\n boolean isMember(Item item) throws AccessManagementException;\n}", "private void processGroup(List<ResolveInfo> rList, int start, int end, ResolveInfo ro,\r\n CharSequence roLabel) {\r\n // Process labels from start to i\r\n int num = end - start+1;\r\n if (num == 1) {\r\n // No duplicate labels. Use label for entry at start\r\n mList.add(new DisplayResolveInfo(ro, roLabel, null, null));\r\n } else {\r\n boolean usePkg = false;\r\n CharSequence startApp = ro.activityInfo.applicationInfo.loadLabel(mPm);\r\n if (startApp == null) {\r\n usePkg = true;\r\n }\r\n if (!usePkg) {\r\n // Use HashSet to track duplicates\r\n HashSet<CharSequence> duplicates = new HashSet<CharSequence>();\r\n duplicates.add(startApp);\r\n for (int j = start+1; j <= end ; j++) {\r\n ResolveInfo jRi = rList.get(j);\r\n CharSequence jApp = jRi.activityInfo.applicationInfo.loadLabel(mPm);\r\n if ( (jApp == null) || (duplicates.contains(jApp))) {\r\n usePkg = true;\r\n break;\r\n } else {\r\n duplicates.add(jApp);\r\n } // End of if\r\n } // End of if\r\n // Clear HashSet for later use\r\n duplicates.clear();\r\n } // End of if\r\n for (int k = start; k <= end; k++) {\r\n ResolveInfo add = rList.get(k);\r\n if (usePkg) {\r\n // Use application name for all entries from start to end-1\r\n mList.add(new DisplayResolveInfo(add, roLabel,\r\n add.activityInfo.packageName, null));\r\n } else {\r\n // Use package name for all entries from start to end-1\r\n mList.add(new DisplayResolveInfo(add, roLabel,\r\n add.activityInfo.applicationInfo.loadLabel(mPm), null));\r\n } // End of if\r\n } // End of for\r\n } // End of if \r\n }", "@Override\n\tpublic long getGroupId() {\n\t\treturn _scienceApp.getGroupId();\n\t}", "ZigBeeGroup getGroup(int groupId);", "public void listGroup() {\r\n List<Group> groupList = groups;\r\n EventMessage evm = new EventMessage(\r\n EventMessage.EventAction.FIND_MULTIPLE,\r\n EventMessage.EventType.OK,\r\n EventMessage.EventTarget.GROUP,\r\n groupList);\r\n notifyObservers(evm);\r\n }", "Group getNextExecutableGroup();", "private void group(String[] args){\n String name;\n \n switch(args[1]){\n case \"view\":\n this.checkArgs(args,2,2);\n ms.listGroups(this.groups);\n break;\n case \"add\":\n this.checkArgs(args,3,2);\n name = args[2];\n db.createGroup(name);\n break;\n case \"rm\":\n this.checkArgs(args,3,2);\n name = args[2];\n Group g = this.findGroup(name);\n if(g == null)\n ms.err(4);\n db.removeGroup(g);\n break;\n default:\n ms.err(3);\n break;\n }\n }", "private void editValidItems(GroupOwnerModel group, String[] grps) {\r\n\t\tgroup.setGroupNameList(new ArrayList<String>());\r\n\t\tfor(String str:grps){\r\n\t\t\t for(SelectItem item: groupOwnerModel.getGroupSelectList()){\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(item.getLabel())){\r\n\t\t\t\t\tgroup.getGroupNameList().add(item.getValue().toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public final void rule__Application__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:394:1: ( rule__Application__Group__1__Impl rule__Application__Group__2 )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:395:2: rule__Application__Group__1__Impl rule__Application__Group__2\n {\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__1__Impl_in_rule__Application__Group__1774);\n rule__Application__Group__1__Impl();\n _fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__2_in_rule__Application__Group__1777);\n rule__Application__Group__2();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\r\n\tpublic void service(AgiRequest arg0, AgiChannel arg1) throws AgiException {\n\t\tString groupNum = getVariable(\"ARG1\");\r\n\t\t\r\n\t\t\r\n String dbname = \"heightscalls.nsf\";\r\n\t\t\r\n\t\tString[] opts = new String[1];\r\n\t\topts[0] = groupNum;\r\n\t\t\r\n\t\tString cmd = \"GETRINGGROUP\";\r\n\t\ttry {\r\n\t\t\tString[] res = ASTPORTAL.generalCommand(cmd, opts, dbname);\r\n\t\t\t\r\n\t\t\tString members = res[0];\r\n\t\t\tString tl = res[1];\r\n\t\t\tString vm = res[2];\r\n\t\t\t\r\n\t\t\tsetVariable(\"MEMBERS\", members);\r\n\t\t\tsetVariable(\"TL\", tl);\r\n\t\t\tsetVariable(\"VM\", vm);\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\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public interface GroupService {\n void upgradeInstances(String app_id, String app_version);\n}", "public final void rule__Application__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:423:1: ( rule__Application__Group__2__Impl )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:424:2: rule__Application__Group__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__2__Impl_in_rule__Application__Group__2834);\n rule__Application__Group__2__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}", "public String getGroup();", "public final void rule__Application__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:363:1: ( rule__Application__Group__0__Impl rule__Application__Group__1 )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:364:2: rule__Application__Group__0__Impl rule__Application__Group__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__0__Impl_in_rule__Application__Group__0712);\n rule__Application__Group__0__Impl();\n _fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__1_in_rule__Application__Group__0715);\n rule__Application__Group__1();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private static void showGroups(Service service) {\r\n\t\tList<Group> groupList = service.getGroupList();\r\n\t\tfor(int index=0;index<groupList.size();index++) {\r\n\t\t\tSystem.out.println(groupList.get(index));\r\n\t\t}\r\n\t}", "@Override\n public boolean isGroup() {\n return false;\n }", "void insert(LoanApplication icLoanApplication) {\n\t\tgroup.add(icLoanApplication);\n\t\t\n\t}", "public interface IGroupActionHelper {\n\t\n\t/**\n\t * Restituisce l'insieme delle referenze sul gruppo specificato.\n\t * Il metodo restituisce la mappa della lista degli oggetti referenzianti, indicizzata in base al nome \n\t * del manager che gestisce gli oggetti specifici.\n\t * @param group Il gruppo cui ricavare le referenze.\n\t * @param request La request.\n\t * @return La mappa della lista di oggetti referenzianti.\n\t * @throws ApsSystemException In caso di errore.\n\t */\n\tpublic Map<String, List<Object>> getReferencingObjects(Group group, HttpServletRequest request) throws ApsSystemException;\n\t\n}", "java.lang.String getProductGroup();", "@Test(groups = \"wso2.am\", description = \"Edit application by application by user in application group\",\n dependsOnMethods = \"testEditApplicationByApplicationOwner\")\n public void testEditApplicationByUserInApplicationGroup() throws ApiException {\n List<ApplicationInfoDTO> user2AllAppsList = restAPIStoreClientUser2.getAllApps().getList();\n ApplicationDTO applicationDTO = restAPIStoreClientUser2.getApplicationById(userOneSharedApplicationId);\n Assert.assertNotNull(applicationDTO);\n Assert.assertEquals(applicationDTO.getName(), SHARED_APPLICATION_NAME);\n\n //Edit application by a user in application group\n HttpResponse serviceResponse = restAPIStoreClientUser2.updateApplicationByID(userOneSharedApplicationId,\n APPLICATION_NAME, \"This app has been edited by user1\",\n APIMIntegrationConstants.APPLICATION_TIER.TEN_PER_MIN, ApplicationDTO.TokenTypeEnum.JWT, groups);\n Assert.assertEquals(serviceResponse.getResponseCode(), HttpStatus.SC_FORBIDDEN);\n }", "@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n @SuppressWarnings(\"unchecked\")\n Pair<Long, String> tag = (Pair<Long, String>) mode.getTag();\n final long groupId = tag.first;\n final String title = tag.second;\n \n\n switch (item.getItemId()) {\n case R.id.menu_edit:\n final EditText input = new EditText(getActivity());\n input.setSingleLine(true);\n input.setText(title);\n new AlertDialog.Builder(getActivity()) //\n .setTitle(R.string.edit_group_title) //\n .setView(input) //\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n new Thread() {\n @Override\n public void run() {\n String groupName = input.getText().toString();\n if (!groupName.isEmpty()) {\n ContentResolver cr = getActivity().getContentResolver();\n ContentValues values = new ContentValues();\n values.put(FeedColumns.NAME, groupName);\n if (cr.update(FeedColumns.CONTENT_URI(groupId), values, null, null) > 0) {\n cr.notifyChange(FeedColumns.GROUPS_CONTENT_URI, null);\n cr.notifyChange(FeedColumns.GROUPED_FEEDS_CONTENT_URI, null);\n }\n }\n }\n }.start();\n }\n }).setNegativeButton(android.R.string.cancel, null).show();\n\n mode.finish(); // Action picked, so close the CAB\n return true;\n case R.id.menu_delete:\n new AlertDialog.Builder(getActivity()) //\n .setIcon(android.R.drawable.ic_dialog_alert) //\n .setTitle(title) //\n .setMessage(R.string.question_delete_group) //\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n new Thread()\n {\n @Override\n public void run()\n {\n ContentResolver cr = getActivity().getContentResolver();\n if (cr.delete(FeedColumns.GROUPS_CONTENT_URI(groupId), null, null) > 0) {\n cr.notifyChange(EntryColumns.CONTENT_URI, null);\n cr.notifyChange(EntryColumns.FAVORITES_CONTENT_URI, null);\n cr.notifyChange(FeedColumns.GROUPED_FEEDS_CONTENT_URI, null);\n }\n }\n }.start();\n }\n }).setNegativeButton(android.R.string.no, null).show();\n\n mode.finish(); // Action picked, so close the CAB\n return true;\n default:\n return false;\n }\n }", "ContactGroup getServerStoredContactListRoot();", "public long getGroup()\r\n { return group; }", "public String getGroupName();", "@Test public void shouldReturnAllToolsFromAGroupWhenSearchedByItsGroup(){\n given.imInTheMainPage();\n when.searchByToolsGroup(GROUPS.RADIOS.getGroupName());\n then.mySearchWillReturnTheTools(TOOLS.PLANETA_ATLANTIDA, TOOLS.POD_CASTING, TOOLS.RADIOS_ADMIN, TOOLS.RADIOS_PLAYLIST, TOOLS.RADIOS_SITE, TOOLS.RADIOS_E_TV);\n }", "private void groupQuery() {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(ParseConstants.CLASS_GROUPS);\n query.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject group, ParseException e) {\n setProgressBarIndeterminateVisibility(false);\n if(e == null) {\n mGroup = group;\n mMemberRelation = mGroup.getRelation(ParseConstants.KEY_MEMBER_RELATION);\n mMemberOfGroupRelation = mCurrentUser.getRelation(ParseConstants.KEY_MEMBER_OF_GROUP_RELATION);\n\n //only the admin can delete the group\n mGroupAdmin = mGroup.get(ParseConstants.KEY_GROUP_ADMIN).toString();\n mGroupAdmin = Utilities.removeCharacters(mGroupAdmin);\n if ((mCurrentUser.getUsername()).equals(mGroupAdmin)) {\n mDeleteMenuItem.setVisible(true);\n }\n\n mGroupName = group.get(ParseConstants.KEY_GROUP_NAME).toString();\n mGroupName = Utilities.removeCharacters(mGroupName);\n setTitle(mGroupName);\n\n mCurrentDrinker = mGroup.get(ParseConstants.KEY_CURRENT_DRINKER).toString();\n mCurrentDrinker = Utilities.removeCharacters(mCurrentDrinker);\n mCurrentDrinkerView.setText(mCurrentDrinker);\n\n mPreviousDrinker = mGroup.get(ParseConstants.KEY_PREVIOUS_DRINKER).toString();\n mPreviousDrinker = Utilities.removeCharacters(mPreviousDrinker);\n mPreviousDrinkerView.setText(mPreviousDrinker);\n\n listViewQuery(mMemberRelation);\n }\n else {\n Utilities.getNoGroupAlertDialog(null);\n }\n }\n });\n }", "public static void main(String[] args)\n\t{\n\t\tGroupSynchronization groupSynchronization = new GroupSynchronization();\n\t\tGroup group\t\t\t= new Group();\n\t\t\n//\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n//\t\tsubNodeGroupInfo.setGroupName(\"组一\");\n//\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.市公司一.公司一部门二.组一\");\n//\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600007\");\n//\t\tsubNodeGroupInfo.setGroupType(\"0\");\n//\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n//\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n//\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600004\");\n//\t\tsubNodeGroupInfo.setGroupCompanytype(\"3\");\n//\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n//\t\tsubNodeGroupInfo.setGroupIntId(600009);\n//\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600004;000000000600007;000000000600009;\");\n//\t\t\n//\t\tgroupSynchronization.modifySynchronization(\"000000000600009\",subNodeGroupInfo);\n//\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600009\");\n\t\t\n\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n\t\tsubNodeGroupInfo.setGroupName(\"公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.省公司部门一.公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600008\");\n\t\tsubNodeGroupInfo.setGroupType(\"3\");\n\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600003\");\n\t\tsubNodeGroupInfo.setGroupCompanytype(\"1\");\n\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n\t\tsubNodeGroupInfo.setGroupIntId(600007);\n\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600008;000000000600007;\");\n\t\t\n\t\tgroupSynchronization.modifySynchronization(\"000000000600007\",subNodeGroupInfo);\n\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600007\");\n\t}", "private static List<Element> buildGroups(SegmentLibrary segmentLibrary,\n\t\t\tMap<Integer, gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group> map) {\n\t\tList<Element> topLevelGroup = new ArrayList<Element>();\n\t\tMap<Integer, Element> gm = new HashMap<Integer, Element>();\n\t\t// create groups map\n\t\tlog.info(\"group count=\" + map.values().size());\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n//\t\t\tlog.info(\"group name=\" + g.getName());\n\t\t\tElement e = new Element();\n\t\t\te.setName(g.getName());\n\t\t\te.setType(g.isChoice() ? ElementType.CHOICE : ElementType.GROUP);\n\t\t\tgm.put(g.getId(), e);\n\t\t\tif (g.getName().contains(\".ROOT\"))\n\t\t\t\ttopLevelGroup.add(e);\n\t\t\tif (e.getName() == null) {\n\t\t\t\tlog.info(\"here=\" + e.toString());\n\t\t\t}\n\t\t}\n\t\t// update groups children\n\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Group g : map.values()) {\n\t\t\tList<Element> children = new ArrayList<Element>();\n\t\t\tif (g.getChildren() != null) {\n\t\t\t\t// Some messages in old versions don't have children\n\t\t\t\t// log.info(\"o loop=\" + \" gid=\" + g.getId() + \" g.name=\" +\n\t\t\t\t// g.getName() + \" size=\" + g.getChildren().size());\n\t\t\t\tfor (gov.nist.healthcare.hl7tools.service.util.mock.hl7.domain.Element ee : g.getChildren()) {\n//\t\t\t\t\tlog.info(\"ee group id=\" + ee.getGroupId());\n\t\t\t\t\t// FIXME: Temporary hack to fix the position\n\t\t\t\t\tElement tmp = updateChildren(ee, map, gm, segmentLibrary);\n\t\t\t\t\tchildren.add(tmp);\n\t\t\t\t\ttmp.setPosition(children.size());\n\t\t\t\t}\n\t\t\t}\n\t\t\tgm.get(g.getId()).setChildren(children);\n\t\t}\n\t\treturn topLevelGroup;\n\t}", "@Override\r\n \tpublic void onCreate(Bundle savedInstanceState) {\r\n \t\tsuper.onCreate(savedInstanceState);\r\n \t\trequestWindowFeature(Window.FEATURE_LEFT_ICON);\r\n \t\tsetContentView(R.layout.group);\r\n \t\tsetFeatureDrawableResource(Window.FEATURE_LEFT_ICON, R.drawable.group);\r\n \r\n \t\t// this.registerForContextMenu(getListView());\r\n \t\tdb = new Db(getApplicationContext());\r\n \t\tBundle extras = getIntent().getExtras();\r\n \t\tif (extras != null) {\r\n \t\t\tid = extras.getString(\"id\");\r\n \t\t\tname = extras.getString(\"name\");\r\n \t\t\towner = extras.getString(\"owner\");\r\n \t\t\tpermission = extras.getString(\"permission\");\r\n \t\t\tlayout = extras.getInt(\"layout\");\r\n \t\t\tLog.i(tag, \"Owner is: \" + owner + \", permission is: \"+permission);\r\n \t\t}\r\n \t\tchildLayout = (LinearLayout)findViewById(R.id.extraLayout);\r\n \t\textraButton = (Button)findViewById(R.id.remove_contacts_button);\r\n \t\tmenu = (LinearLayout)findViewById(R.id.groupActivity_frame);\r\n \t\tqueryGroup(layout);\r\n \t\tshowMenu();\r\n \t\tregisterForContextMenu(getListView());\r\n \t\tlistView = this.getListView();\r\n \t\tgetListView().setTextFilterEnabled(true);\r\n \t\tgetListView().setCacheColorHint(Color.WHITE);\r\n \r\n \t}", "private JMenu buildGroupURLMenu(SequenceI[] seqs, SequenceGroup sg)\n {\n if (groupURLdescr == null || groupURLLinks == null)\n return null;\n // TODO: usability: thread off the generation of group url content so root\n // menu appears asap\n // sequence only URLs\n // ID/regex match URLs\n JMenu groupLinksMenu = new JMenu(\"Group Link\");\n String[][] idandseqs = GroupUrlLink.formStrings(seqs);\n Hashtable commonDbrefs = new Hashtable();\n for (int sq = 0; sq < seqs.length; sq++)\n {\n\n int start, end;\n if (sg != null)\n {\n start = seqs[sq].findPosition(sg.getStartRes());\n end = seqs[sq].findPosition(sg.getEndRes());\n }\n else\n {\n // get total width of alignment.\n start = seqs[sq].getStart();\n end = seqs[sq].findPosition(seqs[sq].getLength());\n }\n // we skip sequences which do not have any non-gaps in the region of\n // interest\n if (start > end)\n {\n continue;\n }\n // just collect ids from dataset sequence\n // TODO: check if IDs collected from selecton group intersects with the\n // current selection, too\n SequenceI sqi = seqs[sq];\n while (sqi.getDatasetSequence() != null)\n {\n sqi = sqi.getDatasetSequence();\n }\n DBRefEntry[] dbr = sqi.getDBRef();\n if (dbr != null && dbr.length > 0)\n {\n for (int d = 0; d < dbr.length; d++)\n {\n String src = dbr[d].getSource(); // jalview.util.DBRefUtils.getCanonicalName(dbr[d].getSource()).toUpperCase();\n Object[] sarray = (Object[]) commonDbrefs.get(src);\n if (sarray == null)\n {\n sarray = new Object[2];\n sarray[0] = new int[]\n { 0 };\n sarray[1] = new String[seqs.length];\n\n commonDbrefs.put(src, sarray);\n }\n\n if (((String[]) sarray[1])[sq] == null)\n {\n if (!dbr[d].hasMap()\n || (dbr[d].getMap().locateMappedRange(start, end) != null))\n {\n ((String[]) sarray[1])[sq] = dbr[d].getAccessionId();\n ((int[]) sarray[0])[0]++;\n }\n }\n }\n }\n }\n // now create group links for all distinct ID/sequence sets.\n Hashtable<String, JMenu[]> gurlMenus = new Hashtable<String, JMenu[]>();\n /**\n * last number of sequences where URL generation failed\n */\n int[] nsqtype = new int[]\n { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };\n for (int i = 0; i < groupURLLinks.size(); i++)\n {\n String link = (String) groupURLLinks.elementAt(i);\n String descr = (String) groupURLdescr.elementAt(i);\n\n // boolean specialCase =\n // additionalPar.elementAt(i).toString().equals(BACKGROUND);\n GroupUrlLink urlLink = null;\n try\n {\n urlLink = new GroupUrlLink(link);\n } catch (Exception foo)\n {\n jalview.bin.Cache.log.error(\"Exception for GroupURLLink '\" + link\n + \"'\", foo);\n continue;\n }\n ;\n if (!urlLink.isValid())\n {\n jalview.bin.Cache.log.error(urlLink.getInvalidMessage());\n continue;\n }\n final String label = urlLink.getLabel();\n // create/recover the sub menus that might be populated for this link.\n JMenu[] wflinkMenus = gurlMenus.get(label);\n if (wflinkMenus == null)\n {\n // three types of url that might be\n // created.\n wflinkMenus = new JMenu[]\n { null, new JMenu(\"IDS\"), new JMenu(\"Sequences\"),\n new JMenu(\"IDS and Sequences\") };\n gurlMenus.put(label, wflinkMenus);\n }\n\n boolean usingNames = false;\n // Now see which parts of the group apply for this URL\n String ltarget;\n String[] seqstr, ids; // input to makeUrl\n for (int t = 0; t < allowedDb.length; t++)\n {\n ltarget = allowedDb[t]; // jalview.util.DBRefUtils.getCanonicalName(urlLink.getTarget());\n Object[] idset = (Object[]) commonDbrefs.get(ltarget.toUpperCase());\n if (idset != null)\n {\n int numinput = ((int[]) idset[0])[0];\n String[] allids = ((String[]) idset[1]);\n seqstr = new String[numinput];\n ids = new String[numinput];\n if (nsqtype[urlLink.getGroupURLType()] > 0\n && numinput >= nsqtype[urlLink.getGroupURLType()])\n {\n continue;\n }\n for (int sq = 0, idcount = 0; sq < seqs.length; sq++)\n {\n if (allids[sq] != null)\n {\n ids[idcount] = allids[sq];\n seqstr[idcount++] = idandseqs[1][sq];\n }\n }\n try\n {\n createAndAddLinks(wflinkMenus, false, urlLink, ltarget, null,\n descr, ids, seqstr);\n } catch (UrlStringTooLongException ex)\n {\n nsqtype[urlLink.getGroupURLType()] = numinput;\n }\n }\n }\n // also do names only.\n seqstr = idandseqs[1];\n ids = idandseqs[0];\n if (nsqtype[urlLink.getGroupURLType()] > 0\n && idandseqs[0].length >= nsqtype[urlLink.getGroupURLType()])\n {\n continue;\n }\n\n try\n {\n createAndAddLinks(wflinkMenus, true, urlLink, \"Any\", null, descr,\n ids, seqstr);\n } catch (UrlStringTooLongException ex)\n {\n nsqtype[urlLink.getGroupURLType()] = idandseqs[0].length;\n }\n }\n boolean anyadded = false; // indicates if there are any group links to give\n // to user\n for (Map.Entry<String, JMenu[]> menues : gurlMenus.entrySet())\n {\n JMenu grouplinkset = new JMenu(menues.getKey());\n JMenu[] wflinkMenus = menues.getValue();\n for (int m = 0; m < wflinkMenus.length; m++)\n {\n if (wflinkMenus[m] != null\n && wflinkMenus[m].getMenuComponentCount() > 0)\n {\n anyadded = true;\n grouplinkset.add(wflinkMenus[m]);\n }\n }\n groupLinksMenu.add(grouplinkset);\n }\n if (anyadded)\n {\n return groupLinksMenu;\n }\n return null;\n }", "public abstract ModuleContactGroups contactGroups();", "private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}", "IGroup getFullGroup();", "private void createGrpClinicSelection() {\n\n\t}", "private static void insertOneGroupEntry(Cursor groupCursor, ArrayList<GroupInfo> groupList, Context context) {\n String title = groupCursor.getString(COL_TITLE);\n String titleDisplay = \"\";\n titleDisplay = title;\n\n GroupInfo pinfo = new GroupInfo();\n pinfo.groupId = -1;\n pinfo.title = title;\n pinfo.titleDisplay = titleDisplay;\n groupList.add(pinfo);\n }", "public void testDisplaysUsersInGroup(){\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser1\"));\n \t\tAssert.assertTrue(solo.searchText(\"GroupTestUser2\"));\n \t\tsolo.finishOpenedActivities();\n \t}", "public interface CoreGroup extends AbstractGroup {\r\n}", "void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }", "private static String formatGroup(GroupCard gc) {\n\t\tString res = \"\";\n\n\t\tGroupHeadGuest ghg = gc.getCapoGruppo();\n\t\tres += GroupHeadGuest.CODICE;\n\t\tres += DateUtils.format(gc.getDate());\n\t\tres += String.format(\"%02d\", gc.getPermanenza());\n\t\tres += padRight(ghg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(ghg.getName().trim().toUpperCase(),30);\n\t\tres += ghg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(ghg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(ghg.getPlaceOfBirth());\n\n\t\tPlace cita = ghg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\n\t\tres += ghg.getDocumento().getDocType().getCode();\n\t\tres += padRight(ghg.getDocumento().getCodice(),20);\n\t\tres += ghg.getDocumento().getLuogoRilascio().getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += \"\\r\\n\";\n\n\t\tfor (GroupMemberGuest gmg : gc.getAltri()){\n\t\t\tres += formatGroupMember(gmg, gc.getDate(), gc.getPermanenza());\n\t\t\t//res += \"\\r\\n\";\n\t\t}\n\t\treturn res;\n\t}", "private ArrayList<GroupActivity>\n getGroupActivities (Map<String, Collection<?>> beans, SocialGroup group)\n {\n ArrayList<GroupActivity> result = new ArrayList<>();\n for (Object thing: beans.get(\"GroupActivity\")) {\n GroupActivity ga = (GroupActivity) thing;\n if (ga.getGroupId() == group.getId()) {\n // one of ours\n result.add(ga);\n }\n }\n return result;\n }", "public boolean isGroup() {\n if (overrideGroupKey != null || isAppGroup()) {\n return true;\n }\n return false;\n }", "public String group() { return group; }", "public static String specifyGroup() {\n return holder.format(\"specifyGroup\");\n }", "java.lang.String getGroup();", "public ProductGroup beProductGroup();", "void syncGroup();", "private void groupSearchActivity() {\n startActivity(new Intent(CreateGroup.this, AutoCompleteGroupSearch.class));\n }", "@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n Log.v(\"popwindow\",\"show the window111\");\n expandlistView.expandGroup(groupPosition);\n return true;\n }", "protected abstract Group createIface ();", "private void _generateAResearchGroup(int index) {\n String id;\n id = _getId(CS_C_RESEARCHGROUP, index);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#ResearchGroup\", true);\t \t \t \t \n }\n writer_.startSection(CS_C_RESEARCHGROUP, id);\n writer_.addProperty(CS_P_SUBORGANIZATIONOF,\n _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#subOrganizationOf\", _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\t \t \t \t \n }\n writer_.endSection(CS_C_RESEARCHGROUP);\n }", "public interface IWEGroupManager {\n\n /**\n * Public function called to save a Bundle. This function takes a Bundle\n * name, the sequence of ParmIDs to be saved, and the sequence of available\n * ParmIDs.\n * \n * @param name\n * @param parmIDs\n * @param availableParmIDs\n */\n public abstract void save(String name, ParmID[] parmIDs,\n ParmID[] availableParmIDs);\n\n /**\n * Public function called to delete a Bundle. This function takes a Bundle\n * name.\n * \n * @param name\n */\n public abstract boolean remove(String name);\n\n /**\n * Public function called to get the ParmIDs of a Bundle. This function\n * takes a Bundle name, the sequence of available ParmIDs, and return a list\n * of ParmIDs as saved in the Bundle.\n * \n * @param name\n * @param availableParmIDs\n */\n public abstract ParmID[] getParmIDs(String name, ParmID[] availableParmIDs);\n\n /**\n * Public function called to get the ParmIDs of a Bundle. This function\n * takes bundle text, the sequence of available ParmIDs, and return a list\n * of ParmIDs as saved in the Bundle.\n */\n public abstract ParmID[] getParmIDs(final WEGroup bundle,\n final ParmID[] availableParmIDs);\n\n /**\n * Return a list of the available weather element groups\n * \n * @return the available weather element groups\n */\n public abstract List<String> getInventory();\n\n /**\n * Returns just the user elements groups\n * \n * @return the user elements groups\n */\n public abstract List<String> getUserInventory();\n\n /**\n * Retrieve the default Weather Element group\n * \n * @return the default weather element group\n */\n public abstract String getDefaultGroup();\n\n /**\n * Returns whether or not a particular group is protected or not.\n * \n * @param name\n * The name of the weather element group to check.\n * @return True, if it is protected. False, in all other cases.\n */\n boolean isProtected(String name);\n}", "GroupId groupId();", "private boolean isMeetingGroupInArrayListMG(String nameMeetingGroup, ArrayList<MeetingGroup> arrayList){\n \tboolean isInsideAL = false;\n \tfor(MeetingGroup mG : arrayList){\n\t\t\t//Does MeetingGroup exit yet?\n \t\tif(mG.getName().equals(nameMeetingGroup)&&arrayList.isEmpty()==false){\n \t\t\tisInsideAL = true;\n \t\t}\n \t}\t\n \treturn isInsideAL;\n }", "private void buildGroupLinkMenu(JMenu enfinServiceMenu,\n AlignFrame alignFrame)\n {\n if (running || !started)\n {\n return;\n }\n SequenceI[] seqs = alignFrame.getViewport().getSelectionAsNewSequence();\n SequenceGroup sg = alignFrame.getViewport().getSelectionGroup();\n if (sg == null)\n {\n // consider visible regions here/\n }\n enfinServiceMenu.removeAll();\n JMenu entries = buildGroupURLMenu(seqs, sg);\n if (entries != null)\n {\n for (int i = 0, iSize = entries.getMenuComponentCount(); i < iSize; i++)\n {\n // transfer - menu component is removed from entries automatically\n enfinServiceMenu.add(entries.getMenuComponent(0));\n }\n // entries.removeAll();\n enfinServiceMenu.setEnabled(true);\n }\n else\n {\n enfinServiceMenu.setEnabled(false);\n }\n }", "public ArrayList buildGroup(AbstractEntityInterface anEntity) {\n/* 25 */ ArrayList resultList = new ArrayList();\n/* 26 */ if (!(anEntity instanceof lrg.memoria.core.Class)) {\n/* 27 */ return resultList;\n/* */ }\n/* 29 */ ModelElementList modelElementList = ((DataAbstraction)anEntity).getAncestorsList();\n/* 30 */ modelElementList.remove(anEntity);\n/* 31 */ return modelElementList;\n/* */ }", "public Map<IcActivity, Boolean> getActivities(String groupFilter, IapiTool ApiTool, IcUsers user);", "String getGroupingCode();", "Object getGroupID(String groupName) throws Exception;", "int doComputeGroups( long start_id )\n {\n long cid = mApp.mCID;\n // Log.v(\"DistoX\", \"Compute CID \" + cid + \" from gid \" + start_id );\n if ( cid < 0 ) return -2;\n float thr = TDMath.cosd( TDSetting.mGroupDistance );\n List<CalibCBlock> list = mApp_mDData.selectAllGMs( cid, 0 );\n if ( list.size() < 4 ) {\n return -1;\n }\n long group = 0;\n int cnt = 0;\n float b = 0.0f;\n float c = 0.0f;\n if ( start_id >= 0 ) {\n for ( CalibCBlock item : list ) {\n if ( item.mId == start_id ) {\n group = item.mGroup;\n cnt = 1;\n b = item.mBearing;\n c = item.mClino;\n break;\n }\n }\n } else {\n if ( TDSetting.mGroupBy != TDSetting.GROUP_BY_DISTANCE ) {\n group = 1;\n }\n }\n switch ( TDSetting.mGroupBy ) {\n case TDSetting.GROUP_BY_DISTANCE:\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n if ( group == 0 || item.isFarFrom( b, c, thr ) ) {\n ++ group;\n b = item.mBearing;\n c = item.mClino;\n }\n item.setGroup( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n // N.B. item.calibId == cid\n }\n break;\n case TDSetting.GROUP_BY_FOUR:\n // TDLog.Log( TDLog.LOG_CALIB, \"group by four\");\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n item.setGroupIfNonZero( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n ++ cnt;\n if ( (cnt%4) == 0 ) {\n ++group;\n // TDLog.Log( TDLog.LOG_CALIB, \"cnt \" + cnt + \" new group \" + group );\n }\n }\n break;\n case TDSetting.GROUP_BY_ONLY_16:\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n item.setGroupIfNonZero( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n ++ cnt;\n if ( (cnt%4) == 0 || cnt >= 16 ) ++group;\n }\n break;\n }\n return (int)group-1;\n }", "@LargeTest\n public void testGroupTestEmulated() {\n TestAction ta = new TestAction(TestName.GROUP_TEST_EMULATED);\n runTest(ta, TestName.GROUP_TEST_EMULATED.name());\n }", "@Override\n\tpublic String getGroup() {\n\t\treturn \"Group_\"+SliceName(stdClass);\n\t}", "public void config(Group[] group) {\n\n }", "private void sendGroupInit() {\n \t\ttry {\n \t\t\tmyEndpt=new Endpt(serverName+\"@\"+vsAddress.toString());\n \n \t\t\tEndpt[] view=null;\n \t\t\tInetSocketAddress[] addrs=null;\n \n \t\t\taddrs=new InetSocketAddress[1];\n \t\t\taddrs[0]=vsAddress;\n \t\t\tview=new Endpt[1];\n \t\t\tview[0]=myEndpt;\n \n \t\t\tGroup myGroup = new Group(\"DEFAULT_SERVERS\");\n \t\t\tvs = new ViewState(\"1\", myGroup, new ViewID(0,view[0]), new ViewID[0], view, addrs);\n \n \t\t\tGroupInit gi =\n \t\t\t\tnew GroupInit(vs,myEndpt,null,gossipServers,vsChannel,Direction.DOWN,this);\n \t\t\tgi.go();\n \t\t} catch (AppiaEventException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (NullPointerException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (AppiaGroupException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} \n \t}", "default String getGroup() {\n return null;\n }", "interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }", "private static boolean addMembersToGroup(ContentResolver resolver, long[] rawContactsToAdd,\n long groupId, int[] rawContactsIndexInIcc, Intent intent, int groupIdInIcc) {\n boolean isAllOk = true;\n if (rawContactsToAdd == null) {\n Log.e(TAG, \"[addMembersToGroup] no members to add\");\n return true;\n }\n // add members to usim\n int subId = intent.getIntExtra(SimGroupUtils.EXTRA_SUB_ID, -1);\n int i = -1;\n for (long rawContactId : rawContactsToAdd) {\n try {\n // add members to usim first\n i++;\n if (subId > 0 && groupIdInIcc >= 0 && rawContactsIndexInIcc[i] >= 0) {\n int simIndex = rawContactsIndexInIcc[i];\n boolean success = ContactsGroupUtils.USIMGroup.addUSIMGroupMember(subId,\n simIndex, groupIdInIcc);\n if (!success) {\n isAllOk = false;\n Log.w(TAG, \"[addMembersToGroup] fail simIndex:\" + simIndex\n + \",groupId:\" + groupId);\n continue;\n }\n }\n\n final ArrayList<ContentProviderOperation> rawContactOperations =\n new ArrayList<ContentProviderOperation>();\n\n // Build an assert operation to ensure the contact is not already in the group\n final ContentProviderOperation.Builder assertBuilder = ContentProviderOperation\n .newAssertQuery(Data.CONTENT_URI);\n assertBuilder.withSelection(Data.RAW_CONTACT_ID + \"=? AND \" +\n Data.MIMETYPE + \"=? AND \" + GroupMembership.GROUP_ROW_ID + \"=?\",\n new String[] { String.valueOf(rawContactId),\n GroupMembership.CONTENT_ITEM_TYPE, String.valueOf(groupId)});\n assertBuilder.withExpectedCount(0);\n rawContactOperations.add(assertBuilder.build());\n\n // Build an insert operation to add the contact to the group\n final ContentProviderOperation.Builder insertBuilder = ContentProviderOperation\n .newInsert(Data.CONTENT_URI);\n insertBuilder.withValue(Data.RAW_CONTACT_ID, rawContactId);\n insertBuilder.withValue(Data.MIMETYPE, GroupMembership.CONTENT_ITEM_TYPE);\n insertBuilder.withValue(GroupMembership.GROUP_ROW_ID, groupId);\n rawContactOperations.add(insertBuilder.build());\n\n // Apply batch\n if (!rawContactOperations.isEmpty()) {\n resolver.applyBatch(ContactsContract.AUTHORITY, rawContactOperations);\n }\n } catch (RemoteException e) {\n // Something went wrong, bail without success\n Log.e(TAG, \"[addMembersToGroup]Problem persisting user edits for raw contact ID \" +\n String.valueOf(rawContactId), e);\n isAllOk = false;\n } catch (OperationApplicationException e) {\n // The assert could have failed because the contact is already in the group,\n // just continue to the next contact\n Log.w(TAG, \"[addMembersToGroup] Assert failed in adding raw contact ID \" +\n String.valueOf(rawContactId) + \". Already exists in group \" +\n String.valueOf(groupId), e);\n isAllOk = false;\n }\n }\n return isAllOk;\n }", "@Override\r\n\tpublic void getGroup(ShoppingList sl) {\r\n\r\n\t}", "public void setGroupName(String newGroupName)\n {\n this.groupName = newGroupName;\n }", "protected void getApps(){\n DBPermissions db =new DBPermissions();\n this.apps=db.getApps();\n db.close();\n }", "public interface Group {\n\n void saveGroup(ServiceCallback<Group> callback);\n\n String getId();\n\n String getName();\n\n void setName(String name);\n\n String getCoverUrl();\n\n void setCoverImage(Bitmap bitmap);\n\n List<User> getUsers();\n\n void fetchUsers(ServiceCallback<Group> callback);\n\n List<User> getAdmins();\n\n void fetchAdmins(ServiceCallback<Group> callback);\n}", "private void buildGroups() {\n if(groups.size() == 1){\n Group aGroup = groups.get(0);\n for (Team team : teams) {\n aGroup.add(team);\n }\n return;\n }\n\n for (Team team : teams) {\n groups.get(getIndex()).add(team);\n }\n }", "public final void ruleApplication() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:102:2: ( ( ( rule__Application__Group__0 ) ) )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:103:1: ( ( rule__Application__Group__0 ) )\n {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:103:1: ( ( rule__Application__Group__0 ) )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:104:1: ( rule__Application__Group__0 )\n {\n before(grammarAccess.getApplicationAccess().getGroup()); \n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:105:1: ( rule__Application__Group__0 )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:105:2: rule__Application__Group__0\n {\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__0_in_ruleApplication154);\n rule__Application__Group__0();\n _fsp--;\n\n\n }\n\n after(grammarAccess.getApplicationAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void getAllGroups() { \t\n \tCursor groupsCursor = groupDbHelper.getAllGroupEntries();\n \tList<String> groupNames = new ArrayList<String>();\n \tgroupNames.add(\"Create a Group\");\n \t\n \t// If query returns group, display them in Groups Tab\n \t// Might want to add ordering query so that most recent\n \t// spots display first...\n \tif (groupsCursor.getCount() > 0) {\n \t\tgroupsCursor.moveToFirst();\n \t\twhile (!groupsCursor.isAfterLast()) {\n \t\t\tgroupNames.add(groupsCursor.getString(1));\n \t\t\tgroupsCursor.moveToLast();\n \t\t}\n \t\t\n \t}\n \t\n \t// Close cursor\n \tgroupsCursor.close();\n \t\n \t// Temporary - Ad`d Sample Groups to List\n \t//for (String groupname : groupSamples) {\n \t\t//groupNames.add(groupname);\n \t//}\n \t\n \tgroupsview.setAdapter(new ArrayAdapter<String>(this, \n \t\t\t\tandroid.R.layout.simple_list_item_1, groupNames));\n }", "public void getGroups() {\n String listOfCode = prefs.getString(\"listOfCode\");\n if (!listOfCode.isEmpty()) {\n for (String groupPair : listOfCode.split(\",\"))\n if (!groupPair.isEmpty()) {\n final String nickname = groupPair.substring(0, groupPair.indexOf('|'));\n String code = groupPair.substring(groupPair.indexOf('|') + 1);\n ServerAPI.groupInformation(code, new RequestHandler<Group>() {\n @Override\n public void callback(Group result) {\n if (result == null) {\n return;\n }\n savedGroups.add(new Pair<String, Group>(nickname, result));\n populateListView();\n }\n });\n }\n }\n }", "private static String sanitizePackageName(String group) {\n return group.replaceAll(\"-\", \"\");\n }", "public List<UserGroup> GetActiveGroups() {\n/* 44 */ return this.userDal.GetActiveGroups();\n/* */ }", "@Override\n public GroupMembership getGroupMembership() { return groupMembership; }", "private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tArrayList<String> groupingAtts = new ArrayList<String>();\n\t\tgroupingAtts.add(\"o_orderdate\");\n\t\tgroupingAtts.add(\"o_orderstatus\");\n\n\t\tHashMap<String, AggFunc> myAggs = new HashMap<String, AggFunc>();\n\t\tmyAggs.put(\"att1\", new AggFunc(\"none\",\n\t\t\t\t\"Str(\\\"status: \\\") + o_orderstatus\"));\n\t\tmyAggs.put(\"att2\", new AggFunc(\"none\", \"Str(\\\"date: \\\") + o_orderdate\"));\n\t\tmyAggs.put(\"att3\", new AggFunc(\"avg\", \"o_totalprice * Int (100)\"));\n\t\tmyAggs.put(\"att4\", new AggFunc(\"sum\", \"Int (1)\"));\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Grouping(inAtts, outAtts, groupingAtts, myAggs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n ResolveInfo info = apps.get(i);\n Log.i(\"ididid\", Integer.toString(i));\n\n pkg = info.activityInfo.packageName;\n appimage = info.activityInfo.loadIcon(getPackageManager());\n\n //getPermission\n try {\n PackageInfo pinfo =\n getPackageManager().\n getPackageInfo\n (pkg, PackageManager.GET_PERMISSIONS);\n group = pinfo.requestedPermissions;\n }\n catch(PackageManager.NameNotFoundException e)\n {\n e.printStackTrace();\n }\n\n //開啟新視窗\n Intent intent = new Intent();\n intent.setClass(permission.this, listpermission.class);\n startActivity(intent);\n }", "private void groupButton() {\n ButtonGroup bg1 = new ButtonGroup();\n \n bg1.add(excellentbtn);\n bg1.add(goodbtn);\n bg1.add(normalbtn);\n bg1.add(badbtn);\n bg1.add(worstbtn);\n }", "interface Group\n{\n\n public abstract LabelMap getElements(Context context)\n throws Exception;\n\n public abstract Label getLabel(Class class1);\n\n public abstract boolean isInline();\n}", "public String getExtendGroupName()\n {\n return this.extendGroup_name;\n }", "private String formatGroupName (String groupName) {\n\t\treturn groupName;\n\t}", "public String getManageGroups( HttpServletRequest request )\r\n {\r\n setPageTitleProperty( null );\r\n\r\n // Reinit session\r\n reinitItemNavigators( );\r\n\r\n List<Group> listGroups = getAuthorizedGroups( );\r\n\r\n // FILTER\r\n _gFilter = new GroupFilter( );\r\n\r\n boolean bIsSearch = _gFilter.setGroupFilter( request );\r\n List<Group> listFilteredGroups = GroupHome.findByFilter( _gFilter, getPlugin( ) );\r\n List<Group> listAvailableGroups = new ArrayList<>( );\r\n\r\n for ( Group filteredGroup : listFilteredGroups )\r\n {\r\n for ( Group group : listGroups )\r\n {\r\n if ( filteredGroup.getGroupKey( ).equals( group.getGroupKey( ) ) )\r\n {\r\n listAvailableGroups.add( group );\r\n }\r\n }\r\n }\r\n\r\n // SORT\r\n _strSortedAttributeName = request.getParameter( Parameters.SORTED_ATTRIBUTE_NAME );\r\n\r\n String strAscSort = null;\r\n\r\n if ( _strSortedAttributeName != null )\r\n {\r\n strAscSort = request.getParameter( Parameters.SORTED_ASC );\r\n\r\n _bIsAscSort = Boolean.parseBoolean( strAscSort );\r\n\r\n Collections.sort( listAvailableGroups, new AttributeComparator( _strSortedAttributeName, _bIsAscSort ) );\r\n }\r\n\r\n String strURL = getHomeUrl( request );\r\n UrlItem url = new UrlItem( strURL );\r\n\r\n if ( _strSortedAttributeName != null )\r\n {\r\n url.addParameter( Parameters.SORTED_ATTRIBUTE_NAME, _strSortedAttributeName );\r\n }\r\n\r\n if ( strAscSort != null )\r\n {\r\n url.addParameter( Parameters.SORTED_ASC, strAscSort );\r\n }\r\n\r\n String strSortSearchAttribute = StringUtils.EMPTY;\r\n\r\n if ( bIsSearch )\r\n {\r\n _gFilter.setUrlAttributes( url );\r\n\r\n if ( StringUtils.isNotBlank( _gFilter.getUrlAttributes( ) ) )\r\n {\r\n strSortSearchAttribute = AMPERSAND + _gFilter.getUrlAttributes( );\r\n }\r\n }\r\n\r\n _nDefaultItemsPerPage = AppPropertiesService.getPropertyInt( PROPERTY_GROUPS_PER_PAGE, 50 );\r\n _strCurrentPageIndex = AbstractPaginator.getPageIndex( request, AbstractPaginator.PARAMETER_PAGE_INDEX, _strCurrentPageIndex );\r\n _nItemsPerPage = AbstractPaginator.getItemsPerPage( request, AbstractPaginator.PARAMETER_ITEMS_PER_PAGE, _nItemsPerPage, _nDefaultItemsPerPage );\r\n\r\n LocalizedPaginator<Group> paginator = new LocalizedPaginator<>( listAvailableGroups, _nItemsPerPage, url.getUrl( ),\r\n AbstractPaginator.PARAMETER_PAGE_INDEX, _strCurrentPageIndex, getLocale( ) );\r\n\r\n Map<String, Object> model = new HashMap<>( );\r\n model.put( MARK_NB_ITEMS_PER_PAGE, \"\" + _nItemsPerPage );\r\n model.put( MARK_PAGINATOR, paginator );\r\n model.put( MARK_GROUPS_LIST, paginator.getPageItems( ) );\r\n model.put( MARK_SEARCH_IS_SEARCH, bIsSearch );\r\n model.put( MARK_SEARCH_GROUP_FILTER, _gFilter );\r\n model.put( MARK_SORT_SEARCH_ATTRIBUTE, strSortSearchAttribute );\r\n\r\n HtmlTemplate template = AppTemplateService.getTemplate( TEMPLATE_MANAGE_GROUPS, getLocale( ), model );\r\n\r\n return getAdminPage( template.getHtml( ) );\r\n }", "IGroup getTeamGroup();", "public String getGroup ()\n {\n return group;\n }", "public String getGroup ()\n {\n return group;\n }", "public interface GroupService {\n}", "public interface GroupService {\n}", "private void showApps() {\n\n gridView = (GridView) findViewById(R.id.gridView1);\n\n ArrayAdapter<App> adapter = new ArrayAdapter<App>(this, R.layout.grid_item, appList) {\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n if (convertView == null) {\n convertView = getLayoutInflater().inflate(R.layout.grid_item, null);\n }\n\n ImageView appIcon = (ImageView) convertView\n .findViewById(R.id.imageView1);\n appIcon.setImageDrawable(appList.get(position).icon);\n\n TextView appName = (TextView) convertView\n .findViewById(R.id.textView1);\n appName.setText(appList.get(position).appName);\n\n return convertView;\n }\n };\n\n gridView.setAdapter(adapter);\n }", "public String getGroup ()\n {\n return \"instances\";\n }", "public static int queryGroupInfoByAccount(Context context, String accountName, String accountType,\n ArrayList<GroupInfo> groupList, boolean onlyVisible) {\n\n final ContentResolver resolver = context.getContentResolver();\n long groupId = -1;\n Cursor groupCursor = null;\n String sortOrder = Groups.TITLE;// + \" COLLATE LOCALIZED_PINYIN ASC\";\n\n try {\n if (TextUtils.isEmpty(accountName) || TextUtils.isEmpty(accountType)) {\n if (onlyVisible)\n groupCursor = resolver.query(Uri.withAppendedPath(ContactsContract.AUTHORITY_URI, \"agg_groups_summary\"), GROUPS_PROJECTION,\n Groups.GROUP_VISIBLE + \"=1\" + \" AND \" + Groups.DELETED + \"=0\", null, sortOrder);\n else\n groupCursor = resolver.query(Uri.withAppendedPath(ContactsContract.AUTHORITY_URI, \"agg_groups_summary\"), GROUPS_PROJECTION,\n Groups.DELETED + \"=0\", null, sortOrder);\n }\n else {\n if (onlyVisible)\n groupCursor = resolver.query(Uri.withAppendedPath(ContactsContract.AUTHORITY_URI, \"agg_groups_summary\"), GROUPS_PROJECTION,\n Groups.GROUP_VISIBLE + \"=1\" + \" AND \" + Groups.DELETED + \"=0\" + \" AND \" +\n Groups.ACCOUNT_NAME + \" =? AND \" + Groups.ACCOUNT_TYPE + \" =?\",\n new String[] {accountName, accountType}, sortOrder);\n else\n groupCursor = resolver.query(Uri.withAppendedPath(ContactsContract.AUTHORITY_URI, \"agg_groups_summary\"), GROUPS_PROJECTION,\n Groups.DELETED + \"=0\" + \" AND \" + Groups.ACCOUNT_NAME + \" =? AND \" + Groups.ACCOUNT_TYPE + \" =?\",\n new String[] {accountName, accountType}, sortOrder);\n }\n if (groupCursor != null) {\n while(groupCursor.moveToNext()) {\n insertOneGroupEntry(groupCursor, groupList, context);\n }\n }\n } finally {\n if (groupCursor != null) {\n groupCursor.close();\n }\n }\n\n return groupList.size();\n }", "public GroupLayoutRonald ()\n {\n groupFunction();\n }", "public Hashtable<PackageInfo, List<String>> getAppsPermissions(List<PackageInfo> apps) {\n\n Hashtable<PackageInfo, List<String>> permissions = new Hashtable<>();\n\n for (PackageInfo pkg : apps) {\n List<String> appPermissions = new ArrayList<>(); //Default value: no permissions\n\n try {\n pkg = packageManager.getPackageInfo(pkg.packageName, PackageManager.GET_PERMISSIONS);\n String permissionsForThatApp[] = pkg.requestedPermissions;\n\n //testAccess if there are permissions. If null, then, there are no permissions and we add a String to say so\n if (permissionsForThatApp != null) {\n for (String pi : permissionsForThatApp) {\n appPermissions.add(pi);\n }\n } else {\n appPermissions.add(\"No permissions\");\n }\n\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n appPermissions.add(\"Error while loading permissions\");\n }\n permissions.put(pkg, appPermissions);\n }\n return permissions;\n }", "String getGroupId();", "String getGroupId();" ]
[ "0.5979991", "0.5966668", "0.5865149", "0.5813213", "0.5716252", "0.57105", "0.5666495", "0.56662005", "0.56180984", "0.56005156", "0.55604565", "0.5548252", "0.5543596", "0.55078524", "0.55013156", "0.547825", "0.54338956", "0.5422922", "0.5419219", "0.54058444", "0.54040194", "0.5403648", "0.53930765", "0.5391852", "0.5383962", "0.53741735", "0.53646165", "0.535812", "0.5356351", "0.5333722", "0.5332012", "0.5329133", "0.53220445", "0.5319054", "0.53189594", "0.53164494", "0.53123176", "0.5301014", "0.5283496", "0.52754307", "0.5271179", "0.5266953", "0.5253405", "0.5241379", "0.52411705", "0.52396834", "0.52370244", "0.5231368", "0.52259827", "0.52202094", "0.52156556", "0.5210101", "0.5201586", "0.5201392", "0.51989794", "0.51987153", "0.5196628", "0.51954997", "0.51915324", "0.5187395", "0.5181493", "0.51804364", "0.517203", "0.5170185", "0.5167083", "0.5163544", "0.51589614", "0.5152145", "0.51461303", "0.51404643", "0.51402366", "0.5139087", "0.5130881", "0.51255286", "0.5121538", "0.5110801", "0.5106504", "0.5097345", "0.50903285", "0.509017", "0.5089551", "0.5088654", "0.5082808", "0.5082393", "0.5079623", "0.50787026", "0.5075303", "0.50702447", "0.5066756", "0.50647116", "0.5064644", "0.5064644", "0.5059527", "0.5059527", "0.5052096", "0.5050537", "0.504903", "0.5044957", "0.5044307", "0.5036624", "0.5036624" ]
0.0
-1
/Added by ncqp34 at Mar28 for fake app
public FakeAppModel getFakeModel() { return mFakeModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void mo6255a() {\n }", "protected void onFirstUse() {}", "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 }", "protected void onAfterCreateApplication() {\n\n\t}", "@Override\n protected void appStart() {\n }", "private stendhal() {\n\t}", "public void mo6081a() {\n }", "public void mo55254a() {\n }", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private static final class <init> extends com.ebay.nautilus.kernel.content.\n{\n\n public EbayAppInfo create(EbayContext ebaycontext)\n {\n return new EbayAppInfoImpl(\"com.ebay.mobile\", \"4.1.5.22\", false);\n }", "public void mo38117a() {\n }", "public void startApp()\r\n\t{\n\t}", "Appinfo createAppinfo();", "public void mo4359a() {\n }", "protected void onAppsChanged() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "protected void onPreCreateApplication() {\n\n\t}", "private void kk12() {\n\n\t}", "public static void showStartApp(FruitSlide _gameLib)//not full\n\t{\n\t\t\n\t}", "@Override\n protected void startUp() {\n }", "private MApi() {}", "private void m107688a(Context context, MicroAppInfo microAppInfo) {\n String str;\n if (context != null && microAppInfo != null && this.f86957c != 1) {\n String appId = microAppInfo.getAppId();\n if (!this.f86956b.contains(appId)) {\n this.f86956b.add(appId);\n C7167b.m22380b().mo18647a().preloadMiniApp(appId, microAppInfo.getType());\n String str2 = \"mp_show\";\n C22984d a = C22984d.m75611a().mo59973a(\"mp_id\", microAppInfo.getAppId()).mo59973a(\"author_id\", C21115b.m71197a().getCurUserId()).mo59973a(\"enter_from\", \"setting_page\").mo59973a(\"click_type\", \"setting_page_inner\");\n String str3 = \"_param_for_special\";\n if (microAppInfo.getType() == 1) {\n str = \"micro_app\";\n } else {\n str = \"micro_game\";\n }\n C6907h.m21524a(str2, (Map) a.mo59973a(str3, str).f60753a);\n }\n }\n }", "private void m2459a(Context context) {\n this.f2043a = ((Application) context.getApplicationContext()).f1065d;\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "static void feladat5() {\n\t}", "private void init() {\n\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onFbcompleate() {\n\n\t\t\t\t\t\t\t}", "static void feladat7() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo9848a() {\n }", "public String getApp();", "private Intent m34059f(Context context) {\n Intent intent = new Intent(\"com.meizu.safe.security.SHOW_APPSEC\");\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setComponent(new ComponentName(\"com.meizu.safe\", \"com.meizu.safe.security.AppSecActivity\"));\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\n }", "@Override\n\tpublic void OnRequest() {\n\t\t\n\t}", "void mo25261a(Context context);", "private NativeSupport() {\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "void checkForApps();", "@Override\n public void feedingHerb() {\n\n }", "private void m6597N() {\n C0938a.m5002a(\"SR/SoundRecorder\", \"<popClearDialogBox>\");\n String lowerCase = this.f5399S.mo6173f().getAbsolutePath().toLowerCase();\n if (this.f5419h) {\n C1492b.m7431a((Context) this, (CharSequence) getResources().getString(R.string.phone_mtp_space_expired_smartkey), 1).show();\n this.f5419h = false;\n }\n Intent intent = new Intent(\"com.iqoo.secure.LOW_MEMORY_WARNING\");\n intent.addFlags(268435456);\n intent.putExtra(\"require_size\", 5242880);\n intent.putExtra(\"pkg_name\", getPackageName());\n intent.putExtra(\"extra_loc\", 1);\n intent.putExtra(\"tips_title\", getResources().getString(R.string.manager_title));\n intent.putExtra(\"tips_title_all\", getResources().getString(R.string.unable_to_record));\n try {\n startActivity(intent);\n } catch (Exception unused) {\n Intent intent2 = new Intent();\n intent2.putExtra(\"BBKPhoneCardName\", lowerCase);\n intent2.setComponent(new ComponentName(\"com.android.filemanager\", \"com.android.filemanager.FileManagerActivity\"));\n startActivity(intent2);\n }\n }", "public static void testApp(String appName) throws Exception {\n Settings.OcrTextRead = true;\r\n Settings.OcrLanguage = \"en\";\r\n Settings.OcrTextSearch = true;\r\n\r\n\r\n ImagePath.add(TestRun.class.getCanonicalName() + \"/ImagesAPI.sikuli\");\r\n File fResults = new File(System.getProperty(\"user.home\"), \"TestResults\");\r\n String fpResults = fResults.getPath();\r\n FileManager.deleteFileOrFolder(fpResults);\r\n fResults.mkdirs();\r\n //TO DO: print logging to this directory eventually as well as Unit Test results\r\n\r\n App app = new App(appName);\r\n Boolean appOpened = false;\r\n\r\n\r\n// try {\r\n// appOpened = openChanalyzer(app);\r\n// } catch (Exception e) {\r\n// e.printStackTrace();\r\n// }\r\n\r\n //need to wait for Chanalyzer to start up\r\n sleep(1500);\r\n\r\n if (appOpened = true && app.isRunning()) {\r\n// Region currentWindow = App.focusedWindow();\r\n// clickOnTarget(currentWindow, \"help\");\r\n// clickOnTarget(currentWindow, \"register\");\r\n// readFromTopRightOfRegistration(currentWindow);\r\n //focusOnWindowJustBelowImageAndRead(currentWindow, \"registration_image_above_name_field\");\r\n }\r\n\r\n Screen screen = new Screen();\r\n doubleClickOnTarget(screen, \"installer_msi\");\r\n sleep(1200);\r\n Screen screen2 = new Screen();\r\n clickOnTarget(screen2, \"next\");\r\n\r\n\r\n }", "private Intent m34057d(Context context) {\n Intent intent = new Intent();\n intent.putExtra(Constants.FLAG_PACKAGE_NAME, context.getPackageName());\n intent.setClassName(\"com.color.safecenter\", \"com.color.safecenter.permission.floatwindow.FloatWindowListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.coloros.safecenter\", \"com.coloros.safecenter.sysfloatwindow.FloatWindowListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n intent.setClassName(\"com.oppo.safe\", \"com.oppo.safe.permission.PermissionAppListActivity\");\n if (m34054a(context, intent)) {\n return intent;\n }\n return m34053a(context);\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\n protected void init() {\n }", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }", "zzang mo29839S() throws RemoteException;", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\t\t\t\t\t\t\tpublic void appUpdateFaild() {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\n\t\t\t\t\t\t\t}", "public abstract void mo70713b();", "public void mo44053a() {\n }", "public static void listing5_14() {\n }", "@Override\n\tprotected void postRun() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "private Platform() {\n\t\t\n\t}", "static void m13810b(Context context) {\n if (context != null) {\n try {\n ApplicationInfo ai = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128);\n if (ai != null && ai.metaData != null) {\n if (f12472d == null) {\n Object appId = ai.metaData.get(\"com.facebook.sdk.ApplicationId\");\n if (appId instanceof String) {\n String appIdString = (String) appId;\n if (appIdString.toLowerCase(Locale.ROOT).startsWith(\"fb\")) {\n f12472d = appIdString.substring(2);\n } else {\n f12472d = appIdString;\n }\n } else if (appId instanceof Integer) {\n throw new FacebookException(\"App Ids cannot be directly placed in the manifest.They must be prefixed by 'fb' or be placed in the string resource file.\");\n }\n }\n if (f12473e == null) {\n f12473e = ai.metaData.getString(\"com.facebook.sdk.ApplicationName\");\n }\n if (f12474f == null) {\n f12474f = ai.metaData.getString(\"com.facebook.sdk.ClientToken\");\n }\n if (f12482n == 64206) {\n f12482n = ai.metaData.getInt(\"com.facebook.sdk.CallbackOffset\", 64206);\n }\n if (f12475g == null) {\n f12475g = Boolean.valueOf(ai.metaData.getBoolean(\"com.facebook.sdk.CodelessDebugLogEnabled\", false));\n }\n }\n } catch (NameNotFoundException e) {\n }\n }\n }", "public static void m94914b() {\n m94910a((Context) BaseApplication.get(), f65698a, true);\n }", "private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void autonomousInit() {\n \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\n protected void initialize() {\n }", "public synchronized void mo24424Qv() {\n char c;\n try {\n Context applicationContext = VivaBaseApplication.m8749FZ().getApplicationContext();\n int i = 3 >> 1;\n if (applicationContext == null) {\n String str = \"ort_ebionof_kfcyepr_\";\n if (!AppPreferencesSetting.getInstance().getAppSettingBoolean(\"pref_root_config_key\", false)) {\n C5523b.logException(new C5526d(\" rootconfig firstrun state not work aa!\"));\n }\n this.bEA = true;\n return;\n }\n C4059d.m10105cr(applicationContext);\n if (!ApplicationBase.biq) {\n new C8150d().mo33232R(applicationContext, false);\n }\n String str2 = \"_mhdshbaswesop_o\";\n DataRefreshValidateUtil.recordDataRefreshTime(\"splash_show_mode\");\n if (!this.bEC) {\n C4386g.m11041QJ();\n C4386g.m11042QK();\n if (!TextUtils.isEmpty(BaseSocialNotify.getActiveNetworkName(applicationContext))) {\n DiskLruCache.clearCache(applicationContext, null, 43200000);\n }\n m10993cR(applicationContext);\n m10990a(applicationContext, C4681i.m12184Gp().mo25016Gr());\n if (C3569a.m8772FK()) {\n m10992cQ(applicationContext);\n }\n m10994cS(applicationContext);\n if (C3869e.m9526Hj()) {\n C3869e.m9528by(applicationContext);\n }\n C3742b.m9111II().mo23180K(applicationContext, C8113b.aES());\n m10991bR(C3742b.m9111II().mo23153JU());\n if (C3569a.m8773FL()) {\n String str3 = \"fptli_gtt_ayurponpaye_te_ytkes\";\n if (AppPreferencesSetting.getInstance().getAppSettingInt(\"pref_key_setting_autoplay_type\", -1) == -1) {\n AppPreferencesSetting.getInstance().setAppSettingInt(\"pref_key_setting_autoplay_type\", AppPreferencesSetting.getInstance().getAppSettingBoolean(\"pref_auto_play\", true) ? 1 : 0);\n }\n }\n C8049f.aBf().mo33076A(Boolean.valueOf(C3742b.m9111II().mo23167Jn()));\n }\n this.bEC = true;\n this.bEA = true;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n }\n }", "public final void mo8775b() {\n }", "@Override\r\n\tpublic void windowstartUpData() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "static void feladat6() {\n\t}", "@Override\n\tpublic void earlyStartup() {\n\t}", "public testDatabaseAppController()\n\t{\n\t\tdataController = new testDatabaseController(this);\n\t\tqueryList = new ArrayList<QueryInfo>();\n\t\tappFrame = new testDatabaseFrame(this);\n\t}", "private void start() {\n\n\t}", "protected void pauseApp() {\n\t\t\r\n\t}", "private void getDynamicProfie() {\n getDeviceName();\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\t\t\t\t\t\t\tpublic void appUpdateBegin(String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private void m10989Qx() {\n LbsManagerProxy.init(VivaBaseApplication.m8749FZ().getApplicationContext(), AppStateModel.getInstance().isInChina());\n LbsManagerProxy.setAutoStop(true);\n LbsManagerProxy.recordLocation(false, false);\n LbsManagerProxy.resetLocation();\n LbsManagerProxy.recordLocation(true, false);\n }", "public void XtestCreateAppContext()\n {\n fail(\"Unimplemented test\");\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "zzana mo29855eb() throws RemoteException;", "protected abstract void onShowRuntime();", "@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}", "private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\n\tpublic void initApplication(BBApplication app) {\n\t\tthis._application = app;\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}" ]
[ "0.565559", "0.56447005", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.56190276", "0.55747145", "0.55591524", "0.54829574", "0.5476694", "0.54639775", "0.53871834", "0.53630316", "0.53570163", "0.5342895", "0.53284186", "0.5322213", "0.53090066", "0.5307516", "0.5281844", "0.52551925", "0.5216266", "0.52087617", "0.51902795", "0.5184212", "0.5168475", "0.5136443", "0.5107416", "0.50957435", "0.50957435", "0.50957435", "0.50914955", "0.5088793", "0.5086634", "0.5070594", "0.5055041", "0.50523293", "0.5050712", "0.50328153", "0.5020915", "0.50154597", "0.5012315", "0.50092417", "0.5008636", "0.50038546", "0.49916735", "0.49866557", "0.49849516", "0.4971037", "0.49682546", "0.49678987", "0.49636188", "0.49622408", "0.49562153", "0.49548957", "0.4954082", "0.4951233", "0.49455908", "0.49393144", "0.49392247", "0.49390668", "0.49379998", "0.4932076", "0.49296838", "0.49289542", "0.49285743", "0.49285743", "0.49285743", "0.49285743", "0.49285743", "0.4926995", "0.4923922", "0.4923922", "0.4923922", "0.4923922", "0.4923922", "0.4923922", "0.4914488", "0.49133104", "0.49124074", "0.49116397", "0.49097663", "0.4908008", "0.48958418", "0.4894269", "0.48883402", "0.48863095", "0.4884804", "0.4880399", "0.48788685", "0.487818", "0.4877101", "0.48735228", "0.48712245", "0.48700577", "0.48698163", "0.48681387", "0.48654222" ]
0.0
-1
Added by e13775 at 19 June 2012 for organize apps' group start
synchronized public AppsModel getAppsModel() { if (mAppsModel == null) { mAppsModel = new AppsModel(this); } return mAppsModel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendGroupInit() {\n \t\ttry {\n \t\t\tmyEndpt=new Endpt(serverName+\"@\"+vsAddress.toString());\n \n \t\t\tEndpt[] view=null;\n \t\t\tInetSocketAddress[] addrs=null;\n \n \t\t\taddrs=new InetSocketAddress[1];\n \t\t\taddrs[0]=vsAddress;\n \t\t\tview=new Endpt[1];\n \t\t\tview[0]=myEndpt;\n \n \t\t\tGroup myGroup = new Group(\"DEFAULT_SERVERS\");\n \t\t\tvs = new ViewState(\"1\", myGroup, new ViewID(0,view[0]), new ViewID[0], view, addrs);\n \n \t\t\tGroupInit gi =\n \t\t\t\tnew GroupInit(vs,myEndpt,null,gossipServers,vsChannel,Direction.DOWN,this);\n \t\t\tgi.go();\n \t\t} catch (AppiaEventException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (NullPointerException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (AppiaGroupException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} \n \t}", "public abstract String getDefaultGroup();", "Group getNextExecutableGroup();", "public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}", "void doResetGroups( long start_id )\n {\n // Log.v(\"DistoX\", \"Reset CID \" + mApp.mCID + \" from gid \" + start_id );\n mApp_mDData.resetAllGMs( mApp.mCID, start_id ); // reset all groups where status=0, and id >= start_id\n }", "private void processGroup(List<ResolveInfo> rList, int start, int end, ResolveInfo ro,\r\n CharSequence roLabel) {\r\n // Process labels from start to i\r\n int num = end - start+1;\r\n if (num == 1) {\r\n // No duplicate labels. Use label for entry at start\r\n mList.add(new DisplayResolveInfo(ro, roLabel, null, null));\r\n } else {\r\n boolean usePkg = false;\r\n CharSequence startApp = ro.activityInfo.applicationInfo.loadLabel(mPm);\r\n if (startApp == null) {\r\n usePkg = true;\r\n }\r\n if (!usePkg) {\r\n // Use HashSet to track duplicates\r\n HashSet<CharSequence> duplicates = new HashSet<CharSequence>();\r\n duplicates.add(startApp);\r\n for (int j = start+1; j <= end ; j++) {\r\n ResolveInfo jRi = rList.get(j);\r\n CharSequence jApp = jRi.activityInfo.applicationInfo.loadLabel(mPm);\r\n if ( (jApp == null) || (duplicates.contains(jApp))) {\r\n usePkg = true;\r\n break;\r\n } else {\r\n duplicates.add(jApp);\r\n } // End of if\r\n } // End of if\r\n // Clear HashSet for later use\r\n duplicates.clear();\r\n } // End of if\r\n for (int k = start; k <= end; k++) {\r\n ResolveInfo add = rList.get(k);\r\n if (usePkg) {\r\n // Use application name for all entries from start to end-1\r\n mList.add(new DisplayResolveInfo(add, roLabel,\r\n add.activityInfo.packageName, null));\r\n } else {\r\n // Use package name for all entries from start to end-1\r\n mList.add(new DisplayResolveInfo(add, roLabel,\r\n add.activityInfo.applicationInfo.loadLabel(mPm), null));\r\n } // End of if\r\n } // End of for\r\n } // End of if \r\n }", "@Override\r\n \tpublic void onCreate(Bundle savedInstanceState) {\r\n \t\tsuper.onCreate(savedInstanceState);\r\n \t\trequestWindowFeature(Window.FEATURE_LEFT_ICON);\r\n \t\tsetContentView(R.layout.group);\r\n \t\tsetFeatureDrawableResource(Window.FEATURE_LEFT_ICON, R.drawable.group);\r\n \r\n \t\t// this.registerForContextMenu(getListView());\r\n \t\tdb = new Db(getApplicationContext());\r\n \t\tBundle extras = getIntent().getExtras();\r\n \t\tif (extras != null) {\r\n \t\t\tid = extras.getString(\"id\");\r\n \t\t\tname = extras.getString(\"name\");\r\n \t\t\towner = extras.getString(\"owner\");\r\n \t\t\tpermission = extras.getString(\"permission\");\r\n \t\t\tlayout = extras.getInt(\"layout\");\r\n \t\t\tLog.i(tag, \"Owner is: \" + owner + \", permission is: \"+permission);\r\n \t\t}\r\n \t\tchildLayout = (LinearLayout)findViewById(R.id.extraLayout);\r\n \t\textraButton = (Button)findViewById(R.id.remove_contacts_button);\r\n \t\tmenu = (LinearLayout)findViewById(R.id.groupActivity_frame);\r\n \t\tqueryGroup(layout);\r\n \t\tshowMenu();\r\n \t\tregisterForContextMenu(getListView());\r\n \t\tlistView = this.getListView();\r\n \t\tgetListView().setTextFilterEnabled(true);\r\n \t\tgetListView().setCacheColorHint(Color.WHITE);\r\n \r\n \t}", "public CreateGroup() {\n initComponents();\n start();\n }", "public interface GroupService {\n void upgradeInstances(String app_id, String app_version);\n}", "private static void insertOneGroupEntry(Cursor groupCursor, ArrayList<GroupInfo> groupList, Context context) {\n String title = groupCursor.getString(COL_TITLE);\n String titleDisplay = \"\";\n titleDisplay = title;\n\n GroupInfo pinfo = new GroupInfo();\n pinfo.groupId = -1;\n pinfo.title = title;\n pinfo.titleDisplay = titleDisplay;\n groupList.add(pinfo);\n }", "private void groupSearchActivity() {\n startActivity(new Intent(CreateGroup.this, AutoCompleteGroupSearch.class));\n }", "@Override\r\n\tpublic void service(AgiRequest arg0, AgiChannel arg1) throws AgiException {\n\t\tString groupNum = getVariable(\"ARG1\");\r\n\t\t\r\n\t\t\r\n String dbname = \"heightscalls.nsf\";\r\n\t\t\r\n\t\tString[] opts = new String[1];\r\n\t\topts[0] = groupNum;\r\n\t\t\r\n\t\tString cmd = \"GETRINGGROUP\";\r\n\t\ttry {\r\n\t\t\tString[] res = ASTPORTAL.generalCommand(cmd, opts, dbname);\r\n\t\t\t\r\n\t\t\tString members = res[0];\r\n\t\t\tString tl = res[1];\r\n\t\t\tString vm = res[2];\r\n\t\t\t\r\n\t\t\tsetVariable(\"MEMBERS\", members);\r\n\t\t\tsetVariable(\"TL\", tl);\r\n\t\t\tsetVariable(\"VM\", vm);\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\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public void newGroup() {\n addGroup(null, true);\n }", "public boolean isAppGroup() {\n if (getNotification().getGroup() != null || getNotification().getSortKey() != null) {\n return true;\n }\n return false;\n }", "private GroupActionHome( )\n {\n }", "void syncGroup();", "public Group()\r\n {\r\n endpoints = new ArrayList<>();\r\n name = \"NewGroup\";\r\n }", "public void listGroup() {\r\n List<Group> groupList = groups;\r\n EventMessage evm = new EventMessage(\r\n EventMessage.EventAction.FIND_MULTIPLE,\r\n EventMessage.EventType.OK,\r\n EventMessage.EventTarget.GROUP,\r\n groupList);\r\n notifyObservers(evm);\r\n }", "@Override\n public boolean isGroup() {\n return false;\n }", "@Override\n\tpublic void preStart() {\n\t\tlog.info(\"DeviceGroup {} started\", groupId);\n\t}", "void insert(LoanApplication icLoanApplication) {\n\t\tgroup.add(icLoanApplication);\n\t\t\n\t}", "int doComputeGroups( long start_id )\n {\n long cid = mApp.mCID;\n // Log.v(\"DistoX\", \"Compute CID \" + cid + \" from gid \" + start_id );\n if ( cid < 0 ) return -2;\n float thr = TDMath.cosd( TDSetting.mGroupDistance );\n List<CalibCBlock> list = mApp_mDData.selectAllGMs( cid, 0 );\n if ( list.size() < 4 ) {\n return -1;\n }\n long group = 0;\n int cnt = 0;\n float b = 0.0f;\n float c = 0.0f;\n if ( start_id >= 0 ) {\n for ( CalibCBlock item : list ) {\n if ( item.mId == start_id ) {\n group = item.mGroup;\n cnt = 1;\n b = item.mBearing;\n c = item.mClino;\n break;\n }\n }\n } else {\n if ( TDSetting.mGroupBy != TDSetting.GROUP_BY_DISTANCE ) {\n group = 1;\n }\n }\n switch ( TDSetting.mGroupBy ) {\n case TDSetting.GROUP_BY_DISTANCE:\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n if ( group == 0 || item.isFarFrom( b, c, thr ) ) {\n ++ group;\n b = item.mBearing;\n c = item.mClino;\n }\n item.setGroup( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n // N.B. item.calibId == cid\n }\n break;\n case TDSetting.GROUP_BY_FOUR:\n // TDLog.Log( TDLog.LOG_CALIB, \"group by four\");\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n item.setGroupIfNonZero( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n ++ cnt;\n if ( (cnt%4) == 0 ) {\n ++group;\n // TDLog.Log( TDLog.LOG_CALIB, \"cnt \" + cnt + \" new group \" + group );\n }\n }\n break;\n case TDSetting.GROUP_BY_ONLY_16:\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n item.setGroupIfNonZero( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n ++ cnt;\n if ( (cnt%4) == 0 || cnt >= 16 ) ++group;\n }\n break;\n }\n return (int)group-1;\n }", "private static void incrementLaunchOrder()\r\n\t{\r\n\t\tlaunchOrder++;\r\n\t}", "LoadGroup createLoadGroup();", "@BeforeGroup\n public void beforeGroup() {\n }", "public boolean createGroup(GroupsGen group) {\n \n super.create(group);\n return true;\n }", "public interface GroupDescription {\n /**\n * Types of the group supported by ONOS.\n */\n enum Type {\n /**\n * Load-balancing among different buckets in a group.\n */\n SELECT,\n /**\n * Single Bucket Group.\n */\n INDIRECT,\n /**\n * Multicast to all buckets in a group.\n */\n ALL,\n /**\n * Similar to {@link Type#ALL} but used for cloning of packets\n * independently of the egress decision (singleton treatment or other\n * group).\n */\n CLONE,\n /**\n * Uses the first live bucket in a group.\n */\n FAILOVER\n }\n\n /**\n * Returns type of a group object.\n *\n * @return GroupType group type\n */\n Type type();\n\n /**\n * Returns device identifier on which this group object is created.\n *\n * @return DeviceId device identifier\n */\n DeviceId deviceId();\n\n /**\n * Returns application identifier that has created this group object.\n *\n * @return ApplicationId application identifier\n */\n ApplicationId appId();\n\n /**\n * Returns application cookie associated with a group object.\n *\n * @return GroupKey application cookie\n */\n GroupKey appCookie();\n\n /**\n * Returns groupId passed in by caller.\n *\n * @return Integer group id passed in by caller. May be null if caller\n * passed in null to let groupService determine the group id.\n */\n Integer givenGroupId();\n\n /**\n * Returns group buckets of a group.\n *\n * @return GroupBuckets immutable list of group bucket\n */\n GroupBuckets buckets();\n}", "private PaletteContainer createDefault1Group() {\r\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\r\n\t\t\t\tMessages.Default1Group_title);\r\n\t\tpaletteContainer.setId(\"createDefault1Group\"); //$NON-NLS-1$\r\n\t\tpaletteContainer.setDescription(Messages.Default1Group_desc);\r\n\t\tpaletteContainer.add(createDocTopic1CreationTool());\r\n\t\treturn paletteContainer;\r\n\t}", "@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n Log.v(\"popwindow\",\"show the window111\");\n expandlistView.expandGroup(groupPosition);\n return true;\n }", "@Override\n\tpublic long getGroupId() {\n\t\treturn _scienceApp.getGroupId();\n\t}", "@Override\n protected void appStart() {\n }", "public void allocateGroupId(){\n\t\trecords.add(new pair(this.groupname,currentId));\n\t\tthis.groupid = currentId;\n\t\tcurrentId++;\n\t\tConnection c = null;\n\t\tStatement stmt = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"group setup\");\n\t\t\tSystem.out.println(this.groupid);\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ifoundclassmate\");\n\t\t\tc.setAutoCommit(false);\n\t\t\tstmt = c.createStatement();\n\t\t\tString sql = \"INSERT INTO GROUPS (GROUPID,GROUPNAME,DESCRIPTION) \"+\n\t\t\t\t\t\"VALUES (\" + this.groupid + \", \" + \"'\" +this.groupname + \"'\"\n\t\t\t\t\t+\" , \" + \"'\" + this.description + \"' \" + \");\" ;\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t} catch (Exception e ){\n\t\t\tSystem.out.println(e.getClass().getName() + e.getMessage() );\n\t\t\treturn;\n\t\t}\n\t\treturn;\n\t}", "private static void genSecGroup() {\n\t\tSystem.out.println(\"This Program will generate a security group\");\n\t\tSystem.out.println(\"with the name bitcrusher and ssh ability for\");\n\t\tSystem.out.println(\"your ip address.\");\n\t\ttry{\n\t\t\tCreateSecurityGroupRequest secGrpRequest = new CreateSecurityGroupRequest(\"bitcrusher\", \"Ingress group for AWSTool\");\n\t\t\tCreateSecurityGroupResult res = ec2.createSecurityGroup(secGrpRequest);\n\t\t\tSystem.out.println(\"Group \" + res.getGroupId() + \"created.\");\n\t\t\t\n\t\t}catch(AmazonServiceException ase){\n\t\t\tSystem.out.println(\"Group exists. If needed set permissions with -ip option\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\tString ip = \"0.0.0.0/0\";\n\t\t\n\t\t\n\t\tList<String> ipRanges = Collections.singletonList(ip);\n\t\t\n\t\tIpPermission ipPerm = new IpPermission();\n\t\tipPerm.setFromPort(SSH);\n\t\tipPerm.setToPort(SSH);\n\t\tipPerm.setIpRanges(ipRanges);\n\t\tipPerm.setIpProtocol(\"tcp\");\n\t\t\n\t\tList<IpPermission> ipPermList = Collections.singletonList(ipPerm);\n\t\t\n\t\ttry{\n\t\t\tAuthorizeSecurityGroupIngressRequest ingRequest = \n\t\t\t\t\tnew AuthorizeSecurityGroupIngressRequest(\"bitcrusher\", ipPermList);\n\t\t\tec2.authorizeSecurityGroupIngress(ingRequest);\n\t\t\tSystem.out.println(\"Your ip has been authorized with the bitcrusher group.\");\n\t\t\t\n\t\t}catch(AmazonServiceException e){\n\t\t\tSystem.out.println(\"Ip already authorized\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private void groupQuery() {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(ParseConstants.CLASS_GROUPS);\n query.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject group, ParseException e) {\n setProgressBarIndeterminateVisibility(false);\n if(e == null) {\n mGroup = group;\n mMemberRelation = mGroup.getRelation(ParseConstants.KEY_MEMBER_RELATION);\n mMemberOfGroupRelation = mCurrentUser.getRelation(ParseConstants.KEY_MEMBER_OF_GROUP_RELATION);\n\n //only the admin can delete the group\n mGroupAdmin = mGroup.get(ParseConstants.KEY_GROUP_ADMIN).toString();\n mGroupAdmin = Utilities.removeCharacters(mGroupAdmin);\n if ((mCurrentUser.getUsername()).equals(mGroupAdmin)) {\n mDeleteMenuItem.setVisible(true);\n }\n\n mGroupName = group.get(ParseConstants.KEY_GROUP_NAME).toString();\n mGroupName = Utilities.removeCharacters(mGroupName);\n setTitle(mGroupName);\n\n mCurrentDrinker = mGroup.get(ParseConstants.KEY_CURRENT_DRINKER).toString();\n mCurrentDrinker = Utilities.removeCharacters(mCurrentDrinker);\n mCurrentDrinkerView.setText(mCurrentDrinker);\n\n mPreviousDrinker = mGroup.get(ParseConstants.KEY_PREVIOUS_DRINKER).toString();\n mPreviousDrinker = Utilities.removeCharacters(mPreviousDrinker);\n mPreviousDrinkerView.setText(mPreviousDrinker);\n\n listViewQuery(mMemberRelation);\n }\n else {\n Utilities.getNoGroupAlertDialog(null);\n }\n }\n });\n }", "@Override\n public Map<String, Object> startTaskGroup(User loginUser, Integer id) {\n Map<String, Object> result = new HashMap<>();\n if (isNotAdmin(loginUser, result)) {\n return result;\n }\n TaskGroup taskGroup = taskGroupMapper.selectById(id);\n if (taskGroup.getStatus() == 1) {\n putMsg(result, Status.TASK_GROUP_STATUS_ERROR);\n return result;\n }\n taskGroup.setStatus(1);\n taskGroup.setUpdateTime(new Date(System.currentTimeMillis()));\n int update = taskGroupMapper.updateById(taskGroup);\n putMsg(result, Status.SUCCESS);\n return result;\n }", "@Override\n\t\t\tpublic void onMono() {\n\t ((ExpandableListView) parent).expandGroup(groupPosition, true);\n\t textMode.setText(\"Mono\");\n\t groupLayLeft.setBackgroundResource(R.drawable.list_group_item_corner);\n\t groupLayRight.setBackgroundResource(R.drawable.list_group_item_corner);\n\t\t\t}", "public void criaGrupo() {\n\t\tThread threadMain = Thread.currentThread(); // determina grupo raiz\n\t\tThreadGroup grupoRaiz = threadMain.getThreadGroup().getParent();\n\t\tThreadGroup newGroup = new ThreadGroup(grupoRaiz, \"Extra-\"\n\t\t\t\t+ gruposCriados++);\n\t\tnewGroup.setDaemon(true); // ajusta auto-remocao do grupo\n\t\tint quant = (int) (Math.random() * 10);\n\t\tfor (int i = 0; i < quant; i++) { // adiciona EmptyThreads ao grupo\n\t\t\tnew EmptyThread(newGroup, \"EmptyThread-\" + i).start();\n\t\t}\n\t\tbRefresh.doClick();\n\t}", "public void setServiceGroupName(java.lang.String param){\n localServiceGroupNameTracker = true;\n \n this.localServiceGroupName=param;\n \n\n }", "public static void main(String[] args)\n\t{\n\t\tGroupSynchronization groupSynchronization = new GroupSynchronization();\n\t\tGroup group\t\t\t= new Group();\n\t\t\n//\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n//\t\tsubNodeGroupInfo.setGroupName(\"组一\");\n//\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.市公司一.公司一部门二.组一\");\n//\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600007\");\n//\t\tsubNodeGroupInfo.setGroupType(\"0\");\n//\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n//\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n//\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600004\");\n//\t\tsubNodeGroupInfo.setGroupCompanytype(\"3\");\n//\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n//\t\tsubNodeGroupInfo.setGroupIntId(600009);\n//\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600004;000000000600007;000000000600009;\");\n//\t\t\n//\t\tgroupSynchronization.modifySynchronization(\"000000000600009\",subNodeGroupInfo);\n//\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600009\");\n\t\t\n\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n\t\tsubNodeGroupInfo.setGroupName(\"公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.省公司部门一.公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600008\");\n\t\tsubNodeGroupInfo.setGroupType(\"3\");\n\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600003\");\n\t\tsubNodeGroupInfo.setGroupCompanytype(\"1\");\n\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n\t\tsubNodeGroupInfo.setGroupIntId(600007);\n\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600008;000000000600007;\");\n\t\t\n\t\tgroupSynchronization.modifySynchronization(\"000000000600007\",subNodeGroupInfo);\n\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600007\");\n\t}", "private void createGrpDateInfo() {\n\n\t\tgrpDateInfo = new Group(getShell(), SWT.NONE);\n\t\tgrpDateInfo.setBounds(new org.eclipse.swt.graphics.Rectangle(160, 180,\n\t\t\t\t280, 100));\n\n\t\tlblInstructions = new Label(grpDateInfo, SWT.NONE);\n\t\tlblInstructions.setBounds(new org.eclipse.swt.graphics.Rectangle(60,\n\t\t\t\t20, 160, 20));\n\t\tlblInstructions.setText(\"Select a Month and Year:\");\n\t\tlblInstructions.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\tcmbMonth = new CCombo(grpDateInfo, SWT.BORDER);\n\t\tcmbMonth.setBounds(new org.eclipse.swt.graphics.Rectangle(40, 50, 100,\n\t\t\t\t20));\n\t\tcmbMonth.setEditable(false);\n\t\tcmbMonth.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tString qs[] = { \"Quarter 1\", \"Quarter 2\", \"Quarter 3\", \"Quarter 4\" };\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tthis.cmbMonth.add(qs[i]);\n\t\t}\n\n\t\tint intMonth = 1;\n\t\tcmbMonth.setText(\"Quarter \" + intMonth);\n\t\tcmbMonth.setEditable(false);\n\t\tcmbMonth.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcmbMonth.setVisibleItemCount(4);\n\n\t\t// cmdYear\n\t\tcmbYear = new CCombo(grpDateInfo, SWT.BORDER);\n\t\tcmbYear.setBounds(new org.eclipse.swt.graphics.Rectangle(160, 50, 80,\n\t\t\t\t20));\n\t\tcmbYear.setEditable(false);\n\t\tcmbYear.setBackground(ResourceUtils.getColor(iDartColor.WHITE));\n\t\tcmbYear.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\n\t\t// get the current date12\n\t\tCalendar rightNow = Calendar.getInstance();\n\t\tint currentYear = rightNow.get(Calendar.YEAR);\n\t\tfor (int i = currentYear - 2; i <= currentYear + 1; i++) {\n\t\t\tthis.cmbYear.add(Integer.toString(i));\n\t\t}\n\t\tcmbYear.setText(String.valueOf(Calendar.getInstance()\n\t\t\t\t.get(Calendar.YEAR)));\n\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult createGroup = mFacePlus.createGroup(groupname.getText().toString(), groupname.getText().toString(), null);\n\t\t\t\tif(createGroup.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + createGroup.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tGroup group = (Group) createGroup.data;\n\t\t\t\tLog.e(TAG,\"groupid = \"+group.getId());\n\t\t\t\tLog.e(TAG,group.toString());\n\t\t\t}", "private void requestAutoStartPermission() {\n if (Build.MANUFACTURER.equals(\"OPPO\")) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.FakeActivity\")));\n } catch (Exception e) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e1) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e2) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startup.StartupAppListActivity\")));\n } catch (Exception e3) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupapp.StartupAppListActivity\")));\n } catch (Exception e4) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safe\", \"com.coloros.safe.permission.startupmanager.StartupAppListActivity\")));\n } catch (Exception e5) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startsettings\")));\n } catch (Exception e6) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupapp.startupmanager\")));\n } catch (Exception e7) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startupmanager.startupActivity\")));\n } catch (Exception e8) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.startupapp.startupmanager\")));\n } catch (Exception e9) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity.Startupmanager\")));\n } catch (Exception e10) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.privacypermissionsentry.PermissionTopActivity\")));\n } catch (Exception e11) {\n try {\n startActivity(new Intent().setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.FakeActivity\")));\n } catch (Exception e12) {\n e12.printStackTrace();\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }", "public static String specifyGroup() {\n return holder.format(\"specifyGroup\");\n }", "public String getGroup ()\n {\n return \"instances\";\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tmFaceManager.createGroup(\"first_group\");\n\t\t\t\t\t\tmResult = mFaceManager.getmResult();\n\t\t\t\t\t}", "private static int getLaunchOrder()\r\n\t{\r\n\t\treturn launchOrder;\r\n\t}", "private void group(String[] args){\n String name;\n \n switch(args[1]){\n case \"view\":\n this.checkArgs(args,2,2);\n ms.listGroups(this.groups);\n break;\n case \"add\":\n this.checkArgs(args,3,2);\n name = args[2];\n db.createGroup(name);\n break;\n case \"rm\":\n this.checkArgs(args,3,2);\n name = args[2];\n Group g = this.findGroup(name);\n if(g == null)\n ms.err(4);\n db.removeGroup(g);\n break;\n default:\n ms.err(3);\n break;\n }\n }", "private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}", "@Override\r\n public void onGroupExpand(int groupPosition) {\n }", "public final void rule__Application__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:394:1: ( rule__Application__Group__1__Impl rule__Application__Group__2 )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:395:2: rule__Application__Group__1__Impl rule__Application__Group__2\n {\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__1__Impl_in_rule__Application__Group__1774);\n rule__Application__Group__1__Impl();\n _fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__2_in_rule__Application__Group__1777);\n rule__Application__Group__2();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private void initSupportAggregate() {\n Intent intent = new Intent();\n intent.setClassName(\"com.miui.notification\", \"miui.notification.aggregation.NotificationListActivity\");\n boolean z = this.mContext.getPackageManager().resolveActivity(intent, 0) != null;\n sSupportAggregate = z;\n this.mBindTimes = 0;\n if (!z) {\n return;\n }\n if (!this.mHasBind || this.mNcService == null) {\n this.mHandler.removeMessages(10002);\n this.mHandler.sendEmptyMessage(10002);\n }\n }", "private void changeGroupName() {\r\n //Added for Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy - Start\r\n //To check sponsor form is exists for the group,exists - group name is made non-editable\r\n boolean isFormExist = false;\r\n try{\r\n TreePath existTreepath = findEmptyGroup(sponsorHierarchyTree, sponsorHierarchyTree.getSelectionPath());\r\n if( existTreepath == null){\r\n isFormExist = isFormsExistInGroup(selectedNode.toString());\r\n }\r\n }catch(CoeusUIException coeusUIException){\r\n CoeusOptionPane.showDialog(coeusUIException);\r\n return ;\r\n }\r\n if(isPrintingHierarchy && selectedNode.getLevel() == 1 && isFormExist){\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(CANNOT_RENAME_LEVEL1));\r\n \r\n }else {//CAse#2445 - End\r\n if(!selectedNode.getAllowsChildren() || selectedNode.isRoot() ) {\r\n CoeusOptionPane.showInfoDialog(coeusMessageResources.parseMessageKey(\"maintainSponsorHierarchy_exceptionCode.1251\"));\r\n return;\r\n }\r\n sponsorHierarchyTree.startEditingAtPath(selTreePath);\r\n }\r\n }", "protected abstract Group createIface ();", "public void setStartBayGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.STARTBAY.toString(), num);\n\t}", "void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }", "public void setHomeGroup(HomeGroup group) {\n\t\tthis.homeGroup = group;\n\t}", "public long getGroup()\r\n { return group; }", "public void myGroupBtn(View view) {\n Intent i = new Intent(getApplicationContext(), MyGroup.class);\n // Removes animation\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }", "void resetAndComputeGroups( long start_id )\n {\n setTitle( R.string.calib_compute_groups );\n setTitleColor( TDColor.COMPUTE );\n new CalibComputer( this, start_id, CalibComputer.CALIB_RESET_AND_COMPUTE_GROUPS ).execute();\n }", "public void startApp()\r\n\t{\n\t}", "private void sendActivationsToNecessaryGroups(DataGroupInfo group)\n {\n Set<String> activeGroupIds = getUserActivatedGroupIds();\n List<DataGroupInfo> toActivate = group.groupStream()\n .filter(g -> !g.activationProperty().isActivatingOrDeactivating() && activeGroupIds.contains(g.getId()))\n .collect(Collectors.toList());\n if (!toActivate.isEmpty())\n {\n if (LOGGER.isTraceEnabled())\n {\n StringBuilder sb = new StringBuilder(\"Sending Activations to Necessary Groups: \\n\");\n toActivate.stream().forEach(dgi -> sb.append(\" \").append(dgi.getId()).append('\\n'));\n LOGGER.trace(sb.toString());\n }\n try\n {\n new DefaultDataGroupActivator(myController.getToolbox().getEventManager()).setGroupsActive(toActivate, true);\n }\n catch (InterruptedException e)\n {\n LOGGER.error(e, e);\n }\n }\n }", "@FXML\n\tprivate void createGroup(ActionEvent event){\n\t\tif(subgroup_menu.getValue().equals(\"--- INGEN ---\")){\n\t\t\tif(GroupName_field.getText().equals(\"\")){\n\t\t\t\tmakeDialog(\"Du må gi gruppen et navn.\");\n\t\t\t} else {\n\t\t\t\tDatabaseInterface db = new DatabaseInterface();\n\t\t\t\tdb.setGroup(GroupName_field.getText(), findInvited());\n\t\t\t\tStage stage = (Stage) create_btn.getScene().getWindow();\n\t\t\t stage.close();\n\t\t\t}\n\t//-------This kicks in if a user chose a group in the dropdown menu-----\\\\\n\t\t} else {\n\t\t\tif(GroupName_field.getText().equals(\"\")){\n\t\t\t\tmakeDialog(\"Du må gi gruppen et navn.\");\n\t\t\t} else {\n\t\t\t\tDatabaseInterface db = new DatabaseInterface();\n\t\t\t\tString supergroup_name = (String) subgroup_menu.getValue();\n\t\t\t\tint SubGroupId = db.setGroup(GroupName_field.getText(), findInvited()).getGroup_id();\n\t\t\t\tint SuperGroupId = getSupergroupID(supergroup_name);\n\t\t\t\tdb.setSubGroup(SuperGroupId, SubGroupId);\n\t\t\t\tStage stage = (Stage) create_btn.getScene().getWindow();\n\t\t\t stage.close();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void clickOnNewGroupButton()\n\t{\n\t\twaitForElement(newGroupButton);\n\t\tclickOn(newGroupButton);\n\t}", "interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {\n }", "public String getExtendGroupName()\n {\n return this.extendGroup_name;\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.getAllGroupListInfo();\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tList<Group> groupList = (List<Group>) result.data;\n\t\t\t\tString str_groupname = groupname.getText().toString();\n\t\t\t\tfor (int i = 0; i < groupList.size(); i++) {\n\t\t\t\t\tLog.e(TAG,groupList.get(i).getName()+\"\");\n\t\t\t\t\t\tLog.e(TAG,groupList.get(i).getId()+\"\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }", "PlayerGroup createPlayerGroup();", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "public String group() { return group; }", "public final void rule__Application__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:363:1: ( rule__Application__Group__0__Impl rule__Application__Group__1 )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:364:2: rule__Application__Group__0__Impl rule__Application__Group__1\n {\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__0__Impl_in_rule__Application__Group__0712);\n rule__Application__Group__0__Impl();\n _fsp--;\n\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__1_in_rule__Application__Group__0715);\n rule__Application__Group__1();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private void createGrpClinicSelection() {\n\n\t}", "public interface CoreGroup extends AbstractGroup {\r\n}", "private void editValidItems(GroupOwnerModel group, String[] grps) {\r\n\t\tgroup.setGroupNameList(new ArrayList<String>());\r\n\t\tfor(String str:grps){\r\n\t\t\t for(SelectItem item: groupOwnerModel.getGroupSelectList()){\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(item.getLabel())){\r\n\t\t\t\t\tgroup.getGroupNameList().add(item.getValue().toString());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private PaletteContainer createAndroid1Group() {\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\n\t\t\t\tMessages.Android1Group_title);\n\t\tpaletteContainer.setId(\"createAndroid1Group\"); //$NON-NLS-1$\n\t\tpaletteContainer.add(createLayout1CreationTool());\n\t\tpaletteContainer.add(createButton2CreationTool());\n\t\tpaletteContainer.add(createTextField3CreationTool());\n\t\tpaletteContainer.add(createTextView4CreationTool());\n\t\tpaletteContainer.add(createAplication5CreationTool());\n\t\tpaletteContainer.add(createCreateString6CreationTool());\n\t\tpaletteContainer.add(createActivity7CreationTool());\n\t\tpaletteContainer.add(createMenu8CreationTool());\n\t\tpaletteContainer.add(createItem9CreationTool());\n\t\tpaletteContainer.add(createAction10CreationTool());\n\t\tpaletteContainer.add(createDialog11CreationTool());\n\t\treturn paletteContainer;\n\t}", "public \n MRayInstGroupAction()\n {\n super(\"MRayInstGroup\", new VersionID(\"2.0.9\"), \"Temerity\",\n\t \"Builds an inst group from attached mi files\");\n \n {\n ActionParam param = \n\tnew BooleanActionParam\n\t(renderStateParam,\n\t \"Do you want to build Render statements as well as an instgroup\", \n\t false);\n addSingleParam(param);\n }\n \n {\n ActionParam param = \n\tnew BooleanActionParam\n\t(includeParam,\n\t \"Do you want to add include statements to the file\", \n\t false);\n addSingleParam(param);\n }\n }", "@Override\n public void testOneRequiredGroup() {\n }", "@Override\n public void testOneRequiredGroup() {\n }", "private void _generateAResearchGroup(int index) {\n String id;\n id = _getId(CS_C_RESEARCHGROUP, index);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#ResearchGroup\", true);\t \t \t \t \n }\n writer_.startSection(CS_C_RESEARCHGROUP, id);\n writer_.addProperty(CS_P_SUBORGANIZATIONOF,\n _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#subOrganizationOf\", _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\t \t \t \t \n }\n writer_.endSection(CS_C_RESEARCHGROUP);\n }", "public interface GroupService {\n}", "public interface GroupService {\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tmenu.add(1,1,1,\"\").setTitle(R.string.creategroup);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void setGroupName(String newGroupName)\n {\n this.groupName = newGroupName;\n }", "@Override\n public void onGroupExpand(int groupPosition) {\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 }", "public void addGroup(String name) {\n if(isGroup(name) == false) {\n /* Create a new groupchatpanel */\n GroupChatPanel gcp = new GroupChatPanel(guicontrol, concontrol, name);\n \n /* Add the group to the hashmap */\n grouptabs.put(name, gcp);\n \n /* Add the group to the JTabbedPane */\n tbMain.addTab(name, gcp);\n \n /* Now focus on the tab */\n tbMain.setSelectedComponent(gcp);\n \n /* Now focus on the TextField */\n gcp.tfSendPrep.requestFocusInWindow();\n }\n }", "public void setStartLevelGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.STARTLEVEL.toString(), num);\n\t}", "@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\n\t\t\t\t\tshowwindow(presentadd_group);\n\t\t\t\t}", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new GroupIntakeDefault());\n }", "void syncGroup(Context context);", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "private void addAutoStartupswitch() {\n\n try {\n Intent intent = new Intent();\n String manufacturer = android.os.Build.MANUFACTURER .toLowerCase();\n\n switch (manufacturer){\n case \"xiaomi\":\n intent.setComponent(new ComponentName(\"com.miui.securitycenter\", \"com.miui.permcenter.autostart.AutoStartManagementActivity\"));\n break;\n case \"oppo\":\n intent.setComponent(new ComponentName(\"com.coloros.safecenter\", \"com.coloros.safecenter.permission.startup.StartupAppListActivity\"));\n break;\n case \"vivo\":\n intent.setComponent(new ComponentName(\"com.vivo.permissionmanager\", \"com.vivo.permissionmanager.activity.BgStartUpManagerActivity\"));\n break;\n case \"Letv\":\n intent.setComponent(new ComponentName(\"com.letv.android.letvsafe\", \"com.letv.android.letvsafe.AutobootManageActivity\"));\n break;\n case \"Honor\":\n intent.setComponent(new ComponentName(\"com.huawei.systemmanager\", \"com.huawei.systemmanager.optimize.process.ProtectActivity\"));\n break;\n case \"oneplus\":\n intent.setComponent(new ComponentName(\"com.oneplus.security\", \"com.oneplus.security.chainlaunch.view.ChainLaunchAppListAct‌​ivity\"));\n break;\n }\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);\n if (list.size() > 0) {\n startActivity(intent);\n }\n } catch (Exception e) {\n Log.e(\"exceptionAutostarti2pd\" , String.valueOf(e));\n }\n\n }", "@Override\r\n\tpublic void getGroup(ShoppingList sl) {\r\n\r\n\t}", "ZigBeeGroup getGroup(int groupId);", "public int expand_group(int startposition,\n String searchKey) {\n ArrayList<NtfcnsDataModel> data = ((Ntfcns_adapter)adapter).getDataSet();\n ArrayList<NtfcnsDataModel> items_to_add = new ArrayList<>();\n\n String group_header = data.get(startposition).getPlaceholder();\n\n Log.i(TAG, \"Expand group: \" + group_header);\n Log.i(TAG, \"Current search key: \" + searchKey);\n\n if (group_header.contains(\"Active Notifications\")) {\n items_to_add = ntfcn_items.filter_active(searchKey);\n } else if (group_header.contains(\"Cached Notifications\")) {\n items_to_add = ntfcn_items.filter_inactive(searchKey);\n }\n\n data.addAll(startposition+1, items_to_add);\n\n return items_to_add.size();\n }", "protected DynamicDeviceGroup() {\n\t}", "protected int createGroup() {\n\t\tint id = _motherGroupID + 1;\n\t\twhile (_soundNodes.containsKey(id)) { id++; }\n\t\tcreateGroup(id);\n\t\treturn id;\n\t}", "public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}", "sync_group_definition getSync_group_definition();", "private void groupButton() {\n ButtonGroup bg1 = new ButtonGroup();\n \n bg1.add(excellentbtn);\n bg1.add(goodbtn);\n bg1.add(normalbtn);\n bg1.add(badbtn);\n bg1.add(worstbtn);\n }", "public void config(Group[] group) {\n\n }" ]
[ "0.60706085", "0.5844758", "0.57266146", "0.5708995", "0.57059526", "0.5675911", "0.564616", "0.56015366", "0.55324435", "0.5500528", "0.54817945", "0.5438026", "0.5424008", "0.54171634", "0.53829", "0.5382248", "0.53777486", "0.5375927", "0.5375378", "0.5372754", "0.53700477", "0.5364137", "0.53479755", "0.534282", "0.53412956", "0.5338917", "0.5334658", "0.5316502", "0.53119177", "0.53118587", "0.531163", "0.5307741", "0.5301263", "0.5293977", "0.5281723", "0.52783525", "0.5264906", "0.5264497", "0.52576447", "0.52567214", "0.5249581", "0.5249146", "0.5245384", "0.52442396", "0.52418053", "0.52400315", "0.52377266", "0.52343696", "0.52217394", "0.52207094", "0.52115196", "0.52079946", "0.5202763", "0.5200819", "0.51978844", "0.5197033", "0.51957136", "0.51917136", "0.51857865", "0.51782215", "0.51781017", "0.5176349", "0.5171921", "0.5170617", "0.51575714", "0.51550823", "0.5150338", "0.51491576", "0.51477087", "0.51431036", "0.51398396", "0.51398146", "0.5128717", "0.5115904", "0.51086056", "0.51010185", "0.5099932", "0.5099932", "0.5089838", "0.508403", "0.508403", "0.50836724", "0.5077656", "0.50752944", "0.5072675", "0.5072565", "0.5070594", "0.5069495", "0.50694704", "0.50603276", "0.5055538", "0.50545746", "0.50539225", "0.50520205", "0.5048045", "0.50446457", "0.50398", "0.5038856", "0.50366515", "0.50346315", "0.5032639" ]
0.0
-1
Log.d(TAG,"hasNavigationBar ="+mHasNavigationBar); return mHasNavigationBar;
public boolean hasNavigationBar(){ return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean getShowHBar() { return _showHBar; }", "private void showNav(){\n navBar.setVisibility(View.VISIBLE);\n }", "boolean hasActionBar();", "@Override\n public boolean onPreDraw() {\n mNavigationBarView.setSystemUiVisibility(mSystemUiFlags);\n return true;\n }", "public Boolean getShowVBar() { return _showVBar; }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (isPredictionFragment == true) {\n enablePredictionHome(false);\n toggle.setDrawerIndicatorEnabled(true);\n\n\n }\n\n if (id == R.id.nav_home) {\n isHome = true;\n //Toast.makeText(MainActivity.this,\"Home Selected\",Toast.LENGTH_LONG).show();\n } else {\n isHome = false;\n //Toast.makeText(MainActivity.this,\"Home Not Selected\",Toast.LENGTH_LONG).show();\n }\n displaySelectedScreen(id);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_read_offline) {\n // Handle the camera action\n Toast.makeText(this, \"Chờ phiên bản tiếp nhé !\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_like) {\n Toast.makeText(this, \"Đã bảo chờ phiên bản tiếp rồi !\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_night_mode) {\n //mFrameLayoutSetting.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_setting) {\n Toast.makeText(this, \"Mệt em vl, chờ phiên bản sau nhé !\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_version) {\n Toast.makeText(this, \"I am sorry ! Đừng gỡ app\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_policy) {\n Toast.makeText(this, \"Dừng lại tại đây thôi !\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_vote) {\n //SystemClock.sleep(1000);\n Toast.makeText(this, \"Em nhây vl !\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_feedback) {\n Toast.makeText(this, \"Em gỡ mịa app đi !\", Toast.LENGTH_SHORT).show();\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n FragmentManager supportFragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = supportFragmentManager.beginTransaction();\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n toolbar.setTitle(\"知乎日报\");\n fragmentTransaction.replace(R.id.fl_content, new ZhihuMainFragment()).commit();\n } else if (id == R.id.nav_gallery) {\n toolbar.setTitle(\"微信精选\");\n fragmentTransaction.replace(R.id.fl_content, new WeiCharFragment()).commit();\n } else if (id == R.id.nav_slideshow) {\n toolbar.setTitle(\"干活集中营\");\n fragmentTransaction.replace(R.id.fl_content, new GankFragment()).commit();\n } else if (id == R.id.nav_manage) {\n toolbar.setTitle(\"数据智汇\");\n fragmentTransaction.replace(R.id.fl_content, new ZhihuiFragment()).commit();\n } else if (id == R.id.nav_v2ex) {\n toolbar.setTitle(\"V2EX\");\n fragmentTransaction.replace(R.id.fl_content, new V2EXFragment()).commit();\n } else if (id == R.id.nav_collecting) {\n toolbar.setTitle(\"收藏\");\n fragmentTransaction.replace(R.id.fl_content, new CollectingFragment()).commit();\n Toast.makeText(this, \"收藏\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_set) {\n toolbar.setTitle(\"设置\");\n fragmentTransaction.replace(R.id.fl_content, new SettingFragment()).commit();\n } else if (id == R.id.nav_about) {\n toolbar.setTitle(\"关于\");\n fragmentTransaction.replace(R.id.fl_content, new AboutFragment()).commit();\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_about) {\n startActivity(new Intent(HomeActivity.this, AboutActivity.class));\n // toolbar.setTitle(\"ABOUT US\");\n // Handle the camera action\n }\n else if (id == R.id.nav_magazines) {\n // Toast.makeText(this,\"Downloaded==\",Toast.LENGTH_LONG).show();\n //getSupportActionBar().setDisplayUseLogoEnabled(true);\n // toolbar.setLogo(R.drawable.nav_icon_logo);\n state=0;\n callDatabaseInitial();\n toolbar.setTitle(\"Alle utgivelser\");\n\n\n }\n\n\n else if (id == R.id.nav_downloaded_magazines) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n // Toast.makeText(this,\"Downloaded==\",Toast.LENGTH_LONG).show();\n\n state=1;\n callDatabaseInitial();\n toolbar.setTitle(\"LASTET NED NYHETER\");\n\n\n } else if (id == R.id.nav_favorite_magazines) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n state=2;\n callDatabaseInitial();\n toolbar.setTitle(\"FAVORITT NYHETER\");\n\n } else if (id == R.id.nav_my_profile) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n // if(isNetworkAvailable(this)) {\n startActivity(new Intent(HomeActivity.this, ChangeProfileActivity.class));\n// }else{\n// Toast.makeText(this,\"No internet connection !\",Toast.LENGTH_SHORT).show();\n// }\n\n } else if (id == R.id.nav_setting) {\n // getSupportActionBar().setDisplayUseLogoEnabled(false);\n openSettingsPage();\n toolbar.setTitle(\"INNSTILLINGER\");\n\n\n }\n// else if (id == R.id.nav_subscribe) {\n// // getSupportActionBar().setDisplayUseLogoEnabled(false);\n// startActivity(new Intent(HomeActivity.this, SubscriptionActivity.class));\n//\n//\n// }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n\n Boolean checkMenuItem = true;\n MenuItem item1 = menu.findItem(R.id.nav_complaint_mess);\n MenuItem item2 = menu.findItem(R.id.nav_complaint_hostel);\n MenuItem item3 = menu.findItem(R.id.nav_complaint_general);\n\n int id = item.getItemId();\n Intent intent = new Intent();\n boolean flag = false;\n final Context context = SubscriptionActivity.this;\n\n if (id == R.id.nav_home) {\n intent = new Intent(context, HomeActivity.class);\n flag = true;\n\n }else if (id == R.id.nav_search) {\n intent = new Intent(context, StudentSearchActivity.class);\n flag = true;\n } else if (id == R.id.nav_complaint_box) {\n if (!item1.isVisible()) {\n item1.setVisible(true);\n item2.setVisible(true);\n item3.setVisible(true);\n item.setIcon(ContextCompat.getDrawable(this, R.drawable.ic_keyboard_arrow_down_black_24dp));\n checkMenuItem = false;\n } else {\n item1.setVisible(false);\n item2.setVisible(false);\n item3.setVisible(false);\n checkMenuItem = false;\n item.setIcon(ContextCompat.getDrawable(this, R.drawable.ic_forum_black_24dp));\n }\n// navigationView.getMenu().getItem(getResources().getInteger(R.integer.nav_index_maps)).setChecked(true);\n\n\n } else if (id == R.id.nav_complaint_hostel) {\n intent = new Intent(context, HostelComplaintsActivity.class);\n flag = true;\n } else if (id == R.id.nav_complaint_general) {\n intent = new Intent(context, GeneralComplaintsActivity.class);\n flag = true;\n } else if (id == R.id.nav_complaint_mess) {\n intent = new Intent(context, MessAndFacilitiesActivity.class);\n flag = true;\n } else if (id == R.id.nav_calendar) {\n intent = new Intent(context, CalendarActivity.class);\n flag = true;\n } else if (id == R.id.nav_timetable) {\n intent = new Intent(context, TimetableActivity.class);\n flag = true;\n } else if (id == R.id.nav_contacts) {\n intent = new Intent(context, ImpContactsActivity.class);\n flag = true;\n } else if (id == R.id.nav_about) {\n intent = new Intent(context, AboutUsActivity.class);\n flag = true;\n } else if (id == R.id.nav_profile) {\n intent = new Intent(context, ProfileActivity.class);\n flag = true;\n\n } else if (id == R.id.nav_log_out) {\n drawer.closeDrawer(GravityCompat.START);\n Handler handler = new Handler();\n handler.postDelayed(\n new Runnable() {\n @Override\n public void run() {\n LogOutAlertClass lg = new LogOutAlertClass();\n lg.isSure(SubscriptionActivity.this);\n }\n }\n , getResources().getInteger(R.integer.close_nav_drawer_delay) // it takes around 200 ms for drawer to close\n );\n return true;\n }\n\n if (checkMenuItem) {\n item1.setVisible(false);\n item2.setVisible(false);\n item3.setVisible(false);\n\n drawer.closeDrawer(GravityCompat.START);\n\n //Wait till the nav drawer is closed and then start new activity (for smooth animations)\n Handler mHandler = new Handler();\n final boolean finalFlag = flag;\n final Intent finalIntent = intent;\n mHandler.postDelayed(\n new Runnable() {\n @Override\n public void run() {\n if (finalFlag) {\n context.startActivity(finalIntent);\n }\n }\n }\n , getResources().getInteger(R.integer.close_nav_drawer_delay) // it takes around 200 ms for drawer to close\n );\n }\n return true;\n\n }", "private void loadAppBar()\n\t{\n\t\tLayoutInflater inflator=(LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView v = inflator.inflate(R.layout.search_page_header, null);\n\t\t\t\n\t\tActionBar mActionBar = getActionBar();\n\t\tmActionBar.setDisplayShowHomeEnabled(false);\n\t\tmActionBar.setDisplayShowTitleEnabled(false);\n\t\tmActionBar.setDisplayUseLogoEnabled(false);\n\t\tmActionBar.setDisplayShowCustomEnabled(true);\n\t\tmActionBar.setCustomView(v);\n\t\tif (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n\t\t\ttry{\n\t\t\t\tToolbar parent = (Toolbar) v.getParent(); \n\t\t\t\tparent.setContentInsetsAbsolute(0, 0);\n\t\t\t} catch(ClassCastException e) {\n\t\t\t\te.printStackTrace(); \n\t\t\t}\n\t\t}\n\t\t\n\t\tImageView menuBtn \t= (ImageView) v.findViewById(R.id.iv_menu_btn);\n\t\tImageView ivLogo\t\t= (ImageView) v.findViewById(R.id.iv_logo);\n\t\tImageButton ibHome = (ImageButton) v.findViewById(R.id.ib_home);\n\t\t\n\t\tibHome.setOnClickListener(new OnClickListener() {\n\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\tif (!loadingURL.contains(\"/Shared/ProgressPayment\")) {\n\t\t\t\t\tfinish();\n\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this, MenuSelectionAcitivity.class);\n\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tstartActivity(home);\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tivLogo.setOnClickListener(new OnClickListener() {\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\tif (!loadingURL.contains(\"/Shared/ProgressPayment\")) {\n\t\t\t\t\tif (loadingURL.contains(\"/Flight/ShowTicket\") ||\n\t\t\t\t\t\t\tloadingURL.contains(\"/Hotel/Voucher\")) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this, MenuSelectionAcitivity.class);\n\t\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\tstartActivity(home);\n\t\t\t\t\t} else if (wv1.canGoBack()) {\n\t\t\t\t\t\twv1.goBack();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t});\n\t\t\n\t\tmenuBtn.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\tif (!loadingURL.contains(\"/Shared/ProgressPayment\")) {\n\t\t\t\t\tif (loadingURL.contains(\"/Flight/ShowTicket\") ||\n\t\t\t\t\t\t\tloadingURL.contains(\"/Hotel/Voucher\")) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this, MenuSelectionAcitivity.class);\n\t\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\tstartActivity(home);\n\t\t\t\t\t} else if (wv1.canGoBack()) {\n\t\t\t\t\t\twv1.goBack();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t}\n\t\t});\n\t\t\n\t}", "interface INavigationBar {\n\n int getNavigationLayoutID();\n\n void applyView();\n\n}", "public void setToolbar() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n // Menginisiasi NavigationView\n NavigationView navigationView = (NavigationView) findViewById(R.id.navigation_view);\n //Mengatur Navigasi View Item yang akan dipanggil untuk menangani item klik menu navigasi\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n // This method will trigger on item Click of navigation menu\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n //Memeriksa apakah item tersebut dalam keadaan dicek atau tidak,\n if (menuItem.isChecked()) menuItem.setChecked(false);\n else menuItem.setChecked(true);\n //Menutup drawer item klik\n drawerLayout.closeDrawers();\n //Memeriksa untuk melihat item yang akan dilklik dan melalukan aksi\n toolbarNav(menuItem);\n return true;\n }\n });\n // Menginisasi Drawer Layout dan ActionBarToggle\n drawerLayout = (DrawerLayout) findViewById(R.id.drawer);\n ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawerLayout, toolbar, R.string.openDrawer, R.string.closeDrawer) {\n @Override\n public void onDrawerClosed(View drawerView) {\n // Kode di sini akan merespons setelah drawer menutup disini kita biarkan kosong\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Kode di sini akan merespons setelah drawer terbuka disini kita biarkan kosong\n super.onDrawerOpened(drawerView);\n }\n };\n //Mensetting actionbarToggle untuk drawer layout\n drawerLayout.setDrawerListener(actionBarDrawerToggle);\n //memanggil synstate\n actionBarDrawerToggle.syncState();\n }", "private void checkShouldChangeNavBarHidden(){\n\n boolean shouldHide = mActionBar.isShowing();\n handleActionBarHidden(shouldHide);\n }", "public boolean isHBarShowing() { return getHBar().getParent()!=null; }", "private void initNavigation() {\n\t\tuINavigationView = (MyUINavigationView) findViewById(R.id.action_bar);\n\t\tImageButton btnLeftText = uINavigationView.getBtn_left();\n\t\tButton btnRightText = uINavigationView.getBtn_right();\n\t\tbtnRightText.setVisibility(View.GONE);\n\t\tbtnLeftText.setOnClickListener(new OnClickListener() {\n\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\tfinish();\n\t\t\t}\n\t\t});\n//\t\tbtnRightText.setOnClickListener(new OnClickListener() {\n//\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\tsetPersonalInfo();\n//\t\t\t}\n//\t\t});\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n\n\n // Highlight the selected item has been done by NavigationView\n item.setChecked(true);\n // Set action bar title\n setTitle(item.getTitle());\n // Handle navigation view item clicks here.\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, ShowStreamRt.newInstance())\n .commit();\n } else if (id == R.id.nav_gallery) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, Choice.newInstance())\n .commit();\n\n } else if (id == R.id.nav_slideshow) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, HistoList.newInstance())\n .commit();\n\n } else if (id == R.id.nav_manage) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, ShowRt.newInstance())\n .commit();\n\n } else if (id == R.id.nav_geoloc) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, Geolocalisation.newInstance())\n .commit();\n\n } else if (id == R.id.nav_mytickets) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, MyticketsList.newInstance())\n .commit();\n\n }else if (id == R.id.nav_details) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, ShowMyTickets.newInstance())\n .commit();\n\n }else if (id == R.id.nav_astreintes) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, PlannigAstreintes.newInstance())\n .commit();\n\n }else if (id == R.id.nav_pointage) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, Pointage.newInstance())\n .commit();\n\n }else if (id == R.id.nav_tickets_flm) {\n fragmentManager.beginTransaction()\n .replace(R.id.flContent, Stream_Aix.newInstance())\n .commit();\n\n }\n\n // Close the navigation drawer\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n\n\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\r\n @Override\r\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n final RelativeLayout linearCF = (RelativeLayout) findViewById(R.id.linear_cf);\r\n FragmentManager fragmentManager = getSupportFragmentManager();\r\n String title;\r\n final Context con = this;\r\n if (id == R.id.home) {\r\n final Handler handler = new Handler();\r\n handler.postDelayed(new Runnable() {\r\n @Override\r\n public void run() {\r\n linearCF.setVisibility(View.VISIBLE);\r\n Intent i = new Intent(con, MainActivity.class);\r\n startActivity(i);\r\n }\r\n }, 250);\r\n //finish();\r\n } else if (id == R.id.nav_laws) {\r\n linearCF.setVisibility(GONE);\r\n fragmentManager.beginTransaction()\r\n .replace(R.id.content_frame, new KnowMoreSection())\r\n .commit();\r\n title = \"VAW Laws\";\r\n getSupportActionBar().setTitle(title);\r\n } else if (id == R.id.nav_danger) {\r\n linearCF.setVisibility(GONE);\r\n Intent i = new Intent(MainActivity.this, SOSSection.class);\r\n startActivity(i);\r\n finish();\r\n }\r\n else if (id == R.id.nav_seekhelp) {\r\n linearCF.setVisibility(GONE);\r\n fragmentManager.beginTransaction()\r\n .replace(R.id.content_frame,new SeekHelpSection())\r\n .commit();\r\n title = \"Seek Help\";\r\n Toast.makeText(this, \"Seek Help\",\r\n Toast.LENGTH_LONG).show();\r\n }else if (id == R.id.nav_hospital) {\r\n startActivity(new Intent(this, MapActivity.class));\r\n }else if (id == R.id.nav_police) {\r\n startActivity(new Intent(this, MapPoliceActivity.class));\r\n } else if (id == R.id.Logout) {\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Log Out\");\r\n builder.setMessage(\"Are you sure?\");\r\n builder.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n // Do nothing but close the dialog\r\n final Realm realm = Realm.getDefaultInstance();\r\n realm.executeTransactionAsync(new Realm.Transaction() {\r\n @Override\r\n public void execute(Realm realm) {\r\n realm.deleteAll();\r\n }\r\n }, new Realm.Transaction.OnSuccess() {\r\n @Override\r\n public void onSuccess() {\r\n realm.close();\r\n // TODO: 12/4/2016 add flag to clear all task\r\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\r\n MainActivity.this.finish();\r\n }\r\n }, new Realm.Transaction.OnError() {\r\n @Override\r\n public void onError(Throwable error) {\r\n realm.close();\r\n Log.e(\"TAG\", \"onError: Error Logging out (deleting all data)\", error);\r\n }\r\n });\r\n finish();\r\n }\r\n });\r\n builder.setNegativeButton(\"NO\", new DialogInterface.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n // Do nothing\r\n dialog.dismiss();\r\n }\r\n });\r\n AlertDialog alert = builder.create();\r\n alert.show();\r\n\r\n }\r\n else if (id == R.id.Account) {\r\n startActivity(new Intent(this, ProfileActivity.class));\r\n }\r\n\r\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\r\n drawer.closeDrawer(GravityCompat.START);\r\n return true;\r\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n //Replacing the main content with ContentFragment Which is our Inbox View;\n case R.id.nav_overview:\n navItemIndex = 0;\n CURRENT_TAG = TAG_OVERVIEW;\n break;\n case R.id.nav_vehiclelist:\n navItemIndex = 1;\n CURRENT_TAG = TAG_VEHICLELIST;\n break;\n case R.id.nav_acount:\n navItemIndex = 2;\n CURRENT_TAG = TAG_ACCOUNT;\n break;\n case R.id.nav_history:\n navItemIndex = 3;\n CURRENT_TAG = TAG_HISTORY;\n break;\n case R.id.nav_logout:\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(R.drawable.alerticon)\n .setTitle(\"Logout\")\n .setMessage(\"Are you sure you want to Logout ?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n SharedPreferences preferences = getSharedPreferences(\"app\", MODE_PRIVATE);\n preferences.edit().clear().commit();\n MainActivity.this.finish();\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n break;\n default:\n navItemIndex = 0;\n }\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadHomeFragment();\n\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n //Replacing the main content with ContentFragment Which is our Inbox View;\n case R.id.home:\n navItemIndex = 0;\n CURRENT_TAG = TAG_HOME;\n break;\n case R.id.nav_photos:\n navItemIndex = 1;\n CURRENT_TAG = TAG_PHOTOS;\n break;\n case R.id.nav_movies:\n Intent intent = new Intent(getApplicationContext(),TutorialsActivity.class);\n //TODO put VideoID\n intent.putExtra(\"VIDEO_ID\",\"KhHtb7x8bsI\");\n startActivity(intent);\n break;\n /* case R.id.nav_notifications:\n navItemIndex = 3;\n CURRENT_TAG = TAG_NOTIFICATIONS;\n break;*/\n case R.id.nav_settings:\n navItemIndex = 3;\n CURRENT_TAG = TAG_SETTINGS;\n break;\n case R.id.nav_about_us:\n // launch new intent instead of loading fragment\n startActivity(new Intent(MainActivity.this, AboutUsActivity.class));\n drawer.closeDrawers();\n return true;\n case R.id.nav_privacy_policy:\n // launch new intent instead of loading fragment\n startActivity(new Intent(MainActivity.this, PrivacyPolicyActivity.class));\n drawer.closeDrawers();\n return true;\n default:\n {\n navItemIndex = 0;\n CURRENT_TAG = TAG_HOME;\n }}\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadHomeFragment();\n\n return true;\n }", "@Override\r\n\tpublic void onNaviSetting() {\n\r\n\t}", "private void setUpNavigationView() {\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n\n // This method will trigger on item Click of navigation menu\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n\n case R.id.nav_home:\n navItemIndex = 0;\n CURRENT_TAG = TAG_HOME;\n break;\n case R.id.nav_movies:\n navItemIndex = 1;\n CURRENT_TAG = GIVE_ASSIGNMENT;\n break;\n case R.id.nav_result:\n navItemIndex = 2;\n CURRENT_TAG = TAG_RESUlT;\n break;\n case R.id.nav_chat:\n navItemIndex = 3;\n CURRENT_TAG = CHAT;\n break;\n case R.id.nav_notifications:\n navItemIndex = 4;\n CURRENT_TAG = Profile;\n break;\n\n default:\n navItemIndex = 0;\n }\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadHomeFragment();\n\n return true;\n }\n });\n\n\n ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.openDrawer, R.string.closeDrawer) {\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Code here will be triggered once the drawer closes as we dont want anything to happen so we leave this blank\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank\n super.onDrawerOpened(drawerView);\n }\n };\n\n //Setting the actionbarToggle to drawer layout\n drawer.setDrawerListener(actionBarDrawerToggle);\n\n //calling sync state is necessary or else your hamburger icon wont show up\n actionBarDrawerToggle.syncState();\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n //Memeriksa apakah item tersebut dalam keadaan dicek atau tidak,\n if (menuItem.isChecked()) menuItem.setChecked(false);\n else menuItem.setChecked(true);\n //Menutup drawer item klik\n drawerLayout.closeDrawers();\n //Memeriksa untuk melihat item yang akan dilklik dan melalukan aksi\n toolbarNav(menuItem);\n return true;\n }", "private void initialize(){\n toolbar = findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayShowTitleEnabled(true);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n\n\n }", "static boolean hasTranslucentNavigationBar(@Nullable final Activity activity) {\n return activity != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT &&\n ((activity.getWindow().getAttributes().flags & LayoutParams.FLAG_TRANSLUCENT_NAVIGATION)\n == LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n\n case R.id.nav_home:\n navItemIndex = 0;\n CURRENT_TAG = TAG_HOME;\n break;\n case R.id.nav_movies:\n navItemIndex = 1;\n CURRENT_TAG = GIVE_ASSIGNMENT;\n break;\n case R.id.nav_result:\n navItemIndex = 2;\n CURRENT_TAG = TAG_RESUlT;\n break;\n case R.id.nav_chat:\n navItemIndex = 3;\n CURRENT_TAG = CHAT;\n break;\n case R.id.nav_notifications:\n navItemIndex = 4;\n CURRENT_TAG = Profile;\n break;\n\n default:\n navItemIndex = 0;\n }\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadHomeFragment();\n\n return true;\n }", "@Override\n\tpublic void onNaviViewLoaded() {\n\t\t\n\t}", "public int getBarSize() { return _barSize; }", "private void setUpNavigationView() {\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n\n // This method will trigger\n // on item Click of navigation menu\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n //Replacing the main content with ContentFragment Which is our Inbox View;\n case R.id.nav_overview:\n navItemIndex = 0;\n CURRENT_TAG = TAG_OVERVIEW;\n break;\n case R.id.nav_vehiclelist:\n navItemIndex = 1;\n CURRENT_TAG = TAG_VEHICLELIST;\n break;\n case R.id.nav_acount:\n navItemIndex = 2;\n CURRENT_TAG = TAG_ACCOUNT;\n break;\n case R.id.nav_history:\n navItemIndex = 3;\n CURRENT_TAG = TAG_HISTORY;\n break;\n case R.id.nav_logout:\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(R.drawable.alerticon)\n .setTitle(\"Logout\")\n .setMessage(\"Are you sure you want to Logout ?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n SharedPreferences preferences = getSharedPreferences(\"app\", MODE_PRIVATE);\n preferences.edit().clear().commit();\n MainActivity.this.finish();\n Intent intent = new Intent(MainActivity.this, LoginActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n break;\n default:\n navItemIndex = 0;\n }\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadHomeFragment();\n\n return true;\n }\n });\n\n\n ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.openDrawer, R.string.closeDrawer) {\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Code here will be triggered once the drawer closes as we dont want anything to happen so we leave this blank\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank\n super.onDrawerOpened(drawerView);\n }\n };\n\n //Setting the actionbarToggle to drawer layout\n drawer.setDrawerListener(actionBarDrawerToggle);\n\n //calling sync state is necessary or else your hamburger icon wont show up\n actionBarDrawerToggle.syncState();\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n String title = \"\";\n android.app.FragmentManager fragmentManager = getFragmentManager();\n FragmentManager mapFragmentManager = getSupportFragmentManager();\n if(supportMapFragment.isAdded())\n mapFragmentManager.beginTransaction().hide(supportMapFragment).commit();\n if(id == R.id.nav_home){\n fragmentManager.beginTransaction().replace(R.id.content_frame_for_fragments,new HomeFragment()).commit();\n title = \"Home\";\n }\n else if (id == R.id.nav_tree) {\n if(!supportMapFragment.isAdded())\n mapFragmentManager.beginTransaction().add(R.id.maps,supportMapFragment).commit();\n else\n mapFragmentManager.beginTransaction().show(supportMapFragment).commit();\n title = \"Plant a Tree\";\n }\n else if(id == R.id.nav_eco){\n title = \"Ecosystem\";\n fragmentManager.beginTransaction().replace(R.id.content_frame_for_fragments,new EcoFragment()).commit();\n }else if (id == R.id.nav_age) {\n title = \"Measure Age of Tree\";\n fragmentManager.beginTransaction().replace(R.id.content_frame_for_fragments,new TempFragment()).commit();\n } else if (id == R.id.nav_report) {\n fragmentManager.beginTransaction().replace(R.id.content_frame_for_fragments,new ReportFragment()).commit();\n title = \"Report\";\n }\n else{\n fragmentManager.beginTransaction().replace(R.id.content_frame_for_fragments,new AccumulateFragment()).commit();\n title = \"Accumulate Point\";\n }\n getSupportActionBar().setTitle(title);\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "protected abstract @LayoutRes\n int setNavigationDrawerContainer();", "public boolean getBar() {\n\t\treturn this.bar;\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n // Handle navigation view item clicks here.\n int id = item.getItemId();\n\n if (id == R.id.nav_home) {\n startActivity(new Intent(SettingActivity.this, HomeActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n finish();\n } else if (id == R.id.nav_category) {\n startActivity(new Intent(SettingActivity.this, CategoryActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n\n } else if (id == R.id.nav_wishlist) {\n\n } else if (id == R.id.nav_inbox) {\n startActivity(new Intent(SettingActivity.this, InboxActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n } else if (id == R.id.nav_notif) {\n startActivity(new Intent(SettingActivity.this, NotificationActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n } else if (id == R.id.nav_purchase) {\n startActivity(new Intent(SettingActivity.this, ShopCartActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n } else if (id == R.id.nav_setting) {\n\n } else if (id == R.id.nav_contactUs) {\n startActivity(new Intent(SettingActivity.this, ContactUsActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n } else if (id == R.id.nav_about) {\n startActivity(new Intent(SettingActivity.this, AboutActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n\n } else if (id == R.id.nav_exit) {\n sessionManager.saveSPBoolean(sessionManager.SP_SESIONLOGIN, false);\n startActivity(new Intent(SettingActivity.this, LoginActivity.class).\n addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK));\n finish();\n\n }\n\n\n// DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "private void setUpNavigationView() {\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n\n // This method will trigger on item Click of navigation menu\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n //Replacing the main content with ContentFragment Which is our Inbox View;\n case R.id.home:\n navItemIndex = 0;\n CURRENT_TAG = TAG_HOME;\n break;\n case R.id.nav_photos:\n navItemIndex = 1;\n CURRENT_TAG = TAG_PHOTOS;\n break;\n case R.id.nav_movies:\n Intent intent = new Intent(getApplicationContext(),TutorialsActivity.class);\n //TODO put VideoID\n intent.putExtra(\"VIDEO_ID\",\"KhHtb7x8bsI\");\n startActivity(intent);\n break;\n /* case R.id.nav_notifications:\n navItemIndex = 3;\n CURRENT_TAG = TAG_NOTIFICATIONS;\n break;*/\n case R.id.nav_settings:\n navItemIndex = 3;\n CURRENT_TAG = TAG_SETTINGS;\n break;\n case R.id.nav_about_us:\n // launch new intent instead of loading fragment\n startActivity(new Intent(MainActivity.this, AboutUsActivity.class));\n drawer.closeDrawers();\n return true;\n case R.id.nav_privacy_policy:\n // launch new intent instead of loading fragment\n startActivity(new Intent(MainActivity.this, PrivacyPolicyActivity.class));\n drawer.closeDrawers();\n return true;\n default:\n {\n navItemIndex = 0;\n CURRENT_TAG = TAG_HOME;\n }}\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadHomeFragment();\n\n return true;\n }\n });\n\n\n ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.openDrawer, R.string.closeDrawer) {\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Code here will be triggered once the drawer closes as we dont want anything to happen so we leave this blank\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank\n super.onDrawerOpened(drawerView);\n }\n };\n\n //Setting the actionbarToggle to drawer layout\n drawer.setDrawerListener(actionBarDrawerToggle);\n\n //calling sync state is necessary or else your hamburger icon wont show up\n actionBarDrawerToggle.syncState();\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_switch)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Switches_Page()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_alarms)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Alarms_Page()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_light)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Lights_Page()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_logs)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Logs_Page()).addToBackStack(null).commit();\n\n }\n else if (id == R.id.nav_logout)\n {\n Toast.makeText(getApplicationContext(), \"Logout\", Toast.LENGTH_LONG).show();\n finish();\n }\n else if (id == R.id.nav_change_password)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new Change_Password()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_about)\n {\n getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, new About()).addToBackStack(null).commit();\n }\n\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id==R.id.nav_my_mall){\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n setFragment(new HomeFragment(),HOME_FRAGMENT);\n\n }else if (id == R.id.nav_my_orders) {\n\n } else if (id == R.id.nav_my_rewards) {\n\n } else if (id == R.id.nav_my_cart) {\n myCart();\n\n } else if (id == R.id.nav_my_wishlist) {\n\n } else if (id == R.id.nav_my_account) {\n gotoFragment(\"My Account\",new MyAccountFragment(),ACCOUNT_FRAGMENT);\n\n }else if (id == R.id.nav_sign_out){\n\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (viewPager.getCurrentItem() != 0)\n {\n System.out.println(tabLayout.getSelectedTabPosition() + \" : Selected tab\");\n viewPager.setCurrentItem(0);\n tabLayout.setupWithViewPager(viewPager);\n System.out.println(tabLayout.getSelectedTabPosition() + \" : Selected tab\");\n }\n\n\n else if (id == R.id.nav_gallery)\n {\n if (viewPager.getCurrentItem() != 1)\n {\n System.out.println(tabLayout.getSelectedTabPosition() + \" : Selected tab\");\n viewPager.setCurrentItem(1);\n tabLayout.setupWithViewPager(viewPager);\n System.out.println(tabLayout.getSelectedTabPosition() + \" : Selected tab\");\n }\n }\n else if (id == R.id.nav_slideshow)\n {\n if (viewPager.getCurrentItem() != 2)\n {\n System.out.println(tabLayout.getSelectedTabPosition() + \" : Selected tab\");\n viewPager.setCurrentItem(2);\n tabLayout.setupWithViewPager(viewPager);\n System.out.println(tabLayout.getSelectedTabPosition() + \" : Selected tab\");\n }\n }\n else if (id == R.id.nav_logout)\n {\n String url_out=\"http://10.208.20.164:8000/default/logout.json\";\n JsonObjectRequest logout=new JsonObjectRequest(Request.Method.GET,\n url_out, null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n //Log.d(TAG, response.toString());\n\n try {\n // Parsing json object response\n // response will be a json object\n int noti_count=response.getInt(\"noti_count\");\n if(noti_count==4)\n {\n Toast.makeText(getApplicationContext(),\"Logout Succesful\",Toast.LENGTH_SHORT).show();\n Intent i=new Intent(getApplicationContext(),Login.class);\n startActivity(i);\n finish();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),\n \"Error: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n }\n // hidepDialog();\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(\"Tag\", \"Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage(), Toast.LENGTH_SHORT).show();\n // hide the progress dialog\n // hidepDialog();\n }\n });\n\n Volley.newRequestQueue(this).add(logout);\n\n\n }\n else if (id == R.id.nav_send)\n {\n\n }\n// else if (id = R.id.nav_)\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "protected void getActionBarToolbar() {\n back_cover = (FrameLayout) findViewById(R.id.back_cover);\n \tif(back_cover != null){\n \tback_cover.setOnClickListener(this);\n }\n \ttitleTv = (TextView) findViewById(R.id.title);\n if(titleTv != null){\n \tif(!TextUtils.isEmpty(title)){\n \t\ttitleTv.setText(title);\n \t}\n }\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) { de incercat cu ternary operator\n\n\n\n //\n\n if (item.getItemId() == R.id.nav_home) {\n if (viewModel.getSelectedFragment() != viewModel.getHomeFragment()) {\n fragmentManager.beginTransaction()\n .hide(viewModel.getSelectedFragment())\n .show(viewModel.getHomeFragment())\n .commit();\n viewModel.setSelectedFragment(viewModel.getHomeFragment());\n }\n } else if (item.getItemId() == R.id.nav_favorites) {\n if (viewModel.getSelectedFragment() != viewModel.getFavoritesFragment()) {\n fragmentManager.beginTransaction()\n .hide(viewModel.getSelectedFragment())\n .show(viewModel.getFavoritesFragment())\n .commit();\n viewModel.setSelectedFragment(viewModel.getFavoritesFragment());\n }\n } else if (item.getItemId() == R.id.nav_profile) {\n Intent intent = new Intent(MainActivity.this, CountySelector.class);\n startActivity(intent);\n } else if (item.getItemId() == R.id.nav_settings) {\n if (viewModel.getSelectedFragment() != viewModel.getSettingsFragment()) {\n fragmentManager.beginTransaction()\n .hide(viewModel.getSelectedFragment())\n .show(viewModel.getSettingsFragment())\n .commit();\n viewModel.setSelectedFragment(viewModel.getSettingsFragment());\n }\n }\n\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (previousCheckedItem != null) {\n previousCheckedItem.setChecked(false);\n }\n item.setChecked(true);\n previousCheckedItem = item;\n try {\n if (id == R.id.nav_about_dmyk) {\n fragmentTransaction = fm.beginTransaction();\n AboutFragment f1 = new AboutFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(getString(R.string.app_name));\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_about_founder) {\n fragmentTransaction = fm.beginTransaction();\n FounderFragment f1 = new FounderFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Founder\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_events) {\n fragmentTransaction = fm.beginTransaction();\n EventsFragment f1 = new EventsFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Events\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_cost_involved) {\n fragmentTransaction = fm.beginTransaction();\n CostFragment f1 = new CostFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Registration Formality\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_gallery) {\n fragmentTransaction = fm.beginTransaction();\n GalleryFragment f1 = new GalleryFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Gallery\");\n fab.setVisibility(View.INVISIBLE);\n } else if (id == R.id.nav_experiences) {\n fragmentTransaction = fm.beginTransaction();\n CommentsFragment f1 = new CommentsFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Comments\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_mail) {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setData(Uri.fromParts(\"mailto\", \"[email protected]\", null));\n intent.putExtra(Intent.EXTRA_CC, new String[]{\"[email protected]\"});\n intent.putExtra(Intent.EXTRA_SUBJECT, \"Yoga Mandira :: Contact Us\");\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n } else if (id == R.id.nav_call) {\n fragmentTransaction = fm.beginTransaction();\n CallOptionsFragment f1 = new CallOptionsFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Call\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_visit) {\n fragmentTransaction = fm.beginTransaction();\n VisitFragment f1 = new VisitFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Visit\");\n fab.setVisibility(View.VISIBLE);\n } else if (false/*id == R.id.nav_feedback*/) {\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.feedback_fragment);\n dialog.setTitle(\"Provide Feedback\");\n final EditText mailID = (EditText) dialog.findViewById(R.id.feedback_mail_edittext);\n final EditText name = (EditText) dialog.findViewById(R.id.feedback_name_edittext);\n final EditText message = (EditText) dialog.findViewById(R.id.feedback_message_edittext);\n Button send = (Button) dialog.findViewById(R.id.feedback_send);\n Button cancel = (Button) dialog.findViewById(R.id.feedback_cancel);\n send.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n sendMail(mailID.getText().toString(), name.getText().toString(), message.getText().toString());\n dialog.dismiss();\n }\n });\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n //dialog.show();\n } else if (id == R.id.nav_facebook_like) {\n fragmentTransaction = fm.beginTransaction();\n FacebookLikeFragment f1 = new FacebookLikeFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Like & Share\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.nav_share) {\n Intent shareIntent = new Intent(Intent.ACTION_SEND);\n shareIntent.setType(\"text/plain\");\n String shareSubText = getString(R.string.app_name);\n String shareBodyText = \"https://play.google.com/store/apps/details?id=com.braingalore.dhyanamandira&hl=en\";\n shareIntent.putExtra(Intent.EXTRA_SUBJECT, shareSubText);\n shareIntent.putExtra(Intent.EXTRA_TEXT, shareBodyText);\n startActivity(Intent.createChooser(shareIntent, \"Share With\"));\n } else if (id == R.id.abhyasas) {\n fragmentTransaction = fm.beginTransaction();\n AbhyasasExpandableFragment f1 = new AbhyasasExpandableFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(getResources().getString(R.string.abhyasas));\n fab.setVisibility(View.INVISIBLE);\n } else if (id == R.id.astanga_yoga) {\n fragmentTransaction = fm.beginTransaction();\n AstangaYogaFragment f1 = new AstangaYogaFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Astanga Yoga\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.dhyana_mandira) {\n fragmentTransaction = fm.beginTransaction();\n DhyanaMandiraPlatformFragment f1 = new DhyanaMandiraPlatformFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Yoga Mandira\");\n fab.setVisibility(View.VISIBLE);\n } else if (id == R.id.mantras) {\n fragmentTransaction = fm.beginTransaction();\n MantrasFragment f1 = new MantrasFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Mantras\");\n fab.setVisibility(View.INVISIBLE);\n } else if (id == R.id.nav_videos) {\n fragmentTransaction = fm.beginTransaction();\n VideosFragment f1 = new VideosFragment();\n fragmentTransaction.replace(R.id.fragment_container, f1);\n fragmentTransaction.commitAllowingStateLoss();\n toolbar.setTitle(\"Videos\");\n fab.setVisibility(View.INVISIBLE);\n }\n } catch (Exception e) {\n FirebaseCrash.report(new Exception(\"Exception while committing consecutive fragments \" + e));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n /* if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else */\n\n if (id == R.id.nav_share) {\n favortiesMethed();\n } else if (id == R.id.nav_send) {\n https://play.google.com/store/apps/details?navId=com.adeebhat.rabbitsvilla/\n try {\n Intent viewIntent =\n new Intent(\"android.intent.action.VIEW\",\n Uri.parse(\"https://play.google.com/store/apps/details?id=com.eclix.unit.converter.calculator\"));\n startActivity(viewIntent);\n\n } catch(Exception e) {\n Toast.makeText(getApplicationContext(),\"Unable to Connect Try Again...\",\n Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }else if(id == R.id.nav_fav){\n\n setFavortiesLayout();\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public boolean isVBarShowing() { return getVBar().getParent()!=null; }", "@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n // Get the menu inflater.\n MenuInflater inflater = getMenuInflater();\n\n // Inflate own menu resource.\n inflater.inflate(R.menu.about_menu, menu);\n\n // Get the navigation bar toggle MenuItem.\n hideShowBtn = menu.findItem(R.id.toggleNavBar);\n\n return true;\n }", "public MenuBar() {\r\n super();\r\n myTrue = false;\r\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.side_drawer, menu);\r\n //navigationView.getHeaderView(0).findViewById(R.id.nav_scores);\r\n\r\n return true;\r\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n Fragment fr = new Fragment();\n String fr_tag;\n\n if(id == R.id.nav_home){\n fr = new Home();\n fr_tag = Home.HOME_FRAGMENT_TAG;\n replaceFragment(fr, fr_tag);\n }else if(id == R.id.nav_complaint){\n fr = new EKeluhan();\n fr_tag = EKeluhan.EKELUHAN_FRAGMENT_TAG;\n replaceFragment(fr, fr_tag);\n }else if(id == R.id.nav_logout){\n if(sharedPreferenceService.isUserSpExist()){\n sharedPreferenceService.deleteAllSp();\n finish();\n overridePendingTransition(0, 0);\n startActivity(getIntent());\n overridePendingTransition(0, 0);\n }else{\n Intent i = new Intent(this, LoginActivity.class);\n startActivity(i);\n }\n }else if(id == R.id.nav_map){\n Intent i = new Intent(this, CampusMap.class);\n startActivity(i);\n }else if(id == R.id.nav_info){\n new LibsBuilder().withAboutAppName(\"FTUI Mobile\").withAboutDescription(\"&#169; 2019 Fakultas Teknik UI\").start(this);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // mDrawerLayout.isDrawerOpen(mDrawerView);\n return super.onPrepareOptionsMenu(menu);\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n //我要订餐\n OrderActivity.startAct(MainActivity.this);\n } else if (id == R.id.nav_gallery) {\n //订餐信息查询\n } else if (id == R.id.nav_slideshow) {\n //订餐信息修改\n } else if (id == R.id.nav_manage) {\n //餐厅列表\n if (Singleton.getInstance().isLogin){\n MainActivity.this.\n startActivity(\n new Intent(MainActivity.this, HotolList_Activity.class));\n }else {\n Login_Register_Activity.startAct(MainActivity.this);\n }\n } else if (id == R.id.nav_send) {\n //修改密码\n UpdatePassWord.startAct(MainActivity.this);\n } else if (id == R.id.nav_update) {\n //检查更新\n try {\n jsonObject.put(\"a_Version\", AppUtils.getVersionName(MainActivity.this));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n HttpUtils_new httpUtils_new = new HttpUtils_new().initWith(String.format(\"%s%s\", Singleton.getInstance().httpServer, \"/CheckVersion.php\"),\n jsonObject,new BackListener(),\n MainActivity.this\n );\n ThreadPoolUtils.execute(httpUtils_new);\n } else if(id == R.id.nav_sign){\n //我要签到\n if(Singleton.getInstance().isLogin){\n startSign();\n }else{\n Login_Register_Activity.startAct(MainActivity.this);\n }\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public boolean getShowToolbar() {\n\t\treturn showToolbar;\n\t}", "private void MenuHOOKS() {\n drawerLayout = findViewById(R.id.drawer_layout);\n navigationView = findViewById(R.id.navigation_view);\n burger_icon = findViewById(R.id.burger_icon);\n contentView = findViewById(R.id.content);\n\n //Navigation Drawer\n navigationView.bringToFront();\n navigationView.setNavigationItemSelectedListener(this);\n navigationView.setCheckedItem(R.id.nav_home);\n\n burger_icon.setOnClickListener(this);\n\n //Animation Function\n animateNavigationDrawer();\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n boolean is_fragment = false;\n boolean is_next = false;\n\n Fragment fragment = null;\n\n switch(id) {\n case R.id.back_to_main:\n navigationView.getMenu().clear();\n navigationView.inflateMenu(R.menu.activity_main_drawer);\n break;\n case R.id.nav_home:\n is_fragment = true;\n// fragment = HomeFragment.newInstance();\n fragment = VillagersListsFragment.newInstance();\n break;\n case R.id.nav_villagers:\n// is_fragment = true;\n navigationView.getMenu().clear();\n navigationView.inflateMenu(R.menu.villagers_submenu_drawer);\n// fragment = VillagersListsFragment.newInstance();\n break;\n case R.id.villagers_sub_mrqi:\n is_fragment = true;\n fragment = VillagerFragment.newInstance(\"mrqi\");\n break;\n case R.id.nav_skills:\n is_fragment = true;\n navigationView.getMenu().clear();\n navigationView.inflateMenu(R.menu.skills_submenu_drawer);\n fragment = SkillsListsFragment.newInstance(\"lists\");\n break;\n case R.id.skills_sub_farming:\n is_fragment = true;\n is_next = true;\n fragment = SkillsListsFragment.newInstance(\"farming\");\n break;\n case R.id.skills_sub_mining:\n is_fragment = true;\n is_next = true;\n fragment = SkillsListsFragment.newInstance(\"mining\");\n break;\n case R.id.skills_sub_foraging:\n is_fragment = true;\n is_next = true;\n fragment = SkillsListsFragment.newInstance(\"foraging\");\n break;\n case R.id.skills_sub_fishing:\n is_fragment = true;\n is_next = true;\n fragment = SkillsListsFragment.newInstance(\"fishing\");\n break;\n case R.id.skills_sub_combat:\n is_fragment = true;\n is_next = true;\n fragment = SkillsListsFragment.newInstance(\"combat\");\n break;\n default:\n is_fragment = true;\n fragment = VillagerFragment.newInstance(((String) item.getTitle()).toLowerCase());\n }\n\n if (is_fragment){\n\n // Insert the fragment by replacing any existing fragment\n if (!is_next) {\n getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.content_layout, fragment);\n if (id != R.id.nav_home) {\n transaction.addToBackStack(null);\n }\n transaction.commit();\n\n // Set action bar title\n if (id == R.id.nav_home) {\n setTitle(\"Stardew Valley\");\n } else {\n setTitle(item.getTitle());\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n }\n\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_home) {\n setTitle(R.string.Home_Explore);\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft. replace(R.id.flMain, new HomeFragment());\n ft.commit();\n\n } else if (id == R.id.nav_museos) {\n setTitle(R.string.Near_Museums);\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft. replace(R.id.flMain, new MuseumFragment());\n ft.commit();\n } else if (id == R.id.nav_restaurantes) {\n setTitle(R.string.Near_Restaurants);\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n ft. replace(R.id.flMain, new RestaurantFragment());\n ft.commit();\n }else if (id == R.id.nav_map) {\n Intent i = new Intent(this, MapsActivity.class);\n startActivity(i);\n }else if (id == R.id.nav_BLE) {\n Intent i = new Intent(this, BLEActivity.class);\n startActivity(i);\n }else if (id == R.id.nav_account) {\n Intent i = new Intent(this, EditProfileActivity.class);\n startActivity(i);\n }else if (id == R.id.nav_logout) {\n //Log Out\n mAuth.signOut();\n Intent i = new Intent(this, LoginActivity.class);\n startActivity(i);\n\n }else if (id == R.id.nav_Qr) {\n setTitle(R.string.qr);\n Intent i = new Intent(this, QrActivity.class);\n startActivity(i);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav2_profile) {\n Fragment fr=changeFrg();\n if(fr==null){\n fm.beginTransaction().replace(R.id.include2,new Provider_profile(),\"PProfile\").addToBackStack(null).commit();\n }else {\n reqCancelAlert(fr);\n }\n }\n\n else if(id == R.id.nav2_requests){\n Fragment fr=changeFrg();\n if(fr==null){\n fm.beginTransaction().replace(R.id.include2,new request_view_provider(),\"req_reqs\").commit();\n }else {\n reqCancelAlert(fr);\n }\n }\n\n else if(id == R.id.nav2_history){\n Fragment fr=changeFrg();\n if (fr==null){\n Bundle b=new Bundle();\n b.putInt(\"for\",2);\n Fragment frm=new User_History();\n frm.setArguments(b);\n fm.beginTransaction().replace(R.id.include2,frm,\"his_pro\").commit();\n }else{\n reqCancelAlert(fr);\n }\n }\n\n else if(id == R.id.nav2_Logout_menu){\n Fragment fr=changeFrg();\n if(fr==null){\n sh=getSharedPreferences(\"user\", Context.MODE_PRIVATE);\n shed=sh.edit();\n shed.clear();\n shed.apply();\n\n logOut();\n Toast.makeText(this,\"You are logged out\", Toast.LENGTH_SHORT).show();\n }else {\n reqCancelAlert(fr);\n }\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_profile) {\n getFragmentManager().beginTransaction().replace(R.id.main_frame, new ProfileFragment()).addToBackStack(null).commit();\n } else if (id == R.id.nav_request) {\n getFragmentManager().beginTransaction().replace(R.id.main_frame, new OrderFragment()).addToBackStack(null).commit();\n } else if (id == R.id.nav_home) {\n getFragmentManager().beginTransaction().replace(R.id.main_frame, new HomeFragment()).commit();\n }\n else if (id == R.id.nav_offer) {\n try {\n getFragmentManager().beginTransaction().replace(R.id.main_frame, new OfferFragment()).addToBackStack(null).commit();\n } catch (Exception ignore) {}\n }\n else if (id == R.id.nav_whoUs) {\n getFragmentManager().beginTransaction().replace(R.id.main_frame, new WhoUsFragment()).addToBackStack(null).commit();\n }\n else if (id == R.id.nav_contact_us) {\n\n getFragmentManager().beginTransaction().replace(R.id.main_frame, new ContactUsFragment()).addToBackStack(null).commit();\n } else if (id == R.id.logout_nav) {\n if (mIsLogged) {\n // setLogout();\n setSharedPreference.setIsLogged(false);\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n } else {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n }\n\n }\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "private void setupNavBar() {\n BottomNavigationView bottomNavigationView = findViewById(R.id.bottomNavViewBar);\n MainActivity.menuIconHighlight(bottomNavigationView, 1);\n\n bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {\n switch (menuItem.getItemId()){\n case R.id.ic_home:\n Intent home = new Intent(WeightActivity.this, MainActivity.class);\n startActivity(home.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n break;\n case R.id.ic_weight_scale:\n break;\n\n case R.id.ic_local_drink:\n Intent water = new Intent(WeightActivity.this, WaterActivity.class);\n startActivity(water.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n break;\n\n case R.id.ic_directions_run:\n Intent exercise = new Intent(WeightActivity.this, ExerciseActivity.class);\n startActivity(exercise.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n break;\n\n case R.id.ic_insert_emoticon:\n Intent mood = new Intent(WeightActivity.this, MoodActivity.class);\n startActivity(mood.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION));\n break;\n }\n return false;\n }\n });\n }", "interface ImmersionCallback extends OnNavigationBarListener, Runnable {\n}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_home) {\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(i);\n finishAffinity();\n }\n else if (id == R.id.nav_browse) {\n Intent i = new Intent(getApplicationContext(), BrowseActivity.class);\n startActivity(i);\n finishAffinity();\n }\n else if (id == R.id.nav_categories) {\n Intent i = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(i);\n finishAffinity();\n } else if (id == R.id.nav_favorites) {\n Intent i = new Intent(getApplicationContext(), FavoriteActivity.class);\n startActivity(i);\n finishAffinity();\n } else if (id == R.id.nav_recently_watched) {\n Intent i = new Intent(getApplicationContext(), WatchHistoryActivity.class);\n startActivity(i);\n finishAffinity();\n } else if (id == R.id.nav_feed_back) {\n Intent i = new Intent(getApplicationContext(), HelpFeedbackActivity.class);\n startActivity(i);\n finishAffinity();\n } else if (id == R.id.nav_about) {\n Intent i = new Intent(getApplicationContext(), CmsActivity.class);\n i.putExtra(\"cms_title\", \"About Us\");\n i.putExtra(\"cms_page\", \"about-us\");\n startActivity(i);\n finishAffinity();\n\n } else if (id == R.id.nav_terms) {\n Intent i = new Intent(getApplicationContext(), CmsActivity.class);\n i.putExtra(\"cms_title\", \"Terms and Conditions\");\n i.putExtra(\"cms_page\", \"terms\");\n startActivity(i);\n finishAffinity();\n }\n else if (id == R.id.nav_privacy) {\n Intent i = new Intent(getApplicationContext(), CmsActivity.class);\n i.putExtra(\"cms_title\", \"Privacy Policy\");\n i.putExtra(\"cms_page\", \"privacy-policy\");\n startActivity(i);\n finishAffinity();\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n //FragmentManager fragmentManager = getSupportFragmentManager();\n\n if (id == R.id.nav_home) {\n // Handle the camera action\n Intent at = new Intent(HomeScreen.this, HomeScreen.class);\n startActivity(at);\n } else if (id == R.id.nav_bpressure) {\n Fragment newFragment = new BloodpressureActivity();\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.add(R.id.content_frame, newFragment).commit();\n replaceFragment(newFragment);\n\n }else if (id == R.id.nav_bsugar) {\n Fragment newFragment = new BloodSugarActivity();\n replaceFragment(newFragment);\n\n }else if (id == R.id.nav_calorie) {\n Fragment newFragment = new CaloriesActivity();\n replaceFragment(newFragment);\n\n } else if (id == R.id.nav_mreminder) {\n Fragment newFragment = new MedicationDashBoard();\n replaceFragment(newFragment);\n\n } else if (id == R.id.nav_goal) {\n Fragment newFragment = new GoalActivity();\n replaceFragment(newFragment);\n\n }\n else if (id == R.id.sign_out) {\n\n firebaseAuth = FirebaseAuth.getInstance();\n LoginManager.getInstance().logOut();\n firebaseAuth.signOut();\n Intent at = new Intent(HomeScreen.this, MainActivity.class);\n startActivity(at);\n }\n//\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (!fragmentNavigationDrawer.isDrawerOpen())\n restoreActionBar();\n return true;\n// return super.onCreateOptionsMenu(menu);\n }", "private void loadToolbar() {\n android.support.v7.widget.Toolbar toolbar = findViewById(R.id.toolbar_top);\n setSupportActionBar(toolbar);\n\n // add back arrow to toolbar\n if (getSupportActionBar() != null) {\n getSupportActionBar().setTitle(\"\");\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n }\n\n if(toolbar.getNavigationIcon() != null) {\n toolbar.getNavigationIcon().setColorFilter(this.getColor(R.color.white), PorterDuff.Mode.SRC_ATOP);\n }\n }", "public static boolean hasActionBar() {\n\t\treturn Build.VERSION.SDK_INT >= 11;\n\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n LuPOFragment settingsFragment = new LuPOFragment();\n this.getFragmentManager().beginTransaction()\n .replace(R.id.fragmentContainer, settingsFragment, \"Hi\")\n .addToBackStack(null)\n .commit();\n } else if (id == R.id.nav_gallery) {\n\n\n } else if (id == R.id.nav_share) {\n SettingsFragment settingsFragment = new SettingsFragment();\n this.getFragmentManager().beginTransaction()\n .replace(R.id.fragmentContainer, settingsFragment, \"Hi\")\n .addToBackStack(null)\n .commit();\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n \n\n return true;\n }", "private void setUpNavigationView() {\n navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() {\n\n // This method will trigger on item Click of navigation menu\n @Override\n public boolean onNavigationItemSelected(MenuItem menuItem) {\n\n //Check to see which item was being clicked and perform appropriate action\n switch (menuItem.getItemId()) {\n //Replacing the main content with ContentFragment Which is our Inbox View;\n case R.id.all_msg:\n navItemIndex = 0;\n CURRENT_TAG = TAG_All_MSG;\n break;\n case R.id.nav_importants:\n navItemIndex = 1;\n CURRENT_TAG = TAG_OTP;\n break;\n case R.id.nav_spams:\n navItemIndex = 2;\n CURRENT_TAG = TAG_SPAM;\n break;\n case R.id.nav_temporary:\n navItemIndex = 3;\n CURRENT_TAG = TAG_PROMOTION;\n break;\n case R.id.nav_settings:\n navItemIndex = 4;\n CURRENT_TAG = TAG_SETTINGS;\n startActivity(new Intent(MainActivity.this, SettingsActivity.class));\n break;\n default:\n navItemIndex = 0;\n }\n\n //Checking if the item is in checked state or not, if not make it in checked state\n if (menuItem.isChecked()) {\n menuItem.setChecked(false);\n } else {\n menuItem.setChecked(true);\n }\n menuItem.setChecked(true);\n\n loadAllMsgFragment();\n\n return true;\n }\n });\n\n\n ActionBarDrawerToggle actionBarDrawerToggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.app_name, R.string.app_name) {\n\n @Override\n public void onDrawerClosed(View drawerView) {\n // Code here will be triggered once the drawer closes as we dont want anything to happen so we leave this blank\n super.onDrawerClosed(drawerView);\n }\n\n @Override\n public void onDrawerOpened(View drawerView) {\n // Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank\n super.onDrawerOpened(drawerView);\n }\n };\n\n //Setting the actionbarToggle to drawer layout\n drawer.setDrawerListener(actionBarDrawerToggle);\n\n //calling sync state is necessary or else your hamburger icon wont show up\n actionBarDrawerToggle.syncState();\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n\n\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_add_new_item) {\n startActivity(new Intent(HomeActivity.this, AddNewItemActivity.class));\n\n } else if (id == R.id.nav_oder_notifications) {\n Toast.makeText(this, \"Notifications\", Toast.LENGTH_SHORT).show();\n\n\n } else if (id == R.id.nav_edit) {\n Toast.makeText(this, \"edits \", Toast.LENGTH_SHORT).show();\n\n\n } else if (id == R.id.nav_sign_out) {\n signOutBuilder.show();\n\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Biodata Saya\n Intent i = new Intent(MainActivityBaru.this, MyAccount.class);\n startActivity(i);\n // finish();\n } else if (id == R.id.nav_gallery) {\n\n/*\n } else if (id == R.id.nav_slideshow) {\n // Intent i = new Intent(MainActivityBaru.this, com.barateknologi.bbplk_cevest.Kejuruan.MainActivity.class);\n // startActivity(i);\n } else if (id == R.id.nav_manage) {\n // Intent i = new Intent(MainActivityBaru.this,Webview_baru.class);\n // startActivity(i);\n\n */\n } else if (id == R.id.nav_tentangsaya) {\n // Intent i = new Intent(MainActivityBaru.this, TentangSayaActivity.class);\n Intent i = new Intent(MainActivityBaru.this, TTGsaya.class);\n startActivity(i);\n\n } else if (id == R.id.nav_send) {\n\n } else if (id == R.id.nav_logout) {\n SessionManager.clear(MainActivityBaru.this);\n Intent i = new Intent(MainActivityBaru.this, MainActivity.class);\n startActivity(i);\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n getMenuInflater().inflate(R.menu.menu, menu); //Recibe como parametro el menu donde se situan las acciones\r\n return true; //Para que la barra sea visible\r\n }", "public NavigationController getNavigationController();", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n\n getSupportActionBar().setTitle(R.string.calculo_imc);\n\n iniciarFragment(calculoFragment);\n }\n else if (id == R.id.nav_profi) {\n\n getSupportActionBar().setTitle(R.string.calculo_avancado);\n\n iniciarFragment(calculoProFragment);\n }\n else if (id == R.id.nav_home) {\n\n getSupportActionBar().setTitle(R.string.app_name);\n\n iniciarFragment(principalFragment);\n }\n else if (id == R.id.nav_orientacao) {\n Toast.makeText(MainActivity.this, \"Orientação Nutricional\", Toast.LENGTH_LONG).show();\n }\n else if (id == R.id.nav_alarme) {\n Toast.makeText(MainActivity.this, \"Alarmes\", Toast.LENGTH_LONG).show();\n }\n else if (id == R.id.nav_alimentos) {\n\n getSupportActionBar().setTitle(R.string.alimentos);\n\n iniciarFragment(listarAlimentosFragment);\n }\n else if (id == R.id.nav_manage) {\n\n iniciarFragment(editar_conta_fragment);\n }\n else if (id == R.id.nav_Add_fruta) {\n getSupportActionBar().setTitle(R.string.adicionar_alimento);\n\n iniciarFragment(adicionar_alimento_fragment);\n }\n else if (id == R.id.nav_entrar) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n }\n else if (id == R.id.nav_perfil) {\n\n iniciarFragment(perfilFragment);\n }\n else if (id == R.id.nav_deslogar) {\n deslogarUsuario();\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.nav_search_fragment:\n ft = fm.beginTransaction();\n ft.replace(R.id.flContent, listViewFragment);\n ft.addToBackStack(null);\n ft.commit();\n break;\n case R.id.nav_maps_fragment:\n ft = fm.beginTransaction();\n ft.replace(R.id.flContent, mapViewFragment);\n ft.addToBackStack(null);\n ft.commit();\n break;\n case R.id.nav_profile_fragment:\n ft = fm.beginTransaction();\n ft.replace(R.id.flContent, profileFragment);\n ft.addToBackStack(null);\n ft.commit();\n break;\n case R.id.nav_myListings_fragment:\n ft = fm.beginTransaction();\n ft.replace(R.id.flContent, myListingsFragment);\n ft.addToBackStack(null);\n ft.commit();\n break;\n case R.id.nav_myRequests_fragment:\n ft = fm.beginTransaction();\n ft.replace(R.id.flContent, requestsFragment);\n ft.addToBackStack(null);\n ft.commit();\n default:\n ft = fm.beginTransaction();\n ft.replace(R.id.flContent, requestsFragment);\n ft.addToBackStack(null);\n ft.commit();\n }\n\n // Highlight the selected item has been done by NavigationView\n item.setChecked(true);\n // Set action bar title\n setTitle(item.getTitle());\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.txt_nav_profile) {\n\n Intent intent = new Intent(DashboardActivity.this, ProfileActivity.class);\n startActivity(intent);\n // Handle the camera action\n } else if (id == R.id.nav_user) {\n\n Intent intent = new Intent(DashboardActivity.this, UserListActivity.class);\n startActivity(intent);\n\n } else if (id == R.id.nav_logout) {\n clearSharedPref(DashboardActivity.this);\n Intent intent = new Intent(DashboardActivity.this, SignInActivity.class);\n startActivity(intent);\n finish();\n } else if (id == R.id.nav_battery_indicator) {\n Intent intent = new Intent(DashboardActivity.this, BatteryIndicatorActivity.class);\n startActivity(intent);\n } else if (id == R.id.nav_contect) {\n Intent intent = new Intent(DashboardActivity.this, ContactListActivity.class);\n startActivity(intent);\n } else if (id == R.id.nav_music) {\n Intent intent = new Intent(DashboardActivity.this, MyServicesActivity.class);\n startActivity(intent);\n } else if (id == R.id.nav_map) {\n Intent intent = new Intent(DashboardActivity.this, MapsActivity.class);\n startActivity(intent);\n\n } else if (id == R.id.nav_myfirebasemessagingservice) {\n Intent intent = new Intent(DashboardActivity.this, MyFirebaseMessagingService.class);\n startActivity(intent);\n\n } else if (id == R.id.nav_webservices) {\n Intent intent = new Intent(DashboardActivity.this, WebServicesActivity.class);\n startActivity(intent);\n\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "final private int getNavigationBarHeight() {\n int resourceId = getResources().getIdentifier(\"navigation_bar_height\", \"dimen\", \"android\");\n if (!hasPermanentKeys() && resourceId > 0)\n return getResources().getDimensionPixelSize(resourceId);\n return 0;\n }", "private void toggleNavBar(boolean isVisible)\n {\n // If the navigation bar was already visible, switch toggle button icon,\n // hide the navigation bar and set hasNavBar to false.\n if (isVisible)\n {\n hideShowBtn.setIcon(getResources().getDrawable(R.drawable.ic_expand_more));\n aboutNavBar.setVisibility(View.GONE);\n hasNavBar = false;\n }\n // Otherwise, switch toggle button icon, show the navigation bar and set\n // hasNavBar to true.\n else\n {\n hideShowBtn.setIcon(getResources().getDrawable(R.drawable.ic_expand_less));\n aboutNavBar.setVisibility(View.VISIBLE);\n hasNavBar = true;\n }\n\n }", "public interface IMultifragmentActivity {\n Toolbar getToolbar();\n void showBackButton(boolean visible);\n}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n Intent intent;\n if (id == R.id.nav_function && CURRENT_ACTIVITY!=R.id.nav_function) {\n intent=new Intent(this,FunctionActivity.class);\n startActivity(intent);\n } else if (id == R.id.nav_recommend && CURRENT_ACTIVITY!=R.id.nav_recommend) {\n intent=new Intent(this, RecommendActivity.class);\n startActivity(intent);\n } else if (id == R.id.nav_export && CURRENT_ACTIVITY!=R.id.nav_export) {\n intent=new Intent(this,FunctionActivity.class);\n startActivity(intent);\n } else if (id == R.id.nav_import && CURRENT_ACTIVITY!=R.id.nav_import) {\n intent=new Intent(this,FunctionActivity.class);\n startActivity(intent);\n }else if (id == R.id.nav_setting && CURRENT_ACTIVITY!=R.id.nav_setting) {\n intent=new Intent(this,FunctionActivity.class);\n startActivity(intent);\n }else if (id == R.id.nav_logout) {\n FirebaseAuth.getInstance().signOut();\n Auth.GoogleSignInApi.signOut(mGoogleApiClient);\n mUsername = ANONYMOUS;\n startActivity(new Intent(this, SignInActivity.class));\n }\n finish();\n// overridePendingTransition( android.R.anim.slide_in_left, android.R.anim.slide_out_right);\n overridePendingTransition(0,0);\n Snackbar.make(getCurrentFocus(), item.getTitle(), Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n // Handle navigation view item clicks here.\n int id = item.getItemId();\n\n if (id == R.id.nav_add_a_vehicle) {\n // Handle the camera action\n Toast.makeText(getApplicationContext(),\"You are already in that page\",Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_home) {\n finish();\n startActivity(new Intent(getApplicationContext(),HomeActivity.class));\n\n } else if (id == R.id.nav_send) {\n\n }\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n FragmentTransaction tran = fm.beginTransaction();\n tran.setCustomAnimations(R.anim.slide_in, R.anim.slide_out);\n\n if (id == R.id.nav_home) {\n tran.replace(R.id.content, new HomeFragment(), \"Home\");\n tran.addToBackStack(null);\n tran.commit();\n } else if (id == R.id.nav_BMI) {\n tran.replace(R.id.content, new BMIFragment(), \"BMI\");\n tran.addToBackStack(null);\n tran.commit();\n\n } else if (id == R.id.nav_Water) {\n tran.replace(R.id.content, new WaterIntakeFragment(), \"WaterIntake\");\n tran.addToBackStack(null);\n tran.commit();\n } else if (id == R.id.nav_Workouts) {\n tran.replace(R.id.content, new WorkoutViewPager(), \"Workouts\");\n tran.addToBackStack(null);\n tran.commit();\n } else if (id == R.id.nav_schedule) {\n tran.replace(R.id.content, new ScheduleFragment(), \"Schedule\");\n tran.addToBackStack(null);\n tran.commit();\n }else if (id == R.id.nav_contact) {\n tran.replace(R.id.content, new ContactFragment(), \"Contact\");\n tran.addToBackStack(null);\n tran.commit();\n }\n else if (id == R.id.nav_calorie) {\n tran.replace(R.id.content, new CalorieLogFragment(), \"Calorie\");\n tran.addToBackStack(null);\n tran.commit();\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "private void inflateToolbar() {\n\n mToolbar = (Toolbar) getView().findViewById(R.id.toolbar_fragment);\n\n if (mToolbar != null) {\n mToolbar.setNavigationIcon(ResourcesCompat.getDrawable(getResources(), R.drawable.ic_action_navigation_arrow_back, null));\n mToolbar.setTitleTextColor(getResources().getColor(R.color.white));\n mToolbar.setNavigationOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n handleNavigation();\n }\n });\n }\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n if (navItemIndex == 0) {\n getMenuInflater().inflate(R.menu.main, menu);\n }\n// else if (navItemIndex == 1 ){\n// getMenuInflater().inflate(R.menu.search, menu);\n// }\n return true;\n }", "public android.support.v7.widget.Toolbar getToolbar()\n {\n return _toolbar;\n }", "public boolean isHideNav() {\n return mHideNav;\n }", "@SuppressLint(\"Deprecation\") //Device getHeight() is deprecated but the replacement is API 13+\n public int getNavigationBarHeight() {\n if (mNavigationBarHeight == 0) {\n Rect visibleFrame = new Rect();\n getWindow().getDecorView().getWindowVisibleDisplayFrame(visibleFrame);\n DisplayMetrics outMetrics = new DisplayMetrics();\n if (Build.VERSION.SDK_INT >= 17) {\n //The sane way to calculate this.\n getWindowManager().getDefaultDisplay().getRealMetrics(outMetrics);\n mNavigationBarHeight = outMetrics.heightPixels - visibleFrame.bottom;\n } else {\n getWindowManager().getDefaultDisplay().getMetrics(outMetrics);\n\n //visibleFrame will return the same as the outMetrics the first time through,\n // then will have the visible frame the full size of the screen when it comes back\n // around to close. OutMetrics will always be the view - the nav bar.\n mNavigationBarHeight = visibleFrame.bottom - outMetrics.heightPixels;\n }\n }\n\n return mNavigationBarHeight;\n }", "public void initNavigationBar() {\n navigationBar = new JPanel();\n navigationBar.setBackground(new Color(199, 0, 0));\n navigationBar.setLayout(new FlowLayout());\n navigationBar.setPreferredSize(new Dimension(buttonHeight + 10, buttonHeight + 10));\n navigationBar.setBorder(BorderFactory.createBevelBorder(0));\n\n initMarketButton();\n initProdCardButton();\n initReserveButton();\n initPlayerMenu();\n\n this.navigationBar.add(marketButton);\n this.navigationBar.add(prodCardButton);\n this.navigationBar.add(reserveButton);\n this.navigationBar.add(menuPanel);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "protected boolean isHomeRefreshable()\r\n/* 92: */ {\r\n/* 93:178 */ return false;\r\n/* 94: */ }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_cat) {\n setTitle(\"Catergories\");\n categories frag = new categories();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, frag, \"fragment_cat\");\n fragmentTransaction.commitAllowingStateLoss();\n } else if (id == R.id.nav_prof) {\n setTitle(\"Profile\");\n profile frag = new profile();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, frag, \"fragment_profile\");\n fragmentTransaction.commitAllowingStateLoss();\n } else if (id == R.id.nav_favs) {\n setTitle(\"Favourites\");\n favourites frag = new favourites();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, frag, \"fragment_profile\");\n fragmentTransaction.commitAllowingStateLoss();\n } else if (id == R.id.nav_orders) {\n Toast.makeText(getBaseContext(), \"Function currently unavailable\", Toast.LENGTH_SHORT).show();\n } else if (id == R.id.nav_signout) {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public int getCount() {\n return navItems.length-1;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.nav_home) {\n FragmentEvent fragmentEvent = new FragmentEvent();\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\n fragmentTransaction.replace(R.id.fragmentMain,fragmentEvent,\"fragmentEvent\");\n fragmentTransaction.commit();\n toolbar.setTitle(getString(R.string.title_activity_main));\n } else if (id == R.id.nav_profile) {\n FragmentProfile fragmentProfile = new FragmentProfile();\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\n fragmentTransaction.replace(R.id.fragmentMain,fragmentProfile,\"fragmentProfile\");\n fragmentTransaction.commit();\n toolbar.setTitle(getString(R.string.profile));\n } else if (id == R.id.nav_new_event) {\n FragmentNewEventRoot fragmentNewEventRoot = new FragmentNewEventRoot();\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\n fragmentTransaction.replace(R.id.fragmentMain,fragmentNewEventRoot,\"fragmentNewEventRoot\");\n fragmentTransaction.commit();\n toolbar.setTitle(getString(R.string.create_event));\n } else if (id == R.id.nav_search_events) {\n FragmentSearchEvents fragmentSearchEvents = new FragmentSearchEvents();\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\n fragmentTransaction.replace(R.id.fragmentMain, fragmentSearchEvents,\"fragmentSearchEvents\");\n fragmentTransaction.commit();\n toolbar.setTitle(getString(R.string.search_event));\n } else if (id == R.id.nav_logout) {\n AlertDialog.Builder dialog = new AlertDialog.Builder(MainActivity.this);\n dialog.setIcon(android.R.drawable.ic_menu_info_details);\n dialog.setTitle(R.string.title_alert_logout);\n dialog.setPositiveButton(R.string.positive_button, buttonDialog());\n dialog.setNegativeButton(R.string.negative_button, buttonDialog());\n dialog.setCancelable(false);\n dialog.show();\n }\n\n if(!isDrawerOpen){\n drawer.closeDrawer(GravityCompat.START);\n }\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n switch (id)\n {\n case R.id.nav_news:\n if (!item.isChecked())\n {\n if (homeFragment == null)\n {\n homeFragment = HomeFragment.newInstance();\n Bundle bundle = new Bundle();\n bundle.putString(\"title\", getResources().getString(R.string.news));\n homeFragment.setArguments(bundle);\n homeFragment.setUserVisibleHint(true);\n }\n switchContent(currentFragment, homeFragment);\n //初始化MainPresenter\n new MainPresenter(homeFragment);\n\n }\n break;\n case R.id.nav_gank:\n if (gankFragment == null)\n {\n gankFragment = GankFragment.newInstance();\n Bundle bundle = new Bundle();\n bundle.putString(\"title\", \"干货集中营\");\n gankFragment.setArguments(bundle);\n gankFragment.setUserVisibleHint(true);\n }\n switchContent(currentFragment, gankFragment);\n new GankPresenter(gankFragment);\n break;\n\n case R.id.nav_my_download:\n Intent myDownload = new Intent(MainActivity.this, MyDownloadActivity.class);\n startActivity(myDownload);\n break;\n }\n\n\n mainDrawerLayout.closeDrawer(GravityCompat.START);\n return true;\n }", "public void initToolbar(){\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n if(getSupportActionBar()!=null) {\n getSupportActionBar().setTitle(\"\");\n }\n getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_launcher_white);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(ContextCompat.getColor(this, R.color.colorPrimaryDarkest));\n }\n }", "private void setActionBar() {\n ActionBar mActionBar = getSupportActionBar();\n mActionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);\n mActionBar.setCustomView(R.layout.actionbar_design);\n\n\n View mCustomView = mActionBar.getCustomView();\n ImageView image_drawer = (ImageView) mCustomView.findViewById(R.id.image_drawer);\n ImageView img_btllogo = (ImageView) mCustomView.findViewById(R.id.img_btllogo);\n ImageView img_home = (ImageView) mCustomView.findViewById(R.id.img_home);\n ImageView img_category = (ImageView) mCustomView.findViewById(R.id.img_category);\n ImageView img_notification = (ImageView) mCustomView.findViewById(R.id.img_notification);\n ImageView img_cart = (ImageView) mCustomView.findViewById(R.id.img_cart);\n FrameLayout frame = (FrameLayout)mCustomView.findViewById(R.id.unread);\n frame.setVisibility(View.VISIBLE);\n /* TextView txt = (TextView)mCustomView.findViewById(R.id.menu_message_tv);\n db = new DatabaseHandler(User_Profile.this);\n bean_cart = db.Get_Product_Cart();\n db.close();\n txt.setText(bean_cart.size()+\"\");*/\n image_drawer.setImageResource(R.drawable.ic_action_btl_back);\n img_notification.setVisibility(View.GONE);\n img_cart.setVisibility(View.VISIBLE);\n\n\n\n TextView txt = (TextView)mCustomView.findViewById(R.id.menu_message_tv);\n img_notification.setVisibility(View.GONE);\n app = new AppPrefs(Saved_Address.this);\n String qun =app.getCart_QTy();\n\n /* setRefershData();\n\n if(user_data.size() != 0){\n for (int i = 0; i < user_data.size(); i++) {\n\n owner_id =user_data.get(i).getUser_id().toString();\n\n role_id=user_data.get(i).getUser_type().toString();\n\n if (role_id.equalsIgnoreCase(\"6\") ) {\n\n app = new AppPrefs(this);\n role_id = app.getSubSalesId().toString();\n u_id = app.getSalesPersonId().toString();\n }else if(role_id.equalsIgnoreCase(\"7\")){\n app = new AppPrefs(this);\n role_id = app.getSubSalesId().toString();\n u_id = app.getSalesPersonId().toString();\n //Log.e(\"IDIDD\",\"\"+app.getSalesPersonId().toString());\n }else{\n u_id=owner_id;\n }\n\n\n }\n\n List<NameValuePair> para=new ArrayList<NameValuePair>();\n\n para.add(new BasicNameValuePair(\"owner_id\", owner_id));\n para.add(new BasicNameValuePair(\"user_id\",u_id));\n\n\n String json=GetCartByQty(para);\n\n try {\n\n\n //System.out.println(json);\n\n if (json==null\n || (json.equalsIgnoreCase(\"\"))) {\n *//*Toast.makeText(Business_Registration.this, \"SERVER ERRER\",\n Toast.LENGTH_SHORT).show();*//*\n Globals.CustomToast(this, \"SERVER ERRER\", getLayoutInflater());\n // loadingView.dismiss();\n\n } else {\n JSONObject jObj = new JSONObject(json);\n\n String date = jObj.getString(\"status\");\n\n if (date.equalsIgnoreCase(\"false\")) {\n\n app = new AppPrefs(Saved_Address.this);\n app.setCart_QTy(\"0\");\n\n // loadingView.dismiss();\n } else {\n\n\n int qu = jObj.getInt(\"data\");\n app = new AppPrefs(Saved_Address.this);\n app.setCart_QTy(\"\"+qu);\n\n\n }\n\n }\n }catch(Exception j){\n j.printStackTrace();\n //Log.e(\"json exce\",j.getMessage());\n }\n\n }else{\n app = new AppPrefs(Saved_Address.this);\n app.setCart_QTy(\"\");\n }*/\n\n app = new AppPrefs(Saved_Address.this);\n String qu1 = app.getCart_QTy();\n if(qu1.equalsIgnoreCase(\"0\") || qu1.equalsIgnoreCase(\"\")){\n txt.setVisibility(View.GONE);\n txt.setText(\"\");\n }else{\n if(Integer.parseInt(qu1) > 999){\n txt.setText(\"999+\");\n txt.setVisibility(View.VISIBLE);\n }else {\n txt.setText(qu1 + \"\");\n txt.setVisibility(View.VISIBLE);\n }\n }\n\n image_drawer.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent i = new Intent(Saved_Address.this, User_Profile.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }\n });\n img_home.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent i = new Intent(Saved_Address.this,MainPage_drawer.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }\n });\n img_cart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n app = new AppPrefs(Saved_Address.this);\n app.setUser_notification(\"Saved_Address\");\n Intent i = new Intent(Saved_Address.this, BTL_Cart.class);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(i);\n }\n });\n\n\n mActionBar.setCustomView(mCustomView);\n mActionBar.setDisplayShowCustomEnabled(true);\n }", "@Override\n public void onSystemUiVisibilityChange(int visibility) {\n if ((visibility & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0) {\n // TODO: The system bars are visible. Make any desired\n// int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;\n//\n// int a=SYSTEM_UI_FLAG_IMMERSIVE_STICKY;\n// decorView.setSystemUiVisibility(a);\n decorView.setSystemUiVisibility(\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION // hide nav bar\n | View.SYSTEM_UI_FLAG_FULLSCREEN // hide status bar\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);\n\n\n } else {\n // TODO: The system bars are NOT visible. Make any desired\n\n }\n }", "private void setUpBottomNavigationView(){\n\n BottomNavigationViewEx buttomNavigationViewEx = ( BottomNavigationViewEx) findViewById(R.id.bottomNavViewBar);\n com.firebaseapp.clovis_saintiano.besecured.bottom_view_helper.BottomNavigationView.setUpBottomNavigationView(buttomNavigationViewEx);\n\n //Enable bottom activity in each activities / items\n com.firebaseapp.clovis_saintiano.besecured.bottom_view_helper.BottomNavigationView.enableNavigation(mContext, buttomNavigationViewEx);\n\n Menu menu = buttomNavigationViewEx.getMenu();\n MenuItem menuItem = menu.getItem(ACTIVITY_NUM);\n menuItem.setChecked(true);\n\n }", "public MainToolBar getMainToolBar()\n {\n return mainToolBar;\n }", "public abstract String getBarTitle();", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_Menu) {\n Intent intent = new Intent(MainHomeActivity.this, MainHomeActivity.class);\n startActivity(intent);\n // Handle the camera action\n } else if (id == R.id.nav_DatMon) {\n\n } else if (id == R.id.nav_LichSu) {\n Intent intent = new Intent(MainHomeActivity.this, MainLichSuActivity.class);\n startActivity(intent);\n } else if (id==R.id.nav_setting){\n Intent intent = new Intent(MainHomeActivity.this, MainDoiThongTin.class);\n startActivity(intent);\n } else if (id == R.id.nav_DangXuat) {\n\n LoginManager.getInstance().logOut();\n\n\n FirebaseAuth.getInstance().signOut();\n finish();\n Intent intent = new Intent(MainHomeActivity.this, MainDangNhapActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n startActivity(intent);\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_home) {\n NavUtils.navigateUpFromSameTask(this);\n } else if (id == R.id.nav_precipitation) {\n //Already At Precipitation\n } else if(id == R.id.nav_stoichiometry){\n NavUtils.navigateUpFromSameTask(this);\n startActivity(new Intent(getApplicationContext(), Stoichiometry.class));\n } else if (id == R.id.nav_periodic_table){\n NavUtils.navigateUpFromSameTask(this);\n startActivity(new Intent(getApplicationContext(), Periodic_Table.class));\n } else if(id == R.id.nav_base_acid){\n NavUtils.navigateUpFromSameTask(this);\n startActivity(new Intent(getApplicationContext(), Base_Acid.class));\n } else if(id == R.id.nav_dissolving){\n NavUtils.navigateUpFromSameTask(this);\n startActivity(new Intent(getApplicationContext(), Dissolving.class));\n } else if(id == R.id.nav_fatty_acid){\n NavUtils.navigateUpFromSameTask(this);\n startActivity(new Intent(getApplicationContext(), Fatty_Acid.class));\n } else if(id == R.id.nav_equation_balancer){\n NavUtils.navigateUpFromSameTask(this);\n startActivity(new Intent(getApplicationContext(), Equation_Balancer.class));\n }\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n Fragment fragment = null;\n String title = getString(R.string.app_name);\n\n if(id==R.id.nav_home) {\n fragment = new HomeFragment();\n title = \"Home\";\n } else if (id == R.id.nav_study) {\n fragment = new StudyFragment();\n title = \"Study\";\n } else if (id == R.id.nav_myitemmanage) {\n\n // 처음에 왜 한번 끊기는가.. Profiler 봐야 할듯.. 로그인 화면 만들때만 끊기는가?\n // <com.google.android.gms.common.SignInButton> 이 버튼을 제거하니 메모리도 적게 먹고 빨라지긴 했는데..\n // 그냥 이 버튼을 불러만 와도 엄청난 렉이;; 이전 FirebaseChatting 앱도 프로파일러 확인해 보자\n\n mFirebaseUser = mFirebaseAuth.getCurrentUser();\n if(mFirebaseUser != null) {\n // 이메일이 인증되었는지 확인\n boolean emailVerified = mFirebaseUser.isEmailVerified();\n if(emailVerified == false) {\n mFirebaseAuth.signOut();\n Toast.makeText(this, getResources().getString(R.string.common_email_notauth), Toast.LENGTH_SHORT).show();\n return false;\n }\n\n fragment = new MyItemManageFragment(); // 여기서 메모리 누수가 나는듯..?\n title = \"ItemManage\";\n } else {\n //mGoogleApiClient.stopAutoManage(this);\n //mGoogleApiClient.disconnect();\n\n fragment = new LoginFragment();\n title = \"Login\";\n }\n\n } else if (id == R.id.nav_ranking) {\n fragment = new RankingShowFragment();\n title = \"Ranking\";\n } else if (id == R.id.nav_bymade) {\n Toast.makeText(this, \"보미야 사랑해\", Toast.LENGTH_SHORT).show();\n }\n\n mCurrentFragment = fragment;\n\n if(fragment != null) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.contnet_fragment_layout, fragment)\n .commit();\n }\n\n if(getSupportActionBar() != null) {\n getSupportActionBar().setTitle(title);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n //getMenuInflater().inflate(R.menu.activity_main, menu);\n \tsuper.onCreateOptionsMenu(menu);\n getSupportMenuInflater().inflate(R.menu.actionbar, menu);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n BatteryIcon = (MenuItem)menu.findItem(R.id.acb_battery);\n setActBarBatteryIcon(Callbacksplit.getsavedBatteryStateIcon());\n ConnectIcon = (MenuItem)menu.findItem(R.id.acb_connect);\n setActBarConnectIcon();\n \n ((MenuItem)menu.findItem(R.id.acb_m_5)).setVisible(false);\n\n return true;\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n\r\n return true;\r\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n Button reporte = (Button) findViewById(R.id.button9);\n\n if (id == R.id.nav_report) {\n mMap.clear();\n reporte.setVisibility(View.VISIBLE);\n agregarMarcador(posX, posY);\n } else if (id == R.id.nav_mLugares) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n misReportes();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mMap.clear();\n misMarcadores();\n }\n });\n }\n }).start();\n\n }/* else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }*/\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }" ]
[ "0.66023517", "0.6296317", "0.6271561", "0.6203729", "0.6169151", "0.6168201", "0.61466914", "0.60620296", "0.605724", "0.6057081", "0.6029089", "0.59729946", "0.58800095", "0.5873371", "0.5810747", "0.5775544", "0.5771751", "0.5766607", "0.5752629", "0.5697692", "0.5678566", "0.56658775", "0.56650645", "0.5660492", "0.56503886", "0.56487644", "0.5639459", "0.5625475", "0.560141", "0.56013423", "0.5595053", "0.5588569", "0.558854", "0.55874294", "0.55810285", "0.5568184", "0.55447906", "0.55434597", "0.55395734", "0.5537698", "0.55335736", "0.5532814", "0.55225754", "0.552135", "0.551756", "0.55131996", "0.5504855", "0.55033904", "0.5493705", "0.54902756", "0.5471889", "0.54613495", "0.5461072", "0.54581785", "0.545594", "0.5438788", "0.54383045", "0.5427748", "0.54239106", "0.54177886", "0.5395574", "0.5379984", "0.53750896", "0.5374944", "0.5360539", "0.53571224", "0.5353978", "0.53484046", "0.53481674", "0.53471017", "0.534629", "0.5342096", "0.53413004", "0.5340921", "0.53377295", "0.53355485", "0.5332755", "0.5328742", "0.53194183", "0.5319175", "0.5314245", "0.53128636", "0.5301875", "0.5293378", "0.52901715", "0.52895266", "0.528162", "0.52775604", "0.5276475", "0.52752453", "0.5274232", "0.52720565", "0.52713156", "0.52702063", "0.52695745", "0.526828", "0.5265467", "0.52630115", "0.5258742", "0.52575666" ]
0.8321971
0
Added by e13775 at 19 June 2012 for organize apps' group end
public static int getLongPressTimeout() { return sLongPressTimeout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processGroup(List<ResolveInfo> rList, int start, int end, ResolveInfo ro,\r\n CharSequence roLabel) {\r\n // Process labels from start to i\r\n int num = end - start+1;\r\n if (num == 1) {\r\n // No duplicate labels. Use label for entry at start\r\n mList.add(new DisplayResolveInfo(ro, roLabel, null, null));\r\n } else {\r\n boolean usePkg = false;\r\n CharSequence startApp = ro.activityInfo.applicationInfo.loadLabel(mPm);\r\n if (startApp == null) {\r\n usePkg = true;\r\n }\r\n if (!usePkg) {\r\n // Use HashSet to track duplicates\r\n HashSet<CharSequence> duplicates = new HashSet<CharSequence>();\r\n duplicates.add(startApp);\r\n for (int j = start+1; j <= end ; j++) {\r\n ResolveInfo jRi = rList.get(j);\r\n CharSequence jApp = jRi.activityInfo.applicationInfo.loadLabel(mPm);\r\n if ( (jApp == null) || (duplicates.contains(jApp))) {\r\n usePkg = true;\r\n break;\r\n } else {\r\n duplicates.add(jApp);\r\n } // End of if\r\n } // End of if\r\n // Clear HashSet for later use\r\n duplicates.clear();\r\n } // End of if\r\n for (int k = start; k <= end; k++) {\r\n ResolveInfo add = rList.get(k);\r\n if (usePkg) {\r\n // Use application name for all entries from start to end-1\r\n mList.add(new DisplayResolveInfo(add, roLabel,\r\n add.activityInfo.packageName, null));\r\n } else {\r\n // Use package name for all entries from start to end-1\r\n mList.add(new DisplayResolveInfo(add, roLabel,\r\n add.activityInfo.applicationInfo.loadLabel(mPm), null));\r\n } // End of if\r\n } // End of for\r\n } // End of if \r\n }", "public interface GroupDescription {\n /**\n * Types of the group supported by ONOS.\n */\n enum Type {\n /**\n * Load-balancing among different buckets in a group.\n */\n SELECT,\n /**\n * Single Bucket Group.\n */\n INDIRECT,\n /**\n * Multicast to all buckets in a group.\n */\n ALL,\n /**\n * Similar to {@link Type#ALL} but used for cloning of packets\n * independently of the egress decision (singleton treatment or other\n * group).\n */\n CLONE,\n /**\n * Uses the first live bucket in a group.\n */\n FAILOVER\n }\n\n /**\n * Returns type of a group object.\n *\n * @return GroupType group type\n */\n Type type();\n\n /**\n * Returns device identifier on which this group object is created.\n *\n * @return DeviceId device identifier\n */\n DeviceId deviceId();\n\n /**\n * Returns application identifier that has created this group object.\n *\n * @return ApplicationId application identifier\n */\n ApplicationId appId();\n\n /**\n * Returns application cookie associated with a group object.\n *\n * @return GroupKey application cookie\n */\n GroupKey appCookie();\n\n /**\n * Returns groupId passed in by caller.\n *\n * @return Integer group id passed in by caller. May be null if caller\n * passed in null to let groupService determine the group id.\n */\n Integer givenGroupId();\n\n /**\n * Returns group buckets of a group.\n *\n * @return GroupBuckets immutable list of group bucket\n */\n GroupBuckets buckets();\n}", "public abstract String getDefaultGroup();", "@Override\n public void onGroupExpanded(int groupPosition) {\n\n }", "@Override\n public boolean isGroup() {\n return false;\n }", "Group getNextExecutableGroup();", "public long getGroup()\r\n { return group; }", "@Override\r\n public void onGroupExpand(int groupPosition) {\n }", "int doComputeGroups( long start_id )\n {\n long cid = mApp.mCID;\n // Log.v(\"DistoX\", \"Compute CID \" + cid + \" from gid \" + start_id );\n if ( cid < 0 ) return -2;\n float thr = TDMath.cosd( TDSetting.mGroupDistance );\n List<CalibCBlock> list = mApp_mDData.selectAllGMs( cid, 0 );\n if ( list.size() < 4 ) {\n return -1;\n }\n long group = 0;\n int cnt = 0;\n float b = 0.0f;\n float c = 0.0f;\n if ( start_id >= 0 ) {\n for ( CalibCBlock item : list ) {\n if ( item.mId == start_id ) {\n group = item.mGroup;\n cnt = 1;\n b = item.mBearing;\n c = item.mClino;\n break;\n }\n }\n } else {\n if ( TDSetting.mGroupBy != TDSetting.GROUP_BY_DISTANCE ) {\n group = 1;\n }\n }\n switch ( TDSetting.mGroupBy ) {\n case TDSetting.GROUP_BY_DISTANCE:\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n if ( group == 0 || item.isFarFrom( b, c, thr ) ) {\n ++ group;\n b = item.mBearing;\n c = item.mClino;\n }\n item.setGroup( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n // N.B. item.calibId == cid\n }\n break;\n case TDSetting.GROUP_BY_FOUR:\n // TDLog.Log( TDLog.LOG_CALIB, \"group by four\");\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n item.setGroupIfNonZero( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n ++ cnt;\n if ( (cnt%4) == 0 ) {\n ++group;\n // TDLog.Log( TDLog.LOG_CALIB, \"cnt \" + cnt + \" new group \" + group );\n }\n }\n break;\n case TDSetting.GROUP_BY_ONLY_16:\n for ( CalibCBlock item : list ) {\n if ( start_id >= 0 && item.mId <= start_id ) continue;\n item.setGroupIfNonZero( group );\n mApp_mDData.updateGMName( item.mId, item.mCalibId, Long.toString( item.mGroup ) );\n ++ cnt;\n if ( (cnt%4) == 0 || cnt >= 16 ) ++group;\n }\n break;\n }\n return (int)group-1;\n }", "private void _generateAResearchGroup(int index) {\n String id;\n id = _getId(CS_C_RESEARCHGROUP, index);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#ResearchGroup\", true);\t \t \t \t \n }\n writer_.startSection(CS_C_RESEARCHGROUP, id);\n writer_.addProperty(CS_P_SUBORGANIZATIONOF,\n _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#subOrganizationOf\", _getId(CS_C_DEPT, instances_[CS_C_DEPT].count - 1), true);\t \t \t \t \n }\n writer_.endSection(CS_C_RESEARCHGROUP);\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\r\n\tpublic void service(AgiRequest arg0, AgiChannel arg1) throws AgiException {\n\t\tString groupNum = getVariable(\"ARG1\");\r\n\t\t\r\n\t\t\r\n String dbname = \"heightscalls.nsf\";\r\n\t\t\r\n\t\tString[] opts = new String[1];\r\n\t\topts[0] = groupNum;\r\n\t\t\r\n\t\tString cmd = \"GETRINGGROUP\";\r\n\t\ttry {\r\n\t\t\tString[] res = ASTPORTAL.generalCommand(cmd, opts, dbname);\r\n\t\t\t\r\n\t\t\tString members = res[0];\r\n\t\t\tString tl = res[1];\r\n\t\t\tString vm = res[2];\r\n\t\t\t\r\n\t\t\tsetVariable(\"MEMBERS\", members);\r\n\t\t\tsetVariable(\"TL\", tl);\r\n\t\t\tsetVariable(\"VM\", vm);\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\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public void setContactsGroup()\n\t{\n\t\tUtility.ThreadSleep(1000);\n\t\tList<Long> group = new ArrayList<Long>(Arrays.asList(new Long[] {1l,2l})); //with DB Call\n\t\tthis.groupIds = group;\n\t\tLong contactGroupId = groupIds.get(0);\n\t\tSystem.out.println(\".\");\n\t}", "private String getAPNameString(List<AirplaneModel> association,\r\n\t\t\tViewAirplaneModel type, StringBuilder grp) {\r\n\t\tfor(AirplaneModel model:association){\r\n\t\t\tif(type.getAirplaneModelTypeID()==model.getAirplaneModelTypeID().getAirplaneModelTypeID().longValue()){\r\n\t\t\t\tgrp.append(model.getGroupID().getGroupOwner().trim()).append(NEWLINE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString str=grp.toString();\r\n\t\tif(str.endsWith(NEWLINE)){\r\n\t\t\tstr=str.substring(0, str.length()-1);\r\n\t\t}\r\n\t\tString st[] = new String[WsrdConstants.HUNDRED];\r\n\t\tst= str.split(NEWLINE);\r\n\t\tArrays.sort(st);\r\n\t\r\n\t\tStringBuilder st1= new StringBuilder();\r\n\t\tfor(int j=0;j<=st.length-1;j++){\r\n\t\t\tst1.append(st[j]);\r\n\t\t\tst1.append(NEWLINE);\r\n\t\t}\r\n\t\treturn st1.toString();\r\n\t}", "public final void rule__Application__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:423:1: ( rule__Application__Group__2__Impl )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:424:2: rule__Application__Group__2__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__Application__Group__2__Impl_in_rule__Application__Group__2834);\n rule__Application__Group__2__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public String group() { return group; }", "public boolean isAppGroup() {\n if (getNotification().getGroup() != null || getNotification().getSortKey() != null) {\n return true;\n }\n return false;\n }", "public void newGroup() {\n addGroup(null, true);\n }", "private void sendGroupInit() {\n \t\ttry {\n \t\t\tmyEndpt=new Endpt(serverName+\"@\"+vsAddress.toString());\n \n \t\t\tEndpt[] view=null;\n \t\t\tInetSocketAddress[] addrs=null;\n \n \t\t\taddrs=new InetSocketAddress[1];\n \t\t\taddrs[0]=vsAddress;\n \t\t\tview=new Endpt[1];\n \t\t\tview[0]=myEndpt;\n \n \t\t\tGroup myGroup = new Group(\"DEFAULT_SERVERS\");\n \t\t\tvs = new ViewState(\"1\", myGroup, new ViewID(0,view[0]), new ViewID[0], view, addrs);\n \n \t\t\tGroupInit gi =\n \t\t\t\tnew GroupInit(vs,myEndpt,null,gossipServers,vsChannel,Direction.DOWN,this);\n \t\t\tgi.go();\n \t\t} catch (AppiaEventException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (NullPointerException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} catch (AppiaGroupException ex) {\n \t\t\tSystem.err.println(\"EventException while launching GroupInit\");\n \t\t\tex.printStackTrace();\n \t\t} \n \t}", "private void addToGroup(final JSGroup group,\n final EventInfo val,\n final TreeSet<String> added,\n final int methodType) {\n String currentPrincipal = null;\n final BwPrincipal principal = cb.getPrincipal();\n\n if (principal != null) {\n currentPrincipal = principal.getPrincipalRef();\n }\n\n final BwEvent ev = val.getEvent();\n\n final EventTimeZonesRegistry tzreg =\n new EventTimeZonesRegistry(this, ev);\n\n // Always by ref - except for custom?\n //if (!cb.getTimezonesByReference()) {\n // /* Add referenced timezones to the calendar */\n // addIcalTimezones(cal, ev, added, tzreg);\n //}\n\n JSCalendarObject jsCalMaster = null;\n GetEntityResponse<JSCalendarObject> res;\n\n// if (ev.getEntityType() == IcalDefs.entityTypeFreeAndBusy) {\n // comp = VFreeUtil.toVFreeBusy(ev);\n // } else {\n res = BwEvent2JsCal.convert(val, null, null,\n methodType,\n tzreg,\n currentPrincipal);\n //}\n if (!res.isOk()) {\n throw new RuntimeException(res.toString());\n }\n jsCalMaster = res.getEntity();\n if (!ev.getSuppressed()) {\n /* Add it to the group */\n group.addEntry(jsCalMaster);\n }\n\n if (val.getNumOverrides() > 0) {\n for (final EventInfo oei: val.getOverrides()) {\n res = BwEvent2JsCal.convert(oei, val, jsCalMaster,\n methodType,\n tzreg,\n currentPrincipal);\n if (!res.isOk()) {\n throw new RuntimeException(res.toString());\n }\n if (ev.getSuppressed()) {\n /* Add it to the group */\n group.addEntry(res.getEntity());\n }\n }\n }\n }", "@Override\r\n public void onGroupCollapse(int groupPosition) {\n\r\n }", "ZigBeeGroup getGroup(int groupId);", "@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n Log.v(\"popwindow\",\"show the window111\");\n expandlistView.expandGroup(groupPosition);\n return true;\n }", "private void groupQuery() {\n ParseQuery<ParseObject> query = ParseQuery.getQuery(ParseConstants.CLASS_GROUPS);\n query.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject group, ParseException e) {\n setProgressBarIndeterminateVisibility(false);\n if(e == null) {\n mGroup = group;\n mMemberRelation = mGroup.getRelation(ParseConstants.KEY_MEMBER_RELATION);\n mMemberOfGroupRelation = mCurrentUser.getRelation(ParseConstants.KEY_MEMBER_OF_GROUP_RELATION);\n\n //only the admin can delete the group\n mGroupAdmin = mGroup.get(ParseConstants.KEY_GROUP_ADMIN).toString();\n mGroupAdmin = Utilities.removeCharacters(mGroupAdmin);\n if ((mCurrentUser.getUsername()).equals(mGroupAdmin)) {\n mDeleteMenuItem.setVisible(true);\n }\n\n mGroupName = group.get(ParseConstants.KEY_GROUP_NAME).toString();\n mGroupName = Utilities.removeCharacters(mGroupName);\n setTitle(mGroupName);\n\n mCurrentDrinker = mGroup.get(ParseConstants.KEY_CURRENT_DRINKER).toString();\n mCurrentDrinker = Utilities.removeCharacters(mCurrentDrinker);\n mCurrentDrinkerView.setText(mCurrentDrinker);\n\n mPreviousDrinker = mGroup.get(ParseConstants.KEY_PREVIOUS_DRINKER).toString();\n mPreviousDrinker = Utilities.removeCharacters(mPreviousDrinker);\n mPreviousDrinkerView.setText(mPreviousDrinker);\n\n listViewQuery(mMemberRelation);\n }\n else {\n Utilities.getNoGroupAlertDialog(null);\n }\n }\n });\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n\n }", "public void setEndBayGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.ENDBAY.toString(), num);\n\t}", "public void listGroup() {\r\n List<Group> groupList = groups;\r\n EventMessage evm = new EventMessage(\r\n EventMessage.EventAction.FIND_MULTIPLE,\r\n EventMessage.EventType.OK,\r\n EventMessage.EventTarget.GROUP,\r\n groupList);\r\n notifyObservers(evm);\r\n }", "public interface Group extends Item {\n\n /**\n * Gets all parents of this group in no particular order.\n * \n * @return array of parent groups, or empty array if there are no parent groups.\n * @throws AccessManagementException\n */\n Group[] getParents() throws AccessManagementException;\n\n /**\n * Gets all members of this group in no particular order.\n * \n * @return array of members, or empty array if there are no members.\n * @throws AccessManagementException\n */\n Item[] getMembers() throws AccessManagementException;\n\n // TODO: Because of scalability issues We should introduce an iterator for getting all members\n\n /**\n * Adds a member to this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item already is a member of this group, or if something\n * else goes wrong.\n */\n void addMember(Item item) throws AccessManagementException;\n\n /**\n * Removes item from this group.\n * The group is not saved automatically.\n * \n * @param item\n * @throws AccessManagementException\n * if item is not a member of this group, or if something else\n * goes wrong.\n */\n void removeMember(Item item) throws AccessManagementException;\n\n /**\n * Indicates whether the item is a member of this group.\n * \n * @param item\n * @return true if the item is a member of this group, false otherwise.\n * @throws AccessManagementException\n */\n boolean isMember(Item item) throws AccessManagementException;\n}", "@Override\n\tpublic long getGroupId() {\n\t\treturn _scienceApp.getGroupId();\n\t}", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "private static String formatGroup(GroupCard gc) {\n\t\tString res = \"\";\n\n\t\tGroupHeadGuest ghg = gc.getCapoGruppo();\n\t\tres += GroupHeadGuest.CODICE;\n\t\tres += DateUtils.format(gc.getDate());\n\t\tres += String.format(\"%02d\", gc.getPermanenza());\n\t\tres += padRight(ghg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(ghg.getName().trim().toUpperCase(),30);\n\t\tres += ghg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(ghg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(ghg.getPlaceOfBirth());\n\n\t\tPlace cita = ghg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\n\t\tres += ghg.getDocumento().getDocType().getCode();\n\t\tres += padRight(ghg.getDocumento().getCodice(),20);\n\t\tres += ghg.getDocumento().getLuogoRilascio().getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += \"\\r\\n\";\n\n\t\tfor (GroupMemberGuest gmg : gc.getAltri()){\n\t\t\tres += formatGroupMember(gmg, gc.getDate(), gc.getPermanenza());\n\t\t\t//res += \"\\r\\n\";\n\t\t}\n\t\treturn res;\n\t}", "@Override\n\t\t\t\tpublic void onCompleted(final Group item, Exception exception,\n\t\t\t\t\t\tServiceFilterResponse service) {\n\t\t\t\t\tif(exception == null){\n\t\t\t\t\t\tLog.e(\"Message (group)\", \"Add group successful\" + item.getGroupId());\n\t\t\t\t\t\tclearFields();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tDisasterPlanSample template = new DisasterPlanSample();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(WorkItem i:template.getPlans()){\n\t\t\t\t\t\t\ti.setGroupId(item.getGroupId());\n\t\t\t\t\t\t\tmClient.getTable(WorkItem.class).insert(i, new TableOperationCallback<WorkItem>(){\n\t\t\t\t\t\t\t\tpublic void onCompleted(WorkItem work,Exception exception2,ServiceFilterResponse response2) {\n\t\t\t\t\t\t\t\t\tif(exception2==null){\n\t\t\t\t\t\t\t\t\t\tLog.e(\"Add Work Item\", \"Success\");\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\t\n\t\t\t\t\t\tmember.setGroupId(item.getGroupId());\n\t\t\t\t\t\tmMemberTable = mClient.getTable(Member.class);\n\t\t\t\t\t\tmMemberTable.update(member, new TableOperationCallback<Member>(){\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onCompleted(Member member,\n\t\t\t\t\t\t\t\t\tException exception, ServiceFilterResponse service) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tif(exception==null){\n\t\t\t\t\t\t\t\t\tLog.e(\"Message Update\", \"Update is successful\");\n\t\t\t\t\t\t\t\t\tcreateDialog(\"Succesfully created group \" + item.getName()).show();\t\n\t\t\t\t\t\t\t\t\tIntent i = new Intent(getApplicationContext(),MenuActivity.class);\n\t\t\t\t\t\t\t\t\ti.putExtra(\"user\", member);\n\t\t\t\t\t\t\t\t\tstartActivity(i);\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\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} else {\n\t\t\t\t\t\tLog.e(\"Message (group)\", \"Add group failed\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "ContactGroup getServerStoredContactListRoot();", "public interface CoreGroup extends AbstractGroup {\r\n}", "sync_group_definition getSync_group_definition();", "public ProductGroup beProductGroup();", "private void onGroup(List<FullGroupWrapper> groupWrappers) {\n for (FullGroupWrapper groupWrapper : groupWrappers) {\n groupWrapper.getConversationEBDD();\n groupWrapper.getFullUserWrappers();\n groupWrapper.getMyLocalEventEBDD();\n }\n\n //récupération de tous les événements temporaires\n remoteBD.getTemporaryEvent(new Date().getTime(), new OnTemporaryEvents() {\n @Override\n public void onTemporaryEvents(List<MyEventEBDD> eventEBDDs) {\n onTemporaryEventReceived(eventEBDDs);\n }\n });\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "private GroupPC buildFHIRGroupFromMatrixRoomEvent(JSONObject roomEvent)\r\n {\r\n LOG.debug(\".buildDefaultGroupElement() for Event --> \" + roomEvent);\r\n // Create the empty Pegacorn::FHIR::R4::Group entity.\r\n GroupPC theTargetGroup = new GroupPC();\r\n // Add the FHIR::Group.Identifier (type = FHIR::Identifier) Set\r\n theTargetGroup.addIdentifier(this.groupAttributeBuilders.buildGroupIdentifier(roomEvent.getString(\"room_id\")));\r\n // Set the group type --> PRACTITIONER (all our groups are based on Practitioners)\r\n theTargetGroup.setType(Group.GroupType.PRACTITIONER);\r\n // The group is active\r\n theTargetGroup.setActual(true);\r\n\r\n LOG.trace(\"buildGroupEntity(): Extracting -content- subfield set\");\r\n JSONObject roomCreateContent = roomEvent.getJSONObject(\"content\");\r\n\r\n switch (roomEvent.getString(\"type\")) {\r\n case \"m.room.create\":\r\n LOG.trace(\"buildGroupEntity(): Is a m.room.create event\");\r\n Reference roomManager = this.groupAttributeBuilders.buildGroupManagerReference(roomCreateContent);\r\n LOG.trace(\"buildGroupEntity(): Adding the Group Manager --> {} \", roomManager);\r\n theTargetGroup.setManagingEntity(roomManager);\r\n if (roomCreateContent.has(\"m.federate\")) {\r\n LOG.trace(\"buildGroupEntity(): Setting the Federated Flag Extension\");\r\n theTargetGroup.setFederationStatus(roomCreateContent.getBoolean(\"m.federate\"));\r\n }\r\n if (roomCreateContent.has(\"room_version\")) {\r\n LOG.trace(\"buildGroupEntity(): Setting the Room Version Extension\");\r\n theTargetGroup.setChatGroupVersion(roomCreateContent.getInt(\"room_version\"));\r\n }\r\n break;\r\n case \"m.room.join_rules\":\r\n LOG.trace(\"buildGroupEntity(): Is a m.room.join_rules event\");\r\n if (roomCreateContent.has(\"join_rule\")) {\r\n LOG.trace(\"buildGroupEntity(): Setting the Join Rule Extension\");\r\n switch (roomCreateContent.getString(\"join_rule\")) {\r\n case \"public\":\r\n LOG.trace(\"buildGroupEntity(): Setting Group -join_rule- to --> {}\", GroupJoinRuleStatusEnum.JOINRULE_STATUS_PUBLIC);\r\n theTargetGroup.setJoinRule(GroupJoinRuleStatusEnum.JOINRULE_STATUS_PUBLIC);\r\n break;\r\n case \"knock\":\r\n LOG.trace(\"buildGroupEntity(): Setting Group -join_rule- to --> {}\", GroupJoinRuleStatusEnum.JOINRULE_STATUS_KNOCK);\r\n theTargetGroup.setJoinRule(GroupJoinRuleStatusEnum.JOINRULE_STATUS_KNOCK);\r\n break;\r\n case \"invite\":\r\n LOG.trace(\"buildGroupEntity(): Setting Group -join_rule- to --> {}\", GroupJoinRuleStatusEnum.JOINRULE_STATUS_INVITE);\r\n theTargetGroup.setJoinRule(GroupJoinRuleStatusEnum.JOINRULE_STATUS_INVITE);\r\n break;\r\n case \"private\":\r\n default:\r\n LOG.trace(\"buildGroupEntity(): Setting Group -join_rule- to --> {}\", GroupJoinRuleStatusEnum.JOINRULE_STATUS_PRIVATE);\r\n theTargetGroup.setJoinRule(GroupJoinRuleStatusEnum.JOINRULE_STATUS_PRIVATE);\r\n break;\r\n }\r\n }\r\n break;\r\n case \"m.room.canonical_alias\":\r\n LOG.trace(\"buildGroupEntity(): Is a m.room.canonical_alias event\");\r\n if (roomCreateContent.has(\"alias\")) {\r\n LOG.trace(\"buildGroupEntity(): Adding {} as the Canonical Alias Extension + adding it as another Identifier\", roomCreateContent.get(\"alias\"));\r\n Identifier additionalIdentifier = this.groupAttributeBuilders.buildGroupIdentifier(roomCreateContent.getString(\"alias\"));\r\n theTargetGroup.addIdentifier(additionalIdentifier);\r\n theTargetGroup.setCanonicalAlias(additionalIdentifier);\r\n }\r\n break;\r\n case \"m.room.aliases\":\r\n LOG.trace(\"buildGroupEntity(): Is a m.room.aliases event\");\r\n if (roomCreateContent.has(\"aliases\")) {\r\n LOG.trace(\"buildGroupEntity(): Adding {} as the Alias to room (i.e. a new Identifier for each Alias) --> {}\", roomCreateContent.get(\"aliases\"));\r\n JSONArray aliasSet = roomCreateContent.getJSONArray(\"aliases\");\r\n LOG.trace(\"buildGroupEntity(): There are {} new aliases, now creating the Iterator\", aliasSet.length());\r\n Iterator aliasSetIterator = aliasSet.iterator();\r\n while (aliasSetIterator.hasNext()) {\r\n String newAlias = aliasSetIterator.next().toString();\r\n LOG.trace(\"buildGroupEntity(): Adding Alias --> {}\", newAlias);\r\n Identifier additionalIdentifier = this.groupAttributeBuilders.buildGroupIdentifier(newAlias);\r\n theTargetGroup.addIdentifier(additionalIdentifier);\r\n }\r\n }\r\n break;\r\n case \"m.room.member\":\r\n LOG.trace(\"buildGroupEntity(): is a m.room.member event\");\r\n Group.GroupMemberComponent newMembershipComponent = this.groupAttributeBuilders.buildMembershipComponent(roomEvent);\r\n theTargetGroup.addMember(newMembershipComponent);\r\n break;\r\n case \"m.room.redaction\":\r\n LOG.trace(\"buildGroupEntity(): is a m.room.redaction event\");\r\n LOG.debug(\"buildGroupEntity(): Exit, if the event is a m.room.redaction, we ignore it (so returning null)!\");\r\n return (null);\r\n case \"m.room.power_levels\":\r\n LOG.trace(\"buildGroupEntity(): is a m.room.power_levels event\");\r\n LOG.debug(\"buildGroupEntity(): Exit, if the event is a m.room.power_levels, we ignore it (so returning null)!\");\r\n return (null);\r\n default:\r\n LOG.trace(\"buildGroupEntity(): default for room event type, do nothing\");\r\n LOG.debug(\"buildGroupEntity(): Exit, if the event is not of interested, we ignore it (so returning null)!\");\r\n return (null);\r\n }\r\n LOG.debug(\".buildDefaultGroupElement(): Created Identifier --> \" + theTargetGroup.toString());\r\n return (theTargetGroup);\r\n }", "private static void insertOneGroupEntry(Cursor groupCursor, ArrayList<GroupInfo> groupList, Context context) {\n String title = groupCursor.getString(COL_TITLE);\n String titleDisplay = \"\";\n titleDisplay = title;\n\n GroupInfo pinfo = new GroupInfo();\n pinfo.groupId = -1;\n pinfo.title = title;\n pinfo.titleDisplay = titleDisplay;\n groupList.add(pinfo);\n }", "public static void main(String[] args)\n\t{\n\t\tGroupSynchronization groupSynchronization = new GroupSynchronization();\n\t\tGroup group\t\t\t= new Group();\n\t\t\n//\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n//\t\tsubNodeGroupInfo.setGroupName(\"组一\");\n//\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.市公司一.公司一部门二.组一\");\n//\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600007\");\n//\t\tsubNodeGroupInfo.setGroupType(\"0\");\n//\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n//\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n//\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n//\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600004\");\n//\t\tsubNodeGroupInfo.setGroupCompanytype(\"3\");\n//\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n//\t\tsubNodeGroupInfo.setGroupIntId(600009);\n//\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600004;000000000600007;000000000600009;\");\n//\t\t\n//\t\tgroupSynchronization.modifySynchronization(\"000000000600009\",subNodeGroupInfo);\n//\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600009\");\n\t\t\n\t\tGroupInfo subNodeGroupInfo\t= new GroupInfo();\n\t\tsubNodeGroupInfo.setGroupName(\"公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupFullname(\"集团公司.省公司.省公司部门一.公司一部门二\");\n\t\tsubNodeGroupInfo.setGroupParentid(\"000000000600008\");\n\t\tsubNodeGroupInfo.setGroupType(\"3\");\n\t\tsubNodeGroupInfo.setGroupOrderBy(\"1\");\n\t\tsubNodeGroupInfo.setGroupPhone(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupFax(\"1111111\");\n\t\tsubNodeGroupInfo.setGroupStatus(\"0\");\n\t\tsubNodeGroupInfo.setGroupCompanyid(\"000000000600003\");\n\t\tsubNodeGroupInfo.setGroupCompanytype(\"1\");\n\t\tsubNodeGroupInfo.setGroupDesc(\"1\");\n\t\tsubNodeGroupInfo.setGroupIntId(600007);\n\t\tsubNodeGroupInfo.setGroupDnId(\"0;000000000600002;000000000600003;000000000600008;000000000600007;\");\n\t\t\n\t\tgroupSynchronization.modifySynchronization(\"000000000600007\",subNodeGroupInfo);\n\t\tgroup.modifyGroup(subNodeGroupInfo,\"000000000600007\");\n\t}", "public String getExtendGroupName()\n {\n return this.extendGroup_name;\n }", "public StringBuilder adminBatchAddBlackGroupInfo(HttpServletRequest req) throws Exception {\n StringBuilder sBuilder = new StringBuilder(512);\n try {\n WebParameterUtils.reqAuthorizeCheck(master, brokerConfManager,\n req.getParameter(\"confModAuthToken\"));\n String createUser =\n WebParameterUtils.validStringParameter(\"createUser\",\n req.getParameter(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n true, \"\");\n Date createDate =\n WebParameterUtils.validDateParameter(\"createDate\",\n req.getParameter(\"createDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, new Date());\n List<Map<String, String>> jsonArray =\n WebParameterUtils.checkAndGetJsonArray(\"groupNameJsonSet\",\n req.getParameter(\"groupNameJsonSet\"),\n TBaseConstants.META_VALUE_UNDEFINED, true);\n if ((jsonArray == null) || (jsonArray.isEmpty())) {\n throw new Exception(\"Null value of groupNameJsonSet, please set the value first!\");\n }\n Set<String> configuredTopicSet = brokerConfManager.getTotalConfiguredTopicNames();\n HashMap<String, BdbBlackGroupEntity> inBlackGroupEntityMap = new HashMap<>();\n for (int j = 0; j < jsonArray.size(); j++) {\n Map<String, String> groupObject = jsonArray.get(j);\n try {\n String groupName =\n WebParameterUtils.validGroupParameter(\"groupName\",\n groupObject.get(\"groupName\"),\n TBaseConstants.META_MAX_GROUPNAME_LENGTH,\n true, \"\");\n String groupTopicName =\n WebParameterUtils.validStringParameter(\"topicName\",\n groupObject.get(\"topicName\"),\n TBaseConstants.META_MAX_TOPICNAME_LENGTH,\n true, \"\");\n String groupCreateUser =\n WebParameterUtils.validStringParameter(\"createUser\",\n groupObject.get(\"createUser\"),\n TBaseConstants.META_MAX_USERNAME_LENGTH,\n false, null);\n Date groupCreateDate =\n WebParameterUtils.validDateParameter(\"createDate\",\n groupObject.get(\"createDate\"),\n TBaseConstants.META_MAX_DATEVALUE_LENGTH,\n false, null);\n if ((TStringUtils.isBlank(groupCreateUser))\n || (groupCreateDate == null)) {\n groupCreateUser = createUser;\n groupCreateDate = createDate;\n }\n if (!configuredTopicSet.contains(groupTopicName)) {\n throw new Exception(sBuilder.append(\"Topic \").append(groupTopicName)\n .append(\" not configure in master configure, please configure first!\").toString());\n }\n String recordKey = sBuilder.append(groupName)\n .append(\"-\").append(groupTopicName).toString();\n sBuilder.delete(0, sBuilder.length());\n inBlackGroupEntityMap.put(recordKey,\n new BdbBlackGroupEntity(groupTopicName,\n groupName, groupCreateUser, groupCreateDate));\n } catch (Exception ee) {\n sBuilder.delete(0, sBuilder.length());\n throw new Exception(sBuilder.append(\"Process data exception, data is :\")\n .append(groupObject.toString())\n .append(\", exception is : \")\n .append(ee.getMessage()).toString());\n }\n }\n if (inBlackGroupEntityMap.isEmpty()) {\n throw new Exception(\"Not found record in groupNameJsonSet parameter\");\n }\n for (BdbBlackGroupEntity tmpBlackGroupEntity\n : inBlackGroupEntityMap.values()) {\n brokerConfManager.confAddBdbBlackConsumerGroup(tmpBlackGroupEntity);\n }\n sBuilder.append(\"{\\\"result\\\":true,\\\"errCode\\\":0,\\\"errMsg\\\":\\\"OK\\\"}\");\n } catch (Exception e) {\n sBuilder.delete(0, sBuilder.length());\n sBuilder.append(\"{\\\"result\\\":false,\\\"errCode\\\":400,\\\"errMsg\\\":\\\"\")\n .append(e.getMessage()).append(\"\\\"}\");\n }\n return sBuilder;\n }", "public interface GroupService {\n void upgradeInstances(String app_id, String app_version);\n}", "private void group(String[] args){\n String name;\n \n switch(args[1]){\n case \"view\":\n this.checkArgs(args,2,2);\n ms.listGroups(this.groups);\n break;\n case \"add\":\n this.checkArgs(args,3,2);\n name = args[2];\n db.createGroup(name);\n break;\n case \"rm\":\n this.checkArgs(args,3,2);\n name = args[2];\n Group g = this.findGroup(name);\n if(g == null)\n ms.err(4);\n db.removeGroup(g);\n break;\n default:\n ms.err(3);\n break;\n }\n }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }" ]
[ "0.58330905", "0.5751833", "0.56474125", "0.5595468", "0.55865836", "0.55726725", "0.55372995", "0.55281115", "0.5526334", "0.5460115", "0.5453435", "0.5427753", "0.5421531", "0.542053", "0.5414136", "0.5402138", "0.53999424", "0.5391096", "0.53853047", "0.5380315", "0.53781205", "0.5377489", "0.53562033", "0.5355135", "0.53538716", "0.5351924", "0.53492904", "0.5345649", "0.53357774", "0.5329299", "0.5321894", "0.53217787", "0.5298254", "0.5290385", "0.52792686", "0.5269452", "0.52664024", "0.52572757", "0.52572757", "0.52570117", "0.524904", "0.52351964", "0.5234862", "0.52235484", "0.5200447", "0.51994044", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256", "0.5199256" ]
0.0
-1
/2012618, add by bvq783 for switchui1547
public static boolean isEnterHomeSent() { return mSent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12628c() {\n }", "public void mo6081a() {\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 }", "@Override\n public void func_104112_b() {\n \n }", "private static String m128157b(int i) {\n StringBuilder sb = new StringBuilder(\"android:switcher:\");\n sb.append(R.id.edp);\n sb.append(\":\");\n sb.append(i);\n return sb.toString();\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "protected void mo6255a() {\n }", "void mo88524c();", "static void inx_rp(String passed){\n\t\tint h,l;\n\t\tswitch(passed.charAt(4)){\n\t\tcase 'B':\n\t\t\th = hexa_to_deci(registers.get('B'));\n\t\t\tl = hexa_to_deci(registers.get('C'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('C',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('B',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\th = hexa_to_deci(registers.get('D'));\n\t\t\tl = hexa_to_deci(registers.get('E'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('E',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('D',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\th = hexa_to_deci(registers.get('H'));\n\t\t\tl = hexa_to_deci(registers.get('L'));\n\t\t\tl++;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\t}\n\t}", "public void mo4359a() {\n }", "private void kk12() {\n\n\t}", "public abstract void mo6549b();", "void mo57278c();", "private void level7() {\n }", "public void mo55254a() {\n }", "private USI_TRLT() {}", "void mo60893b();", "public final void mo8775b() {\n }", "void mo21072c();", "void mo4833b();", "void mo67924c();", "void mo80457c();", "void mo57277b();", "public abstract void mo70713b();", "void mo12638c();", "public final void mo3855c() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0279ch.m1117n(sb, str, 100);\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.startBluetoothSco();\n }\n }", "private boolean poleSwitchEngaged(){\n return true; //poleSwitch.get();\n }", "public void mo21783H() {\n }", "public final void mo3856d() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0550gu.m1820b(str, sb.toString());\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.stopBluetoothSco();\n }\n }", "void mo80455b();", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "void mo21070b();", "public abstract void mo27385c();", "public void mo9848a() {\n }", "abstract String mo1748c();", "public abstract String mo11611b();", "static void dcx_rp(String passed){\n\t\tint h,l;\n\t\tswitch(passed.charAt(4)){\n\t\tcase 'B':\n\t\t\th = hexa_to_deci(registers.get('B'));\n\t\t\tl = hexa_to_deci(registers.get('C'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\tregisters.put('C',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('B',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\th = hexa_to_deci(registers.get('D'));\n\t\t\tl = hexa_to_deci(registers.get('E'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('E',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('D',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\th = hexa_to_deci(registers.get('H'));\n\t\t\tl = hexa_to_deci(registers.get('L'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\t}\n\t}", "void mo17021c();", "public abstract void mo20900UP();", "void mo12637b();", "private static void cajas() {\n\t\t\n\t}", "public void mo21825b() {\n }", "static void sbb_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tmult%=256;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "@Override\n public String visit(SwitchEntry n, Object arg) {\n return null;\n }", "void m8368b();", "static void sui_with_acc(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(passed.substring(4));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "public void mo115190b() {\n }", "void mo72113b();", "public void mo21879u() {\n }", "void mo15871a(StateT statet);", "void mo17012c();", "void mo27575a();", "private void m7222b() {\n this.f5601w.mo5525a((C1272h) this);\n this.f5601w.mo5527a((C1280l) this);\n this.f5601w.mo5528a(this.f5580E);\n }", "protected boolean func_70814_o() { return true; }", "public void mo3376r() {\n }", "public final void mo51373a() {\n }", "void mo7353b();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void mo21076g();", "protected abstract void switchOnCustom();", "public abstract void mo56925d();", "void mo1501h();", "void mo80452a();", "public void mo21787L() {\n }", "public void mo12930a() {\n }", "public abstract String mo8770a();", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo3370l() {\n }", "private static String getSwitchCaseMapping(String windowName2) {\n\r\n\t\tString switchcase = \"\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tswitchcase = switchcase + \" case \" + i + \":\\n\";\r\n\t\t\tswitchcase = switchcase + \"value = \" + windowName2.toLowerCase()\r\n\t\t\t\t\t+ \".get\" + mp.getMethodName() + \"();\\n break; \\n\";\r\n\r\n\t\t}\r\n\t\treturn switchcase;\r\n\t}", "void mo4874b(C4718l c4718l);", "public abstract String mo9751p();", "private int getWakeupSrcIndex(java.lang.String r8) {\n /*\n r7 = this;\n int r0 = r8.hashCode()\n r1 = 5\n r2 = 4\n r3 = 3\n r4 = 2\n r5 = 1\n r6 = -1\n switch(r0) {\n case -952838356: goto L_0x004d;\n case -392237989: goto L_0x0043;\n case -190005216: goto L_0x0038;\n case -135250500: goto L_0x002e;\n case 692591870: goto L_0x0024;\n case 693992349: goto L_0x0019;\n case 1315079558: goto L_0x000e;\n default: goto L_0x000d;\n }\n L_0x000d:\n goto L_0x0058\n L_0x000e:\n java.lang.String r0 = \"keyguard_screenon_notification\"\n boolean r0 = r8.equals(r0)\n if (r0 == 0) goto L_0x000d\n r0 = r4\n goto L_0x0059\n L_0x0019:\n java.lang.String r0 = \"lid switch open\"\n boolean r0 = r8.equals(r0)\n if (r0 == 0) goto L_0x000d\n r0 = 6\n goto L_0x0059\n L_0x0024:\n java.lang.String r0 = \"android.policy:LID\"\n boolean r0 = r8.equals(r0)\n if (r0 == 0) goto L_0x000d\n r0 = r1\n goto L_0x0059\n L_0x002e:\n java.lang.String r0 = \"android.policy:POWER\"\n boolean r0 = r8.equals(r0)\n if (r0 == 0) goto L_0x000d\n r0 = 0\n goto L_0x0059\n L_0x0038:\n java.lang.String r0 = \"miui.policy:FINGERPRINT_DPAD_CENTER\"\n boolean r0 = r8.equals(r0)\n if (r0 == 0) goto L_0x000d\n r0 = r5\n goto L_0x0059\n L_0x0043:\n java.lang.String r0 = \"android.policy:FINGERPRINT\"\n boolean r0 = r8.equals(r0)\n if (r0 == 0) goto L_0x000d\n r0 = r2\n goto L_0x0059\n L_0x004d:\n java.lang.String r0 = \"keyguard_screenon_finger_pass\"\n boolean r0 = r8.equals(r0)\n if (r0 == 0) goto L_0x000d\n r0 = r3\n goto L_0x0059\n L_0x0058:\n r0 = r6\n L_0x0059:\n switch(r0) {\n case 0: goto L_0x0061;\n case 1: goto L_0x0060;\n case 2: goto L_0x005f;\n case 3: goto L_0x005e;\n case 4: goto L_0x005e;\n case 5: goto L_0x005d;\n case 6: goto L_0x005d;\n default: goto L_0x005c;\n }\n L_0x005c:\n return r6\n L_0x005d:\n return r1\n L_0x005e:\n return r2\n L_0x005f:\n return r3\n L_0x0060:\n return r4\n L_0x0061:\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.server.ScreenOnMonitor.getWakeupSrcIndex(java.lang.String):int\");\n }", "static void q8(){\t\n\t}", "void mo72114c();", "public abstract void mo35054b();", "static void feladat8() {\n\t}", "void mo119582b();", "void m1864a() {\r\n }", "public abstract void mo20899UO();", "void mo41086b();", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "private void m50366E() {\n }", "public abstract int mo9753r();", "public void getTile_B8();", "void mo4873a(C4718l c4718l);", "private void strin() {\n\n\t}", "private void initSwitchEvents(){\n s1.setOnClickListener(v ->\n eventoSuperficie()\n );\n s2.setOnClickListener(v ->\n eventoSemiSumergido()\n );\n s3.setOnClickListener(v ->\n eventoSumergido()\n );\n // Hace click en el estado actual\n switch (PosicionBarrasReactor.getPosicionActual()){\n case SUMERGIDO:\n s3.toggle();\n break;\n case SEMI_SUMERGIDO:\n s2.toggle();\n break;\n case SUPERFICIE:\n s1.toggle();\n break;\n }\n // -\n }", "public void mo21880v() {\n }", "public void mo21781F() {\n }", "static void sbb_with_mem(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint mult = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tmult++;\n\t\tmult%=256;\n\t\tmult = 256-mult;\n\t\tsubt+=mult;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A', decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "C1458cs mo7613iS();", "static void sub_with_reg(String passed){\n\t\tint subt = hexa_to_deci(registers.get('A'));\n\t\tint minu = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tminu = 256-minu;\n\t\tminu%=256;\n\t\tsubt+=minu;\n\t\tCS = subt>255?true:false;\n\t\tregisters.put('A',decimel_to_hexa_8bit(subt));\n\t\tmodify_status(registers.get('A'));\n\t}", "private void m6601R() {\n if (AppFeature.f5609e) {\n this.f5399S.mo6174f(\"0\");\n }\n this.f5399S.mo6172e(\"1\");\n }", "public void skystonePos6() {\n }" ]
[ "0.5781264", "0.56585985", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.5638049", "0.56235385", "0.5613892", "0.55707896", "0.55504376", "0.5514722", "0.5511236", "0.5490021", "0.548733", "0.54692644", "0.5465969", "0.54584664", "0.5446951", "0.54463416", "0.54427654", "0.5437861", "0.5433038", "0.5412126", "0.5401543", "0.539463", "0.53925115", "0.5392187", "0.53856313", "0.53845257", "0.5381805", "0.53667367", "0.5360774", "0.5358091", "0.5350886", "0.533575", "0.53225064", "0.5313181", "0.5313071", "0.53126866", "0.53047514", "0.5304591", "0.5303265", "0.5301773", "0.5301397", "0.5296989", "0.5291014", "0.5281461", "0.5266007", "0.5262618", "0.5257902", "0.5256625", "0.5251946", "0.5251901", "0.5251689", "0.52492446", "0.52446866", "0.5237095", "0.5235628", "0.5235202", "0.5228068", "0.5224228", "0.5223752", "0.5219865", "0.5219532", "0.52190673", "0.5206382", "0.51939285", "0.51879257", "0.5178501", "0.51734424", "0.5172427", "0.5170283", "0.516279", "0.51584905", "0.5157212", "0.5155857", "0.5155251", "0.515308", "0.5147393", "0.51465076", "0.51404417", "0.51401347", "0.5135591", "0.5135077", "0.51297474", "0.5128399", "0.512723", "0.5124584", "0.51203245", "0.5116107", "0.51129884", "0.51117164", "0.5111155", "0.5107297", "0.51049465", "0.50952786", "0.5093656", "0.50873625" ]
0.0
-1
/2012618, add end /20120105, DJHV83 added for Data Switch
public void setDataSwitchEnable(boolean bEnable){ mDataSwitch = bEnable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo12628c() {\n }", "public void mo6081a() {\n }", "public void lagSkudd2() {\n\t}", "public void ShowData() {\t\n\t\t\t\n\t\t\tShort SR0= cpu.getR0();\n\t\t\tString strR0 = String.format(\"%16s\",Integer.toBinaryString(SR0.intValue())).replace(' ', '0');\n\t\t\tif(strR0.length()>16){\n\t\t\t\tstrR0=strR0.substring(strR0.length()-16,strR0.length());\n\t\t\t}\n\t\t\tint a = 0;\n\t\t\twhile(a < strR0.length()) {\n\t\t\t\tchar[] chara = strR0.toCharArray();\n\t\t\t\tif (chara[a] == '1') {\n\t\t\t\t\tR0[a].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR0[a].setSelected(false);\n\t\t\t\t}\n\t\t\t\ta++;\n\t\t\t}\n\n\t\t\tShort SR1 = cpu.getR1();\n\t\t\tString strR1 = String.format(\"%16s\",Integer.toBinaryString(SR1.intValue())).replace(' ', '0');\n\t\t\tif(strR1.length()>16){\n\t\t\t\tstrR1=strR1.substring(strR1.length()-16,strR1.length());\n\t\t\t}\n\t\t\tint b = 0;\n\t\t\twhile(b < strR1.length()) {\n\t\t\t\tchar[] charb = strR1.toCharArray();\n\t\t\t\tif (charb[b] == '1') {\n\t\t\t\t\tR1[b].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR1[b].setSelected(false);\n\t\t\t\t}\n\t\t\t\tb++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SR2 = cpu.getR2();\n\t\t\tString strR2 = String.format(\"%16s\",Integer.toBinaryString(SR2.intValue())).replace(' ', '0');\n\t\t\tif(strR2.length()>16){\n\t\t\t\tstrR2=strR2.substring(strR2.length()-16,strR2.length());\n\t\t\t}\n\t\t\tint c = 0;\n\t\t\twhile(c < strR2.length()) {\n\t\t\t\tchar[] charc = strR2.toCharArray();\n\t\t\t\tif (charc[c] == '1') {\n\t\t\t\t\tR2[c].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR2[c].setSelected(false);\n\t\t\t\t}\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SR3 = cpu.getR3();\n\t\t\tString strR3 = String.format(\"%16s\",Integer.toBinaryString(SR3.intValue())).replace(' ', '0');\n\t\t\tif(strR3.length()>16){\n\t\t\t\tstrR3=strR3.substring(strR3.length()-16,strR3.length());\n\t\t\t}\n\t\t\tint d = 0;\n\t\t\twhile(d < strR3.length()) {\n\t\t\t\tchar[] chard = strR3.toCharArray();\n\t\t\t\tif (chard[d] == '1') {\n\t\t\t\t\tR3[d].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR3[d].setSelected(false);\n\t\t\t\t}\n\t\t\t\td++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX1 = cpu.getX1();\n\t\t\tString strX1 = String.format(\"%16s\",Integer.toBinaryString(SX1.intValue())).replace(' ', '0');\n\t\t\tif(strX1.length()>16){\n\t\t\t\tstrX1=strX1.substring(strX1.length()-16,strX1.length());\n\t\t\t}\n\t\t\tint f = 0;\n\t\t\twhile(f < strX1.length()) {\n\t\t\t\tchar[] charf = strX1.toCharArray();\n\t\t\t\tif (charf[f] == '1') {\n\t\t\t\t\tX1[f].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX1[f].setSelected(false);\n\t\t\t\t}\n\t\t\t\tf++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX2 = cpu.getX2();\n\t\t\tString strX2 = String.format(\"%16s\",Integer.toBinaryString(SX2.intValue())).replace(' ', '0');\n\t\t\tif(strX2.length()>16){\n\t\t\t\tstrX2=strX2.substring(strX2.length()-16,strX2.length());\n\t\t\t}\n\t\t\tint g = 0;\n\t\t\twhile(g < strX2.length()) {\n\t\t\t\tchar[] charg = strX2.toCharArray();\n\t\t\t\tif (charg[g] == '1') {\n\t\t\t\t\tX2[g].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX2[g].setSelected(false);\n\t\t\t\t}\n\t\t\t\tg++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX3 = cpu.getX3();\n\t\t\tString strX3 = String.format(\"%16s\",Integer.toBinaryString(SX3.intValue())).replace(' ', '0');\n\t\t\tif(strX3.length()>16){\n\t\t\t\tstrX3=strX3.substring(strX3.length()-16,strX3.length());\n\t\t\t}\n\t\t\tint h = 0;\n\t\t\twhile(h < strX3.length()) {\n\t\t\t\tchar[] charh = strX3.toCharArray();\n\t\t\t\tif (charh[h] == '1') {\n\t\t\t\t\tX3[h].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX3[h].setSelected(false);\n\t\t\t\t}\n\t\t\t\th++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SMAR = cpu.getMar();\n\t\t\tString strMAR = String.format(\"%16s\",Integer.toBinaryString(SMAR.intValue())).replace(' ', '0');\n\t\t\tif(strX3.length()>16){\n\t\t\t\tstrMAR=strMAR.substring(strMAR.length()-16,strMAR.length());\n\t\t\t}\n\t\t\tint j = 0;\n\t\t\twhile(j < strMAR.length()) {\n\t\t\t\tchar[] charj = strMAR.toCharArray();\n\t\t\t\tif (charj[j] == '1') {\n\t\t\t\t\tMAR[j].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tMAR[j].setSelected(false);\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SMBR = cpu.getMbr();\n\t\t\tString strMBR = String.format(\"%16s\",Integer.toBinaryString(SMBR.intValue())).replace(' ', '0');\n\t\t\tif(strMBR.length()>16){\n\t\t\t\tstrMBR=strMBR.substring(strMBR.length()-16,strMBR.length());\n\t\t\t}\n\t\t\tint k = 0;\n\t\t\twhile(k < strMBR.length()) {\n\t\t\t\tchar[] chark = strMBR.toCharArray();\n\t\t\t\tif (chark[k] == '1') {\n\t\t\t\t\tMBR[k].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tMBR[k].setSelected(false);\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SIR = cpu.getIr();\n\t\t\tString strIR = String.format(\"%16s\",Integer.toBinaryString(SIR.intValue())).replace(' ', '0');\n\t\t\tif(strIR.length()>12){\n\t\t\t\tstrIR=strIR.substring(strIR.length()-16,strIR.length());\n\t\t\t}\n\t\t\tint l = 0;\n\t\t\twhile(l < strIR.length()) {\n\t\t\t\tchar[] charl = strIR.toCharArray();\n\t\t\t\tif (charl[l] == '1') {\n\t\t\t\t\tIR[l].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tIR[l].setSelected(false);\n\t\t\t\t}\n\t\t\t\tl++;\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tShort SPC = cpu.getPc();\n\t\t\tString strPC = String.format(\"%12s\",Integer.toBinaryString(SPC.intValue())).replace(' ', '0');\n\t\t\tif(strPC.length()>12){\n\t\t\t\tstrPC=strPC.substring(strPC.length()-16,strPC.length());\n\t\t\t}\n\t\t\tint m = 0;\n\t\t\twhile(m < strPC.length()) {\n\t\t\t\tchar[] charm = strPC.toCharArray();\n\t\t\t\tif (charm[m] == '1') {\n\t\t\t\t\tPC[m].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tPC[m].setSelected(false);\n\t\t\t\t}\n\t\t\t\tm++;\n\t\t\t}\t\t\t\n\t\t\t\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void mo21880v() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\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\tprotected void initData() {\n\t\t\n\t}", "@Override\n public void updateLogData(LogDataBE logData) \n {\n\t\t//logData.AddData(\"Carriage: LimitSwitch\", String.valueOf(get_isCubeInCarriage()));\n }", "public void mo4359a() {\n }", "protected void dataTablePlan2(int i) {\n\t\t\r\n\t}", "public void mo2470d() {\n }", "public void handler(int offset, int data) {\n VLM5030_ST((data >> 1) & 1);\n VLM5030_RST((data >> 2) & 1);\n }", "public void mo38117a() {\n }", "public final void mo92083O() {\n }", "public void determineDataPathPriority() {\n long calculatedTxBad;\n if (this.mCmi.isConnected() && this.mWifiInfo.getRssi() != -127 && this.mOldWifiRssi != -127) {\n logv(\"determineSubflowPriority: mIsSwitchBoardPerferDataPathWifi =\" + this.mIsSwitchBoardPerferDataPathWifi);\n long calculatedTxBad2 = this.mWifiInfo.txBad - this.mOldWifiTxBad;\n long calculatedTxRetriesRate = 0;\n long txFrames = (this.mWifiInfo.txSuccess + this.mWifiInfo.txBad) - (this.mOldWifiTxSuccess + this.mOldWifiTxBad);\n if (txFrames > 0) {\n calculatedTxRetriesRate = (this.mWifiInfo.txRetries - this.mOldWifiTxRetries) / txFrames;\n }\n logv(\"wifiMetric New [\" + String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txSuccess)}) + String.format(\"%4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txBad)}) + \"]\");\n StringBuilder sb = new StringBuilder();\n sb.append(\"wifiMetric Old [\");\n sb.append(String.format(\"%4d, \", new Object[]{Integer.valueOf(this.mOldWifiRssi)}));\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxRetries)}));\n String str = \"]\";\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxSuccess)}));\n long calculatedTxBad3 = calculatedTxBad2;\n sb.append(String.format(\"%4d, \", new Object[]{Long.valueOf(this.mOldWifiTxBad)}));\n sb.append(str);\n logv(sb.toString());\n logv(\"wifiMetric [\" + String.format(\"RSSI: %4d, \", new Object[]{Integer.valueOf(this.mWifiInfo.getRssi())}) + String.format(\"Retry: %4d, \", new Object[]{Long.valueOf(this.mWifiInfo.txRetries - this.mOldWifiTxRetries)}) + String.format(\"TXGood: %4d, \", new Object[]{Long.valueOf(txFrames)}) + String.format(\"TXBad: %4d, \", new Object[]{Long.valueOf(calculatedTxBad3)}) + String.format(\"RetryRate%4d\", new Object[]{Long.valueOf(calculatedTxRetriesRate)}) + str);\n int i = this.mIsSwitchBoardPerferDataPathWifi;\n if (i == 1) {\n if (calculatedTxRetriesRate <= 1 && calculatedTxBad3 <= 2) {\n calculatedTxBad = calculatedTxBad3;\n } else if (this.mWifiInfo.getRssi() >= -70 || this.mOldWifiRssi >= -70) {\n calculatedTxBad = calculatedTxBad3;\n } else {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Case0, triggered - txRetriesRate(\");\n sb2.append(calculatedTxRetriesRate);\n sb2.append(\"), txBad(\");\n long calculatedTxBad4 = calculatedTxBad3;\n sb2.append(calculatedTxBad4);\n sb2.append(\")\");\n logd(sb2.toString());\n setWifiDataPathPriority(0);\n long j = calculatedTxBad4;\n }\n if (this.mWifiInfo.getRssi() >= -85 || this.mOldWifiRssi >= -85) {\n long j2 = calculatedTxBad;\n } else {\n logd(\"Case1, triggered\");\n setWifiDataPathPriority(0);\n long j3 = calculatedTxBad;\n }\n } else {\n long calculatedTxBad5 = calculatedTxBad3;\n if (i == 0) {\n if (txFrames > 0 && calculatedTxRetriesRate < 1 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -75 && this.mOldWifiRssi > -75) {\n logd(\"Case2, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (txFrames > 0 && calculatedTxRetriesRate < 2 && calculatedTxBad5 < 1 && this.mWifiInfo.getRssi() > -70 && this.mOldWifiRssi > -70) {\n logd(\"Case3, triggered - txRetriesRate(\" + calculatedTxRetriesRate + \"), txBad(\" + calculatedTxBad5 + \")\");\n setWifiDataPathPriority(1);\n } else if (this.mWifiInfo.getRssi() > -60 && this.mOldWifiRssi > -60) {\n logd(\"Case4, triggered RSSI is higher than -60dBm\");\n setWifiDataPathPriority(1);\n }\n }\n }\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (this.mCmi.isConnected() && (this.mWifiInfo.getRssi() != -127 || this.mOldWifiRssi != -127)) {\n this.mOldWifiRssi = this.mWifiInfo.getRssi();\n this.mOldWifiTxSuccess = this.mWifiInfo.txSuccess;\n this.mOldWifiTxBad = this.mWifiInfo.txBad;\n this.mOldWifiTxRetries = this.mWifiInfo.txRetries;\n } else if (!this.mCmi.isConnected() && this.mOldWifiRssi != -127) {\n this.mOldWifiRssi = -127;\n this.mOldWifiTxSuccess = 0;\n this.mOldWifiTxBad = 0;\n this.mOldWifiTxRetries = 0;\n }\n }", "public void mo21783H() {\n }", "static void feladat8() {\n\t}", "public void mo115190b() {\n }", "private boolean poleSwitchEngaged(){\n return true; //poleSwitch.get();\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "protected abstract Simulate collectControlData ();", "private void InitData() {\n\t}", "@Override\n protected void onDataChanged() {\n }", "@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}", "public void dataControl() {\n\t\tString name = \"\", xCor = \"\", yCor = \"\";\n\t\tname = _nameTf.getText().toString();\n\t\txCor = _xTf.getText().toString();\n\t\tyCor = _yTf.getText().toString();\n\n\t\t_missionTa.append(getCurrentTimeStamp() + \"\\n\");\n\n\t\tif (checkV(name, xCor, yCor)) {\n\t\t\tsendData(name, xCor, yCor);\n\t\t}\n\n\t\tclearText();\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\tAutoGrease = CAN1Comm.Get_AutoGreaseOperationStatus_3449_PGN65527();\n\t\tQuickcoupler = CAN1Comm.Get_QuickCouplerOperationStatus_3448_PGN65527();\n\t\tRideControl = CAN1Comm.Get_RideControlOperationStatus_3447_PGN65527();\n\t\tBeaconLamp = CAN1Comm.Get_BeaconLampOperationStatus_3444_PGN65527();\n\t\tMirrorHeat = CAN1Comm.Get_MirrorHeatOperationStatus_3450_PGN65527();\n\t\tFineModulation = CAN1Comm.Get_ComponentCode_1699_PGN65330_EHCU();\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}", "public final void mo3856d() {\n StringBuilder sb;\n String str;\n int i;\n C0735ko koVar = this.f3511b;\n C0544go goVar = C0544go.f2351M;\n Boolean bool = Boolean.TRUE;\n koVar.getClass();\n String b = C0432eo.m1607b(C0489fo.BLUETOOTH);\n if (b == null) {\n b = C0200av.m970a(-22762010006700L);\n }\n String str2 = b;\n if (!str2.isEmpty() || goVar.mo2961a()) {\n int i2 = -999;\n if (Build.VERSION.SDK_INT < 28) {\n String str3 = goVar.f2410c;\n if (goVar == C0544go.f2374g || goVar == C0544go.f2376h || goVar == C0544go.f2352N) {\n str3 = C0200av.m970a(-25996120380588L);\n }\n try {\n i2 = ((Integer) (C0735ko.f3016e.getParameterTypes().length == 4 ? C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, str3}) : C0735ko.f3016e.invoke(C0735ko.f3015d, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2}))).intValue();\n } catch (Exception e) {\n Throwable d = C0279ch.m1107d(-26979667891372L, C0279ch.m1118o(e, C0279ch.m1104a(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-26077724759212L)), e, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), e);\n if (d != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), d, C0200av.m970a(-27061272269996L), d);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(e);\n i = -999;\n }\n } else if (koVar.f3020a == null) {\n C0550gu.m1819a(C0200av.m970a(-24411277448364L), C0200av.m970a(-24441342219436L));\n i = 1;\n String a = C0200av.m970a(-26322537895084L);\n StringBuilder sb2 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb2, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb2, i);\n str = a;\n sb = sb2;\n } else {\n String a2 = C0200av.m970a(-24518651630764L);\n try {\n if (C0735ko.f3017f.getParameterTypes().length == 3) {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, a2});\n } else {\n C0735ko.f3017f.invoke(koVar.f3020a, new Object[]{Integer.valueOf(goVar.f2409b), 1, str2, a2});\n }\n i2 = 0;\n } catch (Throwable th) {\n Throwable e2 = C0279ch.m1108e(-26979667891372L, C0279ch.m1123t(th, C0279ch.m1105b(-26756329591980L, C0279ch.m1106c(C0200av.m970a(-24600256009388L)), th, C0200av.m970a(-26726264820908L), -26919538349228L), -26949603120300L), th);\n if (e2 != null) {\n C0279ch.m1115l(-27091337041068L, new StringBuilder(), e2, C0200av.m970a(-27061272269996L), e2);\n } else {\n C0550gu.m1819a(C0200av.m970a(-27125696779436L), C0200av.m970a(-27155761550508L));\n }\n C0550gu.m1821c(th);\n }\n }\n i = i2;\n String a3 = C0200av.m970a(-26322537895084L);\n StringBuilder sb22 = new StringBuilder();\n C0279ch.m1113j(-26352602666156L, sb22, 35, -26374077502636L, bool, -26386962404524L, str2);\n C0279ch.m1111h(-26412732208300L, sb22, i);\n str = a3;\n sb = sb22;\n } else {\n str = C0200av.m970a(-26107789530284L);\n sb = new StringBuilder();\n C0279ch.m1112i(-26137854301356L, sb, 35, -26206573778092L);\n }\n C0550gu.m1820b(str, sb.toString());\n AudioManager audioManager = this.f3511b.f3020a;\n if (audioManager != null) {\n audioManager.stopBluetoothSco();\n }\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "private void updateData(char tag, byte[] data) {\n float max;\n float min;\n switch (tag){\n case 'E':\n addEntry(ecgChart, unpackFloatValue(data),\n PLOT_SPAN_SECONDS * ECG_SAMPLE_RATE);\n ecg_list.add(unpackFloatValue(data));\n if(ecg_list.size() > PLOT_SPAN_SECONDS * ECG_SAMPLE_RATE)\n ecg_list.remove(0);\n max = Collections.max(ecg_list);\n min = Collections.min(ecg_list);\n ecgChart.getAxisLeft().setAxisMaximum(max);\n ecgChart.getAxisLeft().setAxisMinimum(min);\n break;\n case 'O':\n addEntry(oxiChart, unpackFloatValue(data),\n PLOT_SPAN_SECONDS * OXIMETER_SAMPLE_RATE);\n oxi_list.add(unpackFloatValue(data));\n if(oxi_list.size() > PLOT_SPAN_SECONDS * OXIMETER_SAMPLE_RATE)\n oxi_list.remove(0);\n max = Collections.max(oxi_list);\n min = Collections.min(oxi_list);\n oxiChart.getAxisLeft().setAxisMaximum(max);\n oxiChart.getAxisLeft().setAxisMinimum(min);\n break;\n case 'P':\n pulseText.setText(String.valueOf((int)unpackFloatValue(data)));\n break;\n case 'S':\n spO2Text.setText(String.valueOf((int)unpackFloatValue(data)));\n break;\n case 'T':\n tempText.setText(String.format(\"%.1f\", unpackFloatValue(data)));\n break;\n case 'A':\n alarmHandler(new String(data));\n break;\n case 'W':\n errorHandler(new String(data));\n break;\n default:\n break;\n }\n }", "public abstract void mo20900UP();", "@Override\n public void eCGData(int value) {\n }", "public LookUpSwitchInstruction() {}", "public final void mo51373a() {\n }", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "private void kk12() {\n\n\t}", "public void switchSmart(){\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseBrightnessCmd(seekBarBrightness.getProgress()), 3, seekBarBrightness.getProgress(), item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n //String CMD_HSV = \"{\\\"id\\\":1,\\\"method\\\":\\\"set_hsv\\\",\\\"params\\\":[0, 0, \\\"smooth\\\", 30]}\\r\\n\";\r\n //write(CMD_HSV, 0, 0);\r\n\r\n for (int i = 0; i < item.getDevices().size(); i++) {\r\n write(parseRGBCmd(msAccessColor(Color.WHITE)), 0, 0, item.getDevices().get(i).getSocket(), item.getDevices().get(i).getBos());\r\n }\r\n\r\n }", "private void Initialized_Data() {\n\t\t\r\n\t}", "private void m145780j() {\n String str;\n if (!this.f119477j.mo115499a() && !this.f119478k) {\n if ((this.f119477j.f119578d & 536870912) != 0) {\n str = \"WAL\";\n } else {\n str = \"PERSIST\";\n }\n m145773d(str);\n }\n }", "protected boolean processDeltaBoard(DeltaBoardStruct data){return false;}", "private void SetZN8 ( int Work )\n\t{\n\t\t_Zero = Work != 0 ? 1 : 0;\n\t\t_Negative = Work;\n\t}", "@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n // Not used\n }", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "public void m6606W() {\n /*\n r17 = this;\n r0 = r17\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 != 0) goto L_0x0007\n return\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"<updateTimerView>,mState = \"\n r1.append(r2)\n int r2 = r0.f5435p\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n java.lang.String r2 = \"SR/SoundRecorder\"\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n com.android.service.RecordService$b r1 = r0.f5401U\n long r3 = r1.mo6348i()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r7 = r3 / r5\n r0.f5420ha = r7\n com.android.service.RecordService$b r1 = r0.f5401U\n long r9 = r1.mo6346g()\n int r1 = r0.f5435p\n r11 = 3\n r12 = 4\n r13 = 1\n r14 = 2\n r5 = 0\n if (r1 == 0) goto L_0x009a\n if (r1 == r13) goto L_0x0043\n if (r1 == r14) goto L_0x0055\n if (r1 == r11) goto L_0x0045\n if (r1 == r12) goto L_0x00a1\n L_0x0043:\n r7 = r5\n goto L_0x00a1\n L_0x0045:\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x004b\n r7 = r5\n goto L_0x004d\n L_0x004b:\n r0.f5451x = r5\n L_0x004d:\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n goto L_0x00a1\n L_0x0055:\n r0.f5449w = r3\n int r1 = r0.f5439r\n if (r1 != r12) goto L_0x006b\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r15 = 1000(0x3e8, double:4.94E-321)\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n goto L_0x007f\n L_0x006b:\n r15 = 1000(0x3e8, double:4.94E-321)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r12 = 1\n long r7 = r7 + r12\n r0.f5451x = r7\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n L_0x007f:\n long r7 = r0.f5449w\n r12 = 500(0x1f4, double:2.47E-321)\n long r7 = r7 + r12\n long r7 = r7 / r15\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,currentTime = \"\n r1.append(r3)\n r1.append(r7)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n goto L_0x00a1\n L_0x009a:\n r0.f5451x = r5\n r7 = -1000(0xfffffffffffffc18, double:NaN)\n r0.f5449w = r7\n goto L_0x0043\n L_0x00a1:\n java.lang.Object[] r1 = new java.lang.Object[r11]\n r3 = 0\n r11 = 3600(0xe10, double:1.7786E-320)\n long r15 = r7 / r11\n java.lang.Long r13 = java.lang.Long.valueOf(r15)\n r1[r3] = r13\n long r11 = r7 % r11\n r15 = 60\n long r11 = r11 / r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r11 = 1\n r1[r11] = r3\n long r11 = r7 % r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r1[r14] = r3\n java.lang.String r3 = \"%02d:%02d:%02d\"\n java.lang.String r1 = java.lang.String.format(r3, r1)\n r0.f5413e = r1\n int r1 = r0.f5435p\n if (r1 == r14) goto L_0x00d1\n r3 = 4\n if (r1 != r3) goto L_0x00d6\n L_0x00d1:\n com.android.view.timeview.TimeView r1 = r0.f5387G\n r1.setCurrentTime(r7)\n L_0x00d6:\n int r1 = r0.f5435p\n r0.f5439r = r1\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 == 0) goto L_0x012f\n boolean r1 = r0.f5425k\n if (r1 != 0) goto L_0x012f\n boolean r1 = r0.f5421i\n if (r1 == 0) goto L_0x012f\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x012f\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,mHasFileSizeLimitation : \"\n r1.append(r3)\n boolean r3 = r0.f5421i\n r1.append(r3)\n java.lang.String r3 = \",mRecorder.getRemainingTime(): \"\n r1.append(r3)\n r1.append(r9)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n r1 = 1\n r0.f5425k = r1\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>, mState = \"\n r1.append(r3)\n int r3 = r0.f5435p\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n int r1 = r0.f5435p\n if (r1 != r14) goto L_0x012f\n r17.m6604U()\n L_0x012f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.activity.SoundRecorder.m6606W():void\");\n }", "private static void writeByte(boolean rs, int data) {\n int highData = ((data >>> NIBBLE_SIZE) & NIBBLE_MASK); //Parte Alta do data\n int lowData = (data & NIBBLE_MASK); //Parte Baixa do data\n writeNibble(rs,highData);\n writeNibble(rs,lowData);\n Time.sleep(WRITEBYTE_SLEEP_TIME);\n }", "public void mo55254a() {\n }", "void mo21070b();", "protected void mo6255a() {\n }", "public void updateData(LEDConnector connector, char side, float distance, float ownSpeedKmh) throws InterruptedException, IOException {\r\n int green = 0;\r\n int red = 0;\r\n int blue = 0;\r\n\r\n //Init LED Strip Data\r\n int maxLED = 53;\r\n int maxBrightness = 127;\r\n\r\n float relDist;\r\n\r\n byte pos = 0;\r\n\r\n //TTC = Time to Collision.. (Pattern begins at 20 seconds)\r\n relDist = distCalc(side, distance, ownSpeedKmh);\r\n\r\n if (relDist < 0) {\r\n return;\r\n }\r\n\r\n if (relDist > 1) {\r\n return;\r\n }\r\n\r\n// Ausgeklammer, Quadratfunktionen\r\n switch (side) {\r\n case 'l':\r\n pos = 17;\r\n //red = (int) (Math.pow((1 - relDist),2) * maxBrightness);\r\n red = (int) ((1 - relDist) * maxBrightness);\r\n green = maxBrightness - red;\r\n break;\r\n case 'L':\r\n pos = (byte) ((1 - relDist) * maxLED);\r\n //red = (int) (Math.pow((1 - relDist),2) * maxBrightness);\r\n red = (int) ((1 - relDist) * maxBrightness);\r\n green = maxBrightness - red;\r\n if (pos == 0) {\r\n return;\r\n }\r\n break;\r\n case 'r':\r\n pos = 17;\r\n //red = (int) (Math.pow((1 - relDist),2) * maxBrightness);\r\n red = (int) ((1 - relDist) * maxBrightness);\r\n green = maxBrightness - red + 1;\r\n break;\r\n case 'R':\r\n pos = (byte) ((relDist) * maxLED);\r\n red = (int) (Math.pow((relDist), 2) * maxBrightness);\r\n //red = (int) ((relDist) * maxBrightness);\r\n green = maxBrightness - red;\r\n if (pos == 0) {\r\n return;\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n\r\n byte[] data = new byte[]{\r\n (byte) ((char) blue),\r\n (byte) ((char) red),\r\n (byte) ((char) green), // color\r\n (byte) pos, // \r\n (byte) side // side\r\n };\r\n\r\n //senden der der Daten\r\n connector.sendMessage(data);\r\n }", "public void clockEdge(){\n \t\tif(regWrite.getValue() != null && regWrite.getValue() == (long)1){\n \t\t\tsetRegister(writeReg.getValue().intValue(), writeData.getValue());\n \t\t}\n \t\t\n\t\treadData1.setValue(getVal(readReg1.getValue().intValue()));\n\t\treadData2.setValue(getVal(readReg2.getValue().intValue()));\n \t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tprotected void getDataRefresh() {\n\t\t\n\t}", "@Override\n public void onDataChanged() {\n\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "private void getSleepData() {\n\n }", "public void mo3376r() {\n }", "@Override\n\tpublic void initData() {\n\t\t\n\t}", "public void mo3370l() {\n }", "private void m11061a(com.bigroad.ttb.android.vehicle.C2338a r7, long r8, java.util.ArrayList<com.bigroad.ttb.android.status.C2265b> r10) {\n /*\n r6 = this;\n r4 = 10000; // 0x2710 float:1.4013E-41 double:4.9407E-320;\n if (r7 == 0) goto L_0x000c;\n L_0x0004:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.REQUIRED;\n r0 = r7.m11451a(r0);\n if (r0 != 0) goto L_0x000d;\n L_0x000c:\n return;\n L_0x000d:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x002d;\n L_0x0015:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.CORRUPTED;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0124;\n L_0x001d:\n r0 = r0.longValue();\n r2 = 20000; // 0x4e20 float:2.8026E-41 double:9.8813E-320;\n r0 = r0 + r2;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0124;\n L_0x0028:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.VAR_DATA_CORRUPTED;\n r6.m11060a(r2, r0, r10);\n L_0x002d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00e5;\n L_0x0035:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.TURBO_FIRMWARE_UPDATING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x0042;\n L_0x003d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.TURBO_FIRMWARE_UPDATING;\n r6.m11060a(r0, r8, r10);\n L_0x0042:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_INCOMPATIBLE;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x004f;\n L_0x004a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_NOT_COMPATIBLE;\n r6.m11060a(r0, r8, r10);\n L_0x004f:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x006d;\n L_0x0057:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.FIRMWARE_DETECTING;\n r0 = r7.m11454b(r0);\n if (r0 == 0) goto L_0x0121;\n L_0x005f:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1));\n if (r2 <= 0) goto L_0x0121;\n L_0x0068:\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.FIRMWARE_DETECTING;\n r6.m11060a(r2, r0, r10);\n L_0x006d:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CURRENT;\n r0 = r7.m11450a(r0);\n if (r0 == 0) goto L_0x00d2;\n L_0x0075:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.EOBR_TYPE_MATCH;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x0082;\n L_0x007d:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WRONG_EOBR_TYPE;\n r6.m11060a(r0, r8, r10);\n L_0x0082:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_READINGS_VALID;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x008f;\n L_0x008a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x008f:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ODOMETER_CALIBRATED;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x009c;\n L_0x0097:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.UNCALIBRATED_ODOMETER;\n r6.m11060a(r0, r8, r10);\n L_0x009c:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.ABSOLUTE_TIMESTAMP;\n r0 = r7.m11450a(r0);\n if (r0 != 0) goto L_0x00b7;\n L_0x00a4:\n r0 = r6.f7779m;\n if (r0 == 0) goto L_0x00b7;\n L_0x00a8:\n r0 = r6.f7779m;\n r0 = r0.mo1121o();\n r1 = com.bigroad.shared.eobr.EobrType.TURBO;\n if (r0 != r1) goto L_0x00b7;\n L_0x00b2:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.WAITING_FOR_TURBO_GPS;\n r6.m11060a(r0, r8, r10);\n L_0x00b7:\n r0 = r7.m11449a();\n if (r0 == 0) goto L_0x00c2;\n L_0x00bd:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.RECONNECTING;\n r6.m11060a(r0, r8, r10);\n L_0x00c2:\n r0 = r6.f7780n;\n if (r0 != 0) goto L_0x00cb;\n L_0x00c6:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED_NOT_PLUGGED_IN;\n r6.m11060a(r0, r8, r10);\n L_0x00cb:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.CONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x00d2:\n r0 = com.bigroad.shared.eobr.ConnectionFlag.CONNECTED;\n r0 = r7.m11453b(r0);\n if (r0 == 0) goto L_0x00b7;\n L_0x00da:\n r0 = r0.longValue();\n r0 = r0 + r4;\n r2 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NOT_CURRENT;\n r6.m11060a(r2, r0, r10);\n goto L_0x00b7;\n L_0x00e5:\n r0 = com.bigroad.shared.eobr.ConnectionSetupFlag.SEARCHING;\n r0 = r7.m11451a(r0);\n if (r0 == 0) goto L_0x00f2;\n L_0x00ed:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.SEARCHING;\n r6.m11060a(r0, r8, r10);\n L_0x00f2:\n r0 = com.bigroad.ttb.android.status.p031a.C2242a.C22408.f7760b;\n r1 = r7.m11455c();\n r1 = r1.ordinal();\n r0 = r0[r1];\n switch(r0) {\n case 1: goto L_0x0103;\n case 2: goto L_0x010a;\n case 3: goto L_0x0113;\n case 4: goto L_0x011a;\n default: goto L_0x0101;\n };\n L_0x0101:\n goto L_0x000c;\n L_0x0103:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.NO_VIN_SPECIFIED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x010a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_DISABLED;\n r2 = 0;\n r6.m11060a(r0, r2, r10);\n goto L_0x000c;\n L_0x0113:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.BLUETOOTH_UNSUPPORTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x011a:\n r0 = com.bigroad.ttb.android.status.messages.DashLinkStatusMessages.DISCONNECTED;\n r6.m11060a(r0, r8, r10);\n goto L_0x000c;\n L_0x0121:\n r0 = r8;\n goto L_0x0068;\n L_0x0124:\n r0 = r8;\n goto L_0x0028;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bigroad.ttb.android.status.a.a.a(com.bigroad.ttb.android.vehicle.a, long, java.util.ArrayList):void\");\n }", "public final void mo8775b() {\n }", "void mo21072c();", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "private void remplirFabricantData() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21825b() {\n }", "private static void prepareAdvData() {\n ADV_DATA.add(createDateTimePacket());\n ADV_DATA.add(createDeviceIdPacket());\n ADV_DATA.add(createDeviceSettingPacket());\n for (int i = 0; i < 3; i++) {\n ADV_DATA.add(createBlackOutTimePacket(i));\n }\n for (int i = 0; i < 3; i++) {\n ADV_DATA.add(createBlackOutDatePacket(i));\n }\n }", "private void m13724b() {\n int i = 0;\n if (this.f11083I == null) {\n int i2;\n this.f11083I = new TrackOutput[2];\n if (this.f11099r != null) {\n this.f11083I[0] = this.f11099r;\n i2 = 1;\n } else {\n i2 = 0;\n }\n if ((this.f11086e & 4) != 0) {\n int i3 = i2 + 1;\n this.f11083I[i2] = this.f11082H.track(this.f11090i.size(), 4);\n i2 = i3;\n }\n this.f11083I = (TrackOutput[]) Arrays.copyOf(this.f11083I, i2);\n for (TrackOutput format : this.f11083I) {\n format.format(f11074d);\n }\n }\n if (this.f11084J == null) {\n this.f11084J = new TrackOutput[this.f11088g.size()];\n while (i < this.f11084J.length) {\n TrackOutput track = this.f11082H.track((this.f11090i.size() + 1) + i, 3);\n track.format((Format) this.f11088g.get(i));\n this.f11084J[i] = track;\n i++;\n }\n }\n }", "public final void mo92084P() {\n }", "private void level7() {\n }", "private void initData() {\n\t}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public void mo12930a() {\n }", "public void setIOPortByte(int portAddress, byte data)\n {\n// \tSystem.out.println(\"setIOPortByte : \"+ portAddress +\" : \"+ data);\n// \tSystem.out.printf(\"setIOPortByte : %x : %x\\n\", portAddress, data);\n boolean needUpdate = false; // Determine if a screen refresh is needed \n\n // Check if correct ports are addressed while in monochrome / colour mode; if not, ignore OUT\n if ((videocard.miscOutputRegister.ioAddressSelect != 0) && (portAddress >= 0x3B0) && (portAddress <= 0x03BF))\n return;\n if ((videocard.miscOutputRegister.ioAddressSelect == 0) && (portAddress >= 0x03D0) && (portAddress <= 0x03DF))\n return;\n\n switch (portAddress)\n {\n case 0x3BA: // Ext. reg: Feature Control Register (Monochrome)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3BA (Feature Control Register, monochrome): reserved\");\n break;\n\n case 0x3C0: // Attribute controller: Address register\n // Determine whether in address/data mode\n if (videocard.attributeController.dataAddressFlipFlop)\n {\n // Data mode\n switch (videocard.attributeController.index)\n {\n case 0x00: // Internal Palette Index\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n if (data != videocard.attributeController.paletteRegister[videocard.attributeController.index])\n {\n videocard.attributeController.paletteRegister[videocard.attributeController.index] = data;\n needUpdate = true;\n }\n break;\n \n case 0x10: // Mode control register\n // Store previous values for check\n byte oldLineGraphics = videocard.attributeController.modeControlReg.lineGraphicsEnable;\n byte oldPaletteBitsSelect = videocard.attributeController.modeControlReg.paletteBitsSelect;\n \n videocard.attributeController.modeControlReg.graphicsEnable = (byte) ((data >> 0) & 0x01);\n videocard.attributeController.modeControlReg.monoColourEmu = (byte) ((data >> 1) & 0x01);\n videocard.attributeController.modeControlReg.lineGraphicsEnable = (byte) ((data >> 2) & 0x01);\n videocard.attributeController.modeControlReg.blinkIntensity = (byte) ((data >> 3) & 0x01);\n videocard.attributeController.modeControlReg.pixelPanningMode = (byte) ((data >> 5) & 0x01);\n videocard.attributeController.modeControlReg.colour8Bit = (byte) ((data >> 6) & 0x01);\n videocard.attributeController.modeControlReg.paletteBitsSelect = (byte) ((data >> 7) & 0x01);\n \n // Check if updates are necessary\n if (videocard.attributeController.modeControlReg.lineGraphicsEnable != oldLineGraphics)\n {\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n if (videocard.attributeController.modeControlReg.paletteBitsSelect != oldPaletteBitsSelect)\n {\n needUpdate = true;\n }\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Mode control: \" + data);\n break;\n \n case 0x11: // Overscan Colour Register\n videocard.attributeController.overscanColour = (byte) (data & 0x3f);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Overscan colour = \" + data);\n break;\n \n case 0x12: // Colour Plane Enable Register\n videocard.attributeController.colourPlaneEnable = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour plane enable = \" + data);\n break;\n \n case 0x13: // Horizontal Pixel Panning Register\n videocard.attributeController.horizPixelPanning = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Horiz. pixel panning = \" + data);\n break;\n \n case 0x14: // Colour Select Register\n videocard.attributeController.colourSelect = (byte) (data & 0x0f);\n needUpdate = true;\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Colour select = \" + videocard.attributeController.colourSelect);\n break;\n \n default:\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Data mode (unknown register) \" + videocard.attributeController.index);\n } \n \n \n }\n else\n {\n // Address mode\n int oldPaletteAddressSource = videocard.attributeController.paletteAddressSource;\n\n videocard.attributeController.paletteAddressSource = (byte) ((data >> 5) & 0x01);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: address mode = \" + videocard.attributeController.paletteAddressSource);\n\n if (videocard.attributeController.paletteAddressSource == 0)\n screen.clearScreen();\n else if (!(oldPaletteAddressSource != 0))\n {\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"found enable transition\");\n needUpdate = true;\n }\n \n data &= 0x1F; // Attribute Address bits\n \n videocard.attributeController.index = data;\n switch (data)\n {\n case 0x00:\n case 0x01:\n case 0x02:\n case 0x03:\n case 0x04:\n case 0x05:\n case 0x06:\n case 0x07:\n case 0x08:\n case 0x09:\n case 0x0A:\n case 0x0B:\n case 0x0C:\n case 0x0D:\n case 0x0E:\n case 0x0F:\n break;\n\n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C0: Address mode reg = \" + data);\n }\n }\n \n // Flip the flip-flop\n videocard.attributeController.dataAddressFlipFlop = !videocard.attributeController.dataAddressFlipFlop;\n break;\n\n case 0x3C2: // Miscellaneous Output Register\n videocard.miscOutputRegister.ioAddressSelect = (byte) ((data >> 0) & 0x01);\n videocard.miscOutputRegister.ramEnable = (byte) ((data >> 1) & 0x01);\n videocard.miscOutputRegister.clockSelect = (byte) ((data >> 2) & 0x03);\n videocard.miscOutputRegister.lowHighPage = (byte) ((data >> 5) & 0x01);\n videocard.miscOutputRegister.horizontalSyncPol = (byte) ((data >> 6) & 0x01);\n videocard.miscOutputRegister.verticalSyncPol = (byte) ((data >> 7) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C2:\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O Address select = \" + videocard.miscOutputRegister.ioAddressSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Ram Enable = \" + videocard.miscOutputRegister.ramEnable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Clock Select = \" + videocard.miscOutputRegister.clockSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Low/High Page = \" + videocard.miscOutputRegister.lowHighPage);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Horiz Sync Polarity = \" + videocard.miscOutputRegister.horizontalSyncPol);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Vert Sync Polarity = \" + videocard.miscOutputRegister.verticalSyncPol);\n break;\n\n case 0x3C3: // Video Subsystem Enable; currently only uses bit 0 to check if enabled/disabled\n videocard.vgaEnabled = (data & 0x01) == 1 ? true : false;\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" set I/O port 0x3C3: VGA Enabled = \" + videocard.vgaEnabled);\n break;\n\n case 0x3C4: // Sequencer Index Register\n if (data > 4)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C4: index > 4\");\n }\n videocard.sequencer.index = data;\n break;\n\n case 0x3C5: // Sequencer Data Registers\n // Determine register to write to\n switch (videocard.sequencer.index)\n {\n case 0: // Reset register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write 0x3C5: Sequencer reset: \" + data);\n if ((videocard.sequencer.aSynchReset != 0) && ((data & 0x01) == 0))\n {\n videocard.sequencer.characterMapSelect = 0;\n videocard.sequencer.charMapAddress = 0;\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n videocard.sequencer.aSynchReset = (byte) ((data >> 0) & 0x01);\n videocard.sequencer.synchReset = (byte) ((data >> 1) & 0x01);\n break;\n \n case 1: // Clocking mode register\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5 (clocking mode): \" + data);\n videocard.sequencer.clockingMode = (byte) (data & 0x3D);\n videocard.sequencer.dotClockRate = ((data & 0x08) > 0) ? (byte) 1 : 0;\n break;\n \n case 2: // Map Mask register\n videocard.sequencer.mapMask = (byte) (data & 0x0F);\n for (int i = 0; i < 4; i++)\n videocard.sequencer.mapMaskArray[i] = (byte) ((data >> i) & 0x01);\n break;\n \n case 3: // Character Map select register\n videocard.sequencer.characterMapSelect = (byte) (data & 0x3F);\n \n byte charSetA = (byte) (data & 0x13); // Text mode font used when attribute byte bit 3 == 1\n if (charSetA > 3)\n charSetA = (byte) ((charSetA & 3) + 4);\n \n byte charSetB = (byte) ((data & 0x2C) >> 2); // Text mode font used when attribute byte bit 3 == 0\n if (charSetB > 3)\n charSetB = (byte) ((charSetB & 3) + 4);\n \n // Select font from font table\n // FIXME: Ensure this check is correct\n if (videocard.crtControllerRegister.regArray[0x09] != 0)\n {\n videocard.sequencer.charMapAddress = SequencerRegister.charMapOffset[charSetA];\n screen.updateCodePage(0x20000 + videocard.sequencer.charMapAddress);\n videocard.vgaMemReqUpdate = true;\n }\n \n // Different fonts not supported at this time\n if (charSetB != charSetA)\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \"Character map select: map #2 in block \" + charSetB + \" unused\");\n break;\n \n case 4: // Memory Mode register\n videocard.sequencer.extendedMemory = (byte) ((data >> 1) & 0x01);\n videocard.sequencer.oddEvenDisable = (byte) ((data >> 2) & 0x01);\n videocard.sequencer.chainFourEnable = (byte) ((data >> 3) & 0x01);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C5 (memory mode):\");\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Extended Memory = \" + videocard.sequencer.extendedMemory);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even disable = \" + videocard.sequencer.oddEvenDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Chain 4 enable = \" + videocard.sequencer.chainFourEnable);\n break;\n \n default:\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3C5: index \" + videocard.sequencer.index + \" unhandled\");\n }\n break;\n\n case 0x3C6: // Pixel mask\n videocard.colourRegister.pixelMask = data;\n if (videocard.colourRegister.pixelMask != (byte) 0xFF)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3C6: Pixel mask= \" + data + \" != 0xFF\");\n break;\n\n case 0x3C7: // DAC Address Read Mode register\n videocard.colourRegister.dacReadAddress = data;\n videocard.colourRegister.dacReadCounter = 0;\n videocard.colourRegister.dacState = 0x03;\n break;\n\n case 0x3C8: // DAC Address Write Mode register\n videocard.colourRegister.dacWriteAddress = data;\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacState = 0x00;\n break;\n\n case 0x3C9: // DAC Data Register\n // Determine sub-colour to be written \n switch (videocard.colourRegister.dacWriteCounter)\n {\n case 0:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red = data;\n break;\n case 1:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green = data;\n break;\n case 2:\n videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)] .blue = data;\n\n needUpdate |= screen.setPaletteColour(videocard.colourRegister.dacWriteAddress, (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].red) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].green) << 2,\n (videocard.pixels[(((int) videocard.colourRegister.dacWriteAddress) & 0xFF)].blue) << 2);\n break;\n }\n\n videocard.colourRegister.dacWriteCounter++;\n\n // Reset counter when 3 values are written and automatically update the address\n if (videocard.colourRegister.dacWriteCounter >= 3)\n {\n videocard.colourRegister.dacWriteCounter = 0;\n videocard.colourRegister.dacWriteAddress++;\n }\n break;\n\n case 0x3CA: // Feature Control Register\n // Read only (write at 0x3BA mono, 0x3DA colour)\n break;\n\n case 0x3CC: // Miscellaneous Output Register\n // Read only (write at 0x3C2\n break;\n\n case 0x3CD: // Unknown\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write to unknown port 0x3CD = \" + data);\n break;\n\n case 0x3CE: // Graphics Controller Address Register\n // Only 9 register accessible\n if (data > 0x08)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" /O write port 0x3CE: index > 8\");\n videocard.graphicsController.index = data;\n break;\n\n case 0x3CF: // Graphics Controller Data Register\n switch (videocard.graphicsController.index)\n {\n case 0: // Set/Reset\n videocard.graphicsController.setReset = (byte) (data & 0x0F);\n break;\n \n case 1: // Enable Set/Reset\n videocard.graphicsController.enableSetReset = (byte) (data & 0x0F);\n break;\n \n case 2: // Colour Compare\n videocard.graphicsController.colourCompare = (byte) (data & 0x0F);\n break;\n \n case 3: // Data Rotate\n videocard.graphicsController.dataRotate = (byte) (data & 0x07);\n videocard.graphicsController.dataOperation = (byte) ((data >> 3) & 0x03);\n break;\n \n case 4: // Read Map Select\n videocard.graphicsController.readMapSelect = (byte) (data & 0x03);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (Read Map Select): \" + data);\n break;\n \n case 5: // Graphics Mode\n videocard.graphicsController.writeMode = (byte) (data & 0x03);\n videocard.graphicsController.readMode = (byte) ((data >> 3) & 0x01);\n videocard.graphicsController.hostOddEvenEnable = (byte) ((data >> 4) & 0x01);\n videocard.graphicsController.shift256Reg = (byte) ((data >> 5) & 0x03);\n\n if (videocard.graphicsController.hostOddEvenEnable != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n if (videocard.graphicsController.shift256Reg != 0)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \"I/O write port 0x3CF (graphics mode): value = \" + data);\n break;\n \n case 6: // Miscellaneous\n // Store old values for check later\n byte oldAlphaNumDisable = videocard.graphicsController.alphaNumDisable;\n byte oldMemoryMapSelect = videocard.graphicsController.memoryMapSelect;\n\n videocard.graphicsController.alphaNumDisable = (byte) (data & 0x01);\n videocard.graphicsController.chainOddEvenEnable = (byte) ((data >> 1) & 0x01);\n videocard.graphicsController.memoryMapSelect = (byte) ((data >> 2) & 0x03);\n\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF (Miscellaneous): \" + data);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Alpha Num Disable: \" + videocard.graphicsController.alphaNumDisable);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Memory map select: \" + videocard.graphicsController.memoryMapSelect);\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" Odd/Even enable : \" + videocard.graphicsController.hostOddEvenEnable);\n \n\n if (oldMemoryMapSelect != videocard.graphicsController.memoryMapSelect)\n needUpdate = true;\n if (oldAlphaNumDisable != videocard.graphicsController.alphaNumDisable)\n {\n needUpdate = true;\n oldScreenHeight = 0;\n }\n break;\n \n case 7: // Colour Don't Care\n videocard.graphicsController.colourDontCare = (byte) (data & 0x0F);\n break;\n \n case 8: // Bit Mask\n videocard.graphicsController.bitMask = data;\n break;\n \n default:\n // Unknown index addressed\n logger.log(Level.WARNING, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3CF: index \" + videocard.graphicsController.index + \" unhandled\");\n }\n break;\n\n case 0x3B4: // CRT Controller Address Register (monochrome)\n case 0x3D4: // CRT Controller Address Register (colour)\n // Set index to be accessed in CRTC Data Register cycle\n videocard.crtControllerRegister.index = (byte) (data & 0x7F);\n if (videocard.crtControllerRegister.index > 0x18)\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)4: invalid CRTC register \" + videocard.crtControllerRegister.index + \" selected\");\n break;\n\n case 0x3B5: // CRTC Data Register (monochrome)\n case 0x3D5: // CRTC Data Register (colour)\n if (videocard.crtControllerRegister.index > 0x18)\n {\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3(B|D)5: invalid CRTC Register (\" + videocard.crtControllerRegister.index + \"); ignored\");\n return;\n }\n // Check if writing is allowed for registers 0x00 - 0x07\n if ((videocard.crtControllerRegister.protectEnable) && (videocard.crtControllerRegister.index < 0x08))\n {\n // Only write exception in protectEnable is lineCompare of Overflow register (0x07)\n if (videocard.crtControllerRegister.index == 0x07)\n {\n // Reset variables before ORing\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] &= ~0x10;\n videocard.lineCompare &= 0x2ff;\n \n // Bit 4 specifies lineCompare bit 8 \n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] |= (data & 0x10);\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n }\n else\n {\n return;\n }\n }\n if (data != videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index])\n {\n videocard.crtControllerRegister.regArray[videocard.crtControllerRegister.index] = data;\n switch (videocard.crtControllerRegister.index)\n {\n case 0x07:\n // Overflow register; specifies bit 8, 9 for several fields\n \n // Reset variables before ORing\n videocard.verticalDisplayEnd &= 0xFF;\n videocard.lineCompare &= 0x2FF;\n\n // Bit 1 specifies verticalDisplayEnd bit 8 \n if ((videocard.crtControllerRegister.regArray[0x07] & 0x02) != 0)\n videocard.verticalDisplayEnd |= 0x100;\n // Bit 6 specifies verticalDisplayEnd bit 9\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x40) != 0)\n videocard.verticalDisplayEnd |= 0x200;\n // Bit 4 specifies lineCompare bit 8\n if ((videocard.crtControllerRegister.regArray[0x07] & 0x10) != 0)\n videocard.lineCompare |= 0x100;\n needUpdate = true;\n break;\n \n case 0x08:\n // Preset row scan; bits 5-6 allow 15/31/35 pixel shift without change in start address, \n // bits 0-4 specify number of scanlines to scroll up (more precise than start address)\n needUpdate = true;\n break;\n \n case 0x09:\n // Maximum scan line; for text mode, value should be char. height - 1, \n // for graphic mode a non-zero value causes repeat of scanline by MSL+1 \n\n // Bit 7 sets scan doubling:\n // FIXME: Why is this ANDed with 0x9F if bit 7 is required?\n videocard.crtControllerRegister.scanDoubling = ((data & 0x9F) > 0) ? (byte) 1 : 0;\n\n // Reset variables before ORing\n videocard.lineCompare &= 0x1FF;\n\n // Bit 6 specifies bit 9 of line_compare\n if ((videocard.crtControllerRegister.regArray[0x09] & 0x40) != 0)\n videocard.lineCompare |= 0x200;\n needUpdate = true;\n break;\n \n case 0x0A:\n case 0x0B:\n case 0x0E:\n case 0x0F:\n // Cursor start & end / cursor location; specifies the scanlines \n // at which the cursor should start and end, and the location of the cursor\n videocard.vgaMemReqUpdate = true;\n break;\n \n case 0x0C:\n case 0x0D:\n // Start address; specifies the display memory address of the upper left pixel/character\n if (videocard.graphicsController.alphaNumDisable != 0)\n {\n needUpdate = true;\n }\n else\n {\n videocard.vgaMemReqUpdate = true;\n }\n break;\n \n case 0x11:\n // Change vertical retrace end\n videocard.crtControllerRegister.protectEnable = ((videocard.crtControllerRegister.regArray[0x11] & 0x80) > 0) ? true : false;\n break;\n \n case 0x12:\n // Change vertical display end\n videocard.verticalDisplayEnd &= 0x300;\n videocard.verticalDisplayEnd |= (((int) videocard.crtControllerRegister.regArray[0x12]) & 0xFF);\n break;\n \n case 0x13:\n case 0x14:\n case 0x17:\n // Line offset; specifies address difference between consecutive scanlines/character lines \n videocard.lineOffset = videocard.crtControllerRegister.regArray[0x13] << 1;\n if ((videocard.crtControllerRegister.regArray[0x14] & 0x40) != 0)\n {\n videocard.lineOffset <<= 2;\n }\n else if ((videocard.crtControllerRegister.regArray[0x17] & 0x40) == 0)\n {\n videocard.lineOffset <<= 1;\n }\n needUpdate = true;\n break;\n\n case 0x18:\n // Line compare; indicates scan line where horiz. division can occur. No division when set to 0x3FF\n videocard.lineCompare &= 0x300;\n videocard.lineCompare |= (((short) videocard.crtControllerRegister.regArray[0x18]) & 0xFF); // Cast from byte to short\n needUpdate = true;\n break;\n }\n\n }\n break;\n\n case 0x3Da: // Feature Control (colour)\n logger.log(Level.CONFIG, \"[\" + MODULE_TYPE + \"]\" + \" I/O write port 0x3DA (Feature Control Register, colour): reserved\");\n break;\n\n case 0x03C1: // Attribute Data Read Register\n // Read only\n break;\n \n default:\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" unsupported I/O write to port \" + portAddress + \", data =\" + data);\n\n }\n\n if (needUpdate)\n {\n // Mark all video as updated so the changes will go through\n setAreaForUpdate(0, 0, oldScreenWidth, oldScreenHeight);\n }\n return;\n }", "private void verificaData() {\n\t\t\n\t}", "private void processTrackSwitch(SensorEvent e) throws CommandException {\n if (atSensor(e, 18, 7) && direction == NORTH && ticket == -1)\n switchTrack(17, 7, SWITCH_LEFT);\n else if (atSensor(e, 18, 7) && direction == NORTH)\n switchTrack(17, 7, SWITCH_RIGHT);\n else if (atSensor(e, 13, 8) && direction == SOUTH)\n switchTrack(17, 7, SWITCH_LEFT);\n else if (atSensor(e, 13, 7) && direction == SOUTH)\n switchTrack(17, 7, SWITCH_RIGHT);\n else if (atSensor(e, 16, 9) && direction == SOUTH && ticket == 3)\n switchTrack(15, 9, SWITCH_RIGHT);\n else if (atSensor(e, 16, 9) && direction == SOUTH)\n switchTrack(15, 9, SWITCH_LEFT);\n else if (atSensor(e, 3, 9) && direction == NORTH && ticket == 3)\n switchTrack(4, 9, SWITCH_LEFT);\n else if (atSensor(e, 3, 9) && direction == NORTH)\n switchTrack(4, 9, SWITCH_RIGHT);\n else if (atSensor(e, 13, 9) && direction == NORTH)\n switchTrack(15, 9, SWITCH_RIGHT);\n else if (atSensor(e, 6, 9) && direction == SOUTH)\n switchTrack(4, 9, SWITCH_LEFT);\n else if (atSensor(e, 13, 10) && direction == NORTH)\n switchTrack(15, 9, SWITCH_LEFT);\n else if (atSensor(e, 6, 10) && direction == SOUTH)\n switchTrack(4, 9, SWITCH_RIGHT);\n else if (atSensor(e, 1, 11) && direction == SOUTH && ticket == 5)\n switchTrack(3, 11, SWITCH_LEFT);\n else if (atSensor(e, 1, 11) && direction == SOUTH)\n switchTrack(3, 11, SWITCH_RIGHT);\n else if (atSensor(e, 5, 11) && direction == NORTH)\n switchTrack(3, 11, SWITCH_LEFT);\n else if (atSensor(e, 5, 13) && direction == NORTH)\n switchTrack(3, 11, SWITCH_RIGHT);\n }", "@Override\n\tpublic void initData() {\n\n\n\n\t}", "private void m6601R() {\n if (AppFeature.f5609e) {\n this.f5399S.mo6174f(\"0\");\n }\n this.f5399S.mo6172e(\"1\");\n }", "@Override\r\n\tpublic void control() {\r\n // data is aggregated this time step\r\n q.put(qCur);\r\n v.put(vCur);\r\n if (lane.model.settings.getBoolean(\"storeDetectorData\")) {\r\n qHist.add(qCur);\r\n vHist.add(vCur);\r\n tHist.add(lane.model.t);\r\n }\r\n // reset count\r\n qCur = 0;\r\n vCur = 0;\r\n }", "public final void mo92082N() {\n }", "public void mo9848a() {\n }", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "public abstract void mo56925d();", "private void nextState() {\n int x;\n int y;\n y = st3;\n x = (st0 & MASK) ^ st1 ^ st2;\n x ^= (x << SH0);\n y ^= (y >>> SH0) ^ x;\n st0 = st1;\n st1 = st2;\n st2 = x ^ (y << SH1);\n st3 = y;\n st1 ^= parameter.getMat1(y);\n st2 ^= parameter.getMat2(y);\n }", "public void m10365h() {\n if (this.C != null) {\n if (this.B) {\n Log.i(\"MPAndroidChart\", \"Preparing...\");\n }\n if (this.O != null) {\n this.O.mo3994a();\n }\n mo3351b();\n this.f9053q.mo3340a(this.f9051o.t, this.f9051o.s, this.f9051o.m15391H());\n this.f9054r.mo3340a(this.f9052p.t, this.f9052p.s, this.f9052p.m15391H());\n this.f9057u.mo3340a(this.H.t, this.H.s, false);\n if (this.K != null) {\n this.N.m15758a(this.C);\n }\n mo3894j();\n } else if (this.B) {\n Log.i(\"MPAndroidChart\", \"Preparing... DATA NOT SET.\");\n }\n }", "public void onReceive(android.content.Context r9, android.content.Intent r10) {\n /*\n r8 = this;\n java.lang.String r0 = r10.getAction()\n int r1 = r0.hashCode()\n r2 = 4\n r3 = 3\n r4 = 2\n r5 = 1\n r6 = 0\n switch(r1) {\n case -1897205914: goto L_0x0039;\n case -1727841388: goto L_0x002f;\n case -837322541: goto L_0x0025;\n case -615389090: goto L_0x001b;\n case 798292259: goto L_0x0011;\n default: goto L_0x0010;\n }\n L_0x0010:\n goto L_0x0043\n L_0x0011:\n java.lang.String r1 = \"android.intent.action.BOOT_COMPLETED\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r2\n goto L_0x0044\n L_0x001b:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.STOP\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r5\n goto L_0x0044\n L_0x0025:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.ENABLE_DEBUG\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r4\n goto L_0x0044\n L_0x002f:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.SWITCH_INTERVAL\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r3\n goto L_0x0044\n L_0x0039:\n java.lang.String r1 = \"com.samsung.android.SwitchBoard.START\"\n boolean r1 = r0.equals(r1)\n if (r1 == 0) goto L_0x0010\n r1 = r6\n goto L_0x0044\n L_0x0043:\n r1 = -1\n L_0x0044:\n java.lang.String r7 = \"SwitchBoardReceiver.onReceive: action=\"\n if (r1 == 0) goto L_0x011d\n if (r1 == r5) goto L_0x00f3\n if (r1 == r4) goto L_0x00d5\n if (r1 == r3) goto L_0x008d\n if (r1 == r2) goto L_0x0066\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"SwitchBoardReceiver.onReceive: undefined case: action=\"\n r1.append(r2)\n r1.append(r0)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n goto L_0x015c\n L_0x0066:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logv(r1)\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n android.os.Message r2 = r2.obtainMessage(r3)\n r1.sendMessage(r2)\n goto L_0x015c\n L_0x008d:\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n java.lang.String r2 = \"WifiToLteDelayMs\"\n int r2 = r10.getIntExtra(r2, r6)\n int unused = r1.mWifiToLteDelayMs = r2\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n r2 = 5000(0x1388, float:7.006E-42)\n java.lang.String r3 = \"LteToWifiDelayMs\"\n int r2 = r10.getIntExtra(r3, r2)\n int unused = r1.mLteToWifiDelayMs = r2\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r2 = \", mWifiToLteDelayMs: \"\n r1.append(r2)\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n int r2 = r2.mWifiToLteDelayMs\n r1.append(r2)\n java.lang.String r2 = \", mLteToWifiDelayMs: \"\n r1.append(r2)\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n int r2 = r2.mLteToWifiDelayMs\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n goto L_0x015c\n L_0x00d5:\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n java.lang.String r3 = \"DEBUG\"\n boolean r3 = r10.getBooleanExtra(r3, r6)\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3)\n android.os.Message r2 = r2.obtainMessage(r4, r3)\n r1.sendMessage(r2)\n goto L_0x015c\n L_0x00f3:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r6)\n android.os.Message r2 = r2.obtainMessage(r5, r3)\n r1.sendMessage(r2)\n goto L_0x015c\n L_0x011d:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n r1.append(r7)\n r1.append(r0)\n java.lang.String r2 = \"AlwaysPolling\"\n r1.append(r2)\n boolean r3 = r10.getBooleanExtra(r2, r6)\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n com.samsung.android.server.wifi.SwitchBoardService.logd(r1)\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n boolean r2 = r10.getBooleanExtra(r2, r6)\n boolean unused = r1.mWifiInfoPollingEnabledAlways = r2\n com.samsung.android.server.wifi.SwitchBoardService r1 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r1 = r1.mHandler\n com.samsung.android.server.wifi.SwitchBoardService r2 = com.samsung.android.server.wifi.SwitchBoardService.this\n com.samsung.android.server.wifi.SwitchBoardService$SwitchBoardHandler r2 = r2.mHandler\n java.lang.Boolean r3 = java.lang.Boolean.valueOf(r5)\n android.os.Message r2 = r2.obtainMessage(r5, r3)\n r1.sendMessage(r2)\n L_0x015c:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.samsung.android.server.wifi.SwitchBoardService.SwitchBoardReceiver.onReceive(android.content.Context, android.content.Intent):void\");\n }" ]
[ "0.5528657", "0.5436786", "0.5426452", "0.5382606", "0.5381963", "0.5362309", "0.5358424", "0.529835", "0.529835", "0.529835", "0.529835", "0.529835", "0.529835", "0.529835", "0.5293751", "0.52819395", "0.5274087", "0.5269432", "0.52636635", "0.5261964", "0.52611494", "0.52441406", "0.52423", "0.52332866", "0.5217649", "0.5203781", "0.52037287", "0.5195821", "0.5193597", "0.51812875", "0.5179054", "0.5160657", "0.5160657", "0.5160657", "0.5160657", "0.5160657", "0.5160657", "0.51577026", "0.51568323", "0.5148186", "0.51471484", "0.51433575", "0.5139371", "0.5139153", "0.51373065", "0.51334167", "0.51310635", "0.51243097", "0.5123509", "0.51197183", "0.51197183", "0.51191473", "0.51112235", "0.5109336", "0.51082975", "0.51069486", "0.51041794", "0.51031107", "0.5096697", "0.50935537", "0.5093497", "0.5083783", "0.5081144", "0.5077722", "0.5070701", "0.50705236", "0.5070261", "0.5069188", "0.5068238", "0.506756", "0.50641364", "0.5062916", "0.50547135", "0.5050902", "0.5040641", "0.5038261", "0.5036433", "0.5030821", "0.50284684", "0.5026547", "0.5024822", "0.5018379", "0.5017866", "0.50119233", "0.5011118", "0.5010426", "0.50027096", "0.49972928", "0.49902022", "0.49891853", "0.49890488", "0.4985981", "0.49843976", "0.49841297", "0.49820158", "0.49754253", "0.4974982", "0.49747485", "0.49718404", "0.49708894", "0.4970885" ]
0.0
-1
System.out.println("break"); command will not print int static = 22; error, static is RESERVED BY JAVA
public static void main(String[] args) { int static2 = 22; int _static = 22; int $tatic = 45; int staticVar = 23; int salary$ = 55; // int 1stMonthSalary = 55; --- ERROR, cannot start with number int $ = 10; int _ = 3; System.out.println("salary $ = " + $); // these variable work....but not recommended System.out.println("weekly _ = " + _);// these variable work....but not recommended // int number-of-friends = 400; --- cannot use dashes ----> ERROR //int number_of_friends = 500; ---- NOT CONVENTION int numberOfFriends = 500; // use this camel case }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Break createBreak();", "@Override\n public String getCommandPrefix()\n {\n return \"break\";\n }", "private void Perform_BREAK() throws RuntimeException\n {\n throw new RuntimeException(Constants.Error(Constants.BREAK_MODE));\n }", "public void breaker() \r\n\t{\n\t\t\r\n\t}", "public Break Break(){\n\t\treturn new Break();\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tMyStatic.x += 5;\n\t\tMyStatic.x += 5;\n\t\tSystem.out.println(MyStatic.x);//block static only run one time\n\t\t\t\n\t}", "@Override\n\tpublic void wantToGoOnBreak() {\n\t\t\n\t}", "private static void exit(int i) {\n\t\t\n\t}", "public void setBreak(boolean flag) {\n\tisBreaking = flag;\n}", "public static void main(String[] args) {\n int w = INT;\n\n System.out.println(\"Hello\");\n }", "protected void brkt() {\n println(breakPoints.toString());\n }", "protected void setBreak() {\n shouldBreak = true;\n }", "StaticVariable(){\n count++;//incrementing the value of static variable\n System.out.println(count);\n }", "static void m1(int a){\n\t\ta=Static11.a;\nSystem.out.println(a);\n\t}", "void displayMyStaticVariable() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// displayMyStaticVariable Method created with no parameters\r\n System.out.println(\"Static Variable Initialized in class called StaticVariables and equals to \" + myStaticVariable);\t// This will print out the argument in the next line\r\n }", "public static void main(String[] args) {\nint i = 1;\r\n\r\nSystem.out.println(\"안녕\");\r\n\t}", "public static void stop(){\n printStatic(\"Stopped vehicle\");\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint a=20;\r\n\t\t\r\n\t\tswitch(a)\r\n\t\t{ \r\n\t\tcase 10: System.out.println(\"10\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 20: System.out.println(\"20\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 30: System.out.println(\"30\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 40: System.out.println(\"40\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tdefault: System.out.println(\"default\");\r\n\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t}", "Main8(int a) {\n\t\tSystem.out.println(a);\n\t}", "static void staticShow() {\n System.out.println(\"In a static class static method\");\n }", "private void goOnBreak(){\n\tDo(\"Going on break\");\n\tstartedBreak = true;\n\tstateChanged();\n }", "private ParseTree parseBreakStatement() {\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.BREAK);\n IdentifierToken name = null;\n if (!peekImplicitSemiColon()) {\n name = eatIdOpt();\n }\n eatPossiblyImplicitSemiColon();\n return new BreakStatementTree(getTreeLocation(start), name);\n }", "private void initiateBreak(){\n\tDo(\"Starting to go on break\");\n\thost.msgChangeWorkStatus(this, false);\n\tworking = false;\n\tstateChanged();\n }", "public static void main(String[] args){\n final int a = 1;\n // final int b;\n // b = 2;\n int x = 5;\n switch(x){\n case a: System.out.println(\"case a\");\n // case b://constant expression required .. compile error\n case 3: // is a compile time constant.\n System.out.println(\"case 3\");\n System.out.println(\"2nd line in case 3\");\n // To be a variable that is a compile time constant, the variable needs to be...\n // 1.declared as final\n // 2.have a primative or String type\n // 3.initialized (on the same line as the declaration)\n // 4.assigned to a compile time constant expression\n default: System.out.println(\"default, if no break will continue\");\n case 4:{System.out.println(\"case 4\");};//can omit {} and ;\n }\n// String derp = \"s\";\n// switch(derp){\n// \n// }\n }", "public static void main(String[] args) {\n\n/*\n* Ctrl+\n* Shift+\n* \"\\\"\n*/\n// Ctrl+\"\\\"\n\n int a;\n a = 15;\n// int a = 15;\n System.out.println(a); //faster - write down \"sout\" + Tab\n int b = a;\n System.out.println(b);\n b = 10;\n System.out.println(a);\n System.out.println(b);\n }", "public final void mT__33() throws RecognitionException {\n try {\n int _type = T__33;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalIotLuaXtext.g:33:7: ( 'break' )\n // InternalIotLuaXtext.g:33:9: 'break'\n {\n match(\"break\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void testUnconditionalBreakDirective()\n {\n assertEvalEquals(\"1\", \"#foreach($i in [1..5])$i#break #end\");\n }", "boolean hasCustomBreak();", "public final PythonParser.break_stmt_return break_stmt() throws RecognitionException {\n PythonParser.break_stmt_return retval = new PythonParser.break_stmt_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token BREAK94=null;\n\n PythonTree BREAK94_tree=null;\n RewriteRuleTokenStream stream_BREAK=new RewriteRuleTokenStream(adaptor,\"token BREAK\");\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:729:5: ( BREAK -> ^( BREAK[$BREAK] ) )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:729:7: BREAK\n {\n BREAK94=(Token)match(input,BREAK,FOLLOW_BREAK_in_break_stmt2595); if (state.failed) return retval; \n if ( state.backtracking==0 ) stream_BREAK.add(BREAK94);\n\n\n\n // AST REWRITE\n // elements: BREAK\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==0 ) {\n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (PythonTree)adaptor.nil();\n // 730:4: -> ^( BREAK[$BREAK] )\n {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:730:7: ^( BREAK[$BREAK] )\n {\n PythonTree root_1 = (PythonTree)adaptor.nil();\n root_1 = (PythonTree)adaptor.becomeRoot(new Break(BREAK, BREAK94), root_1);\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;}\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "static void stop() {\n flag = 0;\n }", "static public void order66() {\n System.exit(0);\n }", "@Override\r\n\tpublic void visit(BreakStmtNode breakStatement) {\n\t\texecPathStack.pushFrame();\r\n\t\t\r\n\t\t//Check if we are in a loop\r\n\t\tif(curLoop==null) \r\n\t\t\tProblem.ofType(ProblemId.BREAK_OUTSIDE_LOOP).at(breakStatement)\r\n\t\t\t\t.raise();\r\n\t\t\t\r\n\t\t//Add break\r\n\t\tcurLoop.addBreak(breakStatement);\r\n\t}", "private static void showCurrentBreakPoints() {\n System.out.print(\"Current BreakPoints: \");\n for (int i=1;i<=dvm.getSourceCodeLength();i++)\n if (dvm.isLineABreakPoint(i)) System.out.print(i + \" \");\n System.out.print(\"\\n\");\n }", "public static void main(String[] args) {\n for(int i = 0; i < 10; i++) {\n if(i==5) {\n break;\n }\n System.out.println(\"Numbers \" +i);\n }\n }", "static int test()\n\t{\n\n\t\treturn 20;\n\t}", "public static void main() {\n \n }", "public static void main(String[] args) {\n\tThree4 t4 = new Three4();\n\tSystem.out.println(t4.i); //static var can be accessed by ref var but warn, when run <t4> is replaced by <class-name>\n\tSystem.out.println(i);\n\tSystem.out.println(Three4.i);\n\t\n}", "public static void main(String[] args) {\n System.out.println(\"B\");\r\n }", "private static void staticFun()\n {\n }", "public static void main(String[] args) {\n\t\tStaticMethodTest obj3 = new StaticMethodTest();\n\t\t//obj1.i = 2;\n\t\tSystem.out.println(obj3.i);\n\n\t}", "public void sendBreak() {\n\tsPort.sendBreak(1000);\n }", "public Snippet visit(BreakStatement n, Snippet argu) {\n\t\t Snippet _ret = new Snippet(\"\", \"\", null, false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t _ret.returnTemp = \"break\"+\";\";\n\t\t\ttPlasmaCode+=generateTabs(blockDepth)+_ret.returnTemp+\"\\n\";\n\t return _ret;\n\t }", "public static void main(String[] args) {\n Random r = new Random();\n int a = r.nextInt(6);\n switch (a){\n case 1:\n System.out.println(\"1 = \"+a);\n break;\n case 2:\n System.out.println(\"2 = \"+a);\n break;\n case 3:\n System.out.println(\"3 = \"+a);\n break;\n case 4:\n System.out.println(\"4 = \"+a);\n break;\n case 5:\n System.out.println(\"5 = \"+a);\n break;\n default:\n System.out.println(\"Not found = \"+a);\n break;\n }\n }", "public static void main()\n\t{\n\t}", "public static void main(String args[])\n\t{\n\t\tfrom_here :for(int i=0;i<10;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.println(i+ \" \"+j) ;\n\t\t\t\tif(j==6)\n\t\t\t\t\tbreak ;//from_here ;\n\t\t\t}\n\t\t\tSystem.out.println(\"This is hidden from the continue \") ;\n\t\t}\n\t}", "public static void print() { //This is a Java method,Which will print \"Hello World\" on the cmd prompt.\n //Note : Keywords used : -\n //public : for the public access of method anywhere in this file or Another file.\n //static : It is used for a constant variable or a method that is same for every instance of a class.\n //void : returns nothing.\n System.out.println(\"Hello World\");\n }", "private static void removeBreakPoint() {\n for (int i=1;i<=dvm.getSourceCodeLength();i++) {\n dvm.setBreakPoint(i-1, false);\n }\n }", "public static void main(int a) {\n\t\t\n\t\tSystem.out.println(\"main method \"+a);\n\t\t\n\t}", "java.lang.String getCustomBreak();", "@Override\r\n\tpublic void carBreak() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n for (int i = 0; i < 5; i++) {\n System.out.println(\"i = \" + i);\n if (i == 3) {\n break;\n }\n System.out.println(\"Outside the loop!\");\n }\n }", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "private static void FinalIndVsPAk() {\n\t\tSystem.out.println(\"Pak Lost The Match\");\n\t\t\n\t}", "static void q7(){\n\t}", "public static void staticMethod() {\r\n\t\tSystem.out.println(\"StaticMethod\");\r\n\t}", "public final void rule__BreakStmt__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:7685:1: ( ( 'break' ) )\r\n // InternalGo.g:7686:1: ( 'break' )\r\n {\r\n // InternalGo.g:7686:1: ( 'break' )\r\n // InternalGo.g:7687:2: 'break'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getBreakStmtAccess().getBreakKeyword_0()); \r\n }\r\n match(input,67,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getBreakStmtAccess().getBreakKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override\n\tpublic boolean isNotBreak() {\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"뛰어갈 칸의 총 수 : \");\n\t\tint n = scan.nextInt();\n\t\tSystem.out.println(jumpCase(n));\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tStatic S1 = new Static ();\n\t\t\n\t\tS1.StudentID = 100;\n\t\tS1.StudentName = \"Chas\";\n\t\n\t\tSystem.out.println(\"Student ID is: \"+Static.StudentID);\n\t\tSystem.out.println(\"Student Name is: \"+S1.StudentName);\n\n\t}", "@Override\n\tpublic int exit() {\n\t\treturn 0;\n\t}", "public static void main() {\n }", "private final void i() {\n }", "final public void block() throws ParseException {\n jj_consume_token(35);\n jj_consume_token(BLOCK);\n label_3:\n while (true) {\n if (jj_2_35(4)) {\n ;\n } else {\n break label_3;\n }\n jj_consume_token(34);\n }\n if (jj_2_36(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(36);\n }", "public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }", "public static void main(String[] args) {\n\t\t\n\n\t\tCarStaticVariables car1 = new CarStaticVariables();\n\t\tcar1.color=\"white\";\n\t\ttotalCars++; //incrementing by one 0+1 = 1\n\t\t\n\t\tCarStaticVariables car2 = new CarStaticVariables();\n\t\tcar2.color=\"black\";\n\t\ttotalCars++; //1+1 = 2\n\t\t\n\t\tSystem.out.println(\"Total cars we made are \"+totalCars);\n\t\t\n\t\t//if we remove static - variable become instance and we have to access with object \n\t\t//public int totalCars -> car1.totalCars car2.totalCars\n\t\t\n\t}", "public static void staticExample() {\n\t\tSystem.out.println(\"I am the static method from the child class\");\n\t}", "public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}", "static void feladat9() {\n\t}", "public static GotoExpression break_(LabelTarget labelTarget) { throw Extensions.todo(); }", "public static void bi() {\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(b);\n\t\tVariablesStaticInstace obj = new VariablesStaticInstace();\n\t\tobj.method1();\n\t}", "public static void main(){\n\t}", "public static void printExitLine() {\n printMessage(BYE_LINE);\n }", "private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}", "private void defaultStatementsInCase() {\n GUI.writeTimeField();\n sleep();\n }", "private void takeABreak(){\n mIsBreak = false;\n mLytBreakLayout.setVisibility(View.VISIBLE);\n startTimer(_str_break);\n }", "public default void start(){\n printNonStatic(\"Started vehicle\");\n }", "public static GotoExpression break_(LabelTarget labelTarget, Class clazz) { throw Extensions.todo(); }", "public static void bark(){\n System.out.println(\"I am barking\");\n }", "public void geraeuschMachen() {\n System.out.println(\"BRUELL\");\n }", "public static void main(String[] args) {\n if (1 > 0) {\n System.out.println(\"1 > 0\");\n }\n \n \n if (5 < 4) {\n System.out.println(\"5 < 4\");\n } else {\n System.out.println(\"5 > 4\");\n }\n \n if (1 > 10) {\n System.out.println(\"1 > 10\");\n } else if (5 > 10) {\n System.out.println(\"5 > 10\");\n } else if (9 > 10) {\n System.out.println(\"9 > 10\");\n } else if (11 > 10){\n System.out.println(\"11 > 10\");\n } else {\n System.out.println(\"< 10\");\n }\n \n /*\n * keywordul break - opreste executia in acel bloc\n * in cazul structurii switch: daca gasim un rezultat valid vom opri excecutia\n */\n \n \n //Controlul executiei prin switch\n char rezultat;\n char valoareEvaluata = 'F';\n switch (valoareEvaluata) {\n case 'A':\n rezultat = 'A';\n break;\n case 'B':\n rezultat = 'B';\n break;\n case 'C':\n rezultat = 'C';\n break;\n default:\n rezultat = valoareEvaluata;\n }\n System.out.println(\"Am gasit: \" + rezultat);\n \n }", "public void test() {\n\t\tSystem.out.println(\"Still here, keep going dude.\");\n\t}", "public void Case29(){\n\n }", "public void testConditionalBreakDirective()\n {\n assertEvalEquals(\"1, 2, 3, 4, 5\",\n \"#foreach($i in [1..10])$i#if($i > 4)#break#end, #end\");\n }", "public static void main(String[] args) {\n System.out.println(\"main method of class static block \");//1 main method executed in overloaded class in jvm\r\n\t\tA a = new A();\r\n\t\ta.m1();\r\n\t\tB b = new B(12);\r\n\t\tb.m1();\r\n\t\tSystem.out.println(\"value of var from B class\"+b.var);\r\n\t\tA aa = new B();\r\n\t\t\r\n\t}", "public void main() {\n System.out.println(x); // x is automatic variable (effective final variables)\n }", "public void test() {\n\t\t\tSystem.out.println(\"I am non static test method\");\n\t\t}", "public static void main(String[] args) {\n\t\tcallingstatic obj = new callingstatic(); //object to call nonstatic func or var. \n\t\t\n\tsum(); //Direct calling static method.\n\tcallingstatic.sum(); //indirect calling static method through class name.\n\t//obj.sum(); //nonstatic way to call static method. \n\t\n\tobj.divide(); //calling nonstatic func though obj\n\tSystem.out.println(obj.name); //calling nonstatic var though obj\n\t}", "private static void exit() {\n dvm.exit();\n stop = true;\n }", "public static void main(String args[]){ \r\n\t\r\n\t\t\r\n\t\tint month; //An integer variable is decleared named as month \r\n\t\t\r\n\t\tScanner myvar = new Scanner(System.in); //scanner object is created named as Myvar \r\n\t\t\r\n\t\tSystem.out.println(\"Sirji Ye kaunsa mahina hai wo bata do :\"); //Prints somes strings\r\n\t\tSystem.out.println(\" January >> 1\");\r\n\t\tSystem.out.println(\" February >> 2\");\r\n\t\tSystem.out.println(\" March >> 3\");\r\n\t\tSystem.out.println(\" April >> 4\");\r\n\t\tSystem.out.println(\" May >> 5\");\r\n\t\tSystem.out.println(\" June >> 6\");\r\n\t\tSystem.out.println(\" July >> 7\");\r\n\t\tSystem.out.println(\" August >> 8\");\r\n\t\tSystem.out.println(\" September >> 9\");\r\n\t\tSystem.out.println(\" October >> 10\");\r\n\t\tSystem.out.println(\" November >> 11\");\r\n\t\tSystem.out.println(\" December >> 12\");\r\n\t\t\r\n\t\tSystem.out.print(\">>>>>>>>>>>>> \");\r\n\t\tmonth = myvar.nextInt(); //Takes Input from user\r\n\t\t\r\n\t\tswitch (month){ //switch is applied on month variable\r\n\t\t\r\n\t\tcase 1:\r\n\t\tcase 2:\r\n\t\tcase 11:\r\n\t\tcase 12:\r\n\t\t\tSystem.out.println(\"Thand hai bahar :v soja \");\r\n\t\t\tbreak; //used to break out of the switch case\r\n\r\n\t\tcase 3:\r\n\t\tcase 4:\r\n\t\tcase 5:\r\n\t\tcase 6:\r\n\t\t\tSystem.out.println(\"Garmi hai bahar soja :v \");\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 7:\r\n\t\tcase 8:\r\n\t\tcase 9:\r\n\t\tcase 10:\r\n\t\t\tSystem.out.println(\"Barish Ho rahi hai Bheeg jaye ga :V Soja\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Jyada Hoshyari na kar :v Soja\");\r\n\t\t} //The default code block gets Executed when others cases fails\r\n\t\t\r\n\t}", "static void q8(){\t\n\t}", "public static void main (String [] args) {\n while (true) {\n System.out.println(\"Please enter an integer\");\n Scanner scanner = new Scanner(System.in);\n int input = scanner.nextInt();\n if (input == 17) {\n break;\n }\n else if (input % 2 == 0) {\n System.out.println(\"even\");\n } else {\n System.out.println(\"odd\");\n }\n }\n System.out.println(\"My number 17! Show is over\");\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint a=40;\r\n\twhile(a>20) {\r\n\t\tif(a==25)break;\r\n\t\tSystem.out.println(a);\r\n\t\t\r\n\t\ta=a-1;\r\n\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tnon_static(); // static contain only static methods, variables\r\n//\t\tnon_static2();\r\n\t}", "public void breakBlock(World world, int x, int y, int z, Block block, int integer){\n\t\t\tOrangeSirenTileEntity tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z);\n\t\t\ttile.setShouldStop(true);\t\n\t\t}", "public static void main(String[] args) {\n\n\t\tfor (int i = 0; i <= 12; i++) {\n\n\t\t\tif (i == 12) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(i);\n\t\t}\n\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"Abxdefghijklmnopqrstuvwxyz\");\nint a =12;\nSystem.out.println(a);\n\t}", "public void resetStatic() {\n\t\tmaxLaps = 0;\n\t}", "public static void Method()\n {\n System.out.println(\"No. 1\");\n }", "public static void main(String[] args) {\n \n int day = 5;\n switch (day) {\n case 1:\n System.out.println(\"Hi\");\n break;\n case 2:\n System.out.println(\"Hello\"); \n break;\n case 3:\n System.out.println(\"Hey\");\n break;\n case 4:\n System.out.println(\"Hola\");\n break;\n case 5:\n System.out.println(\"Bye\");\n break; \n default:\n break;\n }\n }", "public static void main(String[] args) {\n int i = 22;\n if (i < 20) {\n System.out.println(\"1\");\n } else if (i<25) {\n System.out.println(\"2\");\n } else if (i<30) {\n System.out.println(\"3\");\n } else {\n System.out.println(\"4\");\n }\n }" ]
[ "0.62536603", "0.58148056", "0.57815284", "0.56180346", "0.5596309", "0.5414305", "0.54094434", "0.54045504", "0.53620744", "0.53171027", "0.53009707", "0.52903014", "0.5278156", "0.5248262", "0.51875764", "0.5173747", "0.5136307", "0.5122978", "0.51216525", "0.50971985", "0.5087819", "0.5041601", "0.50248986", "0.502217", "0.4997457", "0.49949923", "0.49839386", "0.49714366", "0.4969447", "0.49675766", "0.49164736", "0.49137664", "0.4899564", "0.4899111", "0.48980916", "0.48971236", "0.48918456", "0.48901603", "0.4889242", "0.48851672", "0.48714405", "0.48630276", "0.48500764", "0.48469448", "0.4843873", "0.48378238", "0.48359814", "0.48356023", "0.4828815", "0.48174635", "0.48131642", "0.48078498", "0.48042905", "0.48012897", "0.47865075", "0.47817373", "0.47570592", "0.4756494", "0.47544813", "0.47524968", "0.47401223", "0.47321993", "0.47321057", "0.472475", "0.47241238", "0.47193098", "0.47168848", "0.47127473", "0.4709441", "0.47070912", "0.47063854", "0.4697999", "0.46951404", "0.46879014", "0.46846005", "0.46711367", "0.46684402", "0.46568012", "0.4654471", "0.4650461", "0.46461466", "0.46454725", "0.46423644", "0.463037", "0.4627144", "0.46172372", "0.46082416", "0.46056217", "0.46029082", "0.46016368", "0.45985872", "0.45941395", "0.4591684", "0.45900214", "0.45895654", "0.45851427", "0.4583695", "0.4580055", "0.45770442", "0.457242", "0.4570577" ]
0.0
-1
Listener class for country Jlist in AddSpotView
public CountryUpdateListener(PredictorView v, Notifier m, AddSpotView s) { this.view = v; this.model = m; this.spotView = s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void valueChanged(ListSelectionEvent e) \n\t{\n\t\tif(!e.getValueIsAdjusting())\n\t\t{\n\t\t\t// gets values from your jList and added it to a list\n\t\t\tList values = spotView.getCountryJList().getSelectedValuesList();\n\t\t\tspotView.setSelectedCountry(values);\n\t\t\t\n\t\t\t//based on country selection, state needs to be updated\n\t\t\tspotView.UpdateStates(spotView.getSelectedCountry());\n\t\t}\n\n\t}", "public void handleCountrySelection(ActionEvent actionEvent) {\n }", "public void countryComboBoxListener() {\n countryComboBox.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> buildDivisionComboBox());\n }", "@FXML\n public void selectOneCountry(MouseEvent mouseEvent) {\n int countryIndex = lsv_ownedCountries.getSelectionModel().getSelectedIndex();\n ObservableList datalist = InfoRetriver.getAdjacentCountryObservablelist(Main.curRoundPlayerIndex, countryIndex);\n\n lsv_adjacentCountries.setItems(datalist);\n ListviewRenderer.renderCountryItems(lsv_adjacentCountries);\n }", "@Override\n public void onCountrySelected(@NotNull Country country, View countryItemView) {\n\n mainCallBack.onCountrySelected(country, countryItemView);\n }", "@Override\n public void onSelectCountry(Country country) {\n // get country name and country ID\n binding.editTextCountry.setText(country.getName());\n countryID = country.getCountryId();\n statePicker.equalStateObject.clear();\n cityPicker.equalCityObject.clear();\n \n //set state name text view and state pick button invisible\n setStateListener();\n \n // set text on main view\n// countryCode.setText(\"Country code: \" + country.getCode());\n// countryPhoneCode.setText(\"Country dial code: \" + country.getDialCode());\n// countryCurrency.setText(\"Country currency: \" + country.getCurrency());\n// flagImage.setBackgroundResource(country.getFlag());\n \n \n // GET STATES OF SELECTED COUNTRY\n for (int i = 0; i < stateObject.size(); i++) {\n // init state picker\n statePicker = new StatePicker.Builder().with(this).listener(this).build();\n State stateData = new State();\n if (stateObject.get(i).getCountryId() == countryID) {\n \n stateData.setStateId(stateObject.get(i).getStateId());\n stateData.setStateName(stateObject.get(i).getStateName());\n stateData.setCountryId(stateObject.get(i).getCountryId());\n stateData.setFlag(country.getFlag());\n statePicker.equalStateObject.add(stateData);\n }\n }\n }", "@Override\r\n\t\t\tpublic void vertexTraversed(VertexTraversalEvent<Country> e) {\n\t\t\t\t\r\n\t\t\t}", "@FXML\n public void changeCountry(ActionEvent event) {\n Countries countries = countryCB.getSelectionModel().getSelectedItem();\n\n showStatesProvinces(countries.getCountryID());\n }", "public void nextCountry(View view) {\n if (!countryList.getCountryList().isEmpty() && index < countryList.getCountryList().size()) {\n index += 1;\n displayCountry();\n }\n }", "@Override\n public void onSelectCountry(Country country) {\n // get country name and country ID\n countryName.setText(country.getName());\n countryName.setVisibility(View.VISIBLE);\n countryID = country.getCountryId();\n statePicker.equalStateObject.clear();\n cityPicker.equalCityObject.clear();\n\n //set state name text view and state pick button invisible\n //pickStateButton.setVisibility(View.VISIBLE);\n //stateNameTextView.setVisibility(View.VISIBLE);\n stateNameTextView.setText(\"State\");\n cityName.setText(\"City\");\n // set text on main view\n flagImage.setBackgroundResource(country.getFlag());\n\n\n // GET STATES OF SELECTED COUNTRY\n for (int i = 0; i < stateObject.size(); i++) {\n // init state picker\n statePicker = new StatePicker.Builder().with(this).listener(this).build();\n State stateData = new State();\n if (stateObject.get(i).getCountryId() == countryID) {\n\n stateData.setStateId(stateObject.get(i).getStateId());\n stateData.setStateName(stateObject.get(i).getStateName());\n stateData.setCountryId(stateObject.get(i).getCountryId());\n stateData.setFlag(country.getFlag());\n statePicker.equalStateObject.add(stateData);\n }\n }\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "public void setCountry(String country) {\n this.country = country;\n }", "static public void set_country_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3), Edit_row_window.selected[0].getText(4), \n\t\t\t\tEdit_row_window.selected[0].getText(5), Edit_row_window.selected[0].getText(6)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_locations l, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.location_id=l.id and lc.country_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\" from curr_places_locations l \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"location name\", \"rating\", \"population\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"LOCATIONS\";\n\t}", "public void addCountry(View view) {\n ArrayAdapter<String> adapter = (ArrayAdapter<String>)((ListView) findViewById(R.id.countryName)).getAdapter();\n adapter.add(((EditText) findViewById(R.id.countryText)).getText().toString());\n adapter.notifyDataSetChanged();\n\n }", "protected void applyGridViewListeners() {\r\n\t\t/* Apply OnItemClickListener to show the country + \"saved\" in the quickinfo. */\r\n\t\tthis.mcountryListView.setOnItemClickListener(new OnItemClickListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(final AdapterView<?> arg0, final View v, final int position, final long arg3) {\r\n\t\t\t\tif(v != null){\r\n\t\t\t\t\tfinal Country nat = ((CountryAdapter)SettingsDirectionLanguage.this.mcountryListView.getAdapter()).getItem(position);\r\n\t\t\t\t\t/* First make the Country-Name appear in the quick-info. */\r\n\t\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(nat.NAMERESID) + \" \"\r\n\t\t\t\t\t\t\t+ SettingsDirectionLanguage.this.getText(R.string.tv_settings_directionslanguage_quickinfo_saved_appendix));\r\n\r\n\t\t\t\t\tfinal DirectionsLanguage[] dirLangs = nat.getDrivingDiectionsLanguages();\r\n\t\t\t\t\tif(dirLangs == null || dirLangs.length == 0) {\r\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"No languages for \");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(dirLangs.length == 1){\r\n\t\t\t\t\t\tPreferences.saveDrivingDirectionsLanguage(SettingsDirectionLanguage.this, dirLangs[0]);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t/* Show dialog. */\r\n\t\t\t\t\t\tSettingsDirectionLanguage.this.mNationalityToSelectDialectFrom = nat;\r\n\t\t\t\t\t\tshowDialog(DIALOG_SELECT_DIALECT);\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/* Apply OnItemSelectedListener to show Country-Name in TextView. */\r\n\t\tthis.mcountryListView.setOnItemSelectedListener(new OnItemSelectedListener(){\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(final AdapterView<?> parent, final View v, final int position, final long id) {\r\n\t\t\t\tif(v != null){\r\n\t\t\t\t\tfinal Country selNation = ((CountryAdapter)SettingsDirectionLanguage.this.mcountryListView.getAdapter()).getItem(position);\r\n\t\t\t\t\tif(selNation.equals(Preferences.getDrivingDirectionsLanguage(SettingsDirectionLanguage.this))) {\r\n\t\t\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(selNation.NAMERESID) + \" \" + getString(R.string.tv_settings_directionslanguage_quickinfo_current_appendix));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(selNation.NAMERESID));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(final AdapterView<?> arg0) {\r\n\t\t\t\tSettingsDirectionLanguage.this.mTvQuickInfo.setText(getString(Preferences.getDrivingDirectionsLanguage(SettingsDirectionLanguage.this).NAMERESID)\r\n\t\t\t\t\t\t+ \" \" + getString(R.string.tv_settings_directionslanguage_quickinfo_current_appendix));\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public AdapterCountry(List<Country> countryList, Context context) {\n this.countryList = countryList;\n this.context = context;\n }", "void onLanguageSelected();", "public void setCountryName(String value);", "@Override\r\n\t\t\tpublic void vertexFinished(VertexTraversalEvent<Country> e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void onMapClick(LatLng arg0) {\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }", "public void setCountry(Country country) {\n this.country = country;\n }", "public void prevCountry(View view) {\n if (!countryList.getCountryList().isEmpty() && index > 1) {\n index -= 1;\n displayCountry();\n }\n }", "public void setCountry(java.lang.String country) {\r\n this.country = country;\r\n }", "public void itemStateChanged(ItemEvent evenet){\n\t\t\t\tString selectedText = fortifyFrom.getSelectedItem().toString();\n\t\t\t\tCountry adj = MainPlayScreen.this.game.getBoard().getCountryByName(selectedText);\n\t\t\t\t\n\t\t\t\t//get the country armies\n\t\t\t\tint i = MainPlayScreen.this.game.countryArmies.get(adj);\n\t\t\t\t\n\t\t\t\t// array list of adjacent countries\n\t\t\t\tArrayList<Country> adjacencies = adj.getAdjacencies();\n\t\t\t\tfortifyTo.removeAllItems();\n\t\t\t\t\n\t\t\t\t// adds ajacent countries to fortifyTo JComboBox\n\t\t\t\tfor (int b = 0; b < adjacencies.size(); b++) {\n\t\t\t\t\tCountry adjacent = adjacencies.get(b);\n\t\t\t\t\tSystem.out.print(adjacent.getName());\n\t\t\t\t\tfortifyTo.addItem(adjacent.getName());\n\t\t\t\t}\t// end of for loop\n\t\t\t\n\t\t\t\t// gets country to fortify\n\t\t\t\tString A = fortifyTo.getSelectedItem().toString();\n\t\t\t\t\n\t\t\t\tCountry country1 = MainPlayScreen.this.game.getBoard().getCountryByName(A);\n\t\t\t\tint d = MainPlayScreen.this.game.countryArmies.get(country1);\n\t\t\t\t\n\t\t\t\t// adds number of countries based on country armies\n\t\t\t\tnumberOfArmies[2].removeAllItems();\n\t\t\t\t for (int a = 0; a < i; a++){\n\t\t\t\t\t numberOfArmies[2].addItem(a);\n\t\t\t\t\t System.out.print(a);\n\t\t\t\t }\n\t\t\t\t// displays whats being fortified\n\t\t\t\tJOptionPane.showMessageDialog( null, \"Country fortifing from: \" + selectedText + \" \" + i + \"armies\" + \"\\n\" + \"Country being fortified\" + A + \" \" + d + \" armies\");\n\t\t\t\t \n\t\t\t\trefresh();\t// refreshes components\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}", "public void setCountry(java.lang.String country) {\n this.country = country;\n }", "@Override public void onCityChanged() {\n\t\tif (mode == ChangeCurrentCity) {\n\t\t\tint i;\n\t\t\tCity findme = parent.session.state.currentCity;\n\t\t\tfor (i=0; i<rawList.length; i++) {\n\t\t\t\tif (rawList[i] == findme) {\n\t\t\t\t\tcitySpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tshowCountrycode();\n\t\t\t\t}", "private void setCountries(List<Country> countries) {\n this.countries = countries;\n }", "private void populateCountryList(JComboBox cmbCountryList)\n {\n cmbCountryList.removeAllItems();\n CountryEnterprise countryEnterprise;\n \n for(Enterprise country: internationalNetwork.getEnterpriseDirectory().getEnterpriseList())\n {\n cmbCountryList.addItem((CountryEnterprise) country);\n }\n \n }", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "public void setCountry(String country) {\r\n\t\tthis.country = country;\r\n\t}", "private void setCountryObservers() {\n ArrayList<String> ownedCountryNameList = curPlayer.getOwnedCountryNameList();\n CountryChangedObserver observer = curPlayer.getCountryChangedObserver();\n for (String name : ownedCountryNameList) {\n Main.graphSingleton.get(name).getCountry().getCountryObservable().deleteObservers();\n Main.graphSingleton.get(name).getCountry().getCountryObservable().addObserver(observer);\n }\n }", "public void simple()\n {\n List<String> dataset= new ArrayList<>();\n dataset.add(\"India\");\n dataset.add(\"China\");\n dataset.add(\"Japan\");\n dataset.add(\"England\");\n ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1,dataset);\n ((ListView) findViewById(R.id.countryName)).setAdapter(adapter);\n\n //when we add on item it display on EditText\n ((ListView) findViewById(R.id.countryName)).setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ArrayAdapter<String> adapterLocal = (ArrayAdapter<String>) parent.getAdapter();\n String country = adapterLocal.getItem(position);\n ((EditText) findViewById(R.id.countryText)).setText(country);\n }\n });\n }", "public void setCountry(java.lang.String Country) {\n this.Country = Country;\n }", "void fetchCountryInformation();", "public CountryAdapter(Context context, ArrayList<Country> countryList){\n countryArrayList = countryList;\n }", "public void setCountry(java.lang.CharSequence value) {\n this.country = value;\n }", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n ObservableList<String> countryNames = FXCollections.observableArrayList();\n for (Countries c : DBCountries.getAllCountries()) {\n countryNames.add(c.getName());\n }\n countryCombo.setItems(countryNames);\n }", "public void setCountry(String country) {\n\t\tthis.country = country;\n\t}", "public void onCountrySelect(ActionEvent actionEvent) {\n divisionCombo.getItems().clear();\n int selectedCountryId;\n if (countryCombo.getValue().equals(\"U.S\")) {\n selectedCountryId = 1;\n }\n else if (countryCombo.getValue().equals(\"UK\")) {\n selectedCountryId = 2;\n }\n else if (countryCombo.getValue().equals(\"Canada\")) {\n selectedCountryId = 3;\n }\n else {\n selectedCountryId = 0;\n }\n\n ObservableList<String> divisionNames = FXCollections.observableArrayList();\n for (FirstLevelDivisions f : DBFirstLevelDivisions.getAllDivisionsFromCountryID(selectedCountryId)) {\n divisionNames.add(f.getName());\n }\n divisionCombo.setItems(divisionNames);\n }", "@OnClick(R.id.txt_country_code)\n void onCountryCodeClicked(){\n if (mCountryPickerDialog == null){\n mCountryPickerDialog = new CountryPickerDialog(this, (country, flagResId) -> {\n mSelectedCountry = country;\n setCountryCode(mSelectedCountry);\n });\n }\n\n mCountryPickerDialog.show();\n }", "public void switchToCountry()\n {\n questionLabel.setText(currentQuestion.getQuestion());\n d.setVisible(true);\n atQuestionStage=true;\n mapImageLabel.setVisible(false);\n a.setText(\"A\");\n b.setText(\"B\");\n c.setText(\"C\");\n a.setBounds(380,220,a.getPreferredSize().height+20,30);\n b.setBounds(500,220,b.getPreferredSize().height+20,30);\n c.setBounds(380,320,c.getPreferredSize().height+20,30);\n d.setBounds(500,320,d.getPreferredSize().height+20,30);\n questionLabel.setBounds(380,100,600,100);\n revalidate();\n }", "private void cListValueChanged(ListSelectionEvent e) {\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint position, long arg3) {\n\t\t\t\t\r\n\t\t\t\tAutoCompleteTextView countryInputText = (AutoCompleteTextView) layout\r\n\t\t\t\t\t\t.findViewById(R.id.inputText);\r\n\t\t\t\t\r\n\t\t\t//\tif (curSwipeCountries.size() < MAX_LANG) {\r\n\r\n\t\t\t\t\tString pickedCountry = (String) countryList\r\n\t\t\t\t\t\t\t.getItemAtPosition(position);\r\n\t\t\t\t\t// String pickedLanguage\r\n\t\t\t\t\tuserLang = pickedCountry;\r\n\r\n\t\t\t\t\tcurCountries.clear();\r\n\t\t\t\t\tcurCountries.add(pickedCountry);\r\n\t\t\t\t\tcountryInputText.setText(pickedCountry);\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tcountryListAdapter.notifyDataSetChanged();\r\n\t\t\t\t\t\r\n\t\t\t}", "public void setCountry(Integer country) {\n this.country = country;\n }", "public void setCountry(Integer country) {\n this.country = country;\n }", "public Country(String name, double x, double y, String continent){\n this.ID=++cID;\n this.name=name;\n this.continent=continent;\n this.x=x;\n this.y=y;\n adjList=new ArrayList<>();\n edgeList=new ArrayList<>();\n\n FXMLLoader fxmlLoader=new FXMLLoader(getClass().getResource(\"/CountryEditor.fxml\"));\n fxmlLoader.setRoot(this);\n try {\n fxmlLoader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n countryController = fxmlLoader.getController();\n countryController.initialize(this);\n setVisible(true);\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n Country selectedCountry;\n country = new Country();\n if (!(ssWholeSale_Imported_Country.getSelectedItem() == null)) {\n selectedCountry = (Country) ssWholeSale_Imported_Country.getSelectedItem();\n app.setImportSugarCountryOfOrigin(selectedCountry);\n\n String country_id = (String) selectedCountry.getC_country_id();\n\n country = selectedCountry;\n\n }\n }", "private void showAddLocationPointPopup(final String point) {\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n\n LinearLayout layout = new LinearLayout(getActivity());\n LinearLayout.LayoutParams parms = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.setLayoutParams(parms);\n\n layout.setGravity(Gravity.CLIP_VERTICAL);\n layout.setPadding(20, 20, 20, 20);\n\n final EditText etPoint = new EditText(getActivity());\n etPoint.setHint(\"Enter \"+(point.equals(\"loading\")?\"Loading\":\"Destination\")+ \" Point\");\n\n AutoSearchAdapter adapter ;\n final CustomAutoCompleteTextView spinnerCountryList = new CustomAutoCompleteTextView(getActivity());\n final CustomAutoCompleteTextView spinnerCityList = new CustomAutoCompleteTextView(getActivity());\n spinnerCountryList.setHint(\"Select \"+(point.equals(\"loading\")?\"Loading\":\"Destination\")+ \" Country\");\n spinnerCityList.setHint(\"Select \"+(point.equals(\"loading\")?\"Loading\":\"Destination\")+ \" City\");\n spinnerCityList.setThreshold(1);\n spinnerCountryList.setThreshold(1);\n\n spinnerCountryList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n loadCities(((CountryModel)adapterView.getAdapter().getItem(i)).id);\n }\n\n private void loadCities(String id) {\n String url = Constants.BASE_URL + \"city\";\n HashMap<String,String> hmap= new HashMap<>();//{\"country_id\":\"101\"}\n hmap.put(\"country_id\", id);\n HttpPostRequest.doPost(getActivity(), url,new Gson().toJson(hmap), new HttpRequestCallback() {\n @Override\n public void response(String errorMessage, String responseData) {\n //Utils.hideLoadingPopup();\n try {\n listCity.clear();\n CountryModel countryModel;\n\n JSONObject jobj = new JSONObject(responseData);\n Boolean status = jobj.getBoolean(\"status\");\n if (status) {\n JSONArray jsonArray = jobj.getJSONArray(\"city_list\");\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jobject = jsonArray.getJSONObject(i);\n countryModel = new CountryModel();\n countryModel.id = jobject.getString(\"id\");\n countryModel.name = jobject.getString(\"name\");\n //countryModel.sortname = jobject.getString(\"sortname\");\n listCity.add(countryModel);\n }\n\n AutoSearchAdapter adapter = new AutoSearchAdapter(getActivity(), listCity);\n spinnerCityList.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n\n\n } else {\n Toast.makeText(getActivity(), jobj.getString(\"msg\"), Toast.LENGTH_SHORT).show();\n }\n\n }\n catch (Exception ex){ex.getMessage();}\n }\n\n @Override\n public void onError(String errorMessage) {\n\n }\n });\n }\n\n });\n\n\n listCountry= new ArrayList<>();\n adapter= new AutoSearchAdapter(getActivity(), listCountry);\n spinnerCountryList.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n\n\n listCity= new ArrayList<>();\n adapter = new AutoSearchAdapter(getActivity(), listCity);\n spinnerCityList.setAdapter(adapter);\n adapter.notifyDataSetChanged();\n if(Utils.isNetworkConnected(getActivity(),false)) {\n loadCountry(spinnerCountryList);\n }\n layout.addView(etPoint);\n layout.addView(spinnerCountryList);\n layout.addView(spinnerCityList);\n\n alertDialogBuilder.setView(layout);\n alertDialogBuilder.setTitle((point.equals(\"loading\")?\"Loading\":\"Destination\")+ \" Location\");\n\n alertDialogBuilder.setCancelable(false);\n\n // Setting Negative \"Cancel\" Button\n alertDialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.cancel();\n }\n });\n\n // Setting Positive \"OK\" Button\n alertDialogBuilder.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String lPoint = etPoint.getText().toString().trim();\n String countryName = spinnerCountryList.getText().toString().trim() ;\n String cityName = spinnerCityList.getText().toString().trim();\n if(!lPoint.isEmpty() && !cityName.isEmpty() && !countryName.isEmpty() ) {\n String lCity = cityName ;\n String lCountry = countryName;\n requestAddLocationPoint(point, lPoint, lCity, lCountry);\n }\n else\n Toast.makeText(getActivity(), \"All fields are required!\", Toast.LENGTH_SHORT).show();\n }\n\n\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n\n try {\n alertDialog.show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void displayCountry() {\n Country country = countryList.getCountryById(index);\n\n ImageView image = (ImageView) findViewById(R.id.ImageViewCountry);\n image.setImageResource(country.getImage());\n\n TextView name = (TextView) findViewById(R.id.CountryName);\n name.setText(country.getName());\n\n TextView capital = (TextView) findViewById(R.id.CountryCapital);\n capital.setText(country.getCapital());\n\n TextView population = (TextView) findViewById(R.id.CountryPopulation);\n population.setText(country.getPopulation());\n\n TextView climat = (TextView) findViewById(R.id.CountryClimat);\n climat.setText(country.getClimat());\n\n TextView description = (TextView) findViewById(R.id.CountryDescription);\n description.setText(country.getDescription());\n }", "public void addAdjCountry(Country country){\n adjList.add(country);\n }", "private void ActionChooseCountry() {\n final AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());\n dialog.setTitle(getString(R.string.dialog_title_choose_country));\n\n final List<String> countryNames = Arrays.asList(getResources().getStringArray(R.array.countries_names));\n final List<String> countryArgs = Arrays.asList(getResources().getStringArray(R.array.countries_arg));\n\n final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1);\n arrayAdapter.addAll(countryNames);\n\n dialog.setNegativeButton(getString(R.string.dialog_btn_cancel), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n\n dialog.setAdapter(arrayAdapter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n CoutryArg = countryArgs.get(i);\n\n tvChooseCountry.setText(countryNames.get(i));\n if (SourceId != null) {\n SourceId = null;\n tvChooseSource.setText(R.string.tv_pick_sourse);\n currentPage = 1;\n }\n }\n });\n dialog.show();\n }", "public void CountryComboSelect(){\n errorLabel.setText(\"\");\n ObservableList<Divisions> divisionsList = DivisionsImp.getAllDivisions();\n ObservableList<Divisions> filteredDivisions = FXCollections.observableArrayList();\n if (countryCombo.getValue() != null){\n int countryId = countryCombo.getValue().getCountryId();\n for(Divisions division : divisionsList){\n if(division.getCountryId() == countryId){\n filteredDivisions.add(division);\n }\n }\n divisionCombo.setItems(filteredDivisions);\n divisionCombo.setValue(null);\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, android.view.View view, int i, long l) {\n continent = continentSpinner.getSelectedItem().toString();\n\n String text = continent.replaceAll(\"\\\\s+\", \"\");\n text = text.toLowerCase();\n\n //creating name of corresponding countrie's xml string array\n String continentName = \"countries_\"+text+\"_array\";\n\n //fetching the list of countries of selected continent and storing it in to an array\n int countriesArrayID= getResources().getIdentifier(continentName , \"array\",AddNewLocation.this.getPackageName());\n String[] items = getResources().getStringArray(countriesArrayID);\n\n //showing list of countries as spinner dropdown items\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, items);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n countrySpinner.setAdapter(spinnerArrayAdapter);\n\n countrySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n country = countrySpinner.getSelectedItem().toString();\n System.out.println(\"selected country = \"+country);\n\n statesSpinner.setOnTouchListener(new AdapterView.OnTouchListener(){\n\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"states\";\n column_to_fetch = \"state\";\n column_to_serach = \"country\";\n value_to_search = new String[]{country};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add State +\");\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n state = statesSpinner.getSelectedItem().toString();\n// System.out.println(\"selected state = \"+state);\n if(state == \"Add State +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New State\");\n builder.setMessage(\"Enter State Name\");\n\n final EditText input_add_new_state = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_state.setLayoutParams(lp);\n builder.setView(input_add_new_state);\n// builder.setIcon(R.drawable.key);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n state = input_add_new_state.getText().toString();\n System.out.println(\"hehe=\"+state);\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(state);\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setSelection(((ArrayAdapter<String>)statesSpinner.getAdapter()).getPosition(state));\n\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n state = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New State\");\n alertDialog.show();\n }\n\n else\n {\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n state = \"\";\n }\n\n });\n\n System.out.println(\"stateeee=\"+state);\n return false;\n }\n });\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "public void setAddressCountry(String addressCountry) {\n this.addressCountry = addressCountry;\n }", "public String getCountry() {\r\n return this.country;\r\n }", "@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }", "@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tCountry_ID = (Integer.parseInt(lst_countries.get(position).get(\"Country_ID\")));\r\n\t\t\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id) {\n Toast.makeText(getApplicationContext(),country[position] , Toast.LENGTH_LONG).show();\n }", "public void setCountry (java.lang.String country) {\n\t\tthis.country = country;\n\t}", "public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n listeDansCB.addAll(Main.getHopital().listeSymptome());\n selecSymp.setItems(listeDansCB); \n \n listP = Main.getHopital().getListePatient();\n \n cbPatient.setOnMouseClicked(new EventHandler<MouseEvent>() {\n \n @Override\n public void handle(MouseEvent event) {\n \n lpat.clear();\n for(Patient p : listP){\n if(p.getNom().toLowerCase().contains(champRecherche.getText().toLowerCase())){\n lpat.add(p);\n }\n } \n }\n });\n cbPatient.itemsProperty().bind(listePatient);\n }", "public RemoveCountryPanel(GameEngine gameEngine,JPanel parent) {\n this.gameEngine = gameEngine;\n this.parent = parent;\n MapGenerator mapGenerator = gameEngine.getMapGenerator();\n initComponents();\n CountryList.setSelectedIndex(0);\n CountryList.setListData(mapGenerator.getListOfCountries().toArray());\n }", "private void gListValueChanged(ListSelectionEvent e) {\n }", "private void displayCountryFields() {\n FieldRelatedLabel countryLabel = new FieldRelatedLabel(\"Country\", 750, 470);\n try {\n country = new CountryComboBox(750, 500);\n sceneNodes.getChildren().add(country);\n } catch (IOException e) { e.printStackTrace(); }\n\n\n sceneNodes.getChildren().addAll(countryLabel);\n }", "@Override\n public void onItemSelected(AdapterView<?> adapter, View view,\n int position, long id) {\n chefRegCountry = countryList.get(position);\n countryid = countryId.get(position);\n\n if(!countryid.equalsIgnoreCase(\"-1\"))\n doStateList(countryid);\n }", "@Override\n public void onSelected(int selectedIndex, String item) {\n \t\n \t\n \t\n \tswitch(item){\n \tcase \"家庭健身\":\n \t\t//Log.d(\"xxx\", \"111\");\n \t\tpingyinPath_left = \"homefit\";\n \t\tWV_center.Dynamic_refresh(Arrays.asList(center_home));\n \t\t//Log.d(\"xxx\", Arrays.asList(center_home).toString());\n \t\t\n \t\tbreak;\n \tcase \"器械健身\":\n \t\t\n \t\tpingyinPath_left = \"gymfit\";\n \t\tString[] center_gym = new String[]{\"背部\",\"胸部\"};\n \t\tWV_center.Dynamic_refresh(Arrays.asList(center_gym));\n \t\t\n \t\tbreak;\n \tcase \"有氧运动\":\n \t\t\n \t\tpingyinPath_left = \"youyangyundong\";\n \t\tString[] center_O = new String[]{\"全部\"};\n \t\tWV_center.Dynamic_refresh(Arrays.asList(center_O));\n \t\t\n \t\tbreak;\n \tcase \"拉伸\":\n \t\t\n \t\tpingyinPath_left = \"lashen\";\n \t\tString[] center_extent = new String[]{\"全部\"};\n \t\tWV_center.Dynamic_refresh(Arrays.asList(center_extent));\n \t\t\n \t\tbreak;\n \t}\n }", "@Override\n public void onClick(View v) {\n displayCitylist();\n }", "public String getCountryName();", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n// lblCreateDate.setVisible(false);\n// fdCreateDate.setVisible(false);\n// lblCreatedBy.setVisible(false);\n// fdCreatedBy.setVisible(false);\n// lblLastUpdate.setVisible(false);\n// fdLastUpdate.setVisible(false);\n// lblLastUpdateBy.setVisible(false);\n// fdLastUpdateBy.setVisible(false);\n // System.out.println(\"add country ctrl\");\n }", "public CountryList() {\n\t\tthis.totalCount = 0;\n\t\tthis.nextAvailable = 0;\n\t}", "public void goToDictionaryKorea(View v) {\n countryCode = 1;\n countryName = getCountry(countryCode);\n goToDictionary(countryName);\n }", "@FXML\r\n void spanishSelected(ActionEvent event) \r\n {\r\n \t\r\n \t\r\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }", "@Override\n public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {\n countryAdapter.getFilter().filter(cs);\n //Toast.makeText(CovidCountry.this,cs,Toast.LENGTH_SHORT).show();\n }", "public ArrayList<String> showCity();", "public TIdCityStateCountryInfoView() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public void handleCityListEvent(UpdateEvent updateEvent) {\n if (updateEvent.getSuccess()) {\n initTownSelector();\n this.mapView.getMapAsync(new OnMapReadyCallback() {\n public final void onMapReady(GoogleMap googleMap) {\n SearchTownFragment.this.lambda$handleCityListEvent$1$SearchTownFragment(googleMap);\n }\n });\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n et_country = CountryNameSpinner.getSelectedItem().toString();\n et_mcode.setText(\"+\"+CountriesCode.get(position));\n }", "public ArrayList<Country> getCountryList() throws LocationException;", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryName[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\tpublic void onSelectionChanged(ListSelectionEvent e, List<ShoppingListObject> values) {\n\n\t}", "@FXML\n void selectCountry() {\n \t//hide all errors\n \thideErrors();\n \t//Getting start year and end year limits from /type/country/metadata.txt\n if (isComboBoxEmpty(T3_country_ComboBox.getValue())){\n //if nothing has been selected do nothing\n return;\n }\n String type = T3_type_ComboBox.getValue(); // getting type\n String country = T3_country_ComboBox.getValue(); // getting country\n //update ranges\n Pair<String,String> validRange = DatasetHandler.getValidRange(type,country);\n\n //update relevant menus\n\n int start = Integer.parseInt(validRange.getKey());\n int end = Integer.parseInt(validRange.getValue());\n //set up end list\n endOptions.clear();\n startOptions.clear();\n for (int i = start; i <= end ; ++i){\n endOptions.add(Integer.toString(i));\n startOptions.add(Integer.toString(i));\n }\n //set up comboBox default values and valid lists\n T3_startYear_ComboBox.setValue(Integer.toString(start));\n T3_endYear_ComboBox.setValue(Integer.toString(end));\n }", "public void fontNameListRegisterHandler( ListSelectionListener listSelectionListener )\r\n\t{\r\n\t\t// register event handler for the Font Names list\r\n\t\tfontNamesList.addListSelectionListener( listSelectionListener );\r\n\t}", "private void InitList()\n {\n Globals.list = new ArrayList<>();\n Globals.search_result = new ArrayList<>();\n Globals.selected_items = new ArrayList<>();\n\n Globals.list.add(\"Afghanistan\");\n Globals.list.add(\"Albania\");\n Globals.list.add(\"Algeria\");\n Globals.list.add(\"Andorra\");\n Globals.list.add(\"Angola\");\n Globals.list.add(\"Anguilla\");\n Globals.list.add(\"Antigua & Barbuda\");\n Globals.list.add(\"Argentina\");\n Globals.list.add(\"Armenia\");\n Globals.list.add(\"Australia\");\n Globals.list.add(\"Austria\");\n Globals.list.add(\"Azerbaijan\");\n Globals.list.add(\"Bahamas\");\n Globals.list.add(\"Bahrain\");\n Globals.list.add(\"Bangladesh\");\n Globals.list.add(\"Barbados\");\n Globals.list.add(\"Belarus\");\n Globals.list.add(\"Belgium\");\n Globals.list.add(\"Belize\");\n Globals.list.add(\"Benin\");\n Globals.list.add(\"Bermuda\");\n Globals.list.add(\"Bhutan\");\n Globals.list.add(\"Bolivia\");\n Globals.list.add(\"Bosnia & Herzegovina\");\n Globals.list.add(\"Botswana\");\n Globals.list.add(\"Brazil\");\n Globals.list.add(\"Brunei Darussalam\");\n Globals.list.add(\"Bulgaria\");\n Globals.list.add(\"Burkina Faso\");\n Globals.list.add(\"Myanmar/Burma\");\n Globals.list.add(\"Burundi\");\n Globals.list.add(\"Cambodia\");\n Globals.list.add(\"Cameroon\");\n Globals.list.add(\"Canada\");\n Globals.list.add(\"Cape Verde\");\n Globals.list.add(\"Cayman Islands\");\n Globals.list.add(\"Central African Republic\");\n Globals.list.add(\"Chad\");\n Globals.list.add(\"Chile\");\n Globals.list.add(\"China\");\n Globals.list.add(\"Colombia\");\n Globals.list.add(\"Comoros\");\n Globals.list.add(\"Congo\");\n Globals.list.add(\"Costa Rica\");\n Globals.list.add(\"Croatia\");\n Globals.list.add(\"Cuba\");\n Globals.list.add(\"Cyprus\");\n Globals.list.add(\"Czech Republic\");\n Globals.list.add(\"Democratic Republic of the Congo\");\n Globals.list.add(\"Denmark\");\n Globals.list.add(\"Djibouti\");\n Globals.list.add(\"Dominican Republic\");\n Globals.list.add(\"Dominica\");\n Globals.list.add(\"Ecuador\");\n Globals.list.add(\"Egypt\");\n Globals.list.add(\"El Salvador\");\n Globals.list.add(\"Equatorial Guinea\");\n Globals.list.add(\"Eritrea\");\n Globals.list.add(\"Estonia\");\n Globals.list.add(\"Ethiopia\");\n Globals.list.add(\"Fiji\");\n Globals.list.add(\"Finland\");\n Globals.list.add(\"France\");\n Globals.list.add(\"French Guiana\");\n Globals.list.add(\"Gabon\");\n Globals.list.add(\"Gambia\");\n Globals.list.add(\"Georgia\");\n Globals.list.add(\"Germany\");\n Globals.list.add(\"Ghana\");\n Globals.list.add(\"Great Britain\");\n Globals.list.add(\"Greece\");\n Globals.list.add(\"Grenada\");\n Globals.list.add(\"Guadeloupe\");\n Globals.list.add(\"Guatemala\");\n Globals.list.add(\"Guinea\");\n Globals.list.add(\"Guinea-Bissau\");\n Globals.list.add(\"Guyana\");\n Globals.list.add(\"Haiti\");\n Globals.list.add(\"Honduras\");\n Globals.list.add(\"Hungary\");\n }", "void onListClick();", "public MentorConnectRequestCompose addIndCountry(){\n\t\tmentorConnectRequestObjects.allCountries.click();\n\t\tmentorConnectRequestObjects.algeriaCountry.click();\n\t\tmentorConnectRequestObjects.allIndustries.click();\n\t\tmentorConnectRequestObjects.agriIndustry.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n googleMap.setOnMapClickListener(new OnMapClickListener() {\n\n @Override\n public void onMapClick(LatLng arg0) {\n\n\n // TODO Auto-generated method stub\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }\n });\n mMap = googleMap;\n\n // Add a marker in California and move the camera\n LatLng californiaMarker = new LatLng(37, -122);\n mMap.addMarker(new MarkerOptions().position(californiaMarker).title(\"Click anywhere to get more info\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(californiaMarker));\n }", "public final void setCountry(final String ccountry) {\n\t\tthis.country = ccountry;\n\t}", "public String getCountry() {\r\n return country;\r\n }", "public String getCountry() {\n return country;\n }" ]
[ "0.6993847", "0.6815438", "0.6449843", "0.6257576", "0.6169679", "0.6034225", "0.6006386", "0.60017526", "0.5976578", "0.59576446", "0.5937118", "0.5937118", "0.5937118", "0.5937118", "0.5937118", "0.5937118", "0.590331", "0.58997184", "0.58956355", "0.588129", "0.5851729", "0.5847891", "0.5829878", "0.5824537", "0.58186775", "0.58138657", "0.57889", "0.57807195", "0.5776188", "0.5761434", "0.5723062", "0.57197136", "0.57151014", "0.5698697", "0.5694211", "0.5694211", "0.5694211", "0.56584615", "0.56552327", "0.5652203", "0.56328994", "0.5629409", "0.5621089", "0.561605", "0.55918366", "0.558845", "0.5574507", "0.5569848", "0.55586493", "0.5548555", "0.5542767", "0.5542767", "0.5535271", "0.55340064", "0.55323064", "0.5521137", "0.55113125", "0.54948956", "0.548848", "0.5483998", "0.54806304", "0.54769737", "0.5471676", "0.5471155", "0.5465377", "0.5456743", "0.545251", "0.54498017", "0.5445115", "0.54425764", "0.54182816", "0.54150563", "0.54118764", "0.5404483", "0.539663", "0.53916526", "0.5389808", "0.5359909", "0.535633", "0.53509814", "0.53509814", "0.53509814", "0.53509814", "0.533428", "0.53328687", "0.5330015", "0.5317436", "0.5315242", "0.5312955", "0.5311909", "0.5310332", "0.53022254", "0.529919", "0.5289626", "0.52840704", "0.52824533", "0.52816534", "0.5266311", "0.5264937", "0.5263599" ]
0.61043036
5
code bellow checks if user has finished selecting countries,get selected countries
public void valueChanged(ListSelectionEvent e) { if(!e.getValueIsAdjusting()) { // gets values from your jList and added it to a list List values = spotView.getCountryJList().getSelectedValuesList(); spotView.setSelectedCountry(values); //based on country selection, state needs to be updated spotView.UpdateStates(spotView.getSelectedCountry()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CountryComboSelect(){\n errorLabel.setText(\"\");\n ObservableList<Divisions> divisionsList = DivisionsImp.getAllDivisions();\n ObservableList<Divisions> filteredDivisions = FXCollections.observableArrayList();\n if (countryCombo.getValue() != null){\n int countryId = countryCombo.getValue().getCountryId();\n for(Divisions division : divisionsList){\n if(division.getCountryId() == countryId){\n filteredDivisions.add(division);\n }\n }\n divisionCombo.setItems(filteredDivisions);\n divisionCombo.setValue(null);\n }\n }", "@FXML\n void selectCountry() {\n \t//hide all errors\n \thideErrors();\n \t//Getting start year and end year limits from /type/country/metadata.txt\n if (isComboBoxEmpty(T3_country_ComboBox.getValue())){\n //if nothing has been selected do nothing\n return;\n }\n String type = T3_type_ComboBox.getValue(); // getting type\n String country = T3_country_ComboBox.getValue(); // getting country\n //update ranges\n Pair<String,String> validRange = DatasetHandler.getValidRange(type,country);\n\n //update relevant menus\n\n int start = Integer.parseInt(validRange.getKey());\n int end = Integer.parseInt(validRange.getValue());\n //set up end list\n endOptions.clear();\n startOptions.clear();\n for (int i = start; i <= end ; ++i){\n endOptions.add(Integer.toString(i));\n startOptions.add(Integer.toString(i));\n }\n //set up comboBox default values and valid lists\n T3_startYear_ComboBox.setValue(Integer.toString(start));\n T3_endYear_ComboBox.setValue(Integer.toString(end));\n }", "void fetchCountryInformation();", "private void setCountrySelected(String countrySelected, String divisionSelected) {\n for (Countries country : countriesList) {\n if (country.getCountry().equals(countrySelected)){\n this.countryCB.setValue(country);\n this.firstLevelDivisions = FirstLevelDivisionsDAOImpl.getAllStatesProvinces(country.getCountryID());\n stateProvinceCB.setItems(this.firstLevelDivisions);\n setSelectedStateProvince(country.getCountryID(), divisionSelected);\n return;\n }\n }\n }", "private void ActionChooseCountry() {\n final AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());\n dialog.setTitle(getString(R.string.dialog_title_choose_country));\n\n final List<String> countryNames = Arrays.asList(getResources().getStringArray(R.array.countries_names));\n final List<String> countryArgs = Arrays.asList(getResources().getStringArray(R.array.countries_arg));\n\n final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1);\n arrayAdapter.addAll(countryNames);\n\n dialog.setNegativeButton(getString(R.string.dialog_btn_cancel), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n\n dialog.setAdapter(arrayAdapter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n CoutryArg = countryArgs.get(i);\n\n tvChooseCountry.setText(countryNames.get(i));\n if (SourceId != null) {\n SourceId = null;\n tvChooseSource.setText(R.string.tv_pick_sourse);\n currentPage = 1;\n }\n }\n });\n dialog.show();\n }", "private void pickCountry() {\r\n\t\tmch.clicked = false;\r\n\t\tloadButton.setVisible(false);\r\n\t\t\r\n\t\t//creates a temporary country to be moved around\r\n\t\tCountry tempC = null;\r\n\r\n\t\t//ensure the country that was clicked has yet to be claimed\r\n\t\tfor (int j = 0; j < CountryPicker.size(); j++) {\r\n\t\t\t//Add this country to the player's arrayList\r\n\t\t\tif (hoveredColor.equals(CountryPicker.get(j).getDetectionColor())) {\r\n\t\t\t\tCountryPicker.get(j).setClicked(true);\r\n\t\t\t\ttempC = CountryPicker.get(j);\r\n\t\t\t\t//colors the chosen country to the selecting player's color\r\n\t\t\t\tfor (int i = 0; i < CountryPicker.size(); i++) {\r\n\t\t\t\t\tif (CountryPicker.get(i).isClicked() == true) {\r\n\t\t\t\t\t\t threadz.recolorCountry(CountryPicker.get(i), players.get(turnCounter).getColor(), false );\r\n\t\t\t\t\t\tCountryPicker.remove(i);\r\n\t\t\t\t\t\ttempC.setTroops(1);\r\n\t\t\t\t\t\tplayers.get(turnCounter).addCountries(tempC);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Move on to the next player's turn\r\n\r\n\t\t\t\tturnCounter++;\r\n\t\t\t\tif (turnCounter >= players.size()) {\r\n\t\t\t\t\tturnCounter = 0;\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if there are no countriies left, reset the turn so player one moves first\r\n\t\tif (CountryPicker.size() == 0) {\r\n\t\t\tturnCounter = 0;\r\n\t\t}\r\n\r\n\t}", "public void getOption(View view) {\n Spinner spinner = (Spinner) findViewById(R.id.country_spinner);\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n if (spinner != null) {\n user_choice = String.valueOf(spinner.getSelectedItem());\n }\n Set<String> selections = settings.getStringSet(\"list_option_key\", null);\n if (selections != null) {\n if (selections.isEmpty()) {\n //User must select options for the graph to display.\n displayToast(\"No options selected, please try again.\");\n return;\n } else {\n //User has selected options we we get the country data associated with user options\n boolean use_local = settings.getBoolean(\"use_file_key\", true);\n processData(use_local, selections);\n }\n } else {\n //No options have been selected and this is the first time user is using the app so display message\n displayToast(\"No options selected, please try again.\");\n return;\n }\n }", "void countries_init() throws SQLException {\r\n countries = DatabaseQuerySF.get_all_stations();\r\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, android.view.View view, int i, long l) {\n continent = continentSpinner.getSelectedItem().toString();\n\n String text = continent.replaceAll(\"\\\\s+\", \"\");\n text = text.toLowerCase();\n\n //creating name of corresponding countrie's xml string array\n String continentName = \"countries_\"+text+\"_array\";\n\n //fetching the list of countries of selected continent and storing it in to an array\n int countriesArrayID= getResources().getIdentifier(continentName , \"array\",AddNewLocation.this.getPackageName());\n String[] items = getResources().getStringArray(countriesArrayID);\n\n //showing list of countries as spinner dropdown items\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, items);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n countrySpinner.setAdapter(spinnerArrayAdapter);\n\n countrySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n\n country = countrySpinner.getSelectedItem().toString();\n System.out.println(\"selected country = \"+country);\n\n statesSpinner.setOnTouchListener(new AdapterView.OnTouchListener(){\n\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"states\";\n column_to_fetch = \"state\";\n column_to_serach = \"country\";\n value_to_search = new String[]{country};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add State +\");\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n state = statesSpinner.getSelectedItem().toString();\n// System.out.println(\"selected state = \"+state);\n if(state == \"Add State +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New State\");\n builder.setMessage(\"Enter State Name\");\n\n final EditText input_add_new_state = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_state.setLayoutParams(lp);\n builder.setView(input_add_new_state);\n// builder.setIcon(R.drawable.key);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n state = input_add_new_state.getText().toString();\n System.out.println(\"hehe=\"+state);\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(state);\n\n ArrayAdapter<String> spinnerArrayAdapter = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n statesSpinner.setAdapter(spinnerArrayAdapter);\n\n statesSpinner.setSelection(((ArrayAdapter<String>)statesSpinner.getAdapter()).getPosition(state));\n\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n state = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New State\");\n alertDialog.show();\n }\n\n else\n {\n //district spinner flow starts here\n if(state != \"\")\n {\n System.out.println(\"entered to district spinner flow\");\n districtsSpinner.setOnTouchListener(new AdapterView.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent motionEvent) {\n table_name = \"districts\";\n column_to_fetch = \"district\";\n column_to_serach = \"state\";\n value_to_search = new String[]{state};\n\n db_table_result_rows_list = travlogDB.getAllQueriedRows(column_to_fetch, table_name, column_to_serach, value_to_search);\n\n db_table_result_rows_list.add(\"Add District +\");\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n district = districtsSpinner.getSelectedItem().toString();\n// System.out.println(\"selected district = \"+district);\n if(district == \"Add District +\")\n {\n //showing pop up alert dialog box to add new item\n AlertDialog.Builder builder = new AlertDialog.Builder(AddNewLocation.this);\n builder.setTitle(\"Add New District\");\n builder.setMessage(\"Enter District Name\");\n\n final EditText input_add_new_district = new EditText(AddNewLocation.this);\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input_add_new_district.setLayoutParams(lp);\n builder.setView(input_add_new_district);\n\n builder.setCancelable(true)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Yes\"\n district = input_add_new_district.getText().toString();\n\n db_table_result_rows_list.remove(0);\n db_table_result_rows_list.add(district);\n\n ArrayAdapter<String> spinnerArrayAdapterDistrict = new ArrayAdapter<String>(AddNewLocation.this.getApplicationContext(), android.R.layout.simple_spinner_item, db_table_result_rows_list);\n spinnerArrayAdapterDistrict.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // The drop down view\n districtsSpinner.setAdapter(spinnerArrayAdapterDistrict);\n\n districtsSpinner.setSelection(((ArrayAdapter<String>)districtsSpinner.getAdapter()).getPosition(district));\n\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // this block will execute when we click on \"Cancel\"\n district = \"\";\n dialogInterface.cancel();\n }\n });\n\n AlertDialog alertDialog = builder.create();\n alertDialog.setTitle(\"Add New District\");\n alertDialog.show();\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n district = \"\";\n }\n });\n return false;\n }\n });\n }\n\n //district spinnner flow ends here\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n state = \"\";\n }\n\n });\n\n System.out.println(\"stateeee=\"+state);\n return false;\n }\n });\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "@Override\n public void onSelectCountry(Country country) {\n // get country name and country ID\n countryName.setText(country.getName());\n countryName.setVisibility(View.VISIBLE);\n countryID = country.getCountryId();\n statePicker.equalStateObject.clear();\n cityPicker.equalCityObject.clear();\n\n //set state name text view and state pick button invisible\n //pickStateButton.setVisibility(View.VISIBLE);\n //stateNameTextView.setVisibility(View.VISIBLE);\n stateNameTextView.setText(\"State\");\n cityName.setText(\"City\");\n // set text on main view\n flagImage.setBackgroundResource(country.getFlag());\n\n\n // GET STATES OF SELECTED COUNTRY\n for (int i = 0; i < stateObject.size(); i++) {\n // init state picker\n statePicker = new StatePicker.Builder().with(this).listener(this).build();\n State stateData = new State();\n if (stateObject.get(i).getCountryId() == countryID) {\n\n stateData.setStateId(stateObject.get(i).getStateId());\n stateData.setStateName(stateObject.get(i).getStateName());\n stateData.setCountryId(stateObject.get(i).getCountryId());\n stateData.setFlag(country.getFlag());\n statePicker.equalStateObject.add(stateData);\n }\n }\n }", "public void getCountries() {\n\n\n SimpleProgressBar.showProgress(AddressesActivity.this);\n try {\n final String url = Contents.baseURL + \"getAllCountries\";\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, url,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n SimpleProgressBar.closeProgress();\n Log.e(\"device response\", response);\n try {\n JSONObject object = new JSONObject(response);\n String status = object.getString(\"status\");\n String message = object.getString(\"message\");\n if (status.equals(\"1\")) {\n\n country_name = new ArrayList<String>();\n iso_name = new ArrayList<String>();\n JSONArray jsonArray = object.getJSONArray(\"record\");\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject c = jsonArray.getJSONObject(i);\n if (session.getKeyLang().equals(\"Arabic\")) {\n country_name.add(c.getString(\"name_arabic\"));\n } else {\n country_name.add(c.getString(\"name\"));\n }\n iso_name.add(c.getString(\"iso\"));\n }\n\n //Creating the ArrayAdapter instance having the country list\n ArrayAdapter aa = new ArrayAdapter(AddressesActivity.this, android.R.layout.simple_spinner_item, country_name);\n aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spin_country.setAdapter(aa);\n\n spin_country.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n System.out.println(\"OSO NAME===\" + iso_name.get(position));\n getProvinces(iso_name.get(position));\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n for (int i = 0; i < iso_name.size(); i++) {\n if (iso_name.get(i).contains(\"KW\")) {\n position = i;\n //mDob=iso_name.get(position);\n break;\n }\n }\n\n spin_country.setSelection(position);\n\n } else {\n\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n SimpleProgressBar.closeProgress();\n }\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n if (error != null && error.networkResponse != null) {\n Toast.makeText(getApplicationContext(), R.string.server_error, Toast.LENGTH_SHORT).show();\n\n } else {\n Toast.makeText(getApplicationContext(), R.string.no_internet, Toast.LENGTH_SHORT).show();\n }\n SimpleProgressBar.closeProgress();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"appUser\", \"tefsal\");\n params.put(\"appSecret\", \"tefsal@123\");\n params.put(\"appVersion\", \"1.1\");\n\n Log.e(\"Refsal device == \", url + params);\n\n return params;\n }\n\n };\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(30000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n RequestQueue requestQueue = Volley.newRequestQueue(AddressesActivity.this);\n stringRequest.setShouldCache(false);\n requestQueue.add(stringRequest);\n\n } catch (Exception surError) {\n surError.printStackTrace();\n }\n }", "public void onCountrySelect(ActionEvent actionEvent) {\n divisionCombo.getItems().clear();\n int selectedCountryId;\n if (countryCombo.getValue().equals(\"U.S\")) {\n selectedCountryId = 1;\n }\n else if (countryCombo.getValue().equals(\"UK\")) {\n selectedCountryId = 2;\n }\n else if (countryCombo.getValue().equals(\"Canada\")) {\n selectedCountryId = 3;\n }\n else {\n selectedCountryId = 0;\n }\n\n ObservableList<String> divisionNames = FXCollections.observableArrayList();\n for (FirstLevelDivisions f : DBFirstLevelDivisions.getAllDivisionsFromCountryID(selectedCountryId)) {\n divisionNames.add(f.getName());\n }\n divisionCombo.setItems(divisionNames);\n }", "private void buildCountryComboBox() {\n ResultSet rs = DatabaseConnection.performQuery(\n session.getConn(),\n Path.of(Constants.QUERY_SCRIPT_PATH_BASE + \"SelectCountryByID.sql\"),\n Collections.singletonList(Constants.WILDCARD)\n );\n\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n if (rs != null) {\n while (rs.next()) {\n int id = rs.getInt(\"Country_ID\");\n String name = rs.getString(\"Country\");\n countries.add(new Country(id, name));\n }\n }\n } catch (Exception e) {\n Common.handleException(e);\n }\n\n countryComboBox.setItems(countries);\n\n countryComboBox.setConverter(new StringConverter<>() {\n @Override\n public String toString(Country item) {\n return item.getCountryName();\n }\n\n @Override\n public Country fromString(String string) {\n return null;\n }\n });\n }", "@Override\n public void onSelectCountry(Country country) {\n // get country name and country ID\n binding.editTextCountry.setText(country.getName());\n countryID = country.getCountryId();\n statePicker.equalStateObject.clear();\n cityPicker.equalCityObject.clear();\n \n //set state name text view and state pick button invisible\n setStateListener();\n \n // set text on main view\n// countryCode.setText(\"Country code: \" + country.getCode());\n// countryPhoneCode.setText(\"Country dial code: \" + country.getDialCode());\n// countryCurrency.setText(\"Country currency: \" + country.getCurrency());\n// flagImage.setBackgroundResource(country.getFlag());\n \n \n // GET STATES OF SELECTED COUNTRY\n for (int i = 0; i < stateObject.size(); i++) {\n // init state picker\n statePicker = new StatePicker.Builder().with(this).listener(this).build();\n State stateData = new State();\n if (stateObject.get(i).getCountryId() == countryID) {\n \n stateData.setStateId(stateObject.get(i).getStateId());\n stateData.setStateName(stateObject.get(i).getStateName());\n stateData.setCountryId(stateObject.get(i).getCountryId());\n stateData.setFlag(country.getFlag());\n statePicker.equalStateObject.add(stateData);\n }\n }\n }", "public static void getCountries() {\n\t\tJSONArray countries = (JSONArray) FileParser.dataSetter().get(\"countries\");\n\t\tfor(int i = 0, size = countries.size(); i < size; i++) {\n\t\t\tJSONObject objectInArray = (JSONObject) countries.get(i);\n\t\t\tSystem.out.println(objectInArray.get(\"name\"));\n\t\t}\n\t}", "public void handleCountrySelection(ActionEvent actionEvent) {\n }", "public void divyCountries() {\r\n\t\twhile (CountryPicker.size() > 0) {\r\n\t\t\tfor (int x = 0; x < 6; x++) {\r\n\t\t\t\tif (CountryPicker.size() > 0) {\r\n\t\t\t\t\tnew threadz(CountryPicker.get(0), players.get(x).getColor(), false);\r\n\t\t\t\t\tCountryPicker.get(0).setTroops(1);\r\n\t\t\t\t\tplayers.get(x).addCountries(CountryPicker.get(0));\r\n\t\t\t\t\tCountryPicker.remove(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@FXML\n public void changeCountry(ActionEvent event) {\n Countries countries = countryCB.getSelectionModel().getSelectedItem();\n\n showStatesProvinces(countries.getCountryID());\n }", "public JSONArray getCountry(Activity act)\n\t{\n\t\tJSONArray json = null;\n\n\t\tprefManager = new SharedPrefManager(act);\n\t\tHashMap<String, String> init = prefManager.getCountry();\n\t\tString dataCountry = init.get(SharedPrefManager.COUNTRY);\n\t\tLog.e(\"dataCountry\",dataCountry);\n\n\t\ttry {\n\t\t\tjson = new JSONArray(dataCountry);\n\t\t\tLog.e(\"json\",Integer.toString(json.length()));\n\t\t}catch (JSONException e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\n\t\t/*Locale[] locales = Locale.getAvailableLocales();\n\t\tArrayList<String> countries = new ArrayList<String>();\n\n\t\tfor (Locale locale : locales) {\n\t\t\tString country = locale.getDisplayCountry();\n\t\t\tString countryCode = locale.getCountry();\n\n\n\t\t\tif (country.trim().length()>0 && !countries.contains(country)) {\n\t\t\t\tcountries.add(country+\"-\"+countryCode);\n\t\t\t}\n\t\t}\n\n\t\tCollections.sort(countries);\n\t\treturn countries;*/\n\t}", "public void allocateCountries() {\n\t\tmakeDeck() ;\n\t\t\n\t\tint id =0;\n\t\t//Randomly give players 9 country cards, and place 1 army on country\n\t\tfor(int j=0;j<Constants.NUM_PLAYERS;j++) {\n\t\t\tfor (int i=0; i<9;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else {\n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t\t\n\t\t\t\t\t//Tells user what cards where drawn\n\t\t\t\t\tview.displayString(\"Player \"+(j+1)+\" Drew Card ' \" +deck.get(0).toString()+\"'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set rest of countries to neutrals with 1 army\n\t\tfor(int j=Constants.NUM_PLAYERS;j<6;j++) {\n\t\t\tfor (int i=0; i<6;i++) {\n\t\t\t\tid = deck.get(0).getCardID() ;\n\t\t\t\tif(deck.get(0).getInsignia()=='w') {\n\t\t\t\t\ti--;\n\t\t\t\t} else { \n\t\t\t\t\tsetCountryOwnership(j, id, 1);\n\t\t\t\t}\n\t\t\t\tdiscardPile.add(deck.remove(0));\n\t\t\t}\n\t\t}\n\t\t//Adds cards back to deck and shuffles\n\t\tdiscardToDeck() ;\t\t\n\t}", "@FXML\n void selectType() {\n \t//hide all errors\n \thideErrors();\n \t//get countries from /type/metadata.txt\n \t//Reset range string\n T3_startYear_ComboBox.setValue(\"\");\n T3_endYear_ComboBox.setValue(\"\");\n //update country list\n String type = T3_type_ComboBox.getValue(); // getting type\n countries.clear();\n for (String country: DatasetHandler.getCountries(type)){\n countries.add(country);\n }\n T3_country_ComboBox.setValue(\"\");\n //clearing the StartYear and EndYear values and lists\n }", "boolean hasCountry();", "private void showStatesProvinces(int countryID){\n this.firstLevelDivisions = FirstLevelDivisionsDAOImpl.getAllStatesProvinces(countryID);\n if (countryID == 1){\n stateProvinceCB.setPromptText(\"Select A State\");\n }else{\n stateProvinceCB.setPromptText(\"Select A Province\");\n }\n stateProvinceCB.setItems(this.firstLevelDivisions);\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public void countryComboBoxListener() {\n countryComboBox.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> buildDivisionComboBox());\n }", "List<Country> selectAll();", "List<Country> listCountries();", "public ComboItem[] getCountries() {\r\n\t\treturn countries;\r\n\t}", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int arg2, long arg3) {\n Country selectedCountry;\n country = new Country();\n if (!(ssWholeSale_Imported_Country.getSelectedItem() == null)) {\n selectedCountry = (Country) ssWholeSale_Imported_Country.getSelectedItem();\n app.setImportSugarCountryOfOrigin(selectedCountry);\n\n String country_id = (String) selectedCountry.getC_country_id();\n\n country = selectedCountry;\n\n }\n }", "@Override\n public void onItemSelected(AdapterView<?> adapter, View view,\n int position, long id) {\n chefRegCountry = countryList.get(position);\n countryid = countryId.get(position);\n\n if(!countryid.equalsIgnoreCase(\"-1\"))\n doStateList(countryid);\n }", "public void setCountryItems(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = COUNTRY_OPTIONS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t\tthis.countries = comboItems;\r\n\t}", "public static String[] getDownloadedCountries(Context context){\n SharedPreferences sharedPreferences = context.getSharedPreferences(Values.PREFERENCES_NAME, Context.MODE_PRIVATE);\n File downloadPath = null;\n //We can save resources either in external sd or internal shared storage, we scan the last known download location\n switch (sharedPreferences.getString(Values.DOWNLOAD_LOCATION, Values.LOCATION_INTERNAL)){\n case Values.LOCATION_INTERNAL:\n downloadPath = context.getExternalFilesDir(null);\n break;\n case Values.LOCATION_EXTERNAL:\n if(hasWritableSd(context))\n downloadPath = context.getExternalFilesDirs(null)[1];\n break;\n //If the user has yet to download a package, we return null. This branch is repetitive but added for clarity\n case Values.NOT_YET_DECIDED:\n downloadPath = null;\n break;\n }\n if(downloadPath != null){\n String[] downloadedCountries;\n //Get list of directories, each corresponding to a different country\n File[] resFolders = downloadPath.listFiles(new FileFilter() {\n @Override\n public boolean accept(File pathname) {\n return pathname.isDirectory();\n }\n });\n if(resFolders != null){\n if(resFolders.length == 0)\n return null;\n //countriesNames contains the english name of all supported countries\n //All resFolders will always use the english names of the countries\n String[] countriesNames = Values.COUNTRIES_DEFAULT_NAMES;\n downloadedCountries = new String[resFolders.length];\n //Get folder name and translate country name\n for(int i = 0; i < resFolders.length; i++) {\n String[] folderPath = resFolders[i].getAbsolutePath().split(\"/\");\n String folderName = folderPath[folderPath.length - 1];\n for (String countryName : countriesNames) {\n //If found folder with name matching one country, add it to the list\n if (folderName.equals(countryName)) {\n downloadedCountries[i] = folderName;\n break;\n }\n }\n }\n return downloadedCountries;\n }\n }\n\n return null;\n }", "@GET\r\n\t@Path(\"/countries\")\r\n\tpublic Response getAllCountries() {\r\n\t\ttry {\r\n\t\t\tList<CountryCreatedDto> countryCreatedDto = institutionService.getAllCountries();\r\n\t\t\treturn FarmsResponse.ok(countryCreatedDto);\r\n\t\t} catch (Exception ex) {\r\n\t\t\t// logger.error(ErrorMessage.OPERATION_NOT_RESPONDING, ex);\r\n\t\t\tFarmsMail.sendMailText(\"[email protected]\", \"Erro\", ex.getMessage() + \" \" + ex.toString());\r\n\t\t\treturn FarmsResponse.error(ErrorMessage.OPERATION_NOT_RESPONDING);\r\n\t\t}\r\n\t}", "@RequestMapping(value = \"/getCountries.abhi\")\n\tpublic List<CountryTO> getCountries(Model model, HttpServletRequest request) {\n\n\t\treturn addressService.getAllActiveCountries();\n\n\t}", "public void selectCountry() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tWebElement countryelement = driver.findElement(By.xpath(\"//select[@name='contact.countryCode']\"));\n\t\tSelect se = new Select(countryelement);\n\t\tse.selectByVisibleText(BasePage.getCellData(xlsxName, sheetName, 18, 0));\n\n\t}", "Country getAvailableCountryById(int countryId);", "public List<Country> getAllAvailableCountry() {\n\t\treturn countryManager.getAllAvailable();\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n counselorDetailsBEAN = new CounselorDetailsBEAN();\n counselorDetailsBEAN = Context.getInstance().currentProfile().getCounselorDetailsBEAN();\n ENQUIRY_ID = counselorDetailsBEAN.getEnquiryID();\n // JOptionPane.showMessageDialog(null, ENQUIRY_ID);\n countryCombo();\n cmbCountry.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n \n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n //JOptionPane.showMessageDialog(null, cmbCountry.getSelectionModel().getSelectedItem().toString());\n String[] parts = cmbCountry.getSelectionModel().getSelectedItem().toString().split(\",\");\n String value = parts[0];\n locationcombo(value);\n }\n\n private void locationcombo(String value) {\n List<String> locations = SuggestedCourseDAO.getLocation(value);\n for (String s : locations) {\n location.add(s);\n }\n cmbLocation.setItems(location);\n }\n\n });\n cmbLocation.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n universityCombo(cmbLocation.getSelectionModel().getSelectedItem().toString());\n }\n\n private void universityCombo(String value) {\n List<String> universities = SuggestedCourseDAO.getUniversities(value);\n for (String s : universities) {\n university.add(s);\n }\n cmbUniversity.setItems(university);\n }\n \n });\n cmbUniversity.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Object>() {\n\n @Override\n public void changed(ObservableValue<? extends Object> observable, Object oldValue, Object newValue) {\n levetCombo(cmbUniversity.getSelectionModel().getSelectedItem().toString());\n }\n\n private void levetCombo(String value) {\n List<String> levels = SuggestedCourseDAO.getLevels(value);\n for (String s : levels) {\n level.add(s);\n }\n cmbLevel.setItems(level);\n }\n });\n\n }", "@Override\n\t\t\t\t\tpublic void onSelectCountry(String name, String code) {\n\t\t\t\t\t\tIntent intent = new Intent(contry.this, SignUpActivity.class);\n\t\t\t\t\t\t intent.putExtra(\"pays_iso\",code); \n\t\t\t\t\t\t intent.putExtra(\"pays_name\",name); \n\t\t\t\t\t\t intent.putExtra(\"device_key\",registrationId); \n\t\t\t\t\t\tstartActivityForResult(intent, 0);\n\t\t\t\t\t\toverridePendingTransition(R.anim.slidein, R.anim.slideout);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "public void getCountries(HttpServletResponse resp, List<CountryDto> countries,\n CountryUcc countryUcc) {\n try {\n if (countries == null) {\n countries = countryUcc.findAllDtos();\n }\n String json = new Genson().serialize(countries);\n resp.setContentType(\"application/json\");\n resp.getOutputStream().write(json.getBytes());\n } catch (IOException exp) {\n exp.printStackTrace();\n } catch (TransactionErrorException exp1) {\n exp1.printStackTrace();\n } catch (InternalServerException exp2) {\n exp2.printStackTrace();\n }\n }", "static public void set_country_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"country name:\", \"area (1000 km^2):\", \"GDP per capita (1000 $):\",\n\t\t\t\t\"population (million):\", \"capital:\", \"GDP (billion $):\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3), Edit_row_window.selected[0].getText(4), \n\t\t\t\tEdit_row_window.selected[0].getText(5), Edit_row_window.selected[0].getText(6)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_places_locations l, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_places_location_country lc \" +\n\t\t\t\t\t\t\t\t\t\t\t\" where lc.location_id=l.id and lc.country_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct l.id, l.name, l.num_links, l.population \" +\n\t\t\t\t\" from curr_places_locations l \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"location name\", \"rating\", \"population\"};\n\t\tEdit_row_window.label_min_parameter=\"min. population:\";\n\t\tEdit_row_window.linked_category_name = \"LOCATIONS\";\n\t}", "@Override\r\n public void assignCountries() {\r\n printInvalidCommandMessage();\r\n }", "public final void go() {\n this.getView().showCountries(this.getModel().getCountries());\n CountryFindChoice choice;\n do {\n choice = this.getView().askUserFindChoice();\n } while (choice == CountryFindChoice.error);\n String codeOrName = this.getView().askCodeOrName(choice);\n Country country = null;\n switch (choice) {\n case byCode:\n country = this.getModel().getCountryByCode(codeOrName);\n break;\n case byName:\n country = this.getModel().getCountryByName(codeOrName);\n break;\n }\n if(country != null) {\n this.getView().printMessage(country.getHelloWorld().getMessage());\n }\n this.getModel().close();\n }", "private void populateCountryList(JComboBox cmbCountryList)\n {\n cmbCountryList.removeAllItems();\n CountryEnterprise countryEnterprise;\n \n for(Enterprise country: internationalNetwork.getEnterpriseDirectory().getEnterpriseList())\n {\n cmbCountryList.addItem((CountryEnterprise) country);\n }\n \n }", "public static ObservableList<Country> getAllCountries() {\n ObservableList<Country> countries = FXCollections.observableArrayList();\n try {\n String sql = \"SELECT * from countries\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n int countryID = rs.getInt(\"Country_ID\");\n String countryName = rs.getString(\"Country\");\n Country c = new Country(countryID,countryName);\n countries.add(c);\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return countries;\n }", "private void showCountryPickerDialog() {\n final Dialog popUpDialogCountry = new Dialog(getActivity());\n popUpDialogCountry.requestWindowFeature(Window.FEATURE_NO_TITLE);\n popUpDialogCountry.setContentView(R.layout.dialog_country_code_picker);\n popUpDialogCountry.setCancelable(true);\n\n WindowManager.LayoutParams lp = popUpDialogCountry.getWindow().getAttributes();\n lp.dimAmount = 0.5f;\n popUpDialogCountry.getWindow().setAttributes(lp);\n popUpDialogCountry.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n popUpDialogCountry.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n RecyclerView rv_dialog_list = (RecyclerView) popUpDialogCountry.findViewById(R.id.rv_country_code);\n rv_dialog_list.setLayoutManager(new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL, false));\n EditText etSearch = (EditText) popUpDialogCountry.findViewById(R.id.et_search);\n etSearch.setHint(R.string.hint_search_country);\n ProgressBar progressBar = (ProgressBar) popUpDialogCountry.findViewById(R.id.progress_bar);\n TextView tvNoRecords = (TextView) popUpDialogCountry.findViewById(R.id.tv_no_records);\n // dropDownDataList.clear();\n // dropDownDataList.addAll(countryList);\n\n\n //filter list\n etSearch.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (countryAdapter != null)\n countryAdapter.getFilter().filter(s);\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n\n if (appUtils.isInternetOn(getActivity())) {\n hitListingApi(COUNTRY_TYPE, \"\", progressBar, rv_dialog_list, popUpDialogCountry, tvNoRecords);\n } else {\n appUtils.showSnackBar(getView(), getString(R.string.internet_offline));\n }\n popUpDialogCountry.show();\n\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "@Override\n\tpublic List<Country> getCountries() {\n\t\tCountryRootObject countryRootObject = restTemplate.getForObject(urlForDatabaseCountries(), CountryRootObject.class);\n\n\t\treturn countryRootObject.getResponse().getItems();\n\t}", "@Override\n\t\t\tpublic void onSelectCountry(String name, String code) {\n\t\t\t\tIntent intent = new Intent(contry.this, SignUpActivity.class);\n\t\t\t\t intent.putExtra(\"pays_iso\",code); \n\t\t\t\t intent.putExtra(\"pays_name\",name); \n\t\t\t\t intent.putExtra(\"device_key\",registrationId); \n\t\t\t\tstartActivityForResult(intent, 0);\n\t\t\t\toverridePendingTransition(R.anim.slidein, R.anim.slideout);\n\t\t\t\tfinish();\n\t\t\t}", "@RequestMapping(value = \"/countries\", method = RequestMethod.GET)\n public List<Country> countries() {\n return dictionaryService.findAllCountries();\n }", "java.lang.String getCountry();", "java.lang.String getCountry();", "public static java.lang.String[] getAvailableIDs(java.lang.String country) { throw new RuntimeException(\"Stub!\"); }", "Continent getSelectedContinent();", "private List<Country> selectQuizCountries(List<Country> countries, int number) {\n // sanitize input\n if (number < 0) {\n number = MainActivity.DEFAULT_SIZE;\n }\n // extreme values\n if (countries.isEmpty()) {\n return null;\n }\n if (number >= countries.size()) {\n return countries;\n }\n Collections.shuffle(countries);\n return countries.subList(0, number);\n }", "public ObservableList<String> queryAllCountries() {\n ObservableList<String> countries = FXCollections.observableArrayList();\n try (PreparedStatement stmt = this.conn.prepareStatement(\"SELECT DISTINCT country from country GROUP BY country\")) {\n\n ResultSet result = stmt.executeQuery();\n\n while (result.next()) {\n countries.add(result.getString(\"country\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n return countries;\n }", "public void chooseFortifyGivers(){\n gameState = GameState.FORTIFYGIVER;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getFortifyGivers());\n notifyObservers();\n }", "private void setCountries(List<Country> countries) {\n this.countries = countries;\n }", "public List<CountryMasterDesc> getCountryListFromDB() {\n\t\t sessionStateManage = new SessionStateManage(); \n\t\tcountryList = new ArrayList<CountryMasterDesc>();\n\t\tcountryList.addAll( getGeneralService().getCountryList(new BigDecimal(sessionStateManage.isExists(\"languageId\")?sessionStateManage.getSessionValue(\"languageId\"):\"1\")));\n\t\tfor(CountryMasterDesc countryMasterDesc:countryList) {\n\t\t\tmapCountryList.put(countryMasterDesc.getFsCountryMaster().getCountryId(), countryMasterDesc.getCountryName());\n\t\t}\n \t\treturn countryList;\n\t}", "@FXML\n public void selectOneCountry(MouseEvent mouseEvent) {\n int countryIndex = lsv_ownedCountries.getSelectionModel().getSelectedIndex();\n ObservableList datalist = InfoRetriver.getAdjacentCountryObservablelist(Main.curRoundPlayerIndex, countryIndex);\n\n lsv_adjacentCountries.setItems(datalist);\n ListviewRenderer.renderCountryItems(lsv_adjacentCountries);\n }", "@FXML\r\n private ObservableList<String> divisionHandler(ActionEvent event) throws IOException{\r\n divisions.removeAll(divisions);\r\n\r\n\r\n Connection connection;\r\n try {\r\n String country = cityComboBox.getValue().toString();\r\n connection = Database.getConnection();\r\n ResultSet getID = connection.createStatement().executeQuery(String.format(\"SELECT Country_ID FROM countries WHERE country = '%s'\", country));\r\n getID.next();\r\n\r\n ResultSet rs = connection.createStatement().executeQuery(String.format(\"SELECT Division FROM first_level_divisions WHERE COUNTRY_ID = '%s'\", getID.getInt(\"Country_ID\")));\r\n while (rs.next()) {\r\n divisions.add(rs.getString(\"Division\"));\r\n }\r\n DivisionComboBox.setItems(divisions);\r\n }catch (SQLException e){System.out.println(e.getMessage());}\r\n return divisions;\r\n }", "public List<Country> getCountries()\n {\n return countries;\n }", "List<GenericTypedGrPostal> getCountryNames();", "@PostConstruct\r\n public void getCountriesKeysAndNamesAtApplicationStartUp() {\r\n ViewsController.countries = new HashMap<>();\r\n Object object = restTemplate.getForObject(\"https://api.covid19tracking.narrativa.com/api/countries\", Object.class);\r\n new HashMap<>();\r\n if (object != null) {\r\n ObjectMapper objectMapper = new ObjectMapper();\r\n Country data = objectMapper.convertValue(object, Country.class);\r\n for (Country_ country : data.getCountries()) {\r\n ViewsController.countries.put(country.getId(), country.getName());\r\n }\r\n }\r\n }", "public static void getLangCharCode(Connection conn, String selected, TextArea textArea, int num)\n{\n\t//String countryCode = \"\";\n\t//String language = \"\";\n\t\n\ttry {\n\t\t\n\t\t//works\n\t\t//System.out.println(\"Made it\" + \"***8\" + selected);\n\t\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\t\n\t\t//grabbing correct continent :)\n\t\tString sqlStatement = \"SELECT countryCode FROM Language WHERE language = '\" + selected +\"'\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\tArrayList<String> list = new ArrayList();\n\t\t//this caused a lot of problems -- specifically the invalid cursor state. You must move the cursor up one in a database\n\t\twhile(result.next())\n\t\t{\n\t\t\t\n\t\tlist.add(result.getString(\"countrycode\"));\n\t\t//countryCode = result.getString(\"countryCode\");\n\t\t//System.out.println(countryCode);\n\t\t//getting the countries from the first table by city code\n\t\t}\n\t\t\n\t\t//depending on the number passed through, we will be getting either population, continent, etc\n\t\tif(num == 1)\n\t\t{\n\t\tfor(int i = 0; i < list.size(); i++)\n\t\t{\n\t\t\tgetLanguageContinent(conn, list.get(i), textArea, i);\n\t\t}\n\t\t}\n\t\t\n\t\tif (num == 2)\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\t{\n\t\t\t\tgetLanguagePopulation(conn, list.get(i), textArea, list, i);\n\t\t\t}\n\t\t\n\t\tif(num == 3)\n\t\t{\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\n\t\t\t{\n\t\t\t\t\n\t\t\tgetLanguageLifeExpectancy(conn, list.get(i), textArea, list, i);\n\t\t\t}\n\t\t\t}\n\t\t\n\t\tif(num == 4)\n\t\t{\n\t\t\tfor(int i = 0; i < list.size(); i++)\n\t\t\n\t\t\t{\n\t\t\tgetLanguageCountry(conn, list.get(i), textArea, i);\n\t\t\t}\n\t\t\t}\n\t\t\n\t\tstmt.close();\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t\n}", "public void getCountryCode(final Spinner country){\n\n StringRequest stringRequest = new StringRequest(Request.Method.POST, DatabaseInfo.GetCountrycodeURL,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n Log.d(\"Volleyresponse\",response.toString());\n try {\n JSONArray jArray;\n JSONObject Jobject = (JSONObject) new JSONTokener(response).nextValue();\n Log.e(\"volleyJson\", Jobject.toString());\n try {\n jArray = Jobject.getJSONArray(\"country\");\n Toast.makeText(getApplicationContext(),String.valueOf(jArray.length()+1),Toast.LENGTH_SHORT).show();\n int jarraylength=jArray.length()+1;\n\n String c1[] = new String[jarraylength];\n String c2[] = new String[jarraylength];\n String c3[] = new String[jarraylength];\n String sname,cid;\n for (int i = 0; i <jarraylength+1; i++) {\n JSONObject json_data = jArray.getJSONObject(i);\n\n\n cid = json_data.getString(\"id\");\n sname = json_data.getString(\"name\");\n Log.e(sname, \"got\");\n Log.e(\"got\",json_data.toString());\n Log.e(cid, \"got\");\n c1[i]=cid;\n c3[i]=sname;\n Log.e(\"list sizzeeeee\",String.valueOf(countrycodename.size()+1));\n countrycodename.add(i,sname);\n countrycodid.add(i ,cid);\n\n\n\n }\n\n\n } catch (Exception e) {\n }\n countrycodename.add(0,\"Select Country\");\n countrycodid.add(0,\"0\");\n\n ArrayAdapter<String> spinnerAdapter =new ArrayAdapter<String>(getApplicationContext(),R.layout.spinner_iltem,countrycodename);\n spinnerAdapter.setDropDownViewResource(R.layout.spinner_iltem);\n\n country.setAdapter(spinnerAdapter);\n country.setSelection(0);\n // Toast.makeText(getApplicationContext(),\" country code size \"+String.valueOf(Arrays.asList(countrycodid.size())),Toast.LENGTH_SHORT).show();\n\n // Toast.makeText(getApplicationContext(),\"country string array count \"+countrycodename.length,Toast.LENGTH_SHORT).show();\n\n } catch (Exception e) {\n }\n// pDialog.hide();\n // Toast.makeText(getActivity().getApplication(),response,Toast.LENGTH_LONG).show();\n }\n },\n\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n// pDialog.hide();\n Toast.makeText(MatrimonyRegistration.this,error.toString(), Toast.LENGTH_LONG).show();\n }\n }) {\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n return params;\n }\n\n };\n\n //Adding the string request to the queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(stringRequest);\n\n stringRequest.setRetryPolicy(new DefaultRetryPolicy(10000,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n }", "public boolean isSetCountry() {\n return this.country != null;\n }", "public boolean isSetCountry() {\n return this.country != null;\n }", "Country getCountry();", "public String[] getCountryNames() {\r\n return countryNames;\r\n }", "public List<Country_Language> getcountry(String id) {\n \tIterable<Country_Language> countries=new ArrayList<>();\n \tList<Country_Language> countr=new ArrayList<>();\n \tcountries=country_Language_Repository.findAll();\n \tfor (Country_Language s :countries)\n \t{ \n\t\t if (s.getCountry_code().equals(id) && s.isIs_official())\n\t\t\t{countr.add(s);\n\t\t return countr;\n\t\t\t}\n \t}\n\t\t return countr;\n \t \n \t\n }", "boolean isCitySelected();", "public MentorConnectRequestCompose addIndCountry(){\n\t\tmentorConnectRequestObjects.allCountries.click();\n\t\tmentorConnectRequestObjects.algeriaCountry.click();\n\t\tmentorConnectRequestObjects.allIndustries.click();\n\t\tmentorConnectRequestObjects.agriIndustry.click();\n\t\treturn new MentorConnectRequestCompose(driver);\n\t}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n\n// GeoCoderUtils.getCountryCode(3.152194, 101.778446, RegisterActivityNewFirst.this, new GeoCoderUtils.GeocoderListner() {\n// GeoCoderUtils.getCountryCode(location.getLatitude(), location.getLongitude(), RegisterActivityNewFirst.this, new GeoCoderUtils.GeocoderListner() {\n\n GeoCoderUtils.getCountryCode(location.getLatitude(), location.getLongitude(), RegisterActivityNewFirst.this, new GeoCoderUtils.GeocoderListner() {\n// GeoCoderUtils.getCountryCode(25.105497, 121.597366, RegisterActivityNewFirst.this, new GeoCoderUtils.GeocoderListner() {\n// malasia GeoCoderUtils.getCountryCode(3.152194, 101.778446, RegisterActivityNewFirst.this, new GeoCoderUtils.GeocoderListner() {\n @Override\n public void onGetCode(String country_name,String country_code, String stateNamefromeo, String cityNamefrogeo) {\n\n countryName = country_name;\n stateNamefromGeo = stateNamefromeo;\n cityNameFromGeo = cityNamefrogeo;\n CommonUtils.showLog(\"location1\", \"Code is :\" + country_code);\n if (country_code != null) {\n String dialcode = \"\";\n if (countryCode != null && countryList != null) {\n for (int i = 0; i < countryList.size(); i++) {\n if (country_code.equalsIgnoreCase(countryList.get(i).getCountrycode())) {\n CommonUtils.showLog(\"location2\", \"Code is :\" + country_code);\n textViewCountry.setText(\"\" + countryList.get(i).getName());\n countryId = countryList.get(i).getId();\n countryCode = country_code;\n getState();\n textViewDialCode.setText(\"+\" + countryList.get(i).getPhonecode());\n dialCode = countryList.get(i).getPhonecode();\n\n for (int j = 0; j < Country.getAllCountries().size(); j++) {\n {\n if (countryList.get(i).getName().equalsIgnoreCase(Country.getAllCountries().get(j).getName())) {\n imageViewFlag.setImageResource(Country.getAllCountries().get(j).getFlag());\n return;\n }\n }\n }\n return;\n }\n }\n }\n }\n }\n });\n }\n }", "public ArrayList<Country> getCountryList() throws LocationException;", "public void displayCitylist(){\n final CharSequence[] items = {\" Banglore \", \" Hyderabad \", \" Chennai \", \" Delhi \", \" Mumbai \", \" Kolkata \", \"Ahmedabad\"};\n\n // Creating and Building the Dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Select Your City\");\n //final AlertDialog finalLevelDialog = levelDialog;\n //final AlertDialog finalLevelDialog = levelDialog;\n builder.setSingleChoiceItems(items, -1, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int item) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n SharedPreferences.Editor editor1 = preferences.edit();\n\n switch (item) {\n case 0: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"Banglore\", \"\" + preferences.getInt(\"BLR\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Bangalore\");\n break;\n }\n case 1: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"HYD\", 20));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1600);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"HYD\", \"\" + preferences.getInt(\"HYD\", 20));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 20));\n citySelected.setText(\"City: Hyderabad\");\n break;\n }\n case 2: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"CHE\", 25));\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"min_distance\", 1800);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"CHE\", \"\" + preferences.getInt(\"CHE\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Chennai\");\n break;\n }\n case 3: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"DEL\", 25));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n citySelected.setText(\"City: Delhi\");\n break;\n }\n case 4: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"MUM\", 18));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1500);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n Log.d(\"MUM\", \"\" + preferences.getInt(\"MUM\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Mumbai\");\n break;\n }\n case 5: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"KOL\", 25));\n editor1.putFloat(\"nightfare\", 0.0f);\n editor1.putInt(\"min_distance\", 2000);\n editor1.putInt(\"perkm\", 12);\n editor1.apply();\n Log.d(\"KOL\", \"\" + preferences.getInt(\"KOL\", 25));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 25));\n citySelected.setText(\"City: Kolkata\");\n break;\n }\n case 6: {\n editor1.putInt(\"Current_city\", preferences.getInt(\"AMD\", 11));\n editor1.putFloat(\"nightfare\", 0.25f);\n editor1.putInt(\"min_distance\", 1400);\n editor1.putInt(\"perkm\", 8);\n editor1.apply();\n Log.d(\"AMD\", \"\" + preferences.getInt(\"AMD\", 11));\n Log.d(\"Cur\", \"\" + preferences.getInt(\"Current_city\", 11));\n citySelected.setText(\"City: Ahmedabad\");\n break;\n }\n default:\n editor1.putInt(\"Current_city\", preferences.getInt(\"BLR\", 25));\n editor1.putInt(\"min_distance\", 2000);\n editor1.putFloat(\"nightfare\", 0.5f);\n editor1.putInt(\"perkm\", 11);\n editor1.apply();\n citySelected.setText(\"City: Bangalore\");\n }\n levelDialog.dismiss();\n }\n });\n levelDialog = builder.create();\n levelDialog.show();\n }", "public void nextCountry(View view) {\n if (!countryList.getCountryList().isEmpty() && index < countryList.getCountryList().size()) {\n index += 1;\n displayCountry();\n }\n }", "public ArrayList<String> getCountries() {\n\n JSONArray jsonArray = readFromJSON();\n\n ArrayList<String> cList=new ArrayList<String>();\n\n if (jsonArray != null) {\n for (int i = 0; i < jsonArray.length(); i++) {\n try {\n cList.add(jsonArray.getJSONObject(i).getString(\"name\")); //getting the name of the country and adding it to an arraylist\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n return cList;\n }", "private String getCountryName(String name)\r\n {\r\n }", "public void showCountries(Country[] p_countries)\r\n {\n textArea.setText(\"\");\r\n for (Country country : p_countries)\r\n textArea.append(country.toString() + \"\\n\");\r\n }", "public static URL getUrlForGetCountries()\r\n {\r\n String strUrl = getBaseURL() + \"account_services/api/1.0/static_content/countries/client_type/3/language/\"+\r\n \t\tA.getContext().getString( R.string.backend_language_code )+\"?brand=\"+Config.BRAND_NAME_URL;\r\n return str2url( strUrl );\r\n }", "@FXML\n private void selectCity(ActionEvent event) throws SQLException {\n Statement stmt = conn.createStatement();\n String city = cityField.getValue().toString();\n ResultSet rs = stmt.executeQuery(\"select * from city where city = \\\"\"+city+\"\\\"\");\n rs.next();\n String countryId = rs.getString(3);\n rs = stmt.executeQuery(\"select * from country where countryId = \" + countryId);\n rs.next();\n String country = rs.getString(2);\n countryField.setText(country);\n }", "@Override\n\tpublic List<String> findAllCountries() {\n\t\treturn theCountryRepository.findAllCountries();\n\t}", "@RequestMapping(value = \"/country\", method = RequestMethod.GET)\n public List<CountryCustomerCount> customersInCountry() {\n return customerRepository.customerInCountry();\n }", "public void getDisasters( boolean newSettings, ArrayList<String> countries, AsyncHttpResponseHandler handler ) {\n String apiURL = BASE_URL;\n Integer count = 0;\n String param;\n \n if ( newSettings ) {\n offset = (long) 0;\n }\n \n for ( String country : countries ) {\n param = String.format(CONDITION_COUNTRY, count, count, Uri.encode(country) );\n apiURL += param;\n count++;\n }\n \n param = String.format(LIMIT_FIELD, limit);\n apiURL += param;\n apiURL += SORT_FIELD;\n \n if ( offset > 0 ) {\n param = String.format(OFFSET_FIELD, offset);\n apiURL += param;\n }\n \n Log.d(\"DEBUG\", \"Making first call to \" + apiURL );\n \n client.get(apiURL, handler);\n }", "public void showCountrySelector(Activity act,ArrayList constParam)\n {\n if(act != null) {\n try {\n\n android.support.v4.app.FragmentManager fm = getActivity().getSupportFragmentManager();\n CountryListDialogFragment countryListDialogFragment = CountryListDialogFragment.newInstance(constParam);\n countryListDialogFragment.setTargetFragment(RegisterFragment.this, 0);\n countryListDialogFragment.show(fm, \"countryListDialogFragment\");\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public static ObservableList<String> getCountryList() throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n countryList.clear();\r\n Connection conn = DBConnection.getConnection();\r\n String selectStatement = \"SELECT * FROM countries;\";\r\n DBQuery.setPreparedStatement(conn, selectStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n\r\n ps.execute();\r\n ResultSet rs = ps.getResultSet();\r\n\r\n //fills list with countries\r\n while(rs.next()){\r\n countryList.add(rs.getString(\"Country\"));\r\n }\r\n return countryList;\r\n }", "@OnClick(R.id.txt_country_code)\n void onCountryCodeClicked(){\n if (mCountryPickerDialog == null){\n mCountryPickerDialog = new CountryPickerDialog(this, (country, flagResId) -> {\n mSelectedCountry = country;\n setCountryCode(mSelectedCountry);\n });\n }\n\n mCountryPickerDialog.show();\n }", "public void createCountries() {\n\t\t\n\t\tcountryArray = new Country[Constants.NUM_COUNTRIES];\n\t\t\n\t\tfor(int i=0; i<Constants.NUM_COUNTRIES; i++) {\n\t\t\tcountryArray[i] = (new Country(i));\n\t\t}\n\t}", "@Override\n public void initialize(URL url, ResourceBundle resourceBundle) {\n ObservableList<String> countryNames = FXCollections.observableArrayList();\n for (Countries c : DBCountries.getAllCountries()) {\n countryNames.add(c.getName());\n }\n countryCombo.setItems(countryNames);\n }", "public static void getCountryPopulation(Connection conn, String selected, TextArea textArea)\n{\n\tint populationCountry = 0;\n\t\n\ttry {\n\t\t\n\t\t//works and tested\n\t\t//System.out.println(\"Made it\" + \"***\" + selected);\n\t\n\t\t//getting the countries from the first table by city code\n\t\tStatement stmt = conn.createStatement();\n\t\t\n\t\t//grabbing correct continent :)\n\t\tString sqlStatement = \"SELECT population FROM Country WHERE Name = '\" + selected +\"'\";\n\t\tResultSet result = stmt.executeQuery(sqlStatement);\n\t\t\n\t\t//this caused a lot of problems -- specifically the invalid cursor state. You must move the cursor up one in a database\n\t\tresult.next();\n\t\t\n\t\tpopulationCountry = result.getInt(\"population\");\n\t\t\n\t\t//System.out.println(populationCountry + \"this is the population of argentina\");\n\n\t\t//System.out.println(result.getString(\"continent\"));\n\t\t\n\t\tString previous = textArea.getText();\n\t\ttextArea.setText(previous + \"\\nPopulation: \" + populationCountry);\n\t\tstmt.close();\n\t\t\n\t\n\t\t\n\t} catch (SQLException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\n}", "public String getCountry() {\r\n return this.country;\r\n }", "public List<String> getCountries() {\n\t\tif (countries == null) {\r\n\t\t\tcountries = new ArrayList<>();\r\n\t\t\tif (Files.exists(countriesPath)) {\r\n\t\t\t\ttry (BufferedReader in = new BufferedReader(\r\n\t\t\t\t\t\t new FileReader(countriesFile))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//read countries from file into array list\r\n\t\t\t\t\tString line = in.readLine();\r\n\t\t\t\t\twhile (line != null) {\r\n\t\t\t\t\t countries.add(line);\r\n\t\t\t\t\t line = in.readLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFiles.createFile(countriesPath);\r\n\t\t\t\t\tSystem.out.println(\"** countries file create!\");\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn countries;\r\n\t}", "static IdNameSelect<INameIdParent> getCountriesSelect() {\r\n\t\treturn new IdNameSelect<INameIdParent>() {\r\n\t\t\t\r\n\t\t\tList<INameIdParent> result = new ArrayList<INameIdParent>();\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected String getSqlString() {\r\n\t\t\t\treturn countrySelect;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tList<INameIdParent> getReuslt() {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tprotected void retrieveResult(ResultSet rs) throws SQLException {\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tNameIdParent p = new NameIdParent();\r\n\t\t\t\t\tp.id = rs.getLong(\"id\");\r\n\t\t\t\t\tp.name = rs.getString(\"n\");\r\n\t\t\t\t\tresult.add(p);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "public int countryCount(){\n\t\treturn this.countries.size();\n\t}", "public LiveData<List<Countries>> getCountryList() {\n return this.countryLiveData;\n }", "@Override\r\n public String getEnemyCountryToAttack(String selectedSourceCountry, HashMap<String, ArrayList<String>> attackScenarios) {\r\n return null;\r\n }", "public List<Country> getAll() throws Exception;", "List<Country> getAvailableByStatus(int status);", "@Override\n \t\tprotected Void doInBackground(Void... params) {\n \t\t\tgetJSONFromUrl(fore_city,fore_country);\n\n \t\t\treturn null;\n \t\t}" ]
[ "0.6957295", "0.68092483", "0.67360526", "0.64187247", "0.6318657", "0.62742", "0.624997", "0.6234363", "0.62317705", "0.61973625", "0.61964166", "0.61752254", "0.616398", "0.6120783", "0.61082894", "0.61018145", "0.6087642", "0.59944355", "0.5994313", "0.59628177", "0.5958486", "0.5949349", "0.5943282", "0.5938225", "0.5936551", "0.5898134", "0.589666", "0.5881564", "0.5876163", "0.5864676", "0.5858745", "0.58524287", "0.5849813", "0.5809353", "0.579831", "0.57632583", "0.57462245", "0.57401896", "0.5738205", "0.57213306", "0.5714133", "0.5710479", "0.56943846", "0.56869227", "0.5686541", "0.56759024", "0.5672361", "0.5657218", "0.5656851", "0.565548", "0.5652357", "0.5652357", "0.56416273", "0.5634683", "0.56336784", "0.5624562", "0.55990887", "0.55955493", "0.5576793", "0.55766183", "0.55749583", "0.5570244", "0.55674005", "0.5553879", "0.555245", "0.5541452", "0.5533878", "0.5533878", "0.5531723", "0.55287534", "0.550107", "0.54873365", "0.5478336", "0.5469876", "0.54692805", "0.5456295", "0.54514194", "0.5447308", "0.5442215", "0.54420227", "0.5420963", "0.5419024", "0.5411099", "0.5406928", "0.5399395", "0.5395859", "0.5383599", "0.53714275", "0.53661776", "0.53654057", "0.5360909", "0.5359311", "0.5358393", "0.5355786", "0.53522027", "0.5350305", "0.5347703", "0.53416944", "0.5340207", "0.53399116" ]
0.53683823
88
Constructs a new hazard
public Hazard() { super("img/hazard.png"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Hazard createHazard();", "public static HazardAlert generateHazardAlert() {\n HazardAlert hazardAlert_thu = new HazardAlert(\n HazardAlert.HazardType.GENERAL, new Position(48.408880, 9.997507), 5, true\n );\n return hazardAlert_thu;\n }", "public Hazmat() {\n }", "Hurt createHurt();", "public CapteurEffetHall() {\n\t\t\n\t}", "public Hero createHero() {\r\n\t\t// Creates hero with the defines statistics\r\n\t\tHero hero = new Hero(getTotalHealth(), getIllusion(), getHealing(), getHaggling());\r\n\t\t\r\n\t\treturn hero;\r\n\t\t\r\n\t}", "public Household() {\n }", "public PossibleHazards(int hazard_num) {\r\n\t\tthis.hazard_num = hazard_num;\r\n\t\tthis.hazards = new ArrayList<Hazard>();\r\n\t}", "private Hero createHeroObject(){\n return new Hero(\"ImageName\",\"SpiderMan\",\"Andrew Garfield\",\"6 feet 30 inches\",\"70 kg\",\n \"Webs & Strings\",\"Fast thinker\",\"Webs & Flexible\",\n \"200 km/hour\",\"Very fast\",\"Spiderman - Super Hero saves the world\",\n \"SuperHero saves the city from all the villians\");\n }", "H create(Method method);", "public Blocks(int h)\n {\n health=h;\n worth=h;\n setImage(colors[health-1]);\n }", "H3 createH3();", "H1 createH1();", "public Husdjurshotell(){}", "Hero()\n\t{\n\t\t\n\t\tsuper(152,500,97,124);\n\t\tlife = 3;\n\t\tdoubleFire = 0;\n\t\t\n\t}", "public Zombie() {\r\n\t\tsuper(myAnimationID, 0, 0, 60, 60);\r\n\t}", "public AirCondition(){}", "public Heart() {\n super();\n }", "protected abstract T create(final double idealStartTime);", "public Humano() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Harbour() {\n int i;\n\n docks = new Ship[Assignment2.DESTINATIONS];\n \n \n // docks[] is an array containing the ships sitting on corresponding docks\n // Value null means the dock is empty\n for(i=0; i<Assignment2.DESTINATIONS; i++){\n docks[i] = null;\n }\n \n // your code here (local variable and semaphore initializations)\n\n }", "public HealOverTime(Env env, L2Effect effect)\r\n\t{\r\n\t\tsuper(env, effect);\r\n\t}", "public Hero(Position position) {\n this.position = position;\n hp = PV_BASE;\n atk = 1;\n status = Status.STANDING;\n buffs = new ArrayList<>();\n orientation = Orientation.DOWN;\n }", "Hero createHero();", "public EmergencyTreatment(int heal) {\n super(heal);\n }", "public HealthyObject(String name, String des, int u, int p)\n \n {\n // initialisation des variables d'instance\n super(name, des, u);\n pointsHealthy = p;\n }", "public CinemaHallRecord() {\n super(CinemaHall.CINEMA_HALL);\n }", "public Boss() {\n\t\tlife = 3;\n\t\timage = new Image(\"/Model/boss3.png\", true);\n\t\tboss = new ImageView(image);\n\t\tRandom r = new Random();\n\t\tboss.setTranslateX(r.nextInt(900));\n\t\tboss.setTranslateY(0);\n\t\tisAlive = true;\n\t}", "public ArmorTemplate() {\n\t}", "Elevage createElevage();", "public Humidity4Builder() {\r\n humidity4 = new Humidity4();\r\n }", "public Fish create(){\n\t\tMovementStyle style = new NoMovement();\n\t\treturn new Shark(style);\n\t}", "public House() {\n this.pointsHistory = new ArrayList<>();\n }", "public Sheep()\n {\n super(\"Sheep\",3,2,0); \n \n // tagline = \"Whatever\";\n maxHealth = 5;\n currentHealth = maxHealth;\n equip(new Cloth());\n equip(new SheepClaws());\n \n \n \n engaged = false;\n aggression = 1;\n special = 0;\n hostileRange = 2;\n }", "public Lechuga(Hamburguesa h){\n this.hamburguesa = h;\n }", "public History() {\n }", "public HeatingModuleModel(){\n\t}", "public IronArmour()\n {\n name = \"iron armour\";\n hitpoints = 10;\n damageBlocked = 5;\n }", "Habit createHabit(Habit habit);", "public String createH() {\n\t\t// Create H per the algorithm\n\t\t// Create vertices of X --- The number of vertices in X is taken from the paper\n\t\t// k = (2 + epsilon)log n\n\t\tthis.createXVertices();\n\t\t// Create edges within X (both successive and random)\n\t\tthis.createXEdges();\n\n\t\treturn \"H Created (X Vertices)\";\n\n\t}", "public DiscretizedFunc getHazardCurve(DiscretizedFunc\n\t\t\thazFunction,\n\t\t\tSite site, ScalarIMR imr, EqkRupture rupture);", "public ApplicationDeltaHealthPolicy() {\n }", "public Human(String name) {\n\t\tsuper(name, 'H', 50, ZombieCapability.ALIVE);\n\t}", "private void makeBoss()\r\n {\r\n maxHealth = 1000;\r\n health = maxHealth;\r\n \r\n weapon = new Equip(\"Claws of Death\", Equip.WEAPON, 550);\r\n armor = new Equip(\"Inpenetrable skin\", Equip.ARMOR, 200);\r\n }", "public HalfMarathon(String date, String startTime, int numOfWaterStations,int changingFacilities, Place place, String venueName,RunEntry entry) {\n super(date, startTime,entry);\n this.numOfWaterStations = numOfWaterStations; \n this.place = place; \n venue = new Park(venueName, changingFacilities) {\n @Override\n public void place(Place place) {\n this.place = place;\n\n }\n };\n }", "QualityRisk createQualityRisk();", "public EntitySpiderHouse(World par1World) {\n super(par1World);\n this.experienceValue = 1;\n this.setSize(0.2F, 0.2F);\n this.getNavigator().setAvoidsWater(true);\n this.tasks.addTask(0, new EntityAISwimming(this));\n this.tasks.addTask(1, new EntityAIPanic(this, 1.4D));\n // this.tasks.addTask(2, new EntityAIMate(this, 0.5D));\n // this.tasks.addTask(3, new EntityAITempt(this, 0.5D, Items.fish,\n // false));\n this.tasks.addTask(5, new EntityAIWander(this, 1.0D));\n this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));\n this.tasks.addTask(7, new EntityAILookIdle(this));\n }", "public void applyHorn() {\n\t\t\r\n\t}", "Header createHeader();", "H4 createH4();", "public Armor() {\n super();\n}", "public ahr(aqu paramaqu, xm paramxm)\r\n/* 35: */ {\r\n/* 36: 50 */ super(paramaqu);\r\n/* 37: 51 */ this.g = paramxm;\r\n/* 38: */ \r\n/* 39: 53 */ a(0.25F, 0.25F);\r\n/* 40: */ \r\n/* 41: 55 */ b(paramxm.s, paramxm.t + paramxm.aR(), paramxm.u, paramxm.y, paramxm.z);\r\n/* 42: */ \r\n/* 43: 57 */ this.s -= uv.b(this.y / 180.0F * 3.141593F) * 0.16F;\r\n/* 44: 58 */ this.t -= 0.1000000014901161D;\r\n/* 45: 59 */ this.u -= uv.a(this.y / 180.0F * 3.141593F) * 0.16F;\r\n/* 46: 60 */ b(this.s, this.t, this.u);\r\n/* 47: */ \r\n/* 48: 62 */ float f1 = 0.4F;\r\n/* 49: 63 */ this.v = (-uv.a(this.y / 180.0F * 3.141593F) * uv.b(this.z / 180.0F * 3.141593F) * f1);\r\n/* 50: 64 */ this.x = (uv.b(this.y / 180.0F * 3.141593F) * uv.b(this.z / 180.0F * 3.141593F) * f1);\r\n/* 51: 65 */ this.w = (-uv.a((this.z + l()) / 180.0F * 3.141593F) * f1);\r\n/* 52: */ \r\n/* 53: 67 */ c(this.v, this.w, this.x, j(), 1.0F);\r\n/* 54: */ }", "public HumidModel()\n {\n origHumid = DEFAULT_HUMID;\n humidRate = 1;\n sampleRate = 1;\n externalWeather = 0;\n currentHumid = origHumid;\n humidLower = origHumid;\n humidUpper = origHumid;\n humidStatus = 0;\n envStatus = 0;\n }", "public House()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(480, 352, 1); \n addObject(new GravesHouse(),110,60);\n addObject(new Kid(),300,200);\n addObject(new Sofa(),190,270);\n addObject(new Piano(),275,100);\n }", "public TriggerCondition() {\n this(METRIC_HEAPUSG, 95);\n }", "private void createEnemyHelicopter()\n\t {\n\t \t\tRandNum = 0 + (int)(Math.random()*700);\n\t\t \t\tint xCoordinate = 1400;\n\t int yCoordinate = RandNum; \n\t eh = new Enemy(xCoordinate,yCoordinate);\n\t \n\t // Add created enemy to the list of enemies.\n\t EnemyList.add(eh);\n\t \n\t }", "public H(String a, String b, String c, String d, String e, String f, String g, String h, X x) {\n super(a, b, c, d, e, f, g, x);\n this.h = h;\n }", "ShipmentTimeEstimate createShipmentTimeEstimate();", "private HM A05() {\n if (this.A06 == null) {\n try {\n this.A06 = (HM) Class.forName(A06(141, 60, 75)).getConstructor(new Class[0]).newInstance(new Object[0]);\n } catch (ClassNotFoundException unused) {\n Log.w(A06(85, 17, 126), A06(15, 70, 102));\n } catch (Exception e) {\n throw new RuntimeException(A06(102, 34, 48), e);\n }\n if (this.A06 == null) {\n this.A06 = this.A08;\n }\n }\n return this.A06;\n }", "public Ambulance() {\n\t}", "public DiscretizedFunc getHazardCurve(\n\t\t\tDiscretizedFunc hazFunction,\n\t\t\tSite site,\n\t\t\tMap<TectonicRegionType, ScalarIMR> imrMap, \n\t\t\tERF eqkRupForecast);", "public Mage (double h, double d, double a, double p, double c)\r\n\t{\r\n\t\thealth = h;\r\n\t\tdmg = d;\r\n\t\tnumber++;\r\n\t\taggro = a;\r\n\t\tpRange = p;\r\n\t\tcrit = c;\r\n\t}", "Stone create();", "public Hit() {\n }", "TH createTH();", "public Highway createHighway(RoadMap r) {\n\t\tHighway newHighway;\n\t\ttry {\n\t\t\tnewHighway = new Highway(roadID, length, maxVel, verifyJunction(r,\n\t\t\t\t\tini), verifyJunction(r, end), lanes);\n\n\t\t} catch (IllegalArgumentException | ObjectNotFoundException e) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Error: Could not create Highway \" + roadID + \" at time \"\n\t\t\t\t\t\t\t+ getTime() + \".\\n\" + e.getMessage(), e);\n\t\t}\n\t\treturn newHighway;\n\t}", "Schule createSchule();", "public Ship(Harbour sp, int id) {\n \n this.sp = sp;\n this.id = id;\n enjoy = true;\n numSeats = 2;\n inship = new ArrayList<Passenger>();\n readyToboard = new Semaphore(0);// set a semaphore to whether is ready to go\n readyToLeave = new Semaphore(0);\n // your code here (local variable and semaphore initializations)\n }", "public HMetis() {\n\t\tthis.init();\n\t}", "public Charmander(World w)\n {\n //TODO (48): Add a third parameter of Fire to this super line\n super(700, 1);\n getImage().scale(150, 100);\n w.addObject( getHealthBar() , 300, w.getHeight() - 50 );\n }", "public final o aoz() {\n AppMethodBeat.i(33912);\n h hVar = new h(this, s.hr(this.zon, 64), com.tencent.mm.plugin.label.a.a.bJa().PH(com.tencent.mm.plugin.label.a.a.bJa().PE(this.label)));\n AppMethodBeat.o(33912);\n return hVar;\n }", "public ActHiDetailRecord() {\n super(ActHiDetail.ACT_HI_DETAIL);\n }", "public Aggressive(){\r\n\t\tsuper();\r\n\t\t\r\n\t}", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "public HealthyWorld()\n { \n // Create a new wolrd with 800x400 cells and a cell size of 1x1 pixels\n super(800, 400, 1);\n healthLevel = 10;\n time = 2000;\n showHealthLevel();\n showTime();\n // Create a kid in the middle of the screen\n Kid theKid = new Kid();\n this.addObject(theKid, 400, 350);\n }", "public Horse(String name)\n {\n this.name = name;\n }", "private void buildHorseRace(HorseRace hr) {\n if (hr != null && hr.getId() !=null ) {\n try {\n RaceDao raceDao = factory.createDao(RaceDao.class);\n HorseDao horseDao = factory.createDao(HorseDao.class);\n BreedDao breedDao = factory.createDao(BreedDao.class);\n\n hr.setRace(raceDao.read(hr.getRace().getId()));\n hr.setHorse(horseDao.read(hr.getHorse().getId()));\n Breed breed = breedDao.read(hr.getHorse().getBreed().getId());\n Horse horse = horseDao.read(hr.getHorse().getId());\n horse.setBreed(breed);\n hr.setHorse(horse);\n } catch (PersistentException e) {\n e.printStackTrace();\n }\n }\n }", "public Hourly (String eName, String eAddress, String ePhone,\r\nString socSecNumber, double rate)\r\n{\r\nsuper(eName, eAddress, ePhone, socSecNumber, rate);\r\n//IMPLEMENT THIS\r\n}", "public void createHobbit(String name, String math, String say, int carrots) {\n workers.add(new Hobbit(name, math, say, carrots));\n }", "public MedicineHeadlineFragment() {\n\n }", "Oracion createOracion();", "public FruitStand() {}", "Sheep(int health,int stomach,boolean movement,boolean child,boolean gender){\r\n super(health,stomach,movement,child,gender);\r\n \r\n }", "public HandLead(EntityHumanBase owner, ItemStack itemStack)\n/* 19: */ {\n/* 20:18 */ super(owner, itemStack);\n/* 21: */ }", "public Hobbit(int x, int y) {\n\t\tthis(x, y, GameConstants.HOBBIT_HEALTH, GameConstants.HOBBIT_DAMAGE);\n\t\trewardMana = GameConstants.HOBBIT_REWARD;\n\t\ttryLoad(new File(\"resources/images/hobbit_16p.png\"));\n\t}", "public HALeaseManagementModule() {\n\n }", "public Prism(){//consturctor for Cube class with h initialzed to 10.0.\r\n super();//constructor of superclass called.\r\n h = 10.0;\r\n }", "@Override\n\tpublic Treatment createSurgery( Date date) {\n\t\tSurgery surgery = new Surgery();\n\t\tsurgery.setDate(date);\n\t\tsurgery.setTreatmentType(TreatmentType.SURGERY.getTag());\n\t\treturn surgery;\n\t}", "public Glow() {}", "public HalfMarathon(String date, String startTime, int numOfWaterStations, Place place, String venueName,RunEntry entry) {\n super(date, startTime,entry);\n this.numOfWaterStations = numOfWaterStations;\n this.place = place;\n \n venue = new Town(venueName) {\n @Override\n public void place(Place place) {\n this.place = place;\n\n }\n };\n }", "public CampLease( ) {}", "HeroPool createHeroPool();", "public Holidays (){\n name= \"Exotic Beach Holiday of a Lifetime\";\n cost = 5000;\n location = \"Fesdu Island, Maldives\";\n type = \"beach\";\n }", "public MonHoc() {\n }", "void objectCreated (HyperEdge hedge);", "public Hamburg(){\n trackDepartureHolder = TrackHolder.getTrackHolder(8);\n trackArrivalHolder = TrackHolder.getTrackHolder(10);\n scratchTrack = new TrackList<>();\n }", "public HiloM() { }", "public Hero(LogicController logicController, Vector2 vec){\n this.setWorld(logicController.getWorld());\n this.logicController=logicController;\n sprite = new Sprite();\n position=vec;\n booleanDefinition();\n resetCounters();\n this.bombs=new ArrayList<Bomb>();\n if(!logicController.getGame().getIsTest())\n heroAnimations();\n heroBody = new HeroBody(logicController, this,vec);\n if(!logicController.getGame().getIsTest()) {\n heroStandingTextureLoad();\n standRight.flip(true, false);\n sprite.setBounds(0, 0, 17*MyGame.PIXEL_TO_METER, 22*MyGame.PIXEL_TO_METER);\n }\n soundHurt= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_hurt.wav\"));\n soundDying= Gdx.audio.newSound(Gdx.files.internal(\"Sounds/hero_dying.wav\"));\n }", "public LUSHR() {\n super(InstructionOpCodes.LUSHR, 1);\n }", "public EatTime() {\n }" ]
[ "0.8868638", "0.6097938", "0.5928956", "0.58885723", "0.5645513", "0.5644488", "0.55484474", "0.5498099", "0.5441972", "0.53501445", "0.5317472", "0.5309594", "0.5293076", "0.5268232", "0.5263402", "0.52627325", "0.5197451", "0.5194651", "0.5164809", "0.5153118", "0.513414", "0.51305795", "0.5126958", "0.5121652", "0.5118347", "0.5114291", "0.51046866", "0.5098326", "0.5093024", "0.5089671", "0.508428", "0.50783634", "0.50704676", "0.50600755", "0.5053379", "0.5047476", "0.5024867", "0.50054675", "0.4979972", "0.4955614", "0.49509948", "0.49473485", "0.4934644", "0.49327752", "0.49284962", "0.49282825", "0.49187168", "0.49184364", "0.49184072", "0.49145424", "0.49045888", "0.4901428", "0.4876133", "0.48741856", "0.48437816", "0.4820686", "0.48204407", "0.48118111", "0.48108757", "0.4808358", "0.47998", "0.47988808", "0.4796793", "0.47940603", "0.47849345", "0.4782475", "0.47797477", "0.47796986", "0.4777943", "0.47673988", "0.47654012", "0.47625408", "0.47593385", "0.47590503", "0.47545865", "0.4754401", "0.47511292", "0.47464222", "0.4744504", "0.47404394", "0.47389737", "0.47384232", "0.4737959", "0.4736075", "0.47273043", "0.4726599", "0.47261706", "0.47260162", "0.4721368", "0.4720289", "0.4718458", "0.47170928", "0.4713116", "0.47098976", "0.4707884", "0.47069862", "0.47035024", "0.47008803", "0.46903175", "0.4689328" ]
0.66349787
1
True if given i is included in the interval
public boolean isSuperIntervalOf(Interval i){ if(i.getLeftBound()<leftbound) return false; if(i.getRightBound()>rightbound) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInInterval(int baseIndex);", "public boolean hasNonEmptyIntersectionWith(Interval i){\n\t\t\n\t\tif (rightbound < i.leftbound)\n\t\t\treturn false;\n\t\t\n\t\tif (i.rightbound < leftbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "private boolean rangeCheck(int i){\n return i >= 0 && i < size;\n }", "public static boolean isInRange(int i, int topBoundary) {\n return 0 <= i && i < topBoundary;\n }", "public boolean isSubIntervalOf(Interval i){\n\t\t\n\t\tif(i.getLeftBound()>leftbound)\n\t\t\treturn false;\n\t\tif(i.getRightBound()<rightbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public void includeDomainInRangeCalculator(IntegerRangeCalculator i)\r\n\t{\r\n\t\ti.include(start);\r\n\t\tif(data.length>0) i.include(start+data.length-1);\r\n\t}", "public boolean isInterval() {\n return this == Spacing.regularInterval || this == Spacing.contiguousInterval\n || this == Spacing.discontiguousInterval;\n }", "private boolean hasOverlap(int[] i1, int[] i2)\n {\n // Special case of consecutive STEP-BY-STEP intervals\n if(i1[0] <= i2[0] && i2[0] <= i1[1])\n return true;\n if(i2[0] <= i1[0] && i1[0] <= i2[1])\n return true;\n return false;\n }", "boolean isBeginInclusive();", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "private static final boolean isArrayValueAtIndexInsideOrInsideAdjacent(DataSet aDataSet, int i, int pointCount, double aMin, double aMax)\n {\n // If val at index in range, return true\n double val = aDataSet.getX(i);\n if (val >= aMin && val <= aMax)\n return true;\n\n // If val at next index in range, return true\n if (i+1 < pointCount)\n {\n double nextVal = aDataSet.getX(i + 1);\n if (val < aMin && nextVal >= aMin || val > aMax && nextVal <= aMax)\n return true;\n }\n\n // If val at previous index in range, return true\n if (i > 0)\n {\n double prevVal = aDataSet.getX(i - 1);\n if ( val < aMin && prevVal >= aMin || val > aMax && prevVal <= aMax)\n return true;\n }\n\n // Return false since nothing in range\n return false;\n }", "default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }", "protected boolean hasNext() {\n\t\treturn (counter + incrValue) < max && (counter + incrValue) > min;\n\t}", "private boolean inROI(RandomIter roiIter, int y, int x) {\n return (roiBounds.contains(x, y) && roiIter.getSample(x, y, 0) > 0);\n }", "boolean contains(int i);", "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 final boolean checkPrependOverLimit(int i) {\n boolean z = false;\n if (this.mLastVisibleIndex < 0) {\n return false;\n }\n if (!this.mReversedFlow ? findRowMin(true, null) <= i + this.mSpacing : findRowMax(false, null) >= i - this.mSpacing) {\n z = true;\n }\n return z;\n }", "boolean isEndInclusive();", "private boolean intervalContains(double target, int coordIdx) {\n double midVal1 = orgGridAxis.getCoordEdge1(coordIdx);\n double midVal2 = orgGridAxis.getCoordEdge2(coordIdx);\n boolean ascending = midVal1 < midVal2;\n return intervalContains(target, coordIdx, ascending, true);\n }", "public boolean inRange(Number n) {\n return n.compareTo(min) >= 0 && n.compareTo(max) <= 0;\n }", "public boolean cond(int i, double curLat, double curLon, double foundLat, double foundLon){\r\n boolean condResult = true;\r\n switch (i){\r\n case 0:\r\n condResult = curLon < foundLon;\r\n break;\r\n case 1:\r\n condResult = curLon > foundLon;\r\n break;\r\n case 2:\r\n condResult = curLat > foundLat;\r\n break;\r\n case 3:\r\n condResult = curLat < foundLat;\r\n break;\r\n case 4:\r\n condResult = false;\r\n break;\r\n }\r\n return condResult;\r\n }", "private final boolean m42354a(int i) {\n return i < this.f34094a;\n }", "public boolean overlaps(int i, int j) {\n int start1 = start(i);\n int end1 = end(i);\n int start2 = start(j);\n int end2 = end(j);\n\n return (start1 <= start2 && end1 >= start2)\n ||\n (start1 <= end2 && end1 >= end2);\n }", "@Override\n public boolean contain(int x, int y) {\n return(x>=this.x && y>=this.y && x<=this.x+(int)a && y<=this.y+(int)b);\n }", "private boolean intervalContains(double target, int coordIdx, boolean ascending, boolean closed) {\n // Target must be in the closed bounds defined by the discontiguous interval at index coordIdx.\n double lowerVal = ascending ? orgGridAxis.getCoordEdge1(coordIdx) : orgGridAxis.getCoordEdge2(coordIdx);\n double upperVal = ascending ? orgGridAxis.getCoordEdge2(coordIdx) : orgGridAxis.getCoordEdge1(coordIdx);\n\n if (closed) {\n return lowerVal <= target && target <= upperVal;\n } else {\n return lowerVal <= target && target < upperVal;\n }\n }", "boolean hasAgeRange();", "private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }", "public final boolean checkAppendOverLimit(int i) {\n boolean z = false;\n if (this.mLastVisibleIndex < 0) {\n return false;\n }\n if (!this.mReversedFlow ? findRowMax(false, null) >= i - this.mSpacing : findRowMin(true, null) <= i + this.mSpacing) {\n z = true;\n }\n return z;\n }", "private boolean isAllowed(int i) {\n // i is not allowed while it in same line or diagonal with the pre line\n for (int j = 0; j < i; j++) {\n if (result[i] == result[j] || Math.abs(i - j) == Math.abs(result[i] - result[j])) {\n return false;\n }\n }\n return true;\n }", "public final boolean mo3474a(Long l, int i) {\n Long valueOf = Long.valueOf(System.currentTimeMillis() / 1000);\n return valueOf.longValue() - l.longValue() >= ((long) (i + -60)) || valueOf.longValue() - l.longValue() < 0;\n }", "public static final boolean m7475a(int[] iArr, int i) {\n for (int i2 : iArr) {\n if (i2 == i) {\n return true;\n }\n }\n return false;\n }", "@Override\r\n\t public boolean equals(Object obj) {\n\t Interval inteval = (Interval)obj;\r\n\t return this.getStart().equals(inteval.getStart()) && this.getEnd().equals(inteval.getEnd()) ;\r\n\t }", "public boolean within(final LocalDateInterval interval) {\n return interval.asInterval().contains(asInterval());\n }", "public boolean contains(Interest i);", "public boolean seenIceBreaker (int i) {\n \treturn getSeenIceBreakers().contains(i);\n }", "boolean hasI15();", "public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\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}", "@JsMethod(name = \"interiorContainsPoint\")\n public boolean interiorContains(double p) {\n return p > lo && p < hi;\n }", "private boolean contains(int from1, int to1, int from2, int to2) {\n\t\treturn from2 >= from1 && to2 <= to1;\n\t}", "private boolean between(int x1, int x2, int x3) {\n return (x1 >= x3 && x1 <= x2) || (x1 <= x3 && x1 >= x2);\n }", "public boolean purchasedPilotsContains(int i) {\r\n\t\treturn collectionManager.purchasedPilotsContains(i);\r\n\t}", "private boolean isInBound(int current, int bound){\n return (current >= 0 && current < bound);\n }", "boolean isNewInterval();", "public static boolean comprobarIntervalo(Date fI,Date fF,Date foI,Date foF){\n boolean ok = false;\n \n if(foI.before(fI) && fI.before(foF)){\n if(foI.before(fF) && fF.before(foF) && fI.before(fF)){\n ok= true;\n }\n } else {\n ok = false;\n }\n return ok;\n }", "public boolean interiorContains(int i, int j) {\n\t\treturn i > 0 && j > 0 && i < width() - 1 && j < height() - 1;\n\t}", "public static boolean isSequence(double start, double mid, double end)\r\n/* 140: */ {\r\n/* 141:324 */ return (start < mid) && (mid < end);\r\n/* 142: */ }", "boolean hasIncomeRange();", "public boolean isCovered(int i) {\n return mCovered[i];\n }", "public boolean mo37854a(int i) {\n return i >= this.f22370b;\n }", "public boolean boundaryContains(int i, int j) {\n\t\treturn !interiorContains(i, j);\n\t}", "private boolean m116914a(int i) {\n return m116916b() && i >= this.f83727a.getItemCount();\n }", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "public boolean containsDomainRange(long from, long to) { return true; }", "@JsMethod(name = \"containsPoint\")\n public boolean contains(double p) {\n return p >= lo && p <= hi;\n }", "private static final boolean correct(List<Long> xs, int i, int low, int high) {\n final long target = xs.get(i);\n for (int x = low; x < high; x++) {\n for (int y = low + 1; y <= high; y++) {\n final long vx = xs.get(x);\n final long vy = xs.get(y);\n if ((vx != vy) && ((vx + vy) == target)) {\n return true;\n }\n }\n }\n return false;\n }", "private double checkBounds(double param, int i) {\n if (param < low[i]) {\n return low[i];\n } else if (param > high[i]) {\n return high[i];\n } else {\n return param;\n }\n }", "private boolean outOfRange(double i, double e, int threshold) {\n\n\t\tdouble lowerBound = e / (double) threshold;\n\t\tdouble upperBound = e * (double) threshold;\n\n\t\treturn ((i < lowerBound) || (i > upperBound));\n\t}", "public static boolean intervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 <= end2 && start2 <= end1);\n\t}", "private static boolean m145767a(int i) {\n return i == 2 || i == 1;\n }", "public boolean isSlot(int i);", "public static boolean between(Integer integer, Integer lhs, Integer rhs) {\n\treturn null != integer && null != lhs && null != rhs && (integer >= lhs && integer <= rhs);\n }", "public boolean isEveryDayRange() {\n int totalLength = MAX - MIN + 1;\n return isFullRange(totalLength);\n }", "public static boolean checkIntPile(int[] seq, int u, int z ) {\n \tfor (int i = 0; i<u; i++) {\n \t\tif (seq[i] == z) { return true;}\n \t}\n \treturn false;\n }", "boolean hasI10();", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\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 }", "private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }", "default boolean isAdjacent(Interval other) {\n return getStart() == other.getEnd() || getEnd() == other.getStart();\n }", "public static boolean m1859a(int i) {\n switch (i) {\n case 0:\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n case 6:\n case 8:\n return true;\n default:\n return false;\n }\n }", "private static boolean isBetween(double start, double middle, double end) {\n if(start > end) {\n return end <= middle && middle <= start;\n }\n else {\n return start <= middle && middle <= end;\n }\n }", "protected boolean checkPoiInside( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//[begin point in area 1] unintersect: 1,2,3,7,8\r\n\t\t//[begin point in area 2] unintersect: 1,2,3\r\n\t\t//[begin point in area 3] unintersect: 1,2,3,4,5\r\n\t\t//[begin point in area 4] unintersect: 3,4,5\r\n\t\t//[begin point in area 5] unintersect: 3,4,5,6,7\r\n\t\t//[begin point in area 6] unintersect: 5,6,7\r\n\t\t//[begin point in area 7] unintersect: 5,6,7,8,1\r\n\t\t//[begin point in area 8] unintersect: 7,8,1\r\n\t\t//[begin point in area 9] unintersect: 9\r\n\t\tif(isInsideArea( 1, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 2, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 3, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 4, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 5, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 6, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 7, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 8, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean inUseDuringInterval(Facility f, Week w, Time start, Time end)\n {\n Interval comp = new Interval(w, start, end);\n for(Interval i : Database.db.get(f).getFacilityUse().getSchedule().getSchedule().values())\n {\n if(i.timeOverlaps(comp))\n {\n return true;\n }\n }\n return false;\n }", "private boolean inRange(double num, double low, double high) {\n if (num >= low && num <= high)\n return true;\n\n return false;\n }", "public static Boolean isFirstQuarterUnderOver(Integer integer) {\r\n\t\treturn firstQuarterUnderOver.contains(integer);\r\n\t}", "@Override\r\n\t\tpublic boolean hasNext() {\r\n\t\t\treturn i < n;\r\n\t\t}", "public boolean contains(Index position) { // TODO rename: adjoinsOrContains\n return position != null && position.getX() + 1 >= start.getX() && position.getY() + 1 >= start.getY() && position.getX() <= end.getX() && position.getY() <= end.getY();\n }", "public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }", "boolean hasI11();", "private static boolean hasVisibleRegion(int begin,int end,int first,int last) {\n return (end > first && begin < last);\n }", "boolean inBetween(float a, float b, float c){\n\t\tif (a<b && b<c)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean isEnabled(int i) {\r\n return this.enabledLogs.contains(Integer.valueOf(i));\r\n }", "public static double inInterval(double lowerBound, double value, double upperBound) {\n/* 67 */ if (value < lowerBound)\n/* 68 */ return lowerBound; \n/* 69 */ if (upperBound < value)\n/* 70 */ return upperBound; \n/* 71 */ return value;\n/* */ }", "public static boolean isContained(double a, double b, double c){\n\t\treturn ((a >= b && a <= c) || (a >= c && a <= b));\n\t}", "public boolean item(int i) {\n\t\treturn x[i] == 1;\n\t}", "public boolean mo26995a(int i) {\n return i == 0 || i == 1;\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 }", "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Range integers = (Range) o;\n return length == integers.length && first == integers.first && last == integers.last && stride == integers.stride;\n }", "boolean isEquals(Range other);", "boolean isValid(int i, int j) {\n if (i >= 0 && i <= 7 && j >= 0 && j <= 7) {\n return true;\n }\n return false;\n }", "protected boolean isPositive(Instance i) {\n TreeNode leaf = traverseTree(i);\n return leaf != null && leaf.isPositiveLeaf();\n }", "public boolean evaluateTravelled(int i)\n\t{\n\t\tboolean blnResult;\t\t\t\t\t\t//if player has travelled here or not\n\t\t\n\t\tblnResult = hasTravelled.contains(i);\n\t\t\n\t\treturn blnResult;\n\t\t\n\t}", "@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 static boolean m8412e(C4561f fVar, int i) {\n return i >= 0 && i <= fVar.f8530d + 1;\n }", "public static boolean overlap(List<Interval> intervals) {\n for (int i = 0; i < intervals.size(); i++) {\n for (int j = i + 1; j < intervals.size(); j++) {\n Interval interval1 = intervals.get(i);\n Interval interval2 = intervals.get(j);\n if (interval1.overlaps(interval2)) {\n return true;\n }\n }\n }\n return false;\n }", "public static boolean inRange (Position defPos, Position atkPos, int range) {\n\t\tint defX = defPos.getX();\n\t\tint defY = defPos.getY();\n\t\t\n\t\tint atkX = atkPos.getX();\n\t\tint atkY = atkPos.getY();\n\t\t\n\t\tif (defX -range <= atkX &&\n\t\t\t\tdefX + range >= atkX)\n\t\t{\n\t\t\tif (defY -range <= atkY &&\n\t\t\t\t\tdefY+range >= atkY)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isOnset(int i)\n\t{\n\t\treturn fIsOnset[i];\n\t}", "public int isInBounds(T a);", "public static boolean inUseDuringInterval(Facility f, Date d, Time start, Time end)\n {\n Interval comp = new Interval(d, start, end);\n for(Interval i : Database.db.get(f).getFacilityUse().getSchedule().getSchedule().values())\n {\n if(i.timeOverlaps(comp))\n {\n return true;\n }\n }\n return false;\n }" ]
[ "0.70658046", "0.67352957", "0.67007893", "0.6336571", "0.6308441", "0.62374675", "0.6086436", "0.6061093", "0.60086596", "0.59709686", "0.59698176", "0.58533496", "0.5801905", "0.5785241", "0.5753769", "0.5719331", "0.56912065", "0.5671184", "0.5654293", "0.5647743", "0.5645277", "0.56267184", "0.56226003", "0.5619241", "0.56181985", "0.56141764", "0.5612975", "0.56064826", "0.55959874", "0.5587016", "0.5572456", "0.55575454", "0.5557004", "0.5554554", "0.5549157", "0.55371493", "0.5527828", "0.5525493", "0.5506116", "0.55012286", "0.54982054", "0.5489091", "0.548804", "0.54843277", "0.5472644", "0.5466198", "0.54650855", "0.5463574", "0.54450023", "0.54441607", "0.544375", "0.54422706", "0.5440237", "0.544015", "0.5435048", "0.5429677", "0.5405142", "0.53998613", "0.5377906", "0.5371049", "0.53693473", "0.53662634", "0.5361162", "0.5358172", "0.535501", "0.5351386", "0.5350204", "0.53490126", "0.53409886", "0.53375953", "0.53374285", "0.5332855", "0.53224826", "0.53189564", "0.53109205", "0.5307633", "0.5305365", "0.53014684", "0.5300326", "0.5298207", "0.5287599", "0.5284211", "0.52783936", "0.52760255", "0.52628267", "0.5259772", "0.5248923", "0.5247054", "0.52396786", "0.52394515", "0.5237892", "0.5227314", "0.5226733", "0.52251637", "0.5220421", "0.52169305", "0.52167046", "0.52115524", "0.52108926", "0.52100694" ]
0.63518876
3
True if interval is included in given i
public boolean isSubIntervalOf(Interval i){ if(i.getLeftBound()>leftbound) return false; if(i.getRightBound()<rightbound) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInInterval(int baseIndex);", "public boolean hasNonEmptyIntersectionWith(Interval i){\n\t\t\n\t\tif (rightbound < i.leftbound)\n\t\t\treturn false;\n\t\t\n\t\tif (i.rightbound < leftbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public boolean isSuperIntervalOf(Interval i){\n\t\t\n\t\tif(i.getLeftBound()<leftbound)\n\t\t\treturn false;\n\t\tif(i.getRightBound()>rightbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public boolean isInterval() {\n return this == Spacing.regularInterval || this == Spacing.contiguousInterval\n || this == Spacing.discontiguousInterval;\n }", "private boolean rangeCheck(int i){\n return i >= 0 && i < size;\n }", "public void includeDomainInRangeCalculator(IntegerRangeCalculator i)\r\n\t{\r\n\t\ti.include(start);\r\n\t\tif(data.length>0) i.include(start+data.length-1);\r\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 static boolean isInRange(int i, int topBoundary) {\n return 0 <= i && i < topBoundary;\n }", "default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }", "@Override\r\n\t public boolean equals(Object obj) {\n\t Interval inteval = (Interval)obj;\r\n\t return this.getStart().equals(inteval.getStart()) && this.getEnd().equals(inteval.getEnd()) ;\r\n\t }", "private boolean hasOverlap(int[] i1, int[] i2)\n {\n // Special case of consecutive STEP-BY-STEP intervals\n if(i1[0] <= i2[0] && i2[0] <= i1[1])\n return true;\n if(i2[0] <= i1[0] && i1[0] <= i2[1])\n return true;\n return false;\n }", "private static final boolean isArrayValueAtIndexInsideOrInsideAdjacent(DataSet aDataSet, int i, int pointCount, double aMin, double aMax)\n {\n // If val at index in range, return true\n double val = aDataSet.getX(i);\n if (val >= aMin && val <= aMax)\n return true;\n\n // If val at next index in range, return true\n if (i+1 < pointCount)\n {\n double nextVal = aDataSet.getX(i + 1);\n if (val < aMin && nextVal >= aMin || val > aMax && nextVal <= aMax)\n return true;\n }\n\n // If val at previous index in range, return true\n if (i > 0)\n {\n double prevVal = aDataSet.getX(i - 1);\n if ( val < aMin && prevVal >= aMin || val > aMax && prevVal <= aMax)\n return true;\n }\n\n // Return false since nothing in range\n return false;\n }", "boolean isNewInterval();", "public boolean within(final LocalDateInterval interval) {\n return interval.asInterval().contains(asInterval());\n }", "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}", "private boolean intervalContains(double target, int coordIdx, boolean ascending, boolean closed) {\n // Target must be in the closed bounds defined by the discontiguous interval at index coordIdx.\n double lowerVal = ascending ? orgGridAxis.getCoordEdge1(coordIdx) : orgGridAxis.getCoordEdge2(coordIdx);\n double upperVal = ascending ? orgGridAxis.getCoordEdge2(coordIdx) : orgGridAxis.getCoordEdge1(coordIdx);\n\n if (closed) {\n return lowerVal <= target && target <= upperVal;\n } else {\n return lowerVal <= target && target < upperVal;\n }\n }", "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 }", "private boolean intervalContains(double target, int coordIdx) {\n double midVal1 = orgGridAxis.getCoordEdge1(coordIdx);\n double midVal2 = orgGridAxis.getCoordEdge2(coordIdx);\n boolean ascending = midVal1 < midVal2;\n return intervalContains(target, coordIdx, ascending, true);\n }", "public static boolean overlap(List<Interval> intervals) {\n for (int i = 0; i < intervals.size(); i++) {\n for (int j = i + 1; j < intervals.size(); j++) {\n Interval interval1 = intervals.get(i);\n Interval interval2 = intervals.get(j);\n if (interval1.overlaps(interval2)) {\n return true;\n }\n }\n }\n return false;\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 boolean cond(int i, double curLat, double curLon, double foundLat, double foundLon){\r\n boolean condResult = true;\r\n switch (i){\r\n case 0:\r\n condResult = curLon < foundLon;\r\n break;\r\n case 1:\r\n condResult = curLon > foundLon;\r\n break;\r\n case 2:\r\n condResult = curLat > foundLat;\r\n break;\r\n case 3:\r\n condResult = curLat < foundLat;\r\n break;\r\n case 4:\r\n condResult = false;\r\n break;\r\n }\r\n return condResult;\r\n }", "private boolean inROI(RandomIter roiIter, int y, int x) {\n return (roiBounds.contains(x, y) && roiIter.getSample(x, y, 0) > 0);\n }", "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}", "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/* */ }", "public static boolean intervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 <= end2 && start2 <= end1);\n\t}", "@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 }", "boolean hasIncomeRange();", "boolean hasAgeRange();", "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}", "@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 static double inInterval(double lowerBound, double value, double upperBound) {\n/* 67 */ if (value < lowerBound)\n/* 68 */ return lowerBound; \n/* 69 */ if (upperBound < value)\n/* 70 */ return upperBound; \n/* 71 */ return value;\n/* */ }", "boolean isBeginInclusive();", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "public boolean overlaps(final LocalDateInterval interval) {\n return asInterval().overlaps(interval.asInterval());\n }", "public static boolean inUseDuringInterval(Facility f, Week w, Time start, Time end)\n {\n Interval comp = new Interval(w, start, end);\n for(Interval i : Database.db.get(f).getFacilityUse().getSchedule().getSchedule().values())\n {\n if(i.timeOverlaps(comp))\n {\n return true;\n }\n }\n return false;\n }", "public static boolean comprobarIntervalo(Date fI,Date fF,Date foI,Date foF){\n boolean ok = false;\n \n if(foI.before(fI) && fI.before(foF)){\n if(foI.before(fF) && fF.before(foF) && fI.before(fF)){\n ok= true;\n }\n } else {\n ok = false;\n }\n return ok;\n }", "public boolean overlaps(int i, int j) {\n int start1 = start(i);\n int end1 = end(i);\n int start2 = start(j);\n int end2 = end(j);\n\n return (start1 <= start2 && end1 >= start2)\n ||\n (start1 <= end2 && end1 >= end2);\n }", "private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }", "default boolean isAdjacent(Interval other) {\n return getStart() == other.getEnd() || getEnd() == other.getStart();\n }", "@Override\n public boolean contain(int x, int y) {\n return(x>=this.x && y>=this.y && x<=this.x+(int)a && y<=this.y+(int)b);\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 }", "protected boolean hasNext() {\n\t\treturn (counter + incrValue) < max && (counter + incrValue) > min;\n\t}", "public boolean allInRange(int start, int end) {\n \t\tfor (int i=0; i<data.length; i++) {\n \t\t\tint a=data[i];\n \t\t\tif ((a<start)||(a>=end)) return false;\n \t\t}\n \t\treturn true;\n \t}", "public boolean isEveryDayRange() {\n int totalLength = MAX - MIN + 1;\n return isFullRange(totalLength);\n }", "public boolean inRange(Number n) {\n return n.compareTo(min) >= 0 && n.compareTo(max) <= 0;\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 }", "private double checkBounds(double param, int i) {\n if (param < low[i]) {\n return low[i];\n } else if (param > high[i]) {\n return high[i];\n } else {\n return param;\n }\n }", "public boolean isAfter(ReadableInterval interval) {\r\n long endMillis;\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[20]++;\nint CodeCoverConditionCoverageHelper_C8;\r\n if ((((((CodeCoverConditionCoverageHelper_C8 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C8 |= (2)) == 0 || true) &&\n ((interval == null) && \n ((CodeCoverConditionCoverageHelper_C8 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[8].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C8, 1) || true)) || (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[8].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C8, 1) && false)) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[15]++;\r\n endMillis = DateTimeUtils.currentTimeMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[21]++;\n\r\n } else {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[16]++;\r\n endMillis = interval.getEndMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[22]++;\r\n }\r\n return (getStartMillis() >= endMillis);\r\n }", "public static boolean openIntervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 < end2 && start2 < end1);\n\t}", "private static boolean isBetween(double start, double middle, double end) {\n if(start > end) {\n return end <= middle && middle <= start;\n }\n else {\n return start <= middle && middle <= end;\n }\n }", "public final boolean mo3474a(Long l, int i) {\n Long valueOf = Long.valueOf(System.currentTimeMillis() / 1000);\n return valueOf.longValue() - l.longValue() >= ((long) (i + -60)) || valueOf.longValue() - l.longValue() < 0;\n }", "private static final boolean correct(List<Long> xs, int i, int low, int high) {\n final long target = xs.get(i);\n for (int x = low; x < high; x++) {\n for (int y = low + 1; y <= high; y++) {\n final long vx = xs.get(x);\n final long vy = xs.get(y);\n if ((vx != vy) && ((vx + vy) == target)) {\n return true;\n }\n }\n }\n return false;\n }", "public static boolean inUseDuringInterval(Facility f, Date d, Time start, Time end)\n {\n Interval comp = new Interval(d, start, end);\n for(Interval i : Database.db.get(f).getFacilityUse().getSchedule().getSchedule().values())\n {\n if(i.timeOverlaps(comp))\n {\n return true;\n }\n }\n return false;\n }", "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 void checkInterval (IInterval interval) {\n\t\tint begin = interval.getLeft();\n\t\tint end = interval.getRight();\n\t\t\n\t\tif (begin >= end) {\n\t\t\tthrow new IllegalArgumentException (\"Invalid SegmentTreeNode insert: begin (\" +\n\t\t\t\t\tbegin +\t\") must be strictly less than end (\" + end + \")\");\n\t\t}\n\t}", "boolean isEndInclusive();", "public boolean boundaryContains(int i, int j) {\n\t\treturn !interiorContains(i, j);\n\t}", "@JsMethod(name = \"interiorContainsPoint\")\n public boolean interiorContains(double p) {\n return p > lo && p < hi;\n }", "protected boolean checkPoiInside( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//[begin point in area 1] unintersect: 1,2,3,7,8\r\n\t\t//[begin point in area 2] unintersect: 1,2,3\r\n\t\t//[begin point in area 3] unintersect: 1,2,3,4,5\r\n\t\t//[begin point in area 4] unintersect: 3,4,5\r\n\t\t//[begin point in area 5] unintersect: 3,4,5,6,7\r\n\t\t//[begin point in area 6] unintersect: 5,6,7\r\n\t\t//[begin point in area 7] unintersect: 5,6,7,8,1\r\n\t\t//[begin point in area 8] unintersect: 7,8,1\r\n\t\t//[begin point in area 9] unintersect: 9\r\n\t\tif(isInsideArea( 1, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 2, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 3, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 4, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 5, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 6, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 7, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 8, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Range integers = (Range) o;\n return length == integers.length && first == integers.first && last == integers.last && stride == integers.stride;\n }", "private boolean contains(int from1, int to1, int from2, int to2) {\n\t\treturn from2 >= from1 && to2 <= to1;\n\t}", "private boolean isAllowed(int i) {\n // i is not allowed while it in same line or diagonal with the pre line\n for (int j = 0; j < i; j++) {\n if (result[i] == result[j] || Math.abs(i - j) == Math.abs(result[i] - result[j])) {\n return false;\n }\n }\n return true;\n }", "private static boolean hasVisibleRegion(int begin,int end,int first,int last) {\n return (end > first && begin < last);\n }", "public boolean interiorContains(int i, int j) {\n\t\treturn i > 0 && j > 0 && i < width() - 1 && j < height() - 1;\n\t}", "private boolean between(int x1, int x2, int x3) {\n return (x1 >= x3 && x1 <= x2) || (x1 <= x3 && x1 >= x2);\n }", "public boolean contains(Interest i);", "private boolean outOfRange(double i, double e, int threshold) {\n\n\t\tdouble lowerBound = e / (double) threshold;\n\t\tdouble upperBound = e * (double) threshold;\n\n\t\treturn ((i < lowerBound) || (i > upperBound));\n\t}", "private boolean isInBound(int current, int bound){\n return (current >= 0 && current < bound);\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 boolean isBefore(ReadableInterval interval) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[18]++;\nint CodeCoverConditionCoverageHelper_C6;\r\n if ((((((CodeCoverConditionCoverageHelper_C6 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C6 |= (2)) == 0 || true) &&\n ((interval == null) && \n ((CodeCoverConditionCoverageHelper_C6 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[6].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C6, 1) || true)) || (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[6].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C6, 1) && false)) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[11]++;\r\n return isBeforeNow();\n\r\n } else {\n CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[12]++;}\r\n return isBefore(interval.getStartMillis());\r\n }", "public static boolean isSequence(double start, double mid, double end)\r\n/* 140: */ {\r\n/* 141:324 */ return (start < mid) && (mid < end);\r\n/* 142: */ }", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "public boolean containsRange(Range range) {\n/* 317 */ if (range == null) {\n/* 318 */ return false;\n/* */ }\n/* 320 */ return (containsLong(range.getMinimumLong()) && containsLong(range.getMaximumLong()));\n/* */ }", "public boolean isEmptyInterval(){\n\t\tif (leftbound<0)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "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}", "public static boolean between(Integer integer, Integer lhs, Integer rhs) {\n\treturn null != integer && null != lhs && null != rhs && (integer >= lhs && integer <= rhs);\n }", "boolean contains(int i);", "@Override\n public int compareTo(Interval o) {\n return 0;\n }", "public static boolean getIntesectNum(ArrayList<Point> R, ArrayList<Point> S, double threshold){\n\t\tint i=0, j=0;\n\t\tint count;\n\t\tfor(;i<R.size();i++){\n\t\t\tPoint pr = R.get(i);\n\t\t\tfor(j=0;j<S.size();j++){\n\t\t\t\tPoint ps = S.get(j);\n\t\t\t\tif(Math.abs(pr.coordinate[0]-ps.coordinate[0])<=threshold && Math.abs(pr.coordinate[1]-ps.coordinate[1])<=threshold)\n\t\t\t\t\treturn true;\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn false;\t\t\n\t}", "public boolean containsDomainRange(long from, long to) { return true; }", "public final boolean checkAppendOverLimit(int i) {\n boolean z = false;\n if (this.mLastVisibleIndex < 0) {\n return false;\n }\n if (!this.mReversedFlow ? findRowMax(false, null) >= i - this.mSpacing : findRowMin(true, null) <= i + this.mSpacing) {\n z = true;\n }\n return z;\n }", "private boolean isBetweenBounds(int x, int y, int[] bounds) {\n return x >= bounds[0] && x <= bounds[2] && y >= bounds[1] && y <= bounds[3];\n }", "@JsMethod(name = \"containsPoint\")\n public boolean contains(double p) {\n return p >= lo && p <= hi;\n }", "boolean isIncludeBounds();", "boolean hasI15();", "private boolean inRange(double num, double low, double high) {\n if (num >= low && num <= high)\n return true;\n\n return false;\n }", "boolean isEquals(Range other);", "public static boolean isValidTupleI(int i, int j, int topBoundary) {\n return isInRange(i, topBoundary) && isInRange(j, topBoundary);\n }", "IntervalTupleList evaluate(double low, double high);", "public static final boolean m7475a(int[] iArr, int i) {\n for (int i2 : iArr) {\n if (i2 == i) {\n return true;\n }\n }\n return false;\n }", "public final boolean checkPrependOverLimit(int i) {\n boolean z = false;\n if (this.mLastVisibleIndex < 0) {\n return false;\n }\n if (!this.mReversedFlow ? findRowMin(true, null) <= i + this.mSpacing : findRowMax(false, null) >= i - this.mSpacing) {\n z = true;\n }\n return z;\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 boolean isSlot(int i);", "private boolean isNumberinRange(double needle, double haystack, double range) {\n return (((haystack - range) < needle) // greater than low bounds\n && (needle < (haystack + range))); // less than upper bounds\n }", "public boolean isCovered(int i) {\n return mCovered[i];\n }", "public int isInBounds(T a);", "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 boolean purchasedPilotsContains(int i) {\r\n\t\treturn collectionManager.purchasedPilotsContains(i);\r\n\t}", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\n \n }", "private boolean isInRange(int a, int b, int c) {\n return c >= a ;\n }" ]
[ "0.72339296", "0.69651157", "0.6629646", "0.6489773", "0.6283347", "0.6187149", "0.6164813", "0.61634374", "0.6086143", "0.6082003", "0.60347855", "0.60043156", "0.6002273", "0.58853006", "0.5836755", "0.58290404", "0.58239484", "0.5801351", "0.5779241", "0.57117045", "0.56754047", "0.5665211", "0.5657266", "0.56402504", "0.56118894", "0.56105065", "0.5597289", "0.5589737", "0.5582576", "0.55671936", "0.5567072", "0.5566982", "0.555621", "0.55432886", "0.55193305", "0.55153155", "0.5510826", "0.5502221", "0.5490873", "0.5490028", "0.548608", "0.5484642", "0.5472822", "0.5456469", "0.5447425", "0.5446281", "0.5444267", "0.5442884", "0.5439581", "0.54387647", "0.5437961", "0.54194355", "0.54129624", "0.5396999", "0.53932184", "0.53863335", "0.53802717", "0.5377893", "0.53684646", "0.53573036", "0.53571635", "0.535612", "0.5352851", "0.5346682", "0.53294504", "0.5326508", "0.5314492", "0.5303721", "0.5295504", "0.5292541", "0.5291315", "0.5289156", "0.5283655", "0.5260209", "0.52601933", "0.52599317", "0.52565974", "0.5251743", "0.52395844", "0.52270174", "0.5204179", "0.51949114", "0.5184997", "0.51840675", "0.51823354", "0.51813865", "0.51774293", "0.51723665", "0.51699847", "0.5169968", "0.5169893", "0.51614344", "0.5158583", "0.51568615", "0.5152678", "0.5145802", "0.5137958", "0.5116745", "0.51157296", "0.5114503" ]
0.6628054
3
True if given i intersects in the interval Intervals like that has a nonempty intersection [1,3][3,5]> [3,3]
public boolean hasNonEmptyIntersectionWith(Interval i){ if (rightbound < i.leftbound) return false; if (i.rightbound < leftbound) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasOverlap(int[] i1, int[] i2)\n {\n // Special case of consecutive STEP-BY-STEP intervals\n if(i1[0] <= i2[0] && i2[0] <= i1[1])\n return true;\n if(i2[0] <= i1[0] && i1[0] <= i2[1])\n return true;\n return false;\n }", "public boolean interiorContains(int i, int j) {\n\t\treturn i > 0 && j > 0 && i < width() - 1 && j < height() - 1;\n\t}", "public boolean boundaryContains(int i, int j) {\n\t\treturn !interiorContains(i, j);\n\t}", "protected boolean checkPoiInside( CFWPoint poiBegI, CFWPoint poiEndI)\t{\r\n\t\t//[begin point in area 1] unintersect: 1,2,3,7,8\r\n\t\t//[begin point in area 2] unintersect: 1,2,3\r\n\t\t//[begin point in area 3] unintersect: 1,2,3,4,5\r\n\t\t//[begin point in area 4] unintersect: 3,4,5\r\n\t\t//[begin point in area 5] unintersect: 3,4,5,6,7\r\n\t\t//[begin point in area 6] unintersect: 5,6,7\r\n\t\t//[begin point in area 7] unintersect: 5,6,7,8,1\r\n\t\t//[begin point in area 8] unintersect: 7,8,1\r\n\t\t//[begin point in area 9] unintersect: 9\r\n\t\tif(isInsideArea( 1, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 2, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 3, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 2, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 4, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 5, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 3, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 4, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 6, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 7, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 5, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 6, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\tif(isInsideArea( 8, poiBegI))\t{\r\n\t\t\tif(isInsideArea( 7, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 8, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t\telse if(isInsideArea( 1, poiEndI))\r\n\t\t\t\treturn(false);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isSubIntervalOf(Interval i){\n\t\t\n\t\tif(i.getLeftBound()>leftbound)\n\t\t\treturn false;\n\t\tif(i.getRightBound()<rightbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isIntersection();", "boolean isInInterval(int baseIndex);", "public static boolean overlap(List<Interval> intervals) {\n for (int i = 0; i < intervals.size(); i++) {\n for (int j = i + 1; j < intervals.size(); j++) {\n Interval interval1 = intervals.get(i);\n Interval interval2 = intervals.get(j);\n if (interval1.overlaps(interval2)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isSuperIntervalOf(Interval i){\n\t\t\n\t\tif(i.getLeftBound()<leftbound)\n\t\t\treturn false;\n\t\tif(i.getRightBound()>rightbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "private boolean intersectsAggregate( Aggregate mprim ) throws Exception {\n boolean inter = false;\n\n int cnt = mprim.getSize();\n\n for ( int i = 0; i < cnt; i++ ) {\n if ( intersects( mprim.getObjectAt( i ) ) ) {\n inter = true;\n break;\n }\n }\n\n return inter;\n }", "@Override\r\n\t public boolean equals(Object obj) {\n\t Interval inteval = (Interval)obj;\r\n\t return this.getStart().equals(inteval.getStart()) && this.getEnd().equals(inteval.getEnd()) ;\r\n\t }", "public boolean areIntersecting() {\n return intersection != null;\n }", "@Test\n public void testIntersection5()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 200000};\n List<Integer> expected = new ArrayList<>();\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "private static final boolean isArrayValueAtIndexInsideOrInsideAdjacent(DataSet aDataSet, int i, int pointCount, double aMin, double aMax)\n {\n // If val at index in range, return true\n double val = aDataSet.getX(i);\n if (val >= aMin && val <= aMax)\n return true;\n\n // If val at next index in range, return true\n if (i+1 < pointCount)\n {\n double nextVal = aDataSet.getX(i + 1);\n if (val < aMin && nextVal >= aMin || val > aMax && nextVal <= aMax)\n return true;\n }\n\n // If val at previous index in range, return true\n if (i > 0)\n {\n double prevVal = aDataSet.getX(i - 1);\n if ( val < aMin && prevVal >= aMin || val > aMax && prevVal <= aMax)\n return true;\n }\n\n // Return false since nothing in range\n return false;\n }", "public boolean overlaps(int i, int j) {\n int start1 = start(i);\n int end1 = end(i);\n int start2 = start(j);\n int end2 = end(j);\n\n return (start1 <= start2 && end1 >= start2)\n ||\n (start1 <= end2 && end1 >= end2);\n }", "default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }", "@Test\n public void testIntersection4()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n ConciseSet set2 = new ConciseSet();\n for (int i = 0; i < 1000; i++) {\n set1.add(i);\n if (i != 500) {\n set2.add(i);\n expected.add(i);\n }\n }\n\n verifyIntersection(expected, set1, set2);\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 boolean isInRange(int i, int topBoundary) {\n return 0 <= i && i < topBoundary;\n }", "@Test\n public void testIntersection1()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {33, 100000};\n List<Integer> expected = Arrays.asList(33, 100000);\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }", "public boolean intersecta(int iX, int iY) {\r\n // se crea los rectangulos de ambos\r\n Rectangle rctEste = new Rectangle(this.getX(), this.getY(),\r\n this.getAncho(), this.getAlto());\r\n \r\n Rectangle rctParam = new Rectangle(iX, iY, 1, 1); \r\n\r\n // revisa si existe colision\r\n if (rctEste.intersects(rctParam)) {\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean inROI(RandomIter roiIter, int y, int x) {\n return (roiBounds.contains(x, y) && roiIter.getSample(x, y, 0) > 0);\n }", "private boolean isInside(int i, int j) {\n\t\tif (i < 0 || j < 0 || i > side || j > side)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean cond(int i, double curLat, double curLon, double foundLat, double foundLon){\r\n boolean condResult = true;\r\n switch (i){\r\n case 0:\r\n condResult = curLon < foundLon;\r\n break;\r\n case 1:\r\n condResult = curLon > foundLon;\r\n break;\r\n case 2:\r\n condResult = curLat > foundLat;\r\n break;\r\n case 3:\r\n condResult = curLat < foundLat;\r\n break;\r\n case 4:\r\n condResult = false;\r\n break;\r\n }\r\n return condResult;\r\n }", "private boolean intersects(int from1, int to1, int from2, int to2) {\n\t\treturn from1 <= from2 && to1 >= from2 // (.[..)..] or (.[...]..)\n\t\t\t\t|| from1 >= from2 && from1 <= to2; // [.(..]..) or [..(..)..\n\t}", "private boolean isOverlapping( int[] t0, int[] t1)\n {\n if ( t0.length == 1)\n {\n return t0[ 0] >= t1[ 0]; \n }\n else\n {\n return t0[ 1] >= t1[ 0]; \n }\n }", "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "private int checkIntersections(ArrayList<Segment> segments){\n\t\tint numberOfIntersections = 0;\n\t\tfor (Segment s: segments){\n\t\t\tSegment firstSegment = s;\n\t\t\tfor (Segment t: segments){\n\t\t\t\tSegment secondSegment = t;\n\t\t\t\tif (!(firstSegment.equals(secondSegment))){\n\t\t\t\t\tif (!this.checkSharedVertex(firstSegment, secondSegment)){\n\t\t\t\t\t\tif(this.isIntersected(firstSegment.w1, firstSegment.w2, secondSegment.w1, secondSegment.w2))\n\t\t\t\t\t\t\tnumberOfIntersections ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn numberOfIntersections;\n\t}", "@Override\n\tpublic boolean intersects(double arg0, double arg1, double arg2, double arg3) {\n\t\treturn false;\n\t}", "public boolean isInterior() {\n\t\tif (this.eltZero != null && this.eltOne != null && this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public void test_containsII() {\n\tfinal int COUNT = 60000000;\n\t\n\tRectangle r = new Rectangle(1, 2, 3, 4);\n\n\tPerformanceMeter meter = createMeter(\"contains\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\tr.contains(2, 3);\t// does contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n\t\n\tmeter = createMeter(\"disjoint\");\n\tmeter.start();\n\tfor (int i = 0; i < COUNT; i++) {\n\t\tr.contains(9, 12);\t// does not contain\n\t}\n\tmeter.stop();\n\t\n\tdisposeMeter(meter);\n}", "public static <T extends Comparable<T>> boolean intersect(Range<T> a, Range<T> b) {\n\t\t// Because we're working with a discrete domain, we have to be careful to never use open\n\t\t// lower bounds. Otherwise, the following two inputs would cause a true return value when,\n\t\t// in fact, the intersection contains no elements: (0, 1], [0, 1).\n\t\treturn a.isConnected(b) && !a.intersection(b).isEmpty();\n\t}", "public static boolean isValidTupleI(int i, int j, int topBoundary) {\n return isInRange(i, topBoundary) && isInRange(j, topBoundary);\n }", "@Test\n public void testIntersection6()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n for (int i = 0; i < 5; i++) {\n set1.add(i);\n }\n for (int i = 1000; i < 1005; i++) {\n set1.add(i);\n }\n\n ConciseSet set2 = new ConciseSet();\n for (int i = 800; i < 805; i++) {\n set2.add(i);\n }\n for (int i = 806; i < 1005; i++) {\n set2.add(i);\n }\n\n for (int i = 1000; i < 1005; i++) {\n expected.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "public static final boolean m7475a(int[] iArr, int i) {\n for (int i2 : iArr) {\n if (i2 == i) {\n return true;\n }\n }\n return false;\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 }", "Multimap<String, String> intersects(Polygon bounds);", "public static boolean intervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 <= end2 && start2 <= end1);\n\t}", "private static boolean areOverlapping( int a[], int sz, int pos, int len )\n {\n \tfor( int i=0; i<sz; i++ ){\n \t if( areOverlapping( a[i], pos, len ) ){\n \t\treturn true;\n \t }\n \t}\n \treturn false;\n }", "static boolean intersectsFace(S2Point n) {\n // L intersects the [-1,1]x[-1,1] square in (u,v) if and only if the dot\n // products of N with the four corner vertices (-1,-1,1), (1,-1,1), (1,1,1),\n // and (-1,1,1) do not all have the same sign. This is true exactly when\n // |Nu| + |Nv| >= |Nw|. The code below evaluates this expression exactly\n // (see comments above).\n double u = Math.abs(n.x);\n double v = Math.abs(n.y);\n double w = Math.abs(n.z);\n // We only need to consider the cases where u or v is the smallest value,\n // since if w is the smallest then both expressions below will have a\n // positive LHS and a negative RHS.\n return (v >= w - u) && (u >= w - v);\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/* */ }", "@Test\n public void testIntersection3()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n ConciseSet set2 = new ConciseSet();\n for (int i = 0; i < 1000; i++) {\n set1.add(i);\n set2.add(i);\n expected.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "@Test\n public void testIntersection2()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 100000};\n List<Integer> expected = Collections.singletonList(100000);\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "public static boolean getIntesectNum(ArrayList<Point> R, ArrayList<Point> S, double threshold){\n\t\tint i=0, j=0;\n\t\tint count;\n\t\tfor(;i<R.size();i++){\n\t\t\tPoint pr = R.get(i);\n\t\t\tfor(j=0;j<S.size();j++){\n\t\t\t\tPoint ps = S.get(j);\n\t\t\t\tif(Math.abs(pr.coordinate[0]-ps.coordinate[0])<=threshold && Math.abs(pr.coordinate[1]-ps.coordinate[1])<=threshold)\n\t\t\t\t\treturn true;\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn false;\t\t\n\t}", "public boolean contains(Interest i);", "@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 }", "private boolean intersects(Circle range) {\n\t\treturn range.intersects(boundary);\n\t}", "@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 }", "private boolean isAllowed(int i) {\n // i is not allowed while it in same line or diagonal with the pre line\n for (int j = 0; j < i; j++) {\n if (result[i] == result[j] || Math.abs(i - j) == Math.abs(result[i] - result[j])) {\n return false;\n }\n }\n return true;\n }", "public boolean isInterval() {\n return this == Spacing.regularInterval || this == Spacing.contiguousInterval\n || this == Spacing.discontiguousInterval;\n }", "private static final boolean correct(List<Long> xs, int i, int low, int high) {\n final long target = xs.get(i);\n for (int x = low; x < high; x++) {\n for (int y = low + 1; y <= high; y++) {\n final long vx = xs.get(x);\n final long vy = xs.get(y);\n if ((vx != vy) && ((vx + vy) == target)) {\n return true;\n }\n }\n }\n return false;\n }", "Multimap<String, String> intersects(Circle bounds);", "Multimap<String, String> intersects(RectangleLatLng bounds);", "public int[] getIntersection(int[] i1, int[] i2)\n {\n int[] intersection = new int[2];\n intersection[0] = Math.max(i1[0], i2[0]);\n intersection[1] = Math.min(i1[1], i2[1]);\n return intersection;\n }", "public boolean isOverlapping(Filter f);", "private boolean rangeCheck(int i){\n return i >= 0 && i < size;\n }", "@Override\n public boolean equals(Object o) {\n if (this == o)\n return true;\n if (o == null || getClass() != o.getClass())\n return false;\n Range integers = (Range) o;\n return length == integers.length && first == integers.first && last == integers.last && stride == integers.stride;\n }", "@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 }", "boolean intersects( Geometry gmo );", "@Override\n\tpublic boolean intersects(Vec3D vec)\n\t\t{\n\t\tboolean isInRes = true;\n\t\tisInRes &= vec.x() >= topLeft.x();\n\t\tisInRes &= vec.x() <= topLeft.x() + edgeLength;\n\t\tisInRes &= vec.y() >= topLeft.y();\n\t\tisInRes &= vec.y() <= topLeft.y() + edgeLength;\n\t\tisInRes &= vec.z() >= topLeft.z();\n\t\tisInRes &= vec.z() <= topLeft.z() + edgeLength;\n\t\treturn isInRes;\n\t\t}", "public boolean inRange(Vector v) {\r\n\t\tdouble w = v.get(0);\r\n\t\tdouble x = v.get(1);\r\n\t\tdouble y = v.get(2);\r\n\t\tdouble z = v.get(3);\r\n\t\tboolean a = (x+w>1)&&(x+1>w)&&(w+1>x);\r\n\t\tboolean b = (y+z>1)&&(y+1>z)&&(z+1>y);\r\n\t\treturn a&&b;\r\n\t}", "@JsMethod(name = \"interiorContainsPoint\")\n public boolean interiorContains(double p) {\n return p > lo && p < hi;\n }", "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 }", "private void checkOverlaps() {\r\n final ArrayList<Vertex> overlaps = new ArrayList<Vertex>(3);\r\n final int count = getOutlineNumber();\r\n boolean firstpass = true;\r\n do {\r\n for (int cc = 0; cc < count; cc++) {\r\n final Outline outline = getOutline(cc);\r\n int vertexCount = outline.getVertexCount();\r\n for(int i=0; i < outline.getVertexCount(); i++) {\r\n final Vertex currentVertex = outline.getVertex(i);\r\n if ( !currentVertex.isOnCurve()) {\r\n final Vertex nextV = outline.getVertex((i+1)%vertexCount);\r\n final Vertex prevV = outline.getVertex((i+vertexCount-1)%vertexCount);\r\n final Vertex overlap;\r\n\r\n // check for overlap even if already set for subdivision\r\n // ensuring both triangular overlaps get divided\r\n // for pref. only check in first pass\r\n // second pass to clear the overlaps array(reduces precision errors)\r\n if( firstpass ) {\r\n overlap = checkTriOverlaps0(prevV, currentVertex, nextV);\r\n } else {\r\n overlap = null;\r\n }\r\n if( overlaps.contains(currentVertex) || overlap != null ) {\r\n overlaps.remove(currentVertex);\r\n\r\n subdivideTriangle(outline, prevV, currentVertex, nextV, i);\r\n i+=3;\r\n vertexCount+=2;\r\n addedVerticeCount+=2;\r\n\r\n if(overlap != null && !overlap.isOnCurve()) {\r\n if(!overlaps.contains(overlap)) {\r\n overlaps.add(overlap);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n firstpass = false;\r\n } while( !overlaps.isEmpty() );\r\n }", "public void setIntersection(java.lang.Boolean value);", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Range range1 = Range.of(0L);\n Range range2 = range1.intersection(range0);\n boolean boolean0 = range0.equals(range2);\n assertFalse(range1.isEmpty());\n assertTrue(range2.isEmpty());\n assertFalse(range2.equals((Object)range1));\n assertTrue(boolean0);\n }", "public static boolean openIntervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 < end2 && start2 < end1);\n\t}", "boolean verifications(int i, int j, int val) { \r\n return (verifCarre(i-i%nCarre, j-j%nCarre, val) && verifLigne(i, val) && verifColonne(j, val)); \r\n }", "private boolean intervalContains(double target, int coordIdx) {\n double midVal1 = orgGridAxis.getCoordEdge1(coordIdx);\n double midVal2 = orgGridAxis.getCoordEdge2(coordIdx);\n boolean ascending = midVal1 < midVal2;\n return intervalContains(target, coordIdx, ascending, true);\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 }", "public boolean intersect(Data C) {\n // If someone of the following conditions is true, they are not intersected.\n return !(cond1(C) || cond2(C) || cond3(C) || cond4(C));\n }", "public static final boolean m64556a(@C6003d int[] iArr, int i) {\n C14445h0.m62478f(iArr, \"$receiver\");\n return m65093h(iArr, i) >= 0;\n }", "public static boolean InsideArray(int value, ArrayList <Integer> comparray)\n\t{\n\t\tfor(Integer val : comparray)\n\t\t\t{\n\t\t\t\tif(value == val)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\treturn true;\n\t\t\n\t}", "public abstract boolean intersect(BoundingBox bbox);", "boolean isIncludeBounds();", "@Override\n final boolean intersect(Bounds bounds, Point4d pickPos) {\n\treturn bounds.intersect(this.bounds, pickPos);\n }", "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 boolean intersects(GraphicalFigure fig) {\n\n\t\t// Get the distance between the 2 figures on the x axis\n\t\tint xDist = pos.xCoord() - fig.getOffset().xCoord();\n\n\t\t// Get the distance on the y axis\n\t\tint yDist = pos.yCoord() - fig.getOffset().xCoord();\n\n\t\t// All if's allow for if the x's are the same\n\t\t// Check to see if the figure is on the right and overlaps\n\t\tif (xDist >= 0 && xDist < fig.getWidth()) {\n\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = pos.xCoord(); i < pos.xCoord() + fig.getWidth() - xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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\n\t\t// All if's allow for if the x's are the same\n\t\t// Check if the figure is on the left and overlaps\n\t\telse if (xDist >= 0 && xDist < width) {\n\t\t\t// For loop variables\n\t\t\tint initial = 0;\n\t\t\tint compare = 0;\n\t\t\tBoolean loopCheck = false;\n\n\t\t\t// All if's allow for if the y's are the same\n\t\t\t// Check if it's above the object and within range\n\t\t\tif (yDist >= 0 && xDist < fig.getHeight()) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = pos.yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = pos.yCoord() + fig.getHeight() - yDist;\n\t\t\t}\n\n\t\t\t// Check if it's below the object and within range\n\t\t\telse if (yDist <= 0 && xDist < height) {\n\n\t\t\t\t// Set loopCheck to true\n\t\t\t\tloopCheck = true;\n\n\t\t\t\t// For loop variables\n\t\t\t\t// Set initial to the location of the y coordinate\n\t\t\t\tinitial = fig.getOffset().yCoord();\n\n\t\t\t\t// Set the compare value to the location of the y + the height of the figure -\n\t\t\t\t// the y distance\n\t\t\t\tcompare = fig.getOffset().yCoord() + fig.getHeight() + yDist;\n\t\t\t}\n\n\t\t\t// If the loop check is true, do a for loop\n\t\t\tif (loopCheck) {\n\n\t\t\t\t// Create a location variable\n\t\t\t\tLocation loc;\n\t\t\t\t// Loop through the intersecting rectangle\n\t\t\t\t// Loop Horizontally\n\t\t\t\tfor (int i = fig.getOffset().xCoord(); i < fig.getOffset().xCoord() + width + xDist; i++) {\n\t\t\t\t\t// Loop through vertically\n\t\t\t\t\tfor (int j = initial; j < compare; j++) {\n\t\t\t\t\t\t// Create a location for the new pixel\n\t\t\t\t\t\tloc = new Location(i, j);\n\n\t\t\t\t\t\t// Check for overlap, return true\n\t\t\t\t\t\tif (findPixel(loc) && fig.findPixel(loc)) {\n\t\t\t\t\t\t\treturn true;\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\n\t\t// If no intersection found, return false\n\t\treturn false;\n\t}", "boolean isPartiallyOverlapped(int[] x, int[] y) {\n return y[0] <= x[1]; //정렬이 이미 되어 있어서 simplify 할 수 있음\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 boolean isIntersectionSatisfiable(OWLClass[] clses, ReasonerTaskListener taskListener) throws DIGReasonerException;", "public boolean isEmptyInterval(){\n\t\tif (leftbound<0)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public boolean isCovered(int i) {\n return mCovered[i];\n }", "public int isInBounds(T a);", "private boolean intersects(int x, int y, int size){\n count++;\n return(!(\n x > this.x + this.width ||\n x + size < this.x ||\n y > this.y + this.height ||\n y + size < this.y\n ));\n }", "public boolean isFull(int i, int j){\n \tif(i<=0 || i>this.gridLength || j<=0 || j>this.gridLength){\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n \tif(isOpen(i, j)){\n \t\treturn unionTest.connected(0, (i-1)*this.gridLength + j);\n \t}\n \treturn false;\n }", "public boolean intersects(S2Point v1) {\n double lng1 = S2LatLng.longitude(v1).radians();\n boolean result = interval.intersects(S1Interval.fromPointPair(lng0, lng1));\n lng0 = lng1;\n return result;\n }", "public boolean intersects(Obstacle v){\n \treturn box.intersects(v.getBox()); \t\r\n }", "public TimeIntervalCollection getSatisfiedIntervalIntersection() {\n Preconditions.checkNotNull(analysisInterval);\n TimeIntervalCollection allSatisfiedIntervals = new TimeIntervalCollection();\n if (results.isEmpty()) {\n return allSatisfiedIntervals;\n }\n\n allSatisfiedIntervals.add(analysisInterval);\n for (AccessQueryConstraintResult result : results.values()) {\n allSatisfiedIntervals = allSatisfiedIntervals.intersect(result.getSatisfiedIntervals());\n }\n\n return allSatisfiedIntervals;\n }", "public boolean isOnset(int i)\n\t{\n\t\treturn fIsOnset[i];\n\t}", "@Test\n public void findOverlap() {\n\n int[] A = new int[] {1,3,5,7,10};\n int[] B = new int[] {-2,2,5,6,7,11};\n\n List<Integer> overlap = new ArrayList<Integer>();\n overlap.add(5);\n overlap.add(7);\n\n Assert.assertEquals(overlap,Computation.findOverlap(A,B));\n\n }", "@Test\n\tpublic void intersection() {\n\n\t\tlong n = 105;\n\t\tlong m = 100;\n\t\tfor(long i = n - 1; i > 1; i--){\n\t\t\tn = n * i;\n\t\t\tfor(long j = getZero(n); j > 0; j--){\n\t\t\t\tm = m * 10;\n\t\t\t}\n\t\t\tn = n % m;\n\t\t\tm = 100;\n\n\t\t\tSystem.out.println(n+\" \"+i);\n\n\t\t}\n\n\n\n\n\n\t}", "public static void main(String[] args) {\n\t\tint [] a = {3,4,5,6};\n\t\tint [] b = {1,2,3};\t\n\t\tint [] c = {7,8,9};\t\n\t\tint [] d = {};\n\t\tSystem.out.println(intersection(a,b)); //true\n\t\tSystem.out.println(intersection(b,c)); //false\n\t\tSystem.out.println(intersection(a,c)); //false\n\t\tSystem.out.println(intersection(a,d)); //false\n\t\t}", "public static boolean opposites(Pair[] data){\n HashSet<Pair> hs = new HashSet<>(20, 0.9f);\n for(Pair p : data) {\n if(hs.contains(new Pair(p.b(), p.a())))\n return true;\n hs.add(p);\n }\n return false;\n }", "public boolean intersects(HitBox h){\n\t\treturn rect.intersects(h.getRectangle());\n\t}", "private boolean satisfiesPolygon() {\n \t\treturn this.markers.size() >= 3;\n \t}", "public static boolean comprobarIntervalo(Date fI,Date fF,Date foI,Date foF){\n boolean ok = false;\n \n if(foI.before(fI) && fI.before(foF)){\n if(foI.before(fF) && fF.before(foF) && fI.before(fF)){\n ok= true;\n }\n } else {\n ok = false;\n }\n return ok;\n }", "@SafeVarargs\n public static <T> boolean intersects(Set<T>... sets) {\n return !intersection(sets).isEmpty();\n }" ]
[ "0.6202186", "0.6009961", "0.5997927", "0.59864354", "0.5984022", "0.59835356", "0.5903753", "0.58512145", "0.5846228", "0.58111215", "0.5789464", "0.5784847", "0.577101", "0.5753852", "0.5736094", "0.57082725", "0.5659475", "0.5606165", "0.55797476", "0.5573834", "0.5568677", "0.5545825", "0.5529262", "0.55206925", "0.55193484", "0.5489731", "0.5485257", "0.5475756", "0.5472389", "0.5464589", "0.54588056", "0.54481137", "0.5437078", "0.54292715", "0.54168004", "0.5385909", "0.5384596", "0.53822577", "0.53540206", "0.53520197", "0.53516054", "0.5323634", "0.53031135", "0.5295513", "0.52929175", "0.52864504", "0.52855086", "0.526511", "0.5258515", "0.5248018", "0.524769", "0.52373445", "0.5234451", "0.5233855", "0.5231287", "0.5227941", "0.52188545", "0.52047306", "0.52045083", "0.5195539", "0.51943254", "0.51852816", "0.5175681", "0.5167705", "0.51585925", "0.51569533", "0.51559836", "0.5138026", "0.5137", "0.51341265", "0.5133389", "0.51261765", "0.5093405", "0.5077612", "0.50712335", "0.5058139", "0.50436896", "0.5035539", "0.50289965", "0.5017128", "0.5014473", "0.5012718", "0.4999334", "0.49973816", "0.49957788", "0.498813", "0.49852973", "0.49744853", "0.49735552", "0.49545556", "0.4952943", "0.49441686", "0.49365237", "0.49303204", "0.4920724", "0.4920209", "0.4909838", "0.49073586", "0.4899384", "0.48987734" ]
0.7535626
0
Assumes that are adjacent a returns an Interval
public Interval getUnionWith(Interval i){ //Assumes that are adjacent return new Interval( min(leftbound, i.getLeftBound()), max(rightbound, i.getRightBound()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "boolean isInInterval(int baseIndex);", "default boolean isAdjacent(Interval other) {\n return getStart() == other.getEnd() || getEnd() == other.getStart();\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}", "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}", "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 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 }", "IntervalTupleList evaluate(double low, double high);", "public abstract HalfOpenIntRange approximateSpan();", "@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 List<Interval> getUnionWithList(Interval i){\n\t\t\n\t\tList<Interval> unionList = new ArrayList<Interval>();\n\t\t\n\t\tif (isAdjacentTo(i)){\n\t\t\tunionList.add(new Interval(\n\t\t\t\t\t\tmin(leftbound, i.getLeftBound()),\n\t\t\t\t\t\tmax(rightbound, i.getRightBound())\n\t\t\t\t\t));\n\t\t}\n\t\telse{\n\t\t\tunionList.add(this);\n\t\t\tunionList.add(i);\n\t\t}\n\t\t\t\n\t\treturn unionList;\n\t\t\n\t}", "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 }", "public int getFirstInInterval(int start) {\n if (start > last()) {\n return -1;\n }\n if (start <= first) {\n return first;\n }\n if (stride == 1) {\n return start;\n }\n int offset = start - first;\n int i = offset / stride;\n i = (offset % stride == 0) ? i : i + 1; // round up\n return first + i * stride;\n }", "static List<Interval> merge(List<Interval> intervals) {\n intervals.sort((Interval interval1, Interval interval2) -> Integer.compare(interval1.start, interval2.start));\n\n Iterator<Interval> itr = intervals.iterator();\n\n List<Interval> result = new ArrayList<>();\n Interval first = itr.next();\n int start = first.start;\n int end = first.end;\n\n while (itr.hasNext()) {\n Interval currentInterval = itr.next();\n //overlap\n if (end > currentInterval.start) {\n // change the end value to take the max of the two\n // TIP: changing max to min gives us mutually exclusive intervals , ie, it gets rid if the overlapping intervals\n end = Math.max(end, currentInterval.end);\n // Not adding to final list here cause the next interval could also be overlapped\n } else {\n //add s,e to final list here as we know current interval end < start\n result.add(new Interval(start, end));\n // last pair will not be added in this loop as hasNext will return false\n start = currentInterval.start;\n end = currentInterval.end;\n }\n }\n\n result.add(new Interval(start, end));\n return result;\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 }", "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 ArrayList<Interval> insert(ArrayList<Interval> intervals, Interval newInterval) {\n ArrayList<Interval> res = new ArrayList<Interval>(); \n Interval t= new Interval(newInterval.start,newInterval.end);\n Iterator<Interval> itr = intervals.iterator();\n \n while(itr.hasNext()){\n Interval i = itr.next();\n if(i.start>t.end){\n res.add(t);\n res.add(i);\n while(itr.hasNext()){res.add(itr.next());}\n return res;\n }\n \n if(t.start>i.end) \n res.add(i);\n else{\n t.start = Math.min(i.start,t.start);\n t.end = Math.max(i.end,t.end); \n }\n }\n res.add(t);\n return res;\n\n }", "IntervalTupleList evaluate(Interval x);", "abstract ArrayList<Pair<Integer,Double>> adjacentNodes(int i);", "public static double inInterval(double lowerBound, double value, double upperBound) {\n/* 67 */ if (value < lowerBound)\n/* 68 */ return lowerBound; \n/* 69 */ if (upperBound < value)\n/* 70 */ return upperBound; \n/* 71 */ return value;\n/* */ }", "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}", "@Override\n public int compareTo(Interval o) {\n return 0;\n }", "private void mergeWithStack(List<Interval> list) {\n if(list == null) {\n return;\n }\n \n // first sort the list on their start time\n Collections.sort(list, new Comparator<Interval>() {\n\n @Override\n public int compare(Interval i1, Interval i2) {\n if(i1 == null && i2 == null) {\n return 0;\n } else if(i1 != null && i2 != null) {\n if(i1.start > i2.start) {\n return 1;\n } else if(i1.start == i2.start) {\n return 0;\n } else {\n return -1;\n }\n } else if(i1 != null) {\n return 1;\n } else {\n return -1;\n }\n }\n \n });\n \n Interval cur;\n Stack<Interval> s = new Stack<>();\n \n // push the first one into satck\n s.push(list.get(0));\n \n // ensure there are at least 2 elements left\n for(int index = 1; index < list.size(); index++) {\n Interval top = s.peek();\n cur = list.get(index);\n \n if(top.end < cur.start) {\n // no overlapping\n s.push(cur);\n } else if(top.end >= cur.start) {\n // 2 intervals are interleaved\n top.end = cur.end;\n }\n }\n \n list.clear();\n while(!s.isEmpty()) {\n list.add(0, s.pop());\n }\n }", "boolean isNewInterval();", "protected abstract R toRange(D lower, D upper);", "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 boolean isInterval() {\n return this == Spacing.regularInterval || this == Spacing.contiguousInterval\n || this == Spacing.discontiguousInterval;\n }", "public Coordinates midPoint(Coordinates a, Coordinates b);", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "public ArrayList<Block> getAdj (Block b) { // gets the adjacent blocks\n\t\tArrayList<Block> neighbors = new ArrayList<Block> ();\n\t\tif (b.x+1 < size) neighbors.add(get(b.x+1, b.y, b.z));\n\t\tif (b.x-1 > -1) neighbors.add(get(b.x-1, b.y, b.z));\n\t\tif (b.y+1 < size) neighbors.add(get(b.x, b.y+1, b.z));\n\t\tif (b.y-1 > -1) neighbors.add(get(b.x, b.y-1, b.z));\n\t\tif (b.z+1 < size) neighbors.add(get(b.x, b.y, b.z+1));\n\t\tif (b.z-1 > -1) neighbors.add(get(b.x, b.y, b.z-1));\n\t\treturn neighbors;\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}", "public ArrayList<Interval> insert(ArrayList<Interval> intervals, Interval newInterval) {\n int[] points = new int[2 * intervals.size()];\n int i = 0;\n for (Interval inter: intervals) {\n points[i++] = inter.start;\n points[i++] = inter.end;\n }\n \n int l = insertIndex(points, newInterval.start);\n int i1 = l / 2;\n if (l % 2 == 1) { // within an interval\n newInterval.start = points[l - 1];\n }\n else if (l > 0 && newInterval.start == points[l - 1]) { // start equal last interval's end\n newInterval.start = points[l - 2];\n i1--;\n }\n \n int r = insertIndex(points, newInterval.end);\n int i2 = (r + 1) / 2 - 1;\n if (r % 2 == 1) {\n newInterval.end = points[r];\n }\n \n for (i = i1; i <= i2; i++) intervals.remove(i1); // **important** indexes change after remove each one\n intervals.add(i1, newInterval);\n return intervals;\n \n }", "private void merge(List<Interval> list) {\n if(list == null) {\n return;\n }\n \n // first sort the list on their start time\n Collections.sort(list, new Comparator<Interval>() {\n\n @Override\n public int compare(Interval i1, Interval i2) {\n if(i1 == null && i2 == null) {\n return 0;\n } else if(i1 != null && i2 != null) {\n if(i1.start > i2.start) {\n return 1;\n } else if(i1.start == i2.start) {\n return 0;\n } else {\n return -1;\n }\n } else if(i1 != null) {\n return 1;\n } else {\n return -1;\n }\n }\n \n });\n \n int index = 0;\n \n // ensure there are at least 2 elements left\n while(index < list.size() - 1) {\n // get the next 2 consecutive elements from the list\n Interval a = list.get(index++);\n Interval b = list.get(index);\n \n\n if(a.start <= b.start && b.end <= a.end) {\n // a completely covers b then delete b\n list.remove(index--);\n } else if(a.start <= b.start && b.start < a.end) {\n // a and b overlaps some \n list.remove(index--);\n list.remove(index);\n \n // replace with the merged one\n list.add(index, new Interval(a.start, b.end));\n }\n }\n }", "public static void test() {\n List<Interval> list = new ArrayList<>();\n list.add(new Interval(1, 4));\n list.add(new Interval(2, 3)); // completely covered by previous\n list.add(new Interval(3, 6)); // partially overlapping over 1st one\n list.add(new Interval(5, 9)); // partially overlapping with the merged one (1, 6) to become (1, 9)\n list.add(new Interval(11, 15));\n list.add(new Interval(14, 18)); // merge with previous one as (11, 18)\n \n MergeIntervals p = new MergeIntervals();\n // works\n //p.merge(list);\n \n p.mergeWithStack(list);\n \n for(Interval i : list) {\n System.out.print(\"(\" + i.start + \", \" + i.end + \") \");\n }\n \n System.out.println(\"end\");\n }", "public List<Interval> insert(List<Interval> intervals, Interval newInterval) {\n List<Interval> res = new ArrayList<Interval>();\n\n for (Interval cur : intervals) {\n if (newInterval == null) {\n res.add(cur);\n continue;\n }\n if (cur.end < newInterval.start) {\n res.add(cur);\n continue;\n }\n if (cur.start > newInterval.end) {\n res.add(newInterval);\n newInterval = null;\n res.add(cur);\n continue;\n }\n\n newInterval.start = Math.min(newInterval.start, cur.start);\n newInterval.end = Math.max(newInterval.end, cur.end);\n }\n\n if (newInterval != null) res.add(newInterval);\n\n return res;\n }", "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 }", "@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 static IntervalSet of(int a, int b) {\n\t\tIntervalSet s = new IntervalSet();\n\t\ts.add(a, b);\n\t\treturn s;\n\t}", "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}", "public List<Interval> merge(List<Interval> intervals) {\n ArrayList<Interval> result = new ArrayList<Interval>();\n if(intervals.size()==0) return result;\n Comparator<Interval> comp = new Comparator<Interval>() \n { \n @Override \n public int compare(Interval i1, Interval i2) \n { \n if(i1.start==i2.start){ \n return i1.end-i2.end;\n }\n return i1.start-i2.start; \n } \n }; \n Collections.sort(intervals,comp); \n Interval cur=intervals.get(0);\n \tfor(int i=1;i<intervals.size();i++){\n \t\tInterval newInterval=intervals.get(i);\n \t\tif(newInterval.start>cur.end){\n \t\t\tInterval tmp=new Interval(cur.start,cur.end);\n \t\t\tresult.add(tmp);\n \t\t\tcur.start=newInterval.start;\n \t\t\tcur.end=newInterval.end;\n \t\t}\n \t\telse{\n \t\t\tcur.start=Math.min(cur.start, newInterval.start);\n \t\t\tcur.end=Math.max(cur.end, newInterval.end);\n \t\t}\n \t}\n \tresult.add(cur);\n \treturn result;\n }", "private ArrayList<int[]> getOverlapping(ArrayList<int[]> list, int start, int end) {\n ArrayList<int[]> result=new ArrayList<int[]>();\n for (int[] seg:list) {\n if (!(start>seg[1] || end<seg[0])) result.add(seg);\n }\n return result;\n }", "public Interval toInterval() {\r\n return new Interval(getStartMillis(), getEndMillis(), getChronology());\r\n }", "private static final boolean isArrayValueAtIndexInsideOrInsideAdjacent(DataSet aDataSet, int i, int pointCount, double aMin, double aMax)\n {\n // If val at index in range, return true\n double val = aDataSet.getX(i);\n if (val >= aMin && val <= aMax)\n return true;\n\n // If val at next index in range, return true\n if (i+1 < pointCount)\n {\n double nextVal = aDataSet.getX(i + 1);\n if (val < aMin && nextVal >= aMin || val > aMax && nextVal <= aMax)\n return true;\n }\n\n // If val at previous index in range, return true\n if (i > 0)\n {\n double prevVal = aDataSet.getX(i - 1);\n if ( val < aMin && prevVal >= aMin || val > aMax && prevVal <= aMax)\n return true;\n }\n\n // Return false since nothing in range\n return false;\n }", "@Override\n\tpublic void visit(IntervalExpression arg0) {\n\t\t\n\t}", "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 }", "private boolean adjacent(Location a, Location b)\n {\n for (Location loc: getAdjacentLocations(a))\n {\n if (loc.equals(b))\n return true;\n }\n return false;\n }", "private void keepRangeRecur(BinaryNode node, E a, E b) {\n\n if (node == null) return;\n\n //node is within a-b bounds so keep it\n if (a.compareTo((E)node.element) <= 0 && b.compareTo((E)node.element) >= 0) {\n keepRangeRecur(node.left, a, b);\n keepRangeRecur(node.right, a, b);\n\n //node is to the left of boundaries\n } else if (a.compareTo((E)node.element) > 0) {\n if (node == root) {\n root = node.right;\n node.right.parent = null;\n } else if (node.parent.right == node) { //node and its parent are out\n root = node;\n node.parent = null;\n keepRangeRecur(node.left, a, b);\n } else { //node is out but its parent is in\n node.parent.left = node.right;\n if (node.right != null) node.right.parent = node.parent; // checking if child exists\n }\n keepRangeRecur(node.right, a, b);\n\n // node is to the right of boundaries\n } else if (b.compareTo((E)node.element) < 0) {\n if (node == root) {\n root = node.left;\n node.left.parent = null;\n } else if (node.parent.left == node) { //node and its parent are out\n root = node;\n node.parent = null;\n keepRangeRecur(node.right, a, b);\n } else { //node is out but its parent is in\n node.parent.right = node.left;\n if (node.left != null) node.left.parent = node.parent; // checking if child exists\n }\n keepRangeRecur(node.left, a, b);\n }\n }", "@Override\n public int compareTo(Interval otherInterval) {\n return start.compareTo(otherInterval.start);\n }", "public List<Interval> insert(List<Interval> intervals, Interval newInterval) {\n int start = Collections.binarySearch(intervals, newInterval, (l, r) -> l.start - r.start);\n if(start < 0) {\n start = -start - 1;\n }\n if(start != 0) {\n if(intervals.get(start-1).end >= newInterval.start) newInterval.start = intervals.get(--start).start;\n }\n\n // find end index to delete\n int end = Collections.binarySearch(intervals, newInterval, (l, r) -> l.end - r.end);\n if(end < 0) {end = - end - 1;}\n if(end != intervals.size()) {\n if(intervals.get(end).start <= newInterval.end) newInterval.end = intervals.get(end++).end;\n }\n //System.out.println(start+\",\" + end + \",\" + newInterval.start +\",\" +newInterval.end);\n\n // delete all the intervals\n for(int i = start; i<end; i++) {\n intervals.remove(start);\n }\n\n intervals.add(start, newInterval);\n return intervals;\n }", "private int findCoordElementDiscontiguousInterval(CoordInterval target, boolean bounded) {\n Preconditions.checkNotNull(target);\n\n // Check that the target is within range\n int n = orgGridAxis.getNcoords();\n double lowerValue = Math.min(target.start(), target.end());\n double upperValue = Math.max(target.start(), target.end());\n MinMax minmax = orgGridAxis.getCoordEdgeMinMax();\n if (upperValue < minmax.min()) {\n return bounded ? 0 : -1;\n } else if (lowerValue > minmax.max()) {\n return bounded ? n - 1 : n;\n }\n\n // see if we can find an exact match\n int index = -1;\n for (int i = 0; i < orgGridAxis.getNcoords(); i++) {\n if (target.fuzzyEquals(orgGridAxis.getCoordInterval(i), 1.0e-8)) {\n return i;\n }\n }\n\n // ok, give up on exact match, try to find interval closest to midpoint of the target\n if (bounded) {\n index = findCoordElementDiscontiguousInterval(target.midpoint(), bounded);\n }\n return index;\n }", "public Square[] adjacentCells() {\n\t\tArrayList<Square> cells = new ArrayList <Square>();\n\t\tSquare aux;\n\t\tfor (int i = -1;i <= 1; i++) {\n\t\t\tfor (int j = -1; j <= 1 ; j++) {\n\t\t\t\taux = new Square(tractor.getRow()+i, tractor.getColumn()+j); \n\t\t\t\tif (isInside(aux) && abs(i+j) == 1) { \n\t\t\t\t\tcells.add(getSquare(aux));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cells.toArray(new Square[cells.size()]);\n\t}", "protected ArrayList<int[]> findAdjacentSafe(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }", "public List<Interval> insert(List<Interval> intervals, Interval newInterval) {\n List<Interval> ans = new ArrayList<>();\n if (intervals == null || intervals.size() == 0) {\n ans.add(newInterval);\n return ans;\n }\n \n boolean isInserted = false;\n \n for (int i = 0; i < intervals.size(); i++) {\n Interval cur = intervals.get(i);\n if (newInterval.start > cur.end) {\n ans.add(cur);\n } else if (newInterval.end < cur.start) {\n if (!isInserted) {\n ans.add(newInterval);\n isInserted = true;\n }\n ans.add(cur);\n } else {\n i = helper(intervals, newInterval, i, ans);\n isInserted = true;\n }\n }\n \n if (!isInserted) {\n ans.add(newInterval);\n }\n return ans;\n }", "private static int query(int[] segtree, int l, int r, int ns, int ne, int index) {\n if (ns >= l && ne <= r) {\n // complete overlap\n return segtree[index];\n } else if (ns > r || ne < l) {\n // no overlap\n return Integer.MAX_VALUE;\n } else {\n int mid = (ns + ne) / 2;\n int leftAns = query(segtree, l, r, ns, mid, 2 * index);\n int rightAns = query(segtree, l, r, mid + 1, ne, 2 * index + 1);\n return Math.min(leftAns, rightAns);\n }\n }", "protected void add(Interval addition) {\n\t\tif (readonly)\n\t\t\tthrow new IllegalStateException(\"can't alter readonly IntervalSet\");\n\t\t// System.out.println(\"add \"+addition+\" to \"+intervals.toString());\n\t\tif (addition.b < addition.a) {\n\t\t\treturn;\n\t\t}\n\t\t// find position in list\n\t\t// Use iterators as we modify list in place\n\t\tfor (ListIterator<Interval> iter = intervals.listIterator(); iter.hasNext();) {\n\t\t\tInterval r = iter.next();\n\t\t\tif (addition.equals(r)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (addition.adjacent(r) || !addition.disjoint(r)) {\n\t\t\t\t// next to each other, make a single larger interval\n\t\t\t\tInterval bigger = addition.union(r);\n\t\t\t\titer.set(bigger);\n\t\t\t\t// make sure we didn't just create an interval that\n\t\t\t\t// should be merged with next interval in list\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\tInterval next = iter.next();\n\t\t\t\t\tif (!bigger.adjacent(next) && bigger.disjoint(next)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// if we bump up against or overlap next, merge\n\t\t\t\t\titer.remove(); // remove this one\n\t\t\t\t\titer.previous(); // move backwards to what we just set\n\t\t\t\t\titer.set(bigger.union(next)); // set to 3 merged ones\n\t\t\t\t\titer.next(); // first call to next after previous duplicates\n\t\t\t\t\t\t\t\t\t// the result\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (addition.startsBeforeDisjoint(r)) {\n\t\t\t\t// insert before r\n\t\t\t\titer.previous();\n\t\t\t\titer.add(addition);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// if disjoint and after r, a future iteration will handle it\n\t\t}\n\t\t// ok, must be after last interval (and disjoint from last interval)\n\t\t// just add it\n\t\tintervals.add(addition);\n\t}", "Pair<DateTime, DateTime> getSegmentBounds(ReadableInstant instant) {\n LocalDate date = new DateTime(instant).toLocalDate(); // a day in the local time zone\n DateTime[] fenceposts = getSegmentFenceposts(date);\n for (int i = 0; i + 1 < fenceposts.length; i++) {\n if (!instant.isBefore(fenceposts[i]) && instant.isBefore(fenceposts[i + 1])) {\n return new Pair<>(fenceposts[i], fenceposts[i + 1]);\n }\n }\n return null; // should never get here because start <= instant < stop\n }", "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 addRange(int left, int right) {\n Interval cur = intervals.get(left);\n if (cur == null) {\n cur = new Interval(left, right);\n intervals.put(left, cur);\n } else {\n cur.end = Math.max(cur.end, right);\n }\n\n // now merge intervals\n\n // lower one\n Integer lower = intervals.lowerKey(cur.start);\n if (lower != null && intervals.get(lower).end >= cur.start) { //overlap\n int end = Math.max(cur.end, intervals.get(lower).end);\n cur = intervals.get(lower);\n cur.end = end;\n intervals.remove(left);\n }\n\n // higher ones\n Integer higher = intervals.higherKey(cur.start); //like next\n while (higher != null) {\n if (intervals.get(higher).start > cur.end) {\n break;\n }\n\n cur.end = Math.max(cur.end, intervals.get(higher).end);\n intervals.remove(higher);\n\n higher = intervals.higherKey(cur.start);\n }\n }", "private int findClosestDiscontiguousInterval(double target) {\n boolean isTemporal = orgGridAxis.getAxisType().equals(AxisType.Time);\n return isTemporal ? findClosestDiscontiguousTimeInterval(target) : findClosestDiscontiguousNonTimeInterval(target);\n }", "public static IntervalSet of(int a) {\n\t\tIntervalSet s = new IntervalSet();\n\t\ts.add(a);\n\t\treturn s;\n\t}", "@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 }", "public Coordinates inBetweenPoint(Coordinates a, Coordinates b, double ratio);", "public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }", "@Override\n public Iterable<V> adjacentTo(V from)\n {\n if (from.equals(null)){\n throw new IllegalArgumentException();\n }\n Iterator graphIterator = graph.entrySet().iterator();\n \t Map.Entry graphElement = (Map.Entry) graphIterator.next();\n \t V vert = (V)graphElement.getKey();\n \t while (graphIterator.hasNext() && vert != from){\n \t\tgraphElement = (Map.Entry) graphIterator.next();\n \t\tvert = (V)graphElement.getKey();\n \t }\n \t ArrayList <V> edges = graph.get(vert);\n \t //Iterable <V> e = edges;\n \t return edges;\n }", "@Override\n\tpublic AbstractValue greatestLowerBound(AbstractValue d) {\n\t\tif ( !(d instanceof Interval) )\n\t\t\tthrow new IllegalArgumentException(\"v should be of type Interval\");\n\t\tInterval i = (Interval) d;\n\n\t\tif (i.isBottom())\n\t\t\treturn i;\n\t\telse if (i.equals(top))\n\t\t\treturn this;\n\n\t\tString newLow = \"-Inf\", newHigh = \"+Inf\";\n\n\t\t//Calcolare limite inferiore\n\n\t\tif ( this.getLow().equals(\"-Inf\")){\n\t\t\tif( !i.getLow().equals(\"-Inf\"))\n\t\t\t\tif(Integer.parseInt(this.getHigh()) > Integer.parseInt(i.getLow()))\n\t\t\t\t\tnewLow = String.valueOf(Integer.max(Integer.parseInt(this.getLow()), Integer.parseInt(i.getLow())));\n\t\t\t\telse\n\t\t\t\t\treturn BottomAV.getInstance();\n\t\t}else if ( i.getLow().equals(\"-Inf\")){\n\t\t\tif( !this.getLow().equals(\"-Inf\"))\n\t\t\t\tif(Integer.parseInt(i.getHigh()) > Integer.parseInt(this.getLow()))\n\t\t\t\t\tnewLow = String.valueOf(Integer.max(Integer.parseInt(i.getLow()), Integer.parseInt(this.getLow())));\n\t\t\t\telse\n\t\t\t\t\treturn BottomAV.getInstance();\n\t\t}else if(!this.getLow().equals(\"-Inf\") && !i.getLow().equals(\"-Inf\")){\n\t\t\tnewLow = String.valueOf(Integer.max(Integer.parseInt(this.getLow()), Integer.parseInt(i.getLow())));\n\t\t}\n\n\t\t// Calcolare limite superiore\n\n\t\tif ( this.getHigh().equals(\"+Inf\")) {\n\t\t\tif (!i.getHigh().equals(\"+Inf\"))\n\t\t\t\tnewHigh = i.getHigh();\n\t\t}else if ( i.getHigh().equals(\"+Inf\")) {\n\t\t\tif (!this.getHigh().equals(\"+Inf\"))\n\t\t\t\tnewHigh = this.getHigh();\n\t\t}else if(!this.getHigh().equals(\"+Inf\") && !i.getHigh().equals(\"+Inf\")){\n\t\t\tnewHigh = String.valueOf(Integer.min(Integer.parseInt(this.getHigh()), Integer.parseInt(i.getHigh())));\n\t\t}\n\n\t\tInterval res = new Interval(newLow, newHigh);\n\n\t\t// Checks whether low > high\n\t\tif ((!newLow.equals(\"-Inf\") && (!newHigh.equals(\"+Inf\")) && Integer.parseInt(newLow) > Integer.parseInt(newHigh)))\n\t\t\treturn BottomAV.getInstance();\n\n\t\treturn amItop() ? top : res;\n\t}", "private int betweenPoints(int value,Individual ind) {\n\t\tfor(int i=_point1; i<_point2;i++) {\n\t\t\tif(value==ind.getGene(i)) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t\t\n\t}", "public int getInterdigitInterval();", "private int findCoordElementContiguous(double target, boolean bounded) {\n int n = orgGridAxis.getNcoords();\n\n // Check that the point is within range\n MinMax minmax = orgGridAxis.getCoordEdgeMinMax();\n if (target < minmax.min()) {\n return bounded ? 0 : -1;\n } else if (target > minmax.max()) {\n return bounded ? n - 1 : n;\n }\n\n int low = 0;\n int high = n - 1;\n if (orgGridAxis.isAscending()) {\n // do a binary search to find the nearest index\n int mid;\n while (high > low + 1) {\n mid = (low + high) / 2; // binary search\n if (intervalContains(target, mid, true, false))\n return mid;\n else if (orgGridAxis.getCoordEdge2(mid) < target)\n low = mid;\n else\n high = mid;\n }\n return intervalContains(target, low, true, false) ? low : high;\n\n } else { // descending\n // do a binary search to find the nearest index\n int mid;\n while (high > low + 1) {\n mid = (low + high) / 2; // binary search\n if (intervalContains(target, mid, false, false))\n return mid;\n else if (orgGridAxis.getCoordEdge2(mid) < target)\n high = mid;\n else\n low = mid;\n }\n return intervalContains(target, low, false, false) ? low : high;\n }\n }", "public abstract boolean getEdge(Point a, Point b);", "@Override\n\tpublic int compareTo(Object o) {\n\t\tInterval i = (Interval) o;\n\t\tif (i.end < this.end)\n\t\t\treturn 1;\n\t\telse if (i.end > this.end)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public abstract boolean hasEdge(int from, int to);", "@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 XnRegion keysOf(int start, int stop) {\n\t\tint offset = start;\n\t\tint left = -1;\n\t\tStepper stepper = myRegion.simpleRegions(myOrdering);\n\t\ttry {\n\t\t\tXnRegion region;\n\t\t\twhile ((region = (XnRegion) stepper.fetch()) != null) {\n\t\t\t\tif (region.count().isLE(IntegerValue.make(offset))) {\n\t\t\t\t\toffset = offset - region.count().asInt32();\n\t\t\t\t} else {\n\t\t\t\t\tif (left == -1) {\n\t\t\t\t\t\tleft = ((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().asInt32() + offset;\n\t\t\t\t\t\toffset = stop - (start - offset);\n\t\t\t\t\t\tif (offset <= region.count().asInt32()) {\n\t\t\t\t\t\t\treturn IntegerRegion.make(\n\t\t\t\t\t\t\t\tIntegerValue.make(left),\n\t\t\t\t\t\t\t\t(((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().plus(IntegerValue.make(offset))));\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint right = ((IntegerPos) (region.chooseOne(myOrdering))).asIntegerVar().asInt32() + offset;\n\t\t\t\t\t\treturn IntegerRegion.make(IntegerValue.make(left), IntegerValue.make(right));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstepper.step();\n\t\t\t}\n\t\t} finally {\n\t\t\tstepper.destroy();\n\t\t}\n\t\tthrow new AboraRuntimeException(AboraRuntimeException.NOT_IN_TABLE);\n\t\t/*\n\t\tudanax-top.st:12729:IntegerArrangement methodsFor: 'accessing'!\n\t\t{XnRegion} keysOf: start {Int32} with: stop {Int32}\n\t\t\t\"Return the region that corresponds to a range of indices.\"\n\t\t\t| offset {Int32} left {Int32} right {Int32} | \n\t\t\toffset _ start.\n\t\t\tleft _ -1.\n\t\t\t(myRegion simpleRegions: myOrdering) forEach: \n\t\t\t\t[:region {XnRegion} |\n\t\t\t\tregion count <= offset \n\t\t\t\t\tifTrue: [offset _ offset - region count DOTasLong]\n\t\t\t\t\tifFalse:\n\t\t\t\t\t\t[left == -1 \n\t\t\t\t\t\t\tifTrue: \n\t\t\t\t\t\t\t\t[left _ ((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar DOTasLong + offset.\n\t\t\t\t\t\t\t\toffset _ stop - (start - offset).\n\t\t\t\t\t\t\t\toffset <= region count DOTasLong ifTrue: \n\t\t\t\t\t\t\t\t\t[^IntegerRegion make: left \n\t\t\t\t\t\t\t\t\t\t\twith: (((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar + offset)]]\n\t\t\t\t\t\t\tifFalse:\n\t\t\t\t\t\t\t\t[right _ ((region chooseOne: myOrdering) cast: IntegerPos) asIntegerVar DOTasLong + offset.\n\t\t\t\t\t\t\t\t^IntegerRegion make: left with: right]]].\n\t\t\tHeaper BLAST: #NotInTable.\n\t\t\t^ NULL \"compiler fodder\"!\n\t\t*/\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 R1Interval fromPointPair(double p1, double p2) {\n R1Interval result = new R1Interval();\n result.initFromPointPair(p1, p2);\n return result;\n }", "@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 }", "private static ArrayList getStocksSpan(int[] a) {\n Stack<ValueIndex> stack = new Stack<>();\n ArrayList<Integer> list = new ArrayList();\n for(int i =0 ; i<a.length;i++){\n if(stack.isEmpty())list.add(-1);\n else if(stack.peek().value>a[i])list.add(i-1);\n else if(stack.peek().value<= a[i]){\n while(!stack.isEmpty() && stack.peek().value<=a[i])stack.pop();\n if(stack.isEmpty())list.add(-1);\n else list.add(stack.peek().index);\n }\n stack.push(new ValueIndex(a[i],i));\n }\n for(int i=0;i<list.size();i++){\n// System.out.print(list.get(i)+\"\\t\"); //[-1, 1, 2, -1, 4, -1, 6]\n if(list.get(i)!= -1)list.set(i,i-list.get(i));\n }\n return list;\n }", "private boolean checkConnection(int x1, int x2) {\n\t\treturn (xStartValue <= x1 && xEndValue >= x1) || (xStartValue <= x2 && xEndValue >= x2) ||\n\t\t\t\t(x1 <= xStartValue && x2 >= xStartValue) || (x1 <= xEndValue && x2 >= xEndValue);\n\t\t\n\t}", "public Interval diff(Interval other) {\n\t\treturn this.plus(other.mul(new Interval(\"-1\", \"-1\")));\n\t}", "public f a(int x, int y) {\n/* 114 */ if (x < this.f || y < this.g || x >= this.f + this.h || y >= this.g + this.i) {\n/* 115 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 118 */ f cur = this;\n/* 119 */ while (cur.e) {\n/* 120 */ f hhs = cur.d;\n/* */ \n/* 122 */ if (x < hhs.f) {\n/* */ \n/* 124 */ if (y < hhs.g) {\n/* */ \n/* 126 */ cur = cur.a;\n/* */ \n/* */ continue;\n/* */ } \n/* 130 */ cur = cur.b;\n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 135 */ if (y < hhs.g) {\n/* */ \n/* 137 */ cur = cur.c;\n/* */ \n/* */ continue;\n/* */ } \n/* 141 */ cur = cur.d;\n/* */ } \n/* */ \n/* */ \n/* 145 */ return cur;\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}", "public boolean isSuperIntervalOf(Interval i){\n\t\t\n\t\tif(i.getLeftBound()<leftbound)\n\t\t\treturn false;\n\t\tif(i.getRightBound()>rightbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "private List<Node> getAdjacentNodes(Node current, List<Node> closedSet, Node dest) {\n\t\tList<Node> adjacent = new ArrayList<Node>();\n\t\t\n\t\tfor (int i = -1; i <=1; i++) {\n\t\t\tinner:\n\t\t\tfor (int j = -1; j <=1; j++) {\n\t\t\t\tif (i == 0 && j == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint x = current.getX() + i;\n\t\t\t\tint y = current.getY() + j;\n\t\t\t\tif (!currentState.inBounds(x, y)\n\t\t\t\t\t\t|| board.getHasTree(x, y)\n\t\t\t\t\t\t|| peasantAt(x,y)\n\t\t\t\t\t\t|| board.getTowerProbability(x, y) == 1\n\t\t\t\t\t\t|| isTownHallAt(x, y, dest)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tNode node = new Node(x, y, getHitProbability(x, y), current);\n\t\t\t\tfor (Node visitedNode : closedSet) {\n\t\t\t\t\tif (node.equals(visitedNode)) {\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tadjacent.add(node);\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(\"AT \" + current);\n//\t\tSystem.out.println(\"NEIGHBORS:\");\n//\t\tfor (Node node : adjacent) {\n//\t\t\tSystem.out.println(\"\\t\" + node);\n//\t\t}\n\t\t\n\t\treturn adjacent;\n\t}", "public List<Node> getAdjacent(Node node){\n\n int nodeX, x = node.getX();\n int nodeY, y = node.getY();\n List<Node> adj = new ArrayList<Node>();\n\n for(Node n:allNodes){\n if(n.isReachable()) {\n nodeX = n.getX();\n nodeY = n.getY();\n if ((Math.abs(nodeX - x) == 1 && nodeY == y) || (nodeX == x && Math.abs(nodeY - y) == 1)) {\n adj.add(n);\n //if(node.getCost()==n.getCost()||n.getCost()==1) n.setCost(node.getCost()+1);\n }\n }\n }\n\n return adj;\n }", "public int getLowerBound ();", "protected IntervalNode() {\n\tthis.low = -1;\n\tthis.high = -1;\n\tthis.max = -1;\n\tthis.min = -1;\n\tthis.right = this;\n\tthis.left = this;\n\tthis.p = this;\n }", "default A isBetween(Number firstInclusive, Number lastInclusive) {\n return satisfiesNumberCondition(new NumberCondition<>(firstInclusive, GREATER_THAN_OR_EQUAL)\n .and(new NumberCondition<>(lastInclusive, LESS_THAN_OR_EQUAL)));\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 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 }", "public List<Interval> merge(List<Interval> intervals) {\n List<Interval> result = new ArrayList<>();\n Interval current = null;\n\n Collections.sort(intervals, new Comparator<Interval>() {\n @Override\n public int compare(Interval o1, Interval o2) {\n return Integer.compare(o1.start, o2.start);\n }\n });\n\n for (int i = 0; i < intervals.size(); i++) {\n current = intervals.get(i);\n Interval last = result.size() == 0 ? current : result.get(result.size() - 1);\n\n if (last.end < current.start) {\n result.add(current);\n continue;\n } else {\n result.remove(last);\n\n last.start = Math.min(last.start, current.start);\n last.end = Math.max(last.end, current.end);\n\n result.add(last);\n }\n }\n\n\n return result;\n }", "public static boolean openIntervalIntersect(float start1, float end1, float start2, float end2) {\n\t\treturn (start1 < end2 && start2 < end1);\n\t}", "static boolean findBridge(Triangulator triRef, int ind, int i, int start,\n\t\t\t int[] ind1, int[] i1) {\n\tint i0, i2, j, numDist = 0;\n\tint ind0, ind2;\n\tBBox bb;\n\tDistance old[] = null;\n\tboolean convex, coneOk;\n\n\t// sort the points according to their distance from start.\n\tind1[0] = ind;\n\ti1[0] = i;\n\tif (i1[0] == start) return true;\n\tif (numDist >= triRef.maxNumDist) {\n\t // System.out.println(\"(1) Expanding distances array ...\");\n\t triRef.maxNumDist += triRef.INC_DIST_BK;\n\t old = triRef.distances;\n\t triRef.distances = new Distance[triRef.maxNumDist];\n\t System.arraycopy(old, 0, triRef.distances, 0, old.length);\n\t for (int k = old.length; k < triRef.maxNumDist; k++)\n\t\ttriRef.distances[k] = new Distance();\n\t}\n\n\ttriRef.distances[numDist].dist = Numerics.baseLength(triRef.points[start],\n\t\t\t\t\t\t\t triRef.points[i1[0]]);\n\ttriRef.distances[numDist].ind = ind1[0];\n\t++numDist;\n\n\n\tind1[0] = triRef.fetchNextData(ind1[0]);\n\ti1[0] = triRef.fetchData(ind1[0]);\n\twhile (ind1[0] != ind) {\n\t if (i1[0] == start) return true;\n\t if (numDist >= triRef.maxNumDist) {\n\t\t// System.out.println(\"(2) Expanding distances array ...\");\n\t\ttriRef.maxNumDist += triRef.INC_DIST_BK;\n\t\told = triRef.distances;\n\t\ttriRef.distances = new Distance[triRef.maxNumDist];\n\t\tSystem.arraycopy(old, 0, triRef.distances, 0, old.length);\n\t\tfor (int k = old.length; k < triRef.maxNumDist; k++)\n\t\t triRef.distances[k] = new Distance();\n\t }\n\n\t triRef.distances[numDist].dist = Numerics.baseLength(triRef.points[start],\n\t\t\t\t\t\t\t\t triRef.points[i1[0]]);\n\t triRef.distances[numDist].ind = ind1[0];\n\t ++numDist;\n\t ind1[0] = triRef.fetchNextData(ind1[0]);\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t}\n\n\t// qsort(distances, num_dist, sizeof(distance), &d_comp);\n\tsortDistance(triRef.distances, numDist);\n\n\t// find a valid diagonal. note that no node with index i1 > start can\n\t// be feasible!\n\tfor (j = 0; j < numDist; ++j) {\n\t ind1[0] = triRef.distances[j].ind;\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t if (i1[0] <= start) {\n\t\tind0 = triRef.fetchPrevData(ind1[0]);\n\t\ti0 = triRef.fetchData(ind0);\n\t\tind2 = triRef.fetchNextData(ind1[0]);\n\t\ti2 = triRef.fetchData(ind2);\n\t\tconvex = triRef.getAngle(ind1[0]) > 0;\n\n\t\tconeOk = Numerics.isInCone(triRef, i0, i1[0], i2, start, convex);\n\t\tif (coneOk) {\n\t\t bb = new BBox(triRef, i1[0], start);\n\t\t if (!NoHash.noHashEdgeIntersectionExists(triRef, bb, -1, -1, ind1[0], -1))\n\t\t\treturn true;\n\t\t}\n\t }\n\t}\n\n\t// the left-most point of the hole does not lie within the outer\n\t// boundary! what is the best bridge in this case??? I make a\n\t// brute-force decision... perhaps this should be refined during a\n\t// revision of the code...\n\tfor (j = 0; j < numDist; ++j) {\n\t ind1[0] = triRef.distances[j].ind;\n\t i1[0] = triRef.fetchData(ind1[0]);\n\t ind0 = triRef.fetchPrevData(ind1[0]);\n\t i0 = triRef.fetchData(ind0);\n\t ind2 = triRef.fetchNextData(ind1[0]);\n\t i2 = triRef.fetchData(ind2);\n\t bb = new BBox(triRef, i1[0], start);\n\t if (!NoHash.noHashEdgeIntersectionExists(triRef, bb, -1, -1, ind1[0], -1))\n\t\treturn true;\n\t}\n\n\t// still no diagonal??? yikes! oh well, this polygon is messed up badly!\n\tind1[0] = ind;\n\ti1[0] = i;\n\n\treturn false;\n }", "int getRange();", "public boolean isAdjacent(int from, int to) {\n //your code here\n \tfor (Edge e : myAdjLists[from]) {\n \t\tif (e.to() == to) {\n \t\t\treturn true;\n \t\t}\n \t}\n return false;\n }", "public ArrayList<Interval> merge(ArrayList<Interval> intervals){\n Stack<Interval> st = new Stack<Interval>();\n st.push(intervals.get(0));\n int size = intervals.size();\n for(int i = 1; i < size;i++){\n Interval temp = intervals.get(i);\n Interval first = st.peek();\n if(first.end >= temp.start){\n st.pop();\n st.push(mergeInterval(first,temp));\n }else{\n st.push(temp);\n }\n }\n ArrayList<Interval> ans = new ArrayList<Interval>();\n while(!st.isEmpty()){\n ans.add(st.peek());\n st.pop();\n }\n // reverse all the intervals in the arrayList\n Collections.reverse(ans);\n return ans;\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 }", "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/* */ }", "private List<Integer> allIntegerInRange(int start, int end) {\n\t\tList<Integer> range = new ArrayList<Integer>();\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\trange.add(i);\n\t\t}\n\n\t\treturn range;\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}" ]
[ "0.6597918", "0.64768195", "0.6359848", "0.6238506", "0.6079829", "0.60219014", "0.5963062", "0.58903015", "0.5821645", "0.5802088", "0.57201624", "0.56591153", "0.56309795", "0.56232756", "0.5614299", "0.5614207", "0.5576366", "0.5566109", "0.5486858", "0.5476599", "0.5465", "0.54474723", "0.5434254", "0.5431531", "0.54259783", "0.54241115", "0.54206425", "0.5420008", "0.54159486", "0.5376741", "0.5366187", "0.5359755", "0.5294027", "0.5278648", "0.52700007", "0.5269927", "0.5258574", "0.5257571", "0.52465975", "0.5240673", "0.5236123", "0.52311575", "0.5211592", "0.5205528", "0.5190958", "0.51863813", "0.51847035", "0.51794887", "0.51742923", "0.5165493", "0.51415193", "0.51409817", "0.5137537", "0.51312006", "0.5127466", "0.51262367", "0.51238614", "0.5123416", "0.51184815", "0.5113392", "0.5100418", "0.50896025", "0.50893104", "0.5083499", "0.50753117", "0.50747037", "0.5061566", "0.50590134", "0.50587857", "0.50564086", "0.5055809", "0.5049574", "0.5043489", "0.5041443", "0.50375086", "0.50304735", "0.5027672", "0.50240546", "0.5022633", "0.50209105", "0.50185466", "0.5018163", "0.50158405", "0.5014246", "0.5006176", "0.5001394", "0.49984848", "0.49951375", "0.49926117", "0.4988351", "0.4983309", "0.49828672", "0.49804473", "0.49786863", "0.4975669", "0.49724942", "0.49680537", "0.49628848", "0.49611083", "0.495979" ]
0.5774711
10
Returns a list with one interval if the were adjacent or with the two intervals if they were not
public List<Interval> getUnionWithList(Interval i){ List<Interval> unionList = new ArrayList<Interval>(); if (isAdjacentTo(i)){ unionList.add(new Interval( min(leftbound, i.getLeftBound()), max(rightbound, i.getRightBound()) )); } else{ unionList.add(this); unionList.add(i); } return unionList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static List<Interval> merge(List<Interval> intervals) {\n intervals.sort((Interval interval1, Interval interval2) -> Integer.compare(interval1.start, interval2.start));\n\n Iterator<Interval> itr = intervals.iterator();\n\n List<Interval> result = new ArrayList<>();\n Interval first = itr.next();\n int start = first.start;\n int end = first.end;\n\n while (itr.hasNext()) {\n Interval currentInterval = itr.next();\n //overlap\n if (end > currentInterval.start) {\n // change the end value to take the max of the two\n // TIP: changing max to min gives us mutually exclusive intervals , ie, it gets rid if the overlapping intervals\n end = Math.max(end, currentInterval.end);\n // Not adding to final list here cause the next interval could also be overlapped\n } else {\n //add s,e to final list here as we know current interval end < start\n result.add(new Interval(start, end));\n // last pair will not be added in this loop as hasNext will return false\n start = currentInterval.start;\n end = currentInterval.end;\n }\n }\n\n result.add(new Interval(start, end));\n return result;\n\n }", "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 List<Interval> merge(List<Interval> intervals) {\n ArrayList<Interval> result = new ArrayList<Interval>();\n if(intervals.size()==0) return result;\n Comparator<Interval> comp = new Comparator<Interval>() \n { \n @Override \n public int compare(Interval i1, Interval i2) \n { \n if(i1.start==i2.start){ \n return i1.end-i2.end;\n }\n return i1.start-i2.start; \n } \n }; \n Collections.sort(intervals,comp); \n Interval cur=intervals.get(0);\n \tfor(int i=1;i<intervals.size();i++){\n \t\tInterval newInterval=intervals.get(i);\n \t\tif(newInterval.start>cur.end){\n \t\t\tInterval tmp=new Interval(cur.start,cur.end);\n \t\t\tresult.add(tmp);\n \t\t\tcur.start=newInterval.start;\n \t\t\tcur.end=newInterval.end;\n \t\t}\n \t\telse{\n \t\t\tcur.start=Math.min(cur.start, newInterval.start);\n \t\t\tcur.end=Math.max(cur.end, newInterval.end);\n \t\t}\n \t}\n \tresult.add(cur);\n \treturn result;\n }", "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 }", "default boolean isAdjacent(Interval other) {\n return getStart() == other.getEnd() || getEnd() == other.getStart();\n }", "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 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}", "public List<Interval> merge(List<Interval> intervals) {\n List<Interval> result = new ArrayList<>();\n Interval current = null;\n\n Collections.sort(intervals, new Comparator<Interval>() {\n @Override\n public int compare(Interval o1, Interval o2) {\n return Integer.compare(o1.start, o2.start);\n }\n });\n\n for (int i = 0; i < intervals.size(); i++) {\n current = intervals.get(i);\n Interval last = result.size() == 0 ? current : result.get(result.size() - 1);\n\n if (last.end < current.start) {\n result.add(current);\n continue;\n } else {\n result.remove(last);\n\n last.start = Math.min(last.start, current.start);\n last.end = Math.max(last.end, current.end);\n\n result.add(last);\n }\n }\n\n\n return result;\n }", "private void mergeWithStack(List<Interval> list) {\n if(list == null) {\n return;\n }\n \n // first sort the list on their start time\n Collections.sort(list, new Comparator<Interval>() {\n\n @Override\n public int compare(Interval i1, Interval i2) {\n if(i1 == null && i2 == null) {\n return 0;\n } else if(i1 != null && i2 != null) {\n if(i1.start > i2.start) {\n return 1;\n } else if(i1.start == i2.start) {\n return 0;\n } else {\n return -1;\n }\n } else if(i1 != null) {\n return 1;\n } else {\n return -1;\n }\n }\n \n });\n \n Interval cur;\n Stack<Interval> s = new Stack<>();\n \n // push the first one into satck\n s.push(list.get(0));\n \n // ensure there are at least 2 elements left\n for(int index = 1; index < list.size(); index++) {\n Interval top = s.peek();\n cur = list.get(index);\n \n if(top.end < cur.start) {\n // no overlapping\n s.push(cur);\n } else if(top.end >= cur.start) {\n // 2 intervals are interleaved\n top.end = cur.end;\n }\n }\n \n list.clear();\n while(!s.isEmpty()) {\n list.add(0, s.pop());\n }\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 }", "public List<Interval> merge(List<Interval> intervals) {\n Collections.sort(intervals, new Comparator<Interval>() {\n @Override\n public int compare(Interval o1, Interval o2) {\n if (o1.start < o2.start) {\n return -1;\n }\n if (o1.start > o2.start) {\n return 1;\n }\n return 0;\n }\n });\n if (intervals.size() <= 1) {\n return intervals;\n }\n List<Interval> res = new ArrayList<>();\n int start = intervals.get(0).start;\n int end = intervals.get(0).end;\n for (Interval interval : intervals) {\n if (end >= interval.start) {\n end = Math.max(interval.end, end);\n } else {\n res.add(new Interval(start, end));\n start = interval.start;\n end = interval.end;\n }\n }\n res.add(new Interval(start, end));\n return res;\n }", "private List<PairOfNodeIndexIntervals> getListOfSuspiciousNodeIndexIntervalPairs() {\n\n\t\tList<PairOfNodeIndexIntervals> listOfPairs = new ArrayList<PairOfNodeIndexIntervals>();\n\n\t\t// compare the two node list by Greedy String Tilling algorithm\n\t\tSet<Match> matchedSubstrings = compareTwoNodeLists(programANodeList, programBNodeList);\n\t\tIterator<Match> it = matchedSubstrings.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tMatch match = it.next();\n\t\t\t\n\t\t\t// Given the node is represented by abbreviation of its type with fixed length: 2\n\t\t\t// not all results that are returned from GST are valid, we need to find out \n\t\t\t// valid block pairs\n\t\t\tPairOfNodeIndexIntervals validIntervalPair = getValidNodeIndexIntervalPair(match);\n\n\t\t\t// if the current match does not produce a valid block pair, the validIntervalPair will be null\n\t\t\t// otherwise, add it to the list of pairs\n\t\t\tif (validIntervalPair != null) {\n\t\t\t\tlistOfPairs.add(validIntervalPair);\n\t\t\t}\n\t\t}\n\n\t\treturn listOfPairs;\n\t}", "public ArrayList<Interval> insert(ArrayList<Interval> intervals, Interval newInterval) {\n ArrayList<Interval> res = new ArrayList<Interval>(); \n Interval t= new Interval(newInterval.start,newInterval.end);\n Iterator<Interval> itr = intervals.iterator();\n \n while(itr.hasNext()){\n Interval i = itr.next();\n if(i.start>t.end){\n res.add(t);\n res.add(i);\n while(itr.hasNext()){res.add(itr.next());}\n return res;\n }\n \n if(t.start>i.end) \n res.add(i);\n else{\n t.start = Math.min(i.start,t.start);\n t.end = Math.max(i.end,t.end); \n }\n }\n res.add(t);\n return res;\n\n }", "private void merge(List<Interval> list) {\n if(list == null) {\n return;\n }\n \n // first sort the list on their start time\n Collections.sort(list, new Comparator<Interval>() {\n\n @Override\n public int compare(Interval i1, Interval i2) {\n if(i1 == null && i2 == null) {\n return 0;\n } else if(i1 != null && i2 != null) {\n if(i1.start > i2.start) {\n return 1;\n } else if(i1.start == i2.start) {\n return 0;\n } else {\n return -1;\n }\n } else if(i1 != null) {\n return 1;\n } else {\n return -1;\n }\n }\n \n });\n \n int index = 0;\n \n // ensure there are at least 2 elements left\n while(index < list.size() - 1) {\n // get the next 2 consecutive elements from the list\n Interval a = list.get(index++);\n Interval b = list.get(index);\n \n\n if(a.start <= b.start && b.end <= a.end) {\n // a completely covers b then delete b\n list.remove(index--);\n } else if(a.start <= b.start && b.start < a.end) {\n // a and b overlaps some \n list.remove(index--);\n list.remove(index);\n \n // replace with the merged one\n list.add(index, new Interval(a.start, b.end));\n }\n }\n }", "public List<Interval> insert(List<Interval> intervals, Interval newInterval) {\n List<Interval> res = new ArrayList<Interval>();\n\n for (Interval cur : intervals) {\n if (newInterval == null) {\n res.add(cur);\n continue;\n }\n if (cur.end < newInterval.start) {\n res.add(cur);\n continue;\n }\n if (cur.start > newInterval.end) {\n res.add(newInterval);\n newInterval = null;\n res.add(cur);\n continue;\n }\n\n newInterval.start = Math.min(newInterval.start, cur.start);\n newInterval.end = Math.max(newInterval.end, cur.end);\n }\n\n if (newInterval != null) res.add(newInterval);\n\n return res;\n }", "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}", "public ArrayList<Interval> merge(ArrayList<Interval> intervals){\n Stack<Interval> st = new Stack<Interval>();\n st.push(intervals.get(0));\n int size = intervals.size();\n for(int i = 1; i < size;i++){\n Interval temp = intervals.get(i);\n Interval first = st.peek();\n if(first.end >= temp.start){\n st.pop();\n st.push(mergeInterval(first,temp));\n }else{\n st.push(temp);\n }\n }\n ArrayList<Interval> ans = new ArrayList<Interval>();\n while(!st.isEmpty()){\n ans.add(st.peek());\n st.pop();\n }\n // reverse all the intervals in the arrayList\n Collections.reverse(ans);\n return ans;\n }", "List<Tile> getAdjacentTiles();", "private ArrayList<int[]> getOverlapping(ArrayList<int[]> list, int start, int end) {\n ArrayList<int[]> result=new ArrayList<int[]>();\n for (int[] seg:list) {\n if (!(start>seg[1] || end<seg[0])) result.add(seg);\n }\n return result;\n }", "public List<Interval> checkMerge (Interval interval1, List<Interval> mergedIntervals) {\r\n\t\tInterval mergeInterval = mergedIntervals.get(mergedIntervals.size() - 1);\r\n\t\tif (interval1.getValue1() <= mergeInterval.getValue2() && interval1.getValue2() > mergeInterval.getValue2()) {\r\n\t\t\tInterval intervally = combine(mergeInterval.getValue1(), interval1.getValue2());\r\n\t\t\tmergedIntervals.set(mergedIntervals.size() - 1, intervally);\r\n\t\t\treturn mergedIntervals;\r\n\t\t}else if (interval1.getValue2() <= mergeInterval.getValue2()){\r\n\t\t\treturn mergedIntervals;\r\n\t\t}else {\r\n\t\t\tmergedIntervals.add(interval1);\r\n\t\t\treturn mergedIntervals;\r\n\t\t}\r\n\t}", "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}", "public Square[] adjacentCells() {\n\t\tArrayList<Square> cells = new ArrayList <Square>();\n\t\tSquare aux;\n\t\tfor (int i = -1;i <= 1; i++) {\n\t\t\tfor (int j = -1; j <= 1 ; j++) {\n\t\t\t\taux = new Square(tractor.getRow()+i, tractor.getColumn()+j); \n\t\t\t\tif (isInside(aux) && abs(i+j) == 1) { \n\t\t\t\t\tcells.add(getSquare(aux));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cells.toArray(new Square[cells.size()]);\n\t}", "public List<Interval> insert(List<Interval> intervals, Interval newInterval) {\n List<Interval> ans = new ArrayList<>();\n if (intervals == null || intervals.size() == 0) {\n ans.add(newInterval);\n return ans;\n }\n \n boolean isInserted = false;\n \n for (int i = 0; i < intervals.size(); i++) {\n Interval cur = intervals.get(i);\n if (newInterval.start > cur.end) {\n ans.add(cur);\n } else if (newInterval.end < cur.start) {\n if (!isInserted) {\n ans.add(newInterval);\n isInserted = true;\n }\n ans.add(cur);\n } else {\n i = helper(intervals, newInterval, i, ans);\n isInserted = true;\n }\n }\n \n if (!isInserted) {\n ans.add(newInterval);\n }\n return ans;\n }", "public static void test() {\n List<Interval> list = new ArrayList<>();\n list.add(new Interval(1, 4));\n list.add(new Interval(2, 3)); // completely covered by previous\n list.add(new Interval(3, 6)); // partially overlapping over 1st one\n list.add(new Interval(5, 9)); // partially overlapping with the merged one (1, 6) to become (1, 9)\n list.add(new Interval(11, 15));\n list.add(new Interval(14, 18)); // merge with previous one as (11, 18)\n \n MergeIntervals p = new MergeIntervals();\n // works\n //p.merge(list);\n \n p.mergeWithStack(list);\n \n for(Interval i : list) {\n System.out.print(\"(\" + i.start + \", \" + i.end + \") \");\n }\n \n System.out.println(\"end\");\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 }", "public static List<Range<Long>> subtract(Range<Long> a, Range<Long> b) {\n\t\tRangeSet<Long> set = TreeRangeSet.create();\n\t\tset.add(a);\n\t\tset.remove(b);\n\t\treturn set.asRanges()\n\t\t\t\t.stream()\n\t\t\t\t.map(r -> toRange(lowerEndpoint(r), upperEndpoint(r)))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "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}", "@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 int[][] merge(int[][] intervals) {\n Arrays.sort(intervals, new Comparator<int[]>() {\n @Override\n public int compare(int[] arr1, int[] arr2) {\n if (arr1[0] == arr2[0]) {\n return 0;\n }\n return arr1[0] < arr2[0] ? -1 : 1;\n }\n });\n List<int[]> ans = new ArrayList<>();\n // Take the first interval and compare its end with the starts of the next intervals. As long as they overlap,\n // we update the end to be the max end of the overlapping inervals. Once we find a non-overlapping interval,\n // we add the previous extended interval to the result and start over.\n int[] newInterval = intervals[0];\n ans.add(newInterval);\n for (int[] interval : intervals) {\n if (interval[0] <= newInterval[1]) {\n // Overlapping interval, update the end\n newInterval[1] = Math.max(newInterval[1], interval[1]);\n } else {\n // Non-overlapping interval, add it to the result and start over\n newInterval = interval;\n ans.add(newInterval);\n }\n }\n return ans.toArray(new int[ans.size()][]);\n }", "public ArrayList<Interval> insert(ArrayList<Interval> intervals, Interval newInterval) {\n int[] points = new int[2 * intervals.size()];\n int i = 0;\n for (Interval inter: intervals) {\n points[i++] = inter.start;\n points[i++] = inter.end;\n }\n \n int l = insertIndex(points, newInterval.start);\n int i1 = l / 2;\n if (l % 2 == 1) { // within an interval\n newInterval.start = points[l - 1];\n }\n else if (l > 0 && newInterval.start == points[l - 1]) { // start equal last interval's end\n newInterval.start = points[l - 2];\n i1--;\n }\n \n int r = insertIndex(points, newInterval.end);\n int i2 = (r + 1) / 2 - 1;\n if (r % 2 == 1) {\n newInterval.end = points[r];\n }\n \n for (i = i1; i <= i2; i++) intervals.remove(i1); // **important** indexes change after remove each one\n intervals.add(i1, newInterval);\n return intervals;\n \n }", "IntervalTupleList evaluate(double low, double high);", "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 }", "boolean isInInterval(int baseIndex);", "protected ArrayList<int[]> findAdjacentSafe(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] != SIGN_UNKNOWN && coveredMap[i][j] != SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "public void addRange(int left, int right) {\n Interval cur = intervals.get(left);\n if (cur == null) {\n cur = new Interval(left, right);\n intervals.put(left, cur);\n } else {\n cur.end = Math.max(cur.end, right);\n }\n\n // now merge intervals\n\n // lower one\n Integer lower = intervals.lowerKey(cur.start);\n if (lower != null && intervals.get(lower).end >= cur.start) { //overlap\n int end = Math.max(cur.end, intervals.get(lower).end);\n cur = intervals.get(lower);\n cur.end = end;\n intervals.remove(left);\n }\n\n // higher ones\n Integer higher = intervals.higherKey(cur.start); //like next\n while (higher != null) {\n if (intervals.get(higher).start > cur.end) {\n break;\n }\n\n cur.end = Math.max(cur.end, intervals.get(higher).end);\n intervals.remove(higher);\n\n higher = intervals.higherKey(cur.start);\n }\n }", "public List<Interval> merge(List<Interval> intervals, Interval dnd) {\n if (intervals.isEmpty()) {\n return Collections.singletonList(dnd);\n }\n Comparator<Interval> comparator = Comparator.comparing(Interval::getA).thenComparing(Interval::getB);\n\n //1. sort in ascending order based on starting point. if same then based on end point\n List<Interval> sorted = intervals.stream()\n .sorted(comparator)\n .collect(Collectors.toList());\n\n //2. merge intervals\n List<Interval> merged = new ArrayList<>();\n int start = sorted.get(0).a;\n int end = sorted.get(0).b;\n for (int i = 1; i < sorted.size(); i++) {\n Interval interval = sorted.get(i);\n // if there was previous interval, check, if it can be merged -> merge\n // otherwise flush previous interval and start new\n if (end >= interval.a) {\n end = interval.b;\n } else {\n merged.add(new Interval(start, end, IntervalType.E));\n start = interval.a;\n end = interval.b;\n }\n }\n merged.add(new Interval(start, end, IntervalType.E));\n\n //3. merge with dnd\n List<Interval> cutted = new ArrayList<>();\n for (Interval interval : merged) {\n cutted.addAll(merge(interval, dnd));\n }\n\n //4. add dnd\n cutted.add(dnd);\n\n // 5. sort\n return cutted.stream()\n .sorted(comparator)\n .collect(Collectors.toList());\n }", "IntervalTupleList evaluate(Interval x);", "public List<Interval> insert(List<Interval> intervals, Interval newInterval) {\n int start = Collections.binarySearch(intervals, newInterval, (l, r) -> l.start - r.start);\n if(start < 0) {\n start = -start - 1;\n }\n if(start != 0) {\n if(intervals.get(start-1).end >= newInterval.start) newInterval.start = intervals.get(--start).start;\n }\n\n // find end index to delete\n int end = Collections.binarySearch(intervals, newInterval, (l, r) -> l.end - r.end);\n if(end < 0) {end = - end - 1;}\n if(end != intervals.size()) {\n if(intervals.get(end).start <= newInterval.end) newInterval.end = intervals.get(end++).end;\n }\n //System.out.println(start+\",\" + end + \",\" + newInterval.start +\",\" +newInterval.end);\n\n // delete all the intervals\n for(int i = start; i<end; i++) {\n intervals.remove(start);\n }\n\n intervals.add(start, newInterval);\n return intervals;\n }", "private ArrayList<GameSquare> getAdjacentSquares()\n {\n ArrayList<GameSquare> list = new ArrayList<GameSquare>();\n for (int r = row - 1; r <= row + 1; r++)\n {\n if (r >= 0 && r < grid.length)\n {\n for (int c = col - 1; c <= col + 1; c++)\n {\n if (c >= 0 && c < grid[0].length)\n {\n list.add(grid[r][c]);\n }\n }\n }\n }\n return list;\n }", "public static List<Block> getAdjacentBlocks(Block block) {\n\t\tList<Block> blocks = new ArrayList<Block>();\n\t\tfor (int i = -1; i < 2; i++) {\n\t\t\tfor (int j = -1; j < 2; j++) {\n\t\t\t\tif (!(i == 0 && j == 0)) {\n\t\t\t\t\tblocks.add(block.getRelative(i, 0, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn blocks;\n\t}", "@Override\n public int compareTo(Interval otherInterval) {\n return start.compareTo(otherInterval.start);\n }", "abstract ArrayList<Pair<Integer,Double>> adjacentNodes(int i);", "private PairOfNodeIndexIntervals getValidNodeIndexIntervalPair(Match match) {\n\t\t// init pair to be null, which represents the current match does not produce a valid pair\n\t\tPairOfNodeIndexIntervals pair = null;\n\n\t\t// the indexes of the matched substrings\n\t\tint firstStrMatchedStartIndex = match.getFirstStringIndex();\n\t\tint secondStrMatchedStartIndex = match.getSecondStringIndex();\n\t\t// length of the matched substrings\n\t\tint matchedLen = match.getMatchLength();\n\n\t\tif (matchedLen % 2 == 0) {\n\t\t\t//if length of the matched substrings is even\n\t\t\tif (firstStrMatchedStartIndex % 2 == 0 && secondStrMatchedStartIndex % 2 == 0) {\n\t\t\t\t// if both substrings starts from even index, it is already a valid pair\n\t\t\t\tpair = createNodeIndexIntervalPair(firstStrMatchedStartIndex, secondStrMatchedStartIndex, matchedLen);\n\t\t\t} else if (firstStrMatchedStartIndex % 2 == 1 && secondStrMatchedStartIndex % 2 == 1) {\n\t\t\t\t// if both substrings starts from odd index, ignore the first and last characters\n\t\t\t\tpair = createNodeIndexIntervalPair(firstStrMatchedStartIndex + 1, secondStrMatchedStartIndex + 1,\n\t\t\t\t\t\tmatchedLen - 2);\n\t\t\t}\n\t\t} else {\n\t\t\t//if length of the matched substrings is odd\n\t\t\tif (firstStrMatchedStartIndex % 2 == 0 && secondStrMatchedStartIndex % 2 == 0) {\n\t\t\t\t// if both substrings starts from even index, ignore the last character\n\t\t\t\tpair = createNodeIndexIntervalPair(firstStrMatchedStartIndex, secondStrMatchedStartIndex, matchedLen - 1);\n\t\t\t} else if (firstStrMatchedStartIndex % 2 == 1 && secondStrMatchedStartIndex % 2 == 1) {\n\t\t\t\t// if both substrings starts from odd index, ignore the first character\n\t\t\t\tpair = createNodeIndexIntervalPair(firstStrMatchedStartIndex + 1, secondStrMatchedStartIndex + 1,\n\t\t\t\t\t\tmatchedLen - 1);\n\t\t\t}\n\t\t}\n\n\t\treturn pair;\n\t}", "protected ArrayList<int[]> findAdjacentRisk(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY ) {\n\t\t\t\t\tif (coveredMap[i][j] == SIGN_UNKNOWN || coveredMap[i][j] == SIGN_MARK) {\n\t\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "public List<String> findMissingRanges(int[] nums, int lower, int upper) {\n List<String> res = new ArrayList<>();\n if (nums == null || nums.length == 0) {\n if (lower == upper) {\n res.add(\"\" + lower);\n } else {\n res.add(lower + \"->\" + upper);\n }\n return res;\n }\n\n if (nums[0] > lower) {\n if (nums[0] - 1 == lower) {\n res.add(\"\" + lower);\n } else {\n res.add(lower + \"->\" + (nums[0] - 1));\n }\n }\n\n for (int i = 0; i < nums.length - 1; i++) {\n if ((nums[i + 1] == nums[i] + 1) || nums[i] == nums[i + 1]) {\n continue;\n }\n if (nums[i + 1] - nums[i] == 2) {\n res.add(\"\" + (nums[i] + 1));\n } else {\n res.add((nums[i] + 1) + \"->\" + (nums[i + 1] - 1));\n }\n }\n\n if (nums[nums.length - 1] < upper) {\n if (upper - 1 == nums[nums.length - 1]) {\n res.add(\"\" + upper);\n } else {\n res.add((nums[nums.length - 1] + 1) + \"->\" + upper);\n }\n }\n\n return res;\n\n }", "private List<Node> getAdjacentNodes(Node current, List<Node> closedSet, Node dest) {\n\t\tList<Node> adjacent = new ArrayList<Node>();\n\t\t\n\t\tfor (int i = -1; i <=1; i++) {\n\t\t\tinner:\n\t\t\tfor (int j = -1; j <=1; j++) {\n\t\t\t\tif (i == 0 && j == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint x = current.getX() + i;\n\t\t\t\tint y = current.getY() + j;\n\t\t\t\tif (!currentState.inBounds(x, y)\n\t\t\t\t\t\t|| board.getHasTree(x, y)\n\t\t\t\t\t\t|| peasantAt(x,y)\n\t\t\t\t\t\t|| board.getTowerProbability(x, y) == 1\n\t\t\t\t\t\t|| isTownHallAt(x, y, dest)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tNode node = new Node(x, y, getHitProbability(x, y), current);\n\t\t\t\tfor (Node visitedNode : closedSet) {\n\t\t\t\t\tif (node.equals(visitedNode)) {\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tadjacent.add(node);\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(\"AT \" + current);\n//\t\tSystem.out.println(\"NEIGHBORS:\");\n//\t\tfor (Node node : adjacent) {\n//\t\t\tSystem.out.println(\"\\t\" + node);\n//\t\t}\n\t\t\n\t\treturn adjacent;\n\t}", "public boolean isInterval() {\n return this == Spacing.regularInterval || this == Spacing.contiguousInterval\n || this == Spacing.discontiguousInterval;\n }", "public boolean areAdjacent() {\n return areAdjacent;\n }", "public ArrayList<Block> getAdj (Block b) { // gets the adjacent blocks\n\t\tArrayList<Block> neighbors = new ArrayList<Block> ();\n\t\tif (b.x+1 < size) neighbors.add(get(b.x+1, b.y, b.z));\n\t\tif (b.x-1 > -1) neighbors.add(get(b.x-1, b.y, b.z));\n\t\tif (b.y+1 < size) neighbors.add(get(b.x, b.y+1, b.z));\n\t\tif (b.y-1 > -1) neighbors.add(get(b.x, b.y-1, b.z));\n\t\tif (b.z+1 < size) neighbors.add(get(b.x, b.y, b.z+1));\n\t\tif (b.z-1 > -1) neighbors.add(get(b.x, b.y, b.z-1));\n\t\treturn neighbors;\n\t}", "private ArrayList<GameSquare> getAdjacentEmptySquares()\n {\n ArrayList<GameSquare> list = new ArrayList<GameSquare>();\n for (GameSquare square : getAdjacentSquares())\n {\n if (!square.mine && square.adjacentMines == 0) //Must check to see if square is a mine, because mines\n {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //may not have the correct value for adjacentMines.\n list.add(square);\n }\n }\n return list;\n }", "private static List<DateRange> transformeAdvancedCase(\n final ZonedDateTime startRange,\n final ZonedDateTime endRange,\n final List<DateRange> reservedRanges) {\n\n final List<DateRange> availabilityRanges = new ArrayList<>();\n final List<DateRange> reservedRangesExtended = new ArrayList<>(reservedRanges);\n\n // if first DateRange starts after startRange\n if (reservedRanges.get(0).getStartDate().isAfter(startRange)) {\n // add a synthetic range that ends at startRange. Its startDate is not important\n final DateRange firstSyntheticDateRange = new DateRange(startRange.minusDays(1), startRange);\n reservedRangesExtended.add(0, firstSyntheticDateRange);\n }\n\n // if last DateRange ends before endRange\n if (reservedRanges.get(reservedRanges.size() - 1).getEndDate().isBefore(endRange)) {\n // add a synthetic range that starts at endRange. Its endDate is not important\n final DateRange lastSyntheticDateRange = new DateRange(endRange, endRange.plusDays(1));\n reservedRangesExtended.add(lastSyntheticDateRange);\n }\n\n Iterator<DateRange> iterator = reservedRangesExtended.iterator();\n DateRange current = null;\n DateRange next = null;\n\n while (iterator.hasNext()) {\n\n // On the first run, take the value from iterator.next(), on consecutive runs,\n // take the value from 'next' variable\n current = (current == null) ? iterator.next() : next;\n\n final ZonedDateTime startDate = current.getEndDate();\n\n if (iterator.hasNext()) {\n next = iterator.next();\n final ZonedDateTime endDate = next.getStartDate();\n DateRange availabilityDate = new DateRange(startDate, endDate);\n availabilityRanges.add(availabilityDate);\n }\n }\n\n return availabilityRanges;\n }", "protected ArrayList<int[]> findAdjacentMark(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] == SIGN_MARK) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "private List<Integer> getAdjacent(int node) {\n List<Integer> adjacent = new ArrayList<>();\n for (int i = 0; i < this.matrix[node].length; i++) {\n if (this.matrix[node][i]) {\n adjacent.add(i);\n }\n }\n return adjacent;\n }", "public static List<MissingDataInterval> getMissingRanges(TreeMap<LocalDateTime, Consumption> data, LocalDateTime start, LocalDateTime end, int interval) {\n List<MissingDataInterval> result = new ArrayList<>();\n boolean inMissing = false;\n LocalDateTime lastStart = null;\n\n LocalDateTime time = start;\n while (!time.isAfter(end)) {\n if (!inMissing && !data.containsKey(time)) {\n inMissing = true;\n lastStart = time;\n }\n if (inMissing && data.containsKey(time)) {\n inMissing = false;\n result.add(new MissingDataInterval(lastStart, time.minusSeconds(interval)));\n lastStart = null;\n }\n time = time.plusSeconds(interval);\n }\n if (inMissing) {\n result.add(new MissingDataInterval(lastStart, time.minusSeconds(interval)));\n }\n return result;\n }", "protected void add(Interval addition) {\n\t\tif (readonly)\n\t\t\tthrow new IllegalStateException(\"can't alter readonly IntervalSet\");\n\t\t// System.out.println(\"add \"+addition+\" to \"+intervals.toString());\n\t\tif (addition.b < addition.a) {\n\t\t\treturn;\n\t\t}\n\t\t// find position in list\n\t\t// Use iterators as we modify list in place\n\t\tfor (ListIterator<Interval> iter = intervals.listIterator(); iter.hasNext();) {\n\t\t\tInterval r = iter.next();\n\t\t\tif (addition.equals(r)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (addition.adjacent(r) || !addition.disjoint(r)) {\n\t\t\t\t// next to each other, make a single larger interval\n\t\t\t\tInterval bigger = addition.union(r);\n\t\t\t\titer.set(bigger);\n\t\t\t\t// make sure we didn't just create an interval that\n\t\t\t\t// should be merged with next interval in list\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\tInterval next = iter.next();\n\t\t\t\t\tif (!bigger.adjacent(next) && bigger.disjoint(next)) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\t// if we bump up against or overlap next, merge\n\t\t\t\t\titer.remove(); // remove this one\n\t\t\t\t\titer.previous(); // move backwards to what we just set\n\t\t\t\t\titer.set(bigger.union(next)); // set to 3 merged ones\n\t\t\t\t\titer.next(); // first call to next after previous duplicates\n\t\t\t\t\t\t\t\t\t// the result\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (addition.startsBeforeDisjoint(r)) {\n\t\t\t\t// insert before r\n\t\t\t\titer.previous();\n\t\t\t\titer.add(addition);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// if disjoint and after r, a future iteration will handle it\n\t\t}\n\t\t// ok, must be after last interval (and disjoint from last interval)\n\t\t// just add it\n\t\tintervals.add(addition);\n\t}", "public List<String> summaryRanges(int[] nums) {\n List<String> result = new ArrayList<String>();\n if (nums == null || nums.length == 0) {\n return result;\n }\n \n int start = 0;\n int curr = 1;\n int prev = 0;\n \n while (curr < nums.length) {\n if (nums[curr] - nums[prev] == 1) {\n prev++;\n curr++;\n } else {\n String rst = nums[start] == nums[prev] ? String.valueOf(nums[start]) : nums[start] + \"->\" + nums[prev];\n result.add(rst);\n start = curr;\n prev = curr;\n curr = curr + 1;\n }\n }\n \n if (start < nums.length) {\n String rst = nums[start] == nums[nums.length - 1] ? \n String.valueOf(nums[start]) : nums[start] + \"->\" + nums[nums.length - 1];\n result.add(rst);\n }\n \n return result;\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 }", "private void generateIntervalArray(){\n BigDecimal maximumValue = this.getTfMaximumInterval();\n BigDecimal minimumValue = this.getTfMinimumInterval();\n BigDecimal stepValue = this.getTfStepInterval();\n \n intervalArray = new ArrayList<BigDecimal>();\n BigDecimal step = maximumValue;\n \n //Adiciona os valores \"inteiros\"\n while(step.doubleValue() >= minimumValue.doubleValue()){\n intervalArray.add(step);\n step = step.subtract(stepValue);\n }\n }", "public List<String> summaryRanges(int[] nums) {\r\n LinkedList<String> list = new LinkedList<>();\r\n if (nums==null || nums.length==0) return list;\r\n for (int i=0; i<nums.length; ++i){\r\n int cur = nums[i];\r\n while (i+1<nums.length && nums[i+1]==nums[i]+1) i++;\r\n if (cur !=nums[i]){\r\n list.add(cur + \"->\" + nums[i]);\r\n }\r\n else list.add(cur + \"\");\r\n }\r\n return list;\r\n }", "public List<Point> getPossibleNeighbours() {\n List<Point> points = new ArrayList<>();\n int x = point.getX();\n int y = point.getY();\n Arrays.asList(x - 1, x, x + 1).forEach(i -> {\n Arrays.asList(y - 1, y, y + 1).forEach(j -> {\n points.add(new Point(i, j));\n });\n });\n // remove self\n points.remove(new Point(x, y));\n return points;\n }", "private static ArrayList getStocksSpan(int[] a) {\n Stack<ValueIndex> stack = new Stack<>();\n ArrayList<Integer> list = new ArrayList();\n for(int i =0 ; i<a.length;i++){\n if(stack.isEmpty())list.add(-1);\n else if(stack.peek().value>a[i])list.add(i-1);\n else if(stack.peek().value<= a[i]){\n while(!stack.isEmpty() && stack.peek().value<=a[i])stack.pop();\n if(stack.isEmpty())list.add(-1);\n else list.add(stack.peek().index);\n }\n stack.push(new ValueIndex(a[i],i));\n }\n for(int i=0;i<list.size();i++){\n// System.out.print(list.get(i)+\"\\t\"); //[-1, 1, 2, -1, 4, -1, 6]\n if(list.get(i)!= -1)list.set(i,i-list.get(i));\n }\n return list;\n }", "public Set<T> getRanges();", "public List<Node> getAdjacent(Node node){\n\n int nodeX, x = node.getX();\n int nodeY, y = node.getY();\n List<Node> adj = new ArrayList<Node>();\n\n for(Node n:allNodes){\n if(n.isReachable()) {\n nodeX = n.getX();\n nodeY = n.getY();\n if ((Math.abs(nodeX - x) == 1 && nodeY == y) || (nodeX == x && Math.abs(nodeY - y) == 1)) {\n adj.add(n);\n //if(node.getCost()==n.getCost()||n.getCost()==1) n.setCost(node.getCost()+1);\n }\n }\n }\n\n return adj;\n }", "public List<Aresta> getAdjacentes(Ponto ponto) {\n\t\treturn getAdjacentes(Arrays.asList(ponto));\n\t}", "private static List<Integer> getSplitBeginIndexes(TimeSeries series, Duration splitDuration) {\n ArrayList<Integer> beginIndexes = new ArrayList<>();\n\n int beginIndex = series.getBeginIndex();\n int endIndex = series.getEndIndex();\n \n // Adding the first begin index\n beginIndexes.add(beginIndex);\n\n // Building the first interval before next split\n ZonedDateTime beginInterval = series.getFirstBar().getEndTime();\n ZonedDateTime endInterval = beginInterval.plus(splitDuration);\n\n for (int i = beginIndex; i <= endIndex; i++) {\n // For each tick...\n ZonedDateTime tickTime = series.getBar(i).getEndTime();\n if (tickTime.isBefore(beginInterval) || !tickTime.isBefore(endInterval)) {\n // Tick out of the interval\n if (!endInterval.isAfter(tickTime)) {\n // Tick after the interval\n // --> Adding a new begin index\n beginIndexes.add(i);\n }\n\n // Building the new interval before next split\n beginInterval = endInterval.isBefore(tickTime) ? tickTime : endInterval;\n endInterval = beginInterval.plus(splitDuration);\n }\n }\n return beginIndexes;\n }", "boolean isNewInterval();", "private List<Integer> allIntegerInRange(int start, int end) {\n\t\tList<Integer> range = new ArrayList<Integer>();\n\n\t\tfor (int i = start; i <= end; i++) {\n\t\t\trange.add(i);\n\t\t}\n\n\t\treturn range;\n\t}", "private List<Cell> getSurroundingCells(int x, int y) {\n ArrayList<Cell> cells = new ArrayList<>();\n for (int i = x - 1; i <= x + 1; i++) {\n for (int j = y - 1; j <= y + 1; j++) {\n // Don't include the current position i != x && j != y &&\n if ( isValidCoordinate(i, j)) {\n if (i == x && j == y) {\n continue;\n } else {\n cells.add(gameState.map[j][i]);\n }\n }\n }\n }\n return cells;\n }", "public List<Interval> sortCombine (List<Interval> intervals){\r\n\t\tCompareIntervals compareIntervals = new CompareIntervals();\r\n\t\tList<Interval> mergedIntervals = new ArrayList<>();\r\n\t\t/*goes through intervals in the list and switches the higher and the lower values if \r\n\t\tthe higher value is the first. this makes comparisons easier, at the same time, \r\n\t\tusers don`t have to remember to only enter lower value first*/\r\n\t\tfor (Interval interval : intervals) {\r\n\t\t\tintervals.set(intervals.indexOf(interval), sort(interval));\r\n\t\t}\r\n\t\t//now thie list is sorted from lowest to highest, this again will make comparison easier and reduce the number of if statements slightly\r\n\t\tCollections.sort(intervals, compareIntervals);\r\n\t\t// this will add the first interval of the intervals list to the merged intervals list, so the comparison does work in the next step\r\n\t\tmergedIntervals.add(intervals.get(0));\r\n\t\t\r\n\t\t/* now the program will loop through the intervals and call checkMerge to see if the\r\n\t\tinterval shall be added to the List or merged with a existing entry*/\r\n\t\tfor (int i = 1; i < intervals.size(); i++) {\r\n\t\t\tInterval interval1 = intervals.get(i);\r\n\t\t\tmergedIntervals = checkMerge(interval1, mergedIntervals);\t\r\n\t\t}\r\n\t\treturn mergedIntervals;\t//finally merged intervals list is returned to controller, to have it display on the screen\r\n\t\t}", "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 }", "@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 }", "public Interval diff(Interval other) {\n\t\treturn this.plus(other.mul(new Interval(\"-1\", \"-1\")));\n\t}", "public List<String> summaryRanges(int[] nums) {\n List<String> ret = new ArrayList<>();\n int n = nums.length;\n for (int i = 1, j = 0; i <= n; i++) {\n if (i == n || nums[i - 1] != nums[i] - 1) {\n ret.add(j == i - 1 ? nums[j] + \"\" : nums[j] + \"->\" + nums[i - 1]);\n j = i;\n }\n }\n return ret;\n }", "public Interval getUnionWith(Interval i){\n\t\t\n\t\t//Assumes that are adjacent\n\t\treturn new Interval(\n\t\t\t\t\tmin(leftbound, i.getLeftBound()),\n\t\t\t\t\tmax(rightbound, i.getRightBound())\n\t\t\t\t);\n\t\t\n\t\t\n\t}", "Pair<DateTime, DateTime> getSegmentBounds(ReadableInstant instant) {\n LocalDate date = new DateTime(instant).toLocalDate(); // a day in the local time zone\n DateTime[] fenceposts = getSegmentFenceposts(date);\n for (int i = 0; i + 1 < fenceposts.length; i++) {\n if (!instant.isBefore(fenceposts[i]) && instant.isBefore(fenceposts[i + 1])) {\n return new Pair<>(fenceposts[i], fenceposts[i + 1]);\n }\n }\n return null; // should never get here because start <= instant < stop\n }", "protected abstract Iterable<E> getIntersecting(D lower, D upper);", "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 }", "@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 List<String> summaryRanges2(int[] nums) {\n if (nums.length == 0) return new ArrayList<>();\n\n List<String> result = new ArrayList<>();\n for (int i = 0, begin = nums[0]; i < nums.length; i++) {\n if (i == nums.length - 1 || nums[i] + 1 < nums[i + 1]) {\n result.add(begin == nums[i] ? String.valueOf(nums[i]) : begin + \"->\" + nums[i]);\n if (i < nums.length - 1) {\n begin = nums[i + 1];\n }\n }\n }\n return result;\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 List rangeSearch(int x, int y){\n List list = new List(y-x);\n Node current = findClosest(x);\n Node end = findClosest(y);\n\n // list.append(current);\n // System.out.print(\"end 1 = \" + end.key+\" \");\n while(current.key<=end.key)\n {\n\n // System.out.print(\"current 2= \" + current.key+\" \");\n if(current.key<=y){ // ใส่ node ที่มีค่าไม่เกิน rangeSearch\n list.append(current);\n }\n\n if(current.key>=end.key){break;}\n\n current = findNext(current);\n\n\n\n // System.out.print(\"current 3= \" + current.key);\n\n }\n\n\n return list;\n }", "public final List<Appointment> getAppointmentsBetween(Interval interval) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n return interval.intersects(a.getInterval());\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "public List<Segment2> verticalLinesinCell() {\n\n\t\tList<Float> boundings = getBoundingsOfCell();\n\t\tint partitionPrecision = 1000;\n\t\tfloat distanceBtwLineSegments = (boundings.get(1) - boundings.get(0))\n\t\t\t\t/ partitionPrecision;\n\n\t\tList<Segment2> segments = new ArrayList<Segment2>();\n\t\tdouble startingPoint = boundings.get(0);\n\t\tint i = 0;\n\n\t\twhile (startingPoint < boundings.get(1)) {\n\n\t\t\tstartingPoint = boundings.get(0) + i\n\t\t\t\t\t* distanceBtwLineSegments;\n\t\t\tPoint2 source = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(2));\n\t\t\tPoint2 target = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(3));\n\n\t\t\tSegment2 segment = new Segment2(source, target);\n\t\t\ti++;\n\t\t\tsegments.add(segment);\n\t\t}\n\n\t\treturn segments;\n\n\t}", "@Override\n public int compareTo(Interval o) {\n return 0;\n }", "protected static int[] composeRange(int... pairs) {\n if(pairs.length % 2 != 0)\n throw new IllegalArgumentException(\"Pairs has to be a multiple of 2!\");\n\n List<Integer> nums = new ArrayList<>();\n\n for(int start = 0, end = 1; end < pairs.length; start+=2, end+=2) {\n int[] semiRange = range(pairs[start], pairs[end]);\n for(Integer i : semiRange)\n nums.add(i); //potencjalna optymalizacja: dodac caly array do listy\n }\n\n //potencjalna optymalizacja: zwrocic bezposrednio z listy\n int[] finalRange = new int[nums.size()];\n for(int id = 0; id < nums.size(); id++)\n finalRange[id] = nums.get(id);\n\n return finalRange;\n }", "public int[] findRightInterval(int[][] intervals) {\n\tTreeMap<Integer, Integer> tMap = new TreeMap<>();\n\tfor (int i=0; i<intervals.length; i++) {\n\t tMap.put(intervals[i][0], i);\n\t}\n\t\n\tint[] result = new int[intervals.length];\n\tfor (int i = 0; i < intervals.length; i++) {\n\t int right = intervals[i][1];\n\t Map.Entry<Integer, Integer> entry = tMap.ceilingEntry(right);\n\t int index = entry == null ? -1 : entry.getValue();\n\t result[i] = index;\n\t}\n\n\treturn result;\n }", "@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 }", "@NonNull public List<@NonNull Instant> coalesce(@NonNull List<@NonNull Instant> instants, int g) throws TemporalException\r\n {\r\n Instant i1, i2;\r\n List<@NonNull Instant> resultList = new ArrayList<>();\r\n\r\n // Loop through each instant in the list trying to merge with other instants.\r\n while (!instants.isEmpty()) {\r\n i1 = instants.get(0);\r\n instants.remove(0); // Remove each instants as we deal with it.\r\n\r\n // See if we can merge this instant with the remaining instants in the list. If we merge this instant with an\r\n // existing instant later\r\n // in the list, remove the later element.\r\n Iterator<@NonNull Instant> iterator = instants.iterator();\r\n while (iterator.hasNext()) {\r\n i2 = iterator.next();\r\n // Merge contiguous or overlapping periods.\r\n if (i1.equals(i2, g)) {\r\n iterator.remove(); // We have merged with instant i2 - remove it.\r\n }\r\n }\r\n resultList.add(i1);\r\n }\r\n\r\n return resultList;\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 ArrayList<int[]> findAdjacentUnknown(int[] pair) {\n\t\tint x = pair[0];\n\t\tint y = pair[1];\n\t\tArrayList<int[]> neighbors = new ArrayList<int[]>();\n\t\tfor (int i = x - 1; i <= x + 1; i++) {\n\t\t\tfor (int j = y - 1; j <= y + 1; j++) {\n\t\t\t\tif (i >= 0 && i < maxX && j >= 0 && j < maxY && coveredMap[i][j] == SIGN_UNKNOWN) {\n\t\t\t\t\tneighbors.add(new int[]{i, j});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn neighbors;\n\t}", "static List<Range<Long>> getRanges(Collection<Long> fullPulses) {\n checkNotNull(fullPulses, \"fullPulses was null\");\n\n List<Long> sortedPulses = fullPulses.stream().sorted().collect(toList());\n\n Optional<Long> first = sortedPulses.stream().findFirst();\n if (!first.isPresent()) {\n return emptyList();\n }\n\n Long bottomOfRange = first.get();\n if (sortedPulses.size() == 1) {\n return singletonList(singleton(bottomOfRange));\n }\n\n List<Range<Long>> foundRanges = new ArrayList<>();\n\n Long lastPulse = bottomOfRange;\n\n for (Long pulse : sortedPulses) {\n if (isaSignificantGapBetweenPulses(lastPulse, pulse)) {\n // We have a range\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n\n bottomOfRange = pulse;\n }\n lastPulse = pulse;\n }\n\n if (bottomOfRange.equals(lastPulse)) {\n foundRanges.add(singleton(bottomOfRange));\n } else {\n foundRanges.add(getRange(bottomOfRange, lastPulse));\n }\n\n return ImmutableList.copyOf(foundRanges);\n }", "public List<String> getSurroundingLocations() {\r\n\t\tList<String> surrounding = new ArrayList<String>();\r\n\t\tif(board.getBoard().keySet().size() == 0) {\r\n\t\t\tsurrounding.add(0 + \",\" + 0);\r\n\t\t} else {\r\n\t\t\tfor(String s: board.getBoard().keySet()) {\r\n\t\t\t\tString[] cooridinates = s.split(\",\");\r\n\t\t\t\tint xCoordinate = Integer.parseInt(cooridinates[0]);\r\n\t\t\t\tint yCoordinate = Integer.parseInt(cooridinates[1]);\r\n\t\t\t\tif(!surrounding.contains(xCoordinate - 1 + \",\" + yCoordinate)) {\r\n\t\t\t\t\tsurrounding.add(xCoordinate - 1 + \",\" + yCoordinate);\r\n\t\t\t\t}\r\n\t\t\t\tif(!surrounding.contains((xCoordinate + 1) + \",\" + yCoordinate)) {\r\n\t\t\t\t\tsurrounding.add((xCoordinate + 1) + \",\" + yCoordinate);\r\n\t\t\t\t}\r\n\t\t\t\tif(!surrounding.contains(xCoordinate + \",\" + (yCoordinate - 1))) {\r\n\t\t\t\t\tsurrounding.add(xCoordinate + \",\" + (yCoordinate - 1));\r\n\t\t\t\t}\r\n\t\t\t\tif(!surrounding.contains(xCoordinate + \",\" + (yCoordinate + 1))) {\r\n\t\t\t\t\tsurrounding.add(xCoordinate + \",\" + (yCoordinate + 1));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn surrounding;\r\n\t}", "public List<Interval> getIntervals() {\n\t\treturn intervals;\n\t}", "List<Node> getAdjacentNodes(String data) {\n return adjacentNodes.get(new Node(data));\n }", "ArrayList<Edge> getAdjacencies();", "public static ArrayList<Cell> getReacheableCellsInRange(Cell cell_origin, int range) {\n ArrayList<Cell> cells = new ArrayList<>();\n LinkedList<Cell> active_queue = new LinkedList<>();\n LinkedList<Cell> inactive_queue = new LinkedList<>();\n int depth = 0;\n cells.add(cell_origin);\n active_queue.add(cell_origin);\n // Invariant : Distance to all cells in the active queue is depth\n while (depth < range) {\n while (!active_queue.isEmpty()) {\n Cell c = active_queue.poll();\n for (Cell other : c.getAdjacentCells()) {\n if(other!=null){\n if (!cells.contains(other) && other.isWalkable()) {\n inactive_queue.add(other);\n cells.add(other);\n }\n }\n }\n }\n depth++;\n\n active_queue = inactive_queue;\n inactive_queue = new LinkedList<>();\n }\n return cells;\n }", "public static boolean overlap(List<Interval> intervals) {\n for (int i = 0; i < intervals.size(); i++) {\n for (int j = i + 1; j < intervals.size(); j++) {\n Interval interval1 = intervals.get(i);\n Interval interval2 = intervals.get(j);\n if (interval1.overlaps(interval2)) {\n return true;\n }\n }\n }\n return false;\n }", "public List<List<Integer>> minimumAbsDifference(int[] arr) {\n\n int minNum = 10000000;\n int maxNum = -10000000;\n for (int num : arr) {\n if (num < minNum)\n minNum = num;\n\n if (maxNum < num)\n maxNum = num;\n }\n int[] cnt = new int[maxNum - minNum + 1];\n for (int num : arr)\n cnt[num - minNum] += 1;\n\n int ind = 0;\n for (int i = 0; i < maxNum - minNum + 1; i++) {\n for (int j = 0; j < cnt[i]; j++) {\n arr[ind] = i + minNum;\n ind += 1;\n }\n }\n\n List<List<Integer>> ret = new ArrayList<>();\n\n int minDiff = 10000000;\n for (int i = 0; i < arr.length - 1; i++) {\n int diff = arr[i + 1] - arr[i];\n if (minDiff > diff)\n minDiff = diff;\n }\n\n for (int i = 0; i < arr.length - 1; i++) {\n int diff = arr[i + 1] - arr[i];\n if (diff == minDiff)\n addPair(ret, arr[i], arr[i + 1]);\n }\n\n return ret;\n }", "public static Collection<Pair<Segment, Segment>> getIntersectingSegments(final PolyLine left,\n final PolyLine right)\n {\n final Collection<Pair<Segment, Segment>> intersectingSegments = new HashSet<>();\n for (final Segment leftSegment : left.segments())\n {\n for (final Segment rightSegment : right.segments())\n {\n if (leftSegment.intersects(rightSegment))\n {\n intersectingSegments.add(Pair.of(leftSegment, rightSegment));\n }\n }\n }\n return intersectingSegments;\n }", "public Vector getAdjacentNodes()\n\t{\n\t\tVector vAdjNodes = new Vector();\n\t\t\n\t\tfor (int i = 0; i < m_vConnectedNodes.size(); i++)\n\t\t{\n\t\t\tif ( ((NodeConnection)m_vConnectedNodes.get(i)).getCost() > 0 )\n\t\t\t{\n\t\t\t\tvAdjNodes.add(((NodeConnection)m_vConnectedNodes.get(i)).getLinkedNode());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn vAdjNodes;\n\t}" ]
[ "0.65050244", "0.6493371", "0.60765326", "0.6043866", "0.60429025", "0.601357", "0.59568065", "0.5909563", "0.5830311", "0.58016336", "0.5779226", "0.5759306", "0.57454485", "0.5697862", "0.56805146", "0.56768286", "0.5641953", "0.5626208", "0.5625379", "0.55816466", "0.55531657", "0.55515444", "0.5540481", "0.55392677", "0.54842913", "0.5466609", "0.54626155", "0.54606307", "0.54544854", "0.5453405", "0.5450561", "0.5414707", "0.54105365", "0.53971857", "0.53786767", "0.53512514", "0.5322473", "0.53123295", "0.5286049", "0.52512133", "0.5250864", "0.5227504", "0.52196467", "0.5218956", "0.52178633", "0.52032423", "0.519885", "0.5152296", "0.5150551", "0.5133412", "0.51300764", "0.5120518", "0.51023436", "0.50807816", "0.5079041", "0.5070916", "0.50666934", "0.5040585", "0.503939", "0.503695", "0.50178885", "0.49940565", "0.49843082", "0.49830514", "0.49823523", "0.4972896", "0.4972036", "0.4960677", "0.49547458", "0.49546596", "0.49543452", "0.49472174", "0.4923381", "0.49187982", "0.49144304", "0.49110284", "0.49050164", "0.48983055", "0.48950315", "0.48948637", "0.48842615", "0.4883064", "0.48749435", "0.4873224", "0.48618835", "0.48513213", "0.4849823", "0.48472068", "0.48370552", "0.48343372", "0.4834151", "0.48286054", "0.48229212", "0.48150882", "0.48125622", "0.48092598", "0.48074898", "0.48071676", "0.47945127", "0.4791218" ]
0.63783497
2
What we consider empty interval
public boolean isEmptyInterval(){ if (leftbound<0) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compareTo(Interval o) {\n return 0;\n }", "boolean isNewInterval();", "public RealInterval() {\n\t\tlo = java.lang.Double.NEGATIVE_INFINITY;\n\t\thi = java.lang.Double.POSITIVE_INFINITY;\n\t}", "public boolean isInterval() {\n return this == Spacing.regularInterval || this == Spacing.contiguousInterval\n || this == Spacing.discontiguousInterval;\n }", "public int getInterval() { return _interval; }", "public boolean isEmpty() {\n return lo > hi;\n }", "public Interval getInterval() { return interval; }", "public Interval(){\r\n firstExtreme = 0.0d;\r\n secondExtreme = 0.0d;\r\n feIncluded = '(';\r\n seIncluded = ')';\r\n }", "public boolean isEveryDayRange() {\n int totalLength = MAX - MIN + 1;\n return isFullRange(totalLength);\n }", "float getEmpty();", "boolean isSetTimeInterval();", "@Override\n\tpublic void visit(IntervalExpression arg0) {\n\t\t\n\t}", "public int getInterval() {\r\n return interval;\r\n }", "default boolean overlaps(Interval o) {\n return getEnd() > o.getStart() && o.getEnd() > getStart();\n }", "public double interval() {\n return interval;\n }", "@Override\n public boolean isRange() {\n return false;\n }", "public long checkInterval()\r\n/* 184: */ {\r\n/* 185:363 */ return this.checkInterval.get();\r\n/* 186: */ }", "public Collection<TimePeriod> getEmptyTimeSlots() {\n\t\treturn null;\n\t}", "private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }", "int isEmpty(){\n if(values[0]==(-1)){\n return 1;\n }\n return (-1);\n }", "public boolean isEmpty(){return numEvents==0;}", "private boolean isValidTimeInterval(float timeInterval){\n\t\treturn timeInterval > 0.0f;\n\t}", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n Range range0 = Range.ofLength(360L);\n assertFalse(range0.isEmpty());\n }", "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}", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n Range range1 = Range.of(1845L);\n boolean boolean0 = range0.isSubRangeOf(range1);\n assertFalse(boolean0);\n \n range0.getBegin();\n assertTrue(range0.isEmpty());\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.getEnd();\n long long0 = 0L;\n // Undeclared exception!\n try { \n range0.isSubRangeOf((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // range can not be null\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "public boolean isEmpty(){\n return this.start == null;\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 }", "boolean isInInterval(int baseIndex);", "public static List<MissingDataInterval> getMissingRanges(TreeMap<LocalDateTime, Consumption> data, LocalDateTime start, LocalDateTime end, int interval) {\n List<MissingDataInterval> result = new ArrayList<>();\n boolean inMissing = false;\n LocalDateTime lastStart = null;\n\n LocalDateTime time = start;\n while (!time.isAfter(end)) {\n if (!inMissing && !data.containsKey(time)) {\n inMissing = true;\n lastStart = time;\n }\n if (inMissing && data.containsKey(time)) {\n inMissing = false;\n result.add(new MissingDataInterval(lastStart, time.minusSeconds(interval)));\n lastStart = null;\n }\n time = time.plusSeconds(interval);\n }\n if (inMissing) {\n result.add(new MissingDataInterval(lastStart, time.minusSeconds(interval)));\n }\n return result;\n }", "public Integer getInterval() {\n\t\treturn interval;\n\t}", "@Test(timeout = 4000)\n public void test094() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-4L), 9223372036854775554L);\n Object object0 = new Object();\n range0.equals((Object) null);\n range0.getEnd();\n range0.toString(range_CoordinateSystem0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }", "public boolean outOfRange(){\r\n\t\t\treturn (shape.x <=0 ? true : false);\r\n\t\t}", "public static void intervalRange() {\n Observable.intervalRange(0L, 10L, 0L, 10L, TimeUnit.MILLISECONDS).\n subscribe(new MyObserver<>());\n }", "public boolean isAlwaysNonEmpty() {\n final RexWindowBound lower;\n final RexWindowBound upper;\n if (lowerBound == null) {\n if (upperBound == null) {\n lower = RexWindowBounds.UNBOUNDED_PRECEDING;\n } else {\n lower = RexWindowBounds.CURRENT_ROW;\n }\n } else if (lowerBound instanceof SqlLiteral) {\n lower = RexWindowBounds.create(lowerBound, null);\n } else {\n return false;\n }\n if (upperBound == null) {\n upper = RexWindowBounds.CURRENT_ROW;\n } else if (upperBound instanceof SqlLiteral) {\n upper = RexWindowBounds.create(upperBound, null);\n } else {\n return false;\n }\n return isAlwaysNonEmpty(lower, upper);\n }", "public TimePeriod notWorking(TimePeriod period);", "public boolean isEmpty( ){\r\n\t\treturn beginMarker.next==endMarker;\r\n\t}", "public void test800324() {\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 2\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 3\", new SimpleTimePeriod(new Date(), new Date())));\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(s1);\n try {\n tsc.getStartValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getEndValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getSubIntervalCount(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n }", "public int size() {\n return intervals.size();\n }", "protected void clearRangeTest() {\n\tneedRangeTest = false;\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn (t==1);\r\n\t}", "public Intervals() {\n }", "public boolean hasNonEmptyIntersectionWith(Interval i){\n\t\t\n\t\tif (rightbound < i.leftbound)\n\t\t\treturn false;\n\t\t\n\t\tif (i.rightbound < leftbound)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public boolean isEmpty(){ return Objects.isNull(this.begin ); }", "boolean HasRange() {\r\n\t\treturn hasRange;\r\n\t}", "public int interval() {\n return 30;\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n Range range0 = Range.of((-32768L));\n Range range1 = Range.of((-32768L));\n boolean boolean0 = range0.endsBefore(range1);\n assertFalse(boolean0);\n \n long long0 = range0.getEnd();\n assertEquals((-32768L), long0);\n assertSame(range0, range1);\n }", "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}", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n Range range0 = Range.of((-2147483648L));\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n boolean boolean0 = range0.equals((Object) null);\n assertTrue(range0.isEmpty());\n assertFalse(boolean0);\n }", "private static <T> RandomAccessibleInterval<T> removeLeadingZeros(\n\t\tfinal RandomAccessibleInterval<T> input, final RectangleShape shape)\n\t{\n\t\t// Remove 0s from integralImg by shifting its interval by +1\n\t\tfinal long[] min = Intervals.minAsLongArray(input);\n\t\tfinal long[] max = Intervals.maxAsLongArray(input);\n\n\t\tfor (int d = 0; d < input.numDimensions(); ++d) {\n\t\t\tfinal int correctedSpan = shape.getSpan() - 1;\n\t\t\tmin[d] += (1 + correctedSpan);\n\t\t\tmax[d] -= correctedSpan;\n\t\t}\n\n\t\t// Define the Interval on the infinite random accessibles\n\t\tfinal FinalInterval interval = new FinalInterval(min, max);\n\n\t\treturn Views.offsetInterval(Views.extendBorder(input), interval);\n\t}", "public boolean isEmpty() {\n return b < 0;\n }", "public long getIntervals(){\n return this.interval;\n }", "@Override\r\n\tpublic boolean isempty() {\n\t\treturn count<=0;\r\n\t\t\r\n\t}", "@Test\n\tpublic void missingBoundaryValuesAreFilledWithBadQualityValues() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 10, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tt1.addValue(new SampledValue(new FloatValue(234F), 60, Quality.BAD));\n\t\tt0.setInterpolationMode(InterpolationMode.STEPS);\n\t\tt1.setInterpolationMode(InterpolationMode.STEPS);\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 14, avg.size());\n\t\tAssert.assertEquals(InterpolationMode.STEPS, avg.getInterpolationMode());\n\t\t// now we calculate it again, this time demanding boundary markers\n\t\tfinal ReadOnlyTimeSeries avg2 = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0L, 130, true, null, true);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 15, avg2.size());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(0).getQuality());\n\t\tAssert.assertEquals(Quality.BAD, avg2.getValue(9).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(10).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(11).getQuality());\n\t\tAssert.assertEquals(Quality.GOOD, avg2.getValue(130).getQuality());\n\t}", "public boolean isEmpty(){\n\t\treturn start == null;\n\t}", "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/* */ }", "public static List<MissingDataInterval> getMissingRanges(TreeMap<LocalDateTime, Consumption> data, int interval) {\n return getMissingRanges(data, data.firstKey(), data.lastKey(), interval);\n }", "public static MissingRangesStatistics getMissingRangeStatistics(TreeMap<LocalDateTime, Consumption> data, int interval) {\n return getMissingRangeStatistics(data, data.firstKey(), data.lastKey(), interval);\n }", "@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 }", "@Override\n\tpublic int compareTo(Object o) {\n\t\tInterval i = (Interval) o;\n\t\tif (i.end < this.end)\n\t\t\treturn 1;\n\t\telse if (i.end > this.end)\n\t\t\treturn -1;\n\t\telse\n\t\t\treturn 0;\n\t}", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Object object0 = new Object();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n assertTrue(range0.isEmpty());\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n boolean boolean0 = range0.equals(\"number of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean0);\n \n Range range1 = Range.of((-2147483648L));\n List<Range> list0 = range1.complement(range0);\n assertEquals(0, list0.size());\n }", "public boolean isEmpty()\n\n {\n\n return start == null;\n\n }", "public boolean isEmpty(){\n\t\treturn tail <= 0;\n\t}", "public boolean isEmpty()\n {\n return start == null;\n }", "@Test(timeout = 4000)\n public void test039() throws Throwable {\n Range range0 = Range.ofLength(0L);\n boolean boolean0 = range0.startsBefore(range0);\n assertFalse(boolean0);\n assertTrue(range0.isEmpty());\n }", "Intervalle(double bas, double haut){\n this.inf = bas;\n this.sup = haut;\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}", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n long long0 = 0L;\n Range range0 = Range.of(0L, 0L);\n range0.spliterator();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Object object0 = new Object();\n range0.equals(object0);\n range0.toString();\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "private SeqNumInterval shouldLog() {\n // Never log transactional notify registrations\n //\n if (theTxnId != null) {\n thePingCount = 0;\n return null;\n }\n\n if (thePingCount == GeneratorConfig.getSaveInterval()) {\n thePingCount = 0;\n return new SeqNumInterval(theOID, theSeqNum);\n } else\n return null;\n }", "public boolean isEmpty() {\n return start == null;\n }", "public boolean isBitRangeExpr() {\n return false;\n }", "public static MissingRangesStatistics getMissingRangeStatistics(TreeMap<LocalDateTime, Consumption> data, LocalDateTime start, LocalDateTime end, int interval) {\n TreeMap<Integer, Integer> result = new TreeMap<>();\n for (MissingDataInterval entry : getMissingRanges(data, start, end, interval)) {\n int duration = entry.getEntryCount(interval);\n if (!result.containsKey(duration)) {\n result.put(duration, 0);\n }\n result.put(duration, result.get(duration) + 1);\n }\n return new MissingRangesStatistics(result);\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}", "@Override\r\n\tpublic long getCutoffInterval() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "boolean isEmpty() {\n return (bottom < top.getReference());\n }", "public SummaryRanges() {\n S.add(new MyPair(-INF, -INF)); S.add(new MyPair(INF, INF));\n }", "@Override\r\n\tpublic boolean isEmpty() {\n\t\tboolean bandera=true;\r\n\t\tif(vector.size()>0){\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tbandera=false;\r\n\t\t}\r\n\t\treturn bandera;\r\n\t}", "public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }", "private boolean isEmptyWest()\r\n\t{\r\n\t\treturn (westElem == 0);\r\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 boolean isEmpty() {\r\n return (Double.isNaN(x) && Double.isNaN(y));\r\n }", "private boolean hasInfiniteAge() {\n\t\treturn (maximum_age < 0);\n\t}", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n Object object0 = new Object();\n range0.equals(\"[ 0 .. -1 ]/0B\");\n // Undeclared exception!\n try { \n range0.endsBefore((Range) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Null Range used in range comparison operation.\n //\n verifyException(\"org.jcvi.jillion.core.Range\", e);\n }\n }", "protected IntervalNode() {\n\tthis.low = -1;\n\tthis.high = -1;\n\tthis.max = -1;\n\tthis.min = -1;\n\tthis.right = this;\n\tthis.left = this;\n\tthis.p = this;\n }", "@Test(expected = InvalidIntervalException.class)\r\n\tpublic void throwInvalidIntervalException() {\r\n\t\tthis.validator.doValidation(new Interval<Integer>(null, null));\r\n\t}", "public boolean isEmpty()\r\n\t{\r\n\t\treturn start == null; // returns to null if true.\r\n\t}", "@Test\n public void testIsEmpty_Not_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n boolean expResult = false;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }", "@Test\r\n\tpublic void testGetPlannedCapacity_Nonlinear_Interval() {\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacityNonlinear(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\r\n\t\tassertEquals(0, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 0, 0), 0);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 300, 900), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*150.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 0, 450, 600), 1e-8);\r\n\t\tassertEquals(car.sumUsedPhases*600.0/3600*chargePlan[0]*CONSTANTS.CHARGING_EFFICIENCY, schedulerNonlinear.getPlannedCapacity(chargingStation, car, 300, 900, 1500), 1e-8);\r\n\t\t\r\n\t\t\r\n\t}", "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}", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n range0.equals(range1);\n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertTrue(range0.isEmpty());\n assertEquals(2147483647L, long0);\n }", "@Override\n\tpublic boolean isEmpty() {\n\t\treturn top < 0;\n\t}", "@Override\n\tprotected double getUpperBound() {\n\t\treturn 0;\n\t}", "public int getAvpfRrInterval();", "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 boolean isInfinite() {\n\t\treturn length() > BIG_NUMBER;\n\t}", "@Test(timeout = 4000)\n public void test014() throws Throwable {\n Range range0 = Range.ofLength(581L);\n assertFalse(range0.isEmpty());\n }", "private boolean isEmptyMidwest()\r\n\t{\r\n\t\treturn (midwestElem == 0);\r\n\t}", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Range range1 = Range.of(0L, 0L);\n long long0 = range0.getLength();\n assertEquals(0L, long0);\n \n range1.complement(range0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin(0L);\n range_Builder0.contractBegin(0L);\n assertTrue(range0.isEmpty());\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n Range range0 = Range.ofLength(0L);\n long long0 = range0.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n long long1 = range0.getBegin(range_CoordinateSystem0);\n assertEquals(0L, long1);\n }" ]
[ "0.65566623", "0.6528194", "0.64767706", "0.6240126", "0.6229396", "0.6111725", "0.610714", "0.60818964", "0.6043115", "0.6026631", "0.59900516", "0.5945856", "0.5929007", "0.5897493", "0.5888293", "0.58366936", "0.58294654", "0.58154374", "0.5809064", "0.5774654", "0.5763991", "0.5741729", "0.5741075", "0.5735566", "0.5723846", "0.5698564", "0.5693235", "0.56824285", "0.56812316", "0.5664212", "0.5648328", "0.56432796", "0.5633767", "0.5625282", "0.5613881", "0.56040186", "0.56033206", "0.55962044", "0.55872506", "0.5573273", "0.5572307", "0.55665046", "0.5560503", "0.555878", "0.55587506", "0.5539384", "0.5528933", "0.5528367", "0.5526228", "0.55213684", "0.5516378", "0.5507269", "0.5507024", "0.5503818", "0.55004555", "0.54988724", "0.54888225", "0.54882616", "0.54861176", "0.54821014", "0.5480265", "0.5478139", "0.5476383", "0.54702216", "0.54687", "0.54649377", "0.54617095", "0.54593956", "0.5454669", "0.54455364", "0.542264", "0.5422025", "0.54210705", "0.5419856", "0.541578", "0.5407996", "0.5402228", "0.5401432", "0.53988314", "0.5397555", "0.5385512", "0.5379832", "0.5379658", "0.5378979", "0.5374584", "0.536818", "0.536106", "0.5354025", "0.53531563", "0.5347874", "0.5347684", "0.53450704", "0.5341715", "0.5336767", "0.53351825", "0.5330962", "0.5327005", "0.53196996", "0.5308812", "0.5289549" ]
0.7485555
0
This method is called when the value of a VariableAttribute object changes (for the VariableAttribute object where this instance is registered as listener on variable modification).
public void variableChanged(VariableAttribute var);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void beforeVariableChanged(ProcessVariableChangedEvent arg0) {\n\n\t}", "void afterVariableChange(RuleFlowVariableChangeEvent event,\n WorkingMemory workingMemory);", "void onVariableChanged(Object... newValue);", "@Override\n \tpublic void logVarChanged(String var, String value) {\n\t\tSystem.out.println(\"\\tNew Variable Value: \" + var + \" = \" + value);\n \t}", "void beforeVariableChange(RuleFlowVariableChangeEvent event,\n WorkingMemory workingMemory);", "public interface AttrToVisVarChangeListener {\n\n\tpublic void valuesChanged(AttrToVisVarChangeEvent e);\n\t\n}", "public void onChanged(C23083a aVar) {\n String str;\n if (aVar != null) {\n str = aVar.f60948a;\n } else {\n str = null;\n }\n if (str != null && str.hashCode() == 1512987055 && str.equals(\"ad_feed_video_params\")) {\n C25638a aVar2 = (C25638a) aVar.mo60161a();\n if (aVar2 != null) {\n mo66457a(aVar2);\n }\n }\n }", "public void valueChanged(ConfigurationIdentifier configurationIdentifier, Serializable value);", "@Override\n\tpublic void attributeChanged(TGAttribute attribute, Object oldValue,\n\t\t\tObject newValue) {\n gLogger.log(TGLogger.TGLevel.Debug, \"Attribute is changed\");\n\t}", "public void onChanged(C23083a aVar) {\n if (aVar != null) {\n String str = aVar.f60948a;\n char c = 65535;\n switch (str.hashCode()) {\n case -1618328215:\n if (str.equals(\"video_digg\")) {\n c = 0;\n break;\n }\n break;\n case -492284990:\n if (str.equals(\"video_comment_list\")) {\n c = 1;\n break;\n }\n break;\n case -162745511:\n if (str.equals(\"feed_internal_event\")) {\n c = 3;\n break;\n }\n break;\n case 1181771620:\n if (str.equals(\"video_share_click\")) {\n c = 2;\n break;\n }\n break;\n case 1964086245:\n if (str.equals(\"to_profile\")) {\n c = 4;\n break;\n }\n break;\n }\n switch (c) {\n case 0:\n m91747f(((Integer) aVar.mo60161a()).intValue());\n return;\n case 1:\n m91747f(((Integer) aVar.mo60161a()).intValue());\n return;\n case 2:\n m91747f(3);\n return;\n case 3:\n if (this.f73951k != null) {\n this.f73951k.mo64929a(aVar.mo60161a());\n return;\n }\n break;\n case 4:\n m91737K();\n break;\n }\n }\n }", "public void attributeChanged(Component component, String attr, String newValue, String oldValue);", "void valueChanged(T oldValue, T newValue);", "public void gxlAttrValueChanged(GXLAttrValueModificationEvent e) {\n\t}", "public void setVariable(Variable variable) {\n this.variable = variable;\n }", "public void onParaDataChangeByVar(int i) {\n }", "public final void onChanged(com.iqoption.deposit.crypto.a.d dVar) {\n this.this$0.cFH = dVar;\n this.this$0.asz();\n this.this$0.asG();\n }", "@Override\r\n\tpublic void visit(VariableExpression variableExpression) {\n\r\n\t}", "public void setVar112(java.lang.Double value) {\n this.var112 = value;\n }", "public void setVar111(java.lang.Double value) {\n this.var111 = value;\n }", "public void updateVarView() { \t\t\n if (this.executionHandler == null || this.executionHandler.getProgramExecution() == null) {\n \treturn;\n }\n HashMap<Identifier, Value> vars = this.executionHandler.getProgramExecution().getVariables();\n \n //insert Tree items \n this.varView.getVarTree().removeAll(); \n \t\tIterator<Map.Entry<Identifier, Value>> it = vars.entrySet().iterator();\t\t\n \t\twhile (it.hasNext()) {\n \t\t\tMap.Entry<Identifier, Value> entry = it.next();\n \t\t\tString type = entry.getValue().getType().toString();\n \t\t\tString id = entry.getKey().toString();\n \t\t\tValue tmp = entry.getValue();\n \t\t\tthis.checkValue(this.varView.getVarTree(), type, id, tmp);\n \t\t} \n \t}", "public void onValueChange(final ChangeListener listener) {\n\t\tchangeListener = listener;\n\t\treturn;\n\t}", "void valueChanged(CalcModel model);", "void valueChanged(CalcModel model);", "public void changeValue(ValueHolder newValue) {\r\n value = ((AttrObject) newValue).getValue();\r\n\tuserInfo = ((AttrObject) newValue).getUserInfo();\r\n\tnotifyFromAttr(); \r\n }", "@Override\n protected void variableAddedDuringReplication(Aggregatable variable) {\n }", "@Override\n\tpublic void attrModified(Attr node, String oldv, String newv) {\n\t\tif (!changing && baseVal != null) {\n\t\t\tbaseVal.invalidate();\n\t\t}\n\t\tfireBaseAttributeListeners();\n\t\tif (!hasAnimVal) {\n\t\t\tfireAnimatedAttributeListeners();\n\t\t}\n\t}", "private void updateVars()\n {\n\n }", "public void objectChanged(ObjectChangeEvent e) {\n\t\tString key = e.getAttributeName();\n\t\tStructure s = (Structure) attributes.get(key);\n\t\tif (s!=null) {\n\t\t\tStructure change = (Structure) changedAttributes.get(key);\n\t\t\tif(change==null) {\n\t\t\t\tchange = new Structure();\n\t\t\t\tchange.setAttributeValue(ATTRIBUTE_NAME_, s.getAttributeValue(ATTRIBUTE_NAME_, null));\n\t\t\t}\n\t\t\tchange.setAttributeValue(ATTRIBUTE_VALUE_, e.getChangedObject());\n\t\t\tchangedAttributes.put(key, change);\n\t\t\tTrace.send(Trace.ALL_LEVELS, traceKey, i18n, \"AttributeValueChanged\", key, e.getChangedObject(), changedAttributes);\n\t\t\t \n\t\t}\n\t}", "public void mo31899a(C7300a aVar) {\n this.dBv = aVar;\n }", "@Override\n\t\tpublic void setParameter(VariableValue variableValue) throws ModelInterpreterException\n\t\t{\n\n\t\t}", "public void valueChanged(IntegerStorage istorage);", "public void attributeReplaced(HttpSessionBindingEvent arg0) {\n System.out.println(\"HttpSessionAttributeListener--attributeReplaced--名:\"+arg0.getName()+\"--值:\"+arg0.getValue()); \r\n }", "@Override\n\tpublic void attrAdded(Attr node, String newv) {\n\t\tif (!changing && baseVal != null) {\n\t\t\tbaseVal.invalidate();\n\t\t}\n\t\tfireBaseAttributeListeners();\n\t\tif (!hasAnimVal) {\n\t\t\tfireAnimatedAttributeListeners();\n\t\t}\n\t}", "protected void sequence_VariableCalcule(ISerializationContext context, VariableCalcule semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DslPackage.Literals.VARIABLE_CALCULE__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.VARIABLE_CALCULE__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DslPackage.Literals.VARIABLE_CALCULE__EXPRESSION) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DslPackage.Literals.VARIABLE_CALCULE__EXPRESSION));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getVariableCalculeAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getVariableCalculeAccess().getExpressionExpressionParserRuleCall_3_0(), semanticObject.getExpression());\n\t\tfeeder.finish();\n\t}", "protected void SetVariable(SB_ExecutionFrame contextFrame, SB_Variable var)\r\n\t throws SB_Exception\r\n\t{\r\n\t\tSB_Variable classVar = contextFrame.GetVariable(_varName);\r\n\t\t\t\t\r\n\t\tif( classVar != null)\r\n\t\t{\r\n\t\t Object obj = classVar.getValue();\r\n\t\t\tClass cls = obj.getClass();\r\n\t\t\t\r\n\t\t\tif( !SetClassMemberField(cls, obj, _varMember, SB_SimInterface.ConvertObject(var)))\r\n\t\t\t{\r\n\t\t\t throw new SB_Exception(\"Can't find \" + _varName +\".\" + _varMember);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String getVariableAttribute() {\n\t\treturn variableAttribute;\n\t}", "Variable(String _var) {\n this._var = _var;\n }", "void changedAttributeHook(PerunSessionImpl session, User user, Attribute attribute) throws WrongReferenceAttributeValueException;", "@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}", "public void valueChanged(IntegerStorageChange istoragech);", "private void fireValueChange(boolean b) {\n \t\n\t\t\n\t}", "@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }", "public void processWith(IVariableVisitor iVariableVisitor);", "public void SetAllVariables(double NewValue) {\n DstQueue.SetAllVariables(NewValue);\n }", "public void valueChanged(IntegerStorageChange change);", "AttributeRaiseType getValueChange();", "@Override\n public void playerAttributeChange() {\n\n Logger.info(\"HUD Presenter: playerAttributeChange\");\n view.setLives(String.valueOf(player.getLives()));\n view.setMoney(String.valueOf(player.getMoney()));\n setWaveCount();\n }", "protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.PropertyChangeEvent(\r\n \t\t\t\tthis, IPropertyEditor.VALUE, oldValue, newValue);\r\n \t\tvalueChangeListener.valueChange(event);\r\n \t}", "@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }", "@Override public void refreshFromVariable(VariableContainer_ifc container){\n if(bActive){\n List<Track> listTracks1 = listTracks; //Atomic access, iterate in local referenced list.\n float[] values = new float[listTracks1.size()];\n int ixTrack = -1;\n int[] timeShortAbsLastFromVariable = null;\n boolean bDifferentTime = false;\n boolean bRefreshed = false; //set to true if at least one variable is refreshed.\n for(Track track: listTracks1){\n if(track.variable ==null && bNewGetVariables){ //no variable known, get it.\n String sDataPath = track.getDataPath();\n if(sDataPath !=null){\n if(sDataPath.startsWith(\"-\")){ //it is a comment\n int posEnd = sDataPath.indexOf('-',1) +1;\n sDataPath = sDataPath.substring(posEnd); //after second '-', inclusive first '-' if no second found.\n }\n String sPath2 = sDataPath.trim();\n if(!sDataPath.startsWith(\"#\")){ //don't regard commented line\n String sPath = gralMng.getReplacerAlias().replaceDataPathPrefix(sPath2); //replaces only the alias:\n track.variable = container.getVariable(sPath);\n if(track.variable == null){\n System.err.printf(\"GralCurveView - variable not found; %s in curveview: %s\\n\", sPath, super.name);\n }\n }\n }\n }\n final float value;\n \n if(track.variable !=null ){\n int[] timeShort = track.variable.getLastRefreshTimeShort();\n if(timeShort !=null && timeShort[0] !=0) {\n if(timeShortAbsLastFromVariable == null) { timeShortAbsLastFromVariable = timeShort; }\n else if(timeShort != timeShortAbsLastFromVariable) { // has another time \n //maybe todo possibility to mark a curve as old\n bDifferentTime = timeShortAbsLastFromVariable[0] != timeShort[0];\n if((timeShort[0] - timeShortAbsLastFromVariable[0] ) >0) {\n timeShortAbsLastFromVariable[0] = timeShort[0]; //use the last value\n timeShortAbsLastFromVariable[1] = timeShort[1];\n }\n }\n }\n if(track.variable.isRefreshed()){\n bRefreshed = true;\n }\n if(track.getDataPath().startsWith(\"xxx:\"))\n stop();\n value = track.variable.getFloat();\n track.variable.requestValue(System.currentTimeMillis());\n } else {\n value = 0;\n }\n values[++ixTrack] = value;\n } \n bNewGetVariables = false;\n final long timeyet = System.currentTimeMillis();\n final int timeshort, timeshortAdd;\n if(this.common.timeDatapath !=null && this.common.timeVariable ==null){\n String sPath = gralMng.getReplacerAlias().replaceDataPathPrefix(this.common.timeDatapath); //replaces only the alias:\n this.common.timeVariable = container.getVariable(sPath);\n }\n if(this.common.timeVariable !=null){\n //the time variable should contain a relative time stamp. It is the short time.\n //Usual it is in 1 ms-step. To use another step width, a mechanism in necessary.\n //1 ms in 32 bit are ca. +- 2000000 seconds or ~ +-23 days as longest time for differences.\n timeshort = this.common.timeVariable.getInt() + this.timeorg.timeshortAdd;\n this.common.timeVariable.requestValue(timeyet);\n if(this.timeorg.absTime.isCleaned()) {\n setTimePoint(timeyet, timeshort, 1.0f); //the first time set.\n timeshortAdd = 0;\n }\n else if((timeshort - this.timeorg.timeshortLast) <0 || this.timeorg.absTime.isCleaned()) {\n //new simulation time:\n timeshortAdd = this.timeorg.absTime.timeshort4abstime(timeyet);\n this.timeorg.timeshortAdd += timeshortAdd; \n setTimePoint(timeyet, timeshort, 1.0f); //for later times set the timePoint newly to keep actual.\n } else {\n timeshortAdd = 0;\n }\n } else if(timeShortAbsLastFromVariable !=null) {\n timeshort = timeShortAbsLastFromVariable[0];\n timeshortAdd = timeShortAbsLastFromVariable[1];\n if(this.timeorg.absTime.isCleaned()) {\n setTimePoint(timeyet, timeshort + timeshortAdd, 1.0f); //set always a timePoint if abstime is not given.\n }\n } else {\n timeshort = (int)timeyet; //The milliseconds from absolute time.\n timeshortAdd = 0;\n setTimePoint(timeyet, timeshort, 1.0f); //set always a timePoint if not data time is given.\n }\n if(bRefreshed && timeshort != this.timeorg.timeshortLast) {\n //don't write points with the same time, ignore seconds.\n setSample(values, timeshort, timeshortAdd);\n //System.out.println(\"setSample\");\n this.timeorg.timeshortLast = timeshort;\n }\n }\n }", "@Override\n\tpublic void visit(UserVariable arg0) {\n\t\t\n\t}", "public void setVariable(Name variable) {\n this.variable = variable;\n }", "public void setVar12(java.lang.Double value) {\n this.var12 = value;\n }", "void entityValueChange(String name, String value);", "@Override\n\tprotected boolean configurationItemChanged(String itemName, VariableItem itemValue) {\n\t\tfinal VariableItem configurationVariable;\n\t\tif (Objects.isNull(configurationVariable = configurationVariableOf(itemName))) {\n\t\t\tlog.warn(\"No accessible variable '{}' in configuration.\", itemName);\n\t\t\treturn false;\n\t\t}\n\t\t// check for delay\n\t\tif (itemName.equals(delayName())) {\n\t\t\tdelay = itemValue.get(Integer.class).longValue();\n\t\t\tlog.debug(\"Changed variable 'delay' to {}\", delay);\n\t\t\tconfigurationVariable.set(delay);\n\t\t\treturn true;\n\t\t}\n\t\t// check for ignoredModules\n\t\tif (itemName.equals(ignoreModulesName())) {\n\t\t\tignoredModules = itemValue.get(String.class).split(\",\");\n\t\t\tlog.debug(\"Changed variable 'ignoredModules' to {}\", Arrays.asList(ignoredModules));\n\t\t\tconfigurationVariable.set(String.join(\",\", ignoredModules));\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public Code visitVariableNode(ExpNode.VariableNode node) {\n beginGen(\"Variable\");\n SymEntry.VarEntry var = node.getVariable();\n Code code = new Code();\n code.genMemRef(staticLevel - var.getLevel(), var.getOffset());\n endGen(\"Variable\");\n return code;\n }", "public void setValue(String variable, double value){\r\n if (matlabEng==null) return;\r\n matlabEng.engPutArray(id, variable, value);\r\n }", "@Override\n\t\tpublic void updateVariables(){\n\t\t\tthis.currentX = odometer.getCurrentX();\n\t\t\tthis.currentY = odometer.getCurrentY();\n\t\t\tthis.currentAngle = odometer.getHeadingAngle();\n\t\t\tthis.currentAverageVelocity = odometer.getCurrentAverageVelocity();\n\t\t}", "public final void onChanged(com.iqoption.billing.f fVar) {\n if (fVar != null) {\n com.iqoption.billing.e Kp = fVar.Kp();\n if (Kp != null) {\n this.this$0.b(Kp);\n }\n }\n }", "public void setVar246(java.lang.Double value) {\n this.var246 = value;\n }", "public final void onChanged(com.iqoption.core.microservices.billing.response.deposit.cashboxitem.a aVar) {\n this.this$0.n(aVar);\n this.this$0.asy();\n }", "public void setVariableValue(java.lang.String variableValue) {\r\n this.variableValue = variableValue;\r\n }", "public void setVar(String name, double value){\n\t\tvar_map.put(name, value);\n\t}", "@Override\n protected void variableRemovedDuringReplication(Aggregatable variable) {\n }", "public void addNewVariable() {\r\n \t ArrayList<Object> tempVar = new ArrayList<Object>();\r\n \t tempVar.add(\"Integer\");\r\n \t tempVar.add(\"NewVariable\");\r\n \t tempVar.add(Boolean.FALSE);\r\n \t tempVar.add(new Integer(1));\r\n \t this.variableData.add(tempVar);\r\n \t this.fireTableDataChanged();\r\n }", "public void addVariable(Variable newVariable) {\r\n\t\tthis.variables.add(newVariable);\r\n\t}", "public void mo76619a(AbstractC14507a aVar) {\n this.f52193c = aVar;\n }", "public void changed(cz.ive.messaging.Hook initiator) {\r\n value.value = FuzzyValueHolder.True;\r\n hook.unregisterListener(this);\r\n notifyListeners();\r\n }", "public void setVar3(java.lang.Double value) {\n this.var3 = value;\n }", "@Override\n public void visitVariable(VariableExpression variableExpression) {\n distance += variableExpression.interpret(context);\n }", "public interface IVariable<A extends AbstractDomain<?>> extends IReferenceHolder<A>, ITerm {\n\n\t@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic default Set<IVariable<?>> getVariables() {\n\t\tSet<IVariable<?>> values = new HashSet<>();\n\t\tvalues.add((IVariable<AbstractDomain<?>>) this);\n\t\treturn values;\n\t}\n\n\t/**\n\t * Lets the visitor visit the variable.\n\t * \n\t * @param IVariableVisitor\n\t * The visitor.\n\t */\n\tpublic void processWith(IVariableVisitor iVariableVisitor);\n\n\t/**\n\t * Returns whether it is a constant.\n\t * \n\t * @return Whether it is a constant.\n\t */\n\tpublic boolean isConstant();\n}", "final public void update(Observable obs, Object arg1) {\r\n\t\t\tMatrixVariableI var = (MatrixVariableI) obs;\r\n\t\t\tObject index = varRefs.get(var);\r\n\t\t\tcopyFromVar(var, ((Integer) index).intValue());\r\n\t\t}", "public void defineVariable(final GlobalVariable variable) {\n globalVariables.define(variable.name(), new IAccessor() {\n public IRubyObject getValue() {\n return variable.get();\n }\n \n public IRubyObject setValue(IRubyObject newValue) {\n return variable.set(newValue);\n }\n });\n }", "public void defineVariable(final GlobalVariable variable) {\n globalVariables.define(variable.name(), new IAccessor() {\n public IRubyObject getValue() {\n return variable.get();\n }\n \n public IRubyObject setValue(IRubyObject newValue) {\n return variable.set(newValue);\n }\n });\n }", "public void setEventEngineVariable(int value) {\n this.eventEngineVariable = value;\n }", "public void setVar66(java.lang.Double value) {\n this.var66 = value;\n }", "public void setVar102(java.lang.Double value) {\n this.var102 = value;\n }", "public final synchronized void mo39718a(C15617da daVar) {\n this.f40701B = daVar;\n }", "@Override\r\n\tpublic void visitVariable(ExpVariable exp) {\r\n\t\tif (replaceVariables.containsKey(exp.getVarname())) {\r\n\t\t\tobject = replaceVariables.get(exp.getVarname());\r\n\t\t\tgetAttributeClass(replaceVariables.get(exp.getVarname()).name());\r\n\r\n\t\t} else if (variables.containsKey(exp.getVarname())) {\r\n\t\t\tobject = variables.get(exp.getVarname());\r\n\t\t\tif (collectionVariables.contains(exp.getVarname())) {\r\n\t\t\t\tset = true;\r\n\t\t\t}\r\n\t\t\tgetAttributeClass(exp.getVarname());\r\n\t\t} else if (exp.type().isTypeOfClass()) {\r\n\t\t\tIClass clazz = model.getClass(exp.type().shortName());\r\n\t\t\tTypeLiterals type = clazz.objectType();\r\n\t\t\ttype.addTypeLiteral(exp.getVarname());\r\n\t\t\tobject = type.getTypeLiteral(exp.getVarname());\r\n\t\t\tattributeClass = clazz;\r\n\t\t} else {\r\n\t\t\tthrow new TransformationException(\"No variable \" + exp.getVarname() + \".\");\r\n\t\t}\r\n\t}", "public final void accept(OnUpdateMqttDebugInfoEvent aqVar) {\n TextView textView = (TextView) this.f98825a.findViewById(R.id.text_debug_info);\n C32569u.m150513a((Object) textView, C6969H.m41409d(\"G7F8AD00DF124AE31F231944DF0F0C4E8608DD315\"));\n textView.setVisibility(0);\n TextView textView2 = (TextView) this.f98825a.findViewById(R.id.text_debug_info);\n C32569u.m150513a((Object) textView2, C6969H.m41409d(\"G7F8AD00DF124AE31F231944DF0F0C4E8608DD315\"));\n textView2.setText(aqVar.mo117785a());\n }", "public void setValue(String variable, String value){\r\n if (matlabEng==null) return;\r\n matlabEng.engEvalString (id,variable + \"= [\" + value + \"]\");\r\n }", "protected void boundObjectChanged(Object componentValue) {\r\n this.boundObjectChanged(true, componentValue);\r\n }", "public void setVar22(java.lang.Double value) {\n this.var22 = value;\n }", "@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}", "@Override\n\tpublic void attributeAdded(ServletContextAttributeEvent event) {\n\t\tSystem.out.println(\"MyListener.attributeAdded() \"\n\t\t\t\t+event.getName()+\":\"+event.getValue());\n\t\t\n\t}", "public com.dj.model.avro.LargeObjectAvro.Builder setVar112(java.lang.Double value) {\n validate(fields()[113], value);\n this.var112 = value;\n fieldSetFlags()[113] = true;\n return this;\n }", "protected void fireAttributeChanged(VAttribute attr)\n\t{\n\t\tResourceEvent event=ResourceEvent.createAttributesChangedEvent(getVRL(),\n\t\t\t\tnew VAttribute[]{attr}); \n\t\tthis.vrsContext.getResourceEventNotifier().fire(event); \n\t}", "@Override\r\n\tpublic void valuesChanged() {\r\n\t}", "@Override\n\tprotected String getVariableClassName() {\n\t\treturn \"variable\";\n\t}", "@Override\n public void valueChanged(double control_val) {\n loop_end.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }", "@Override\n public CodeFragment visitVarDecStat(AlangParser.VarDecStatContext ctx) {\n String name = ctx.ID().getText();\n if (this.variableExists(name)) {\n this.addError(ctx, name, \"Variable already declared\");\n return new CodeFragment(\"\");\n }\n\n String alangvartype = ctx.var_type().getText();\n String llvmvartype = Types.getLLVMDefineVartype(alangvartype);\n\n String reg = this.generateNewRegister(true);\n Variable v = new Variable(reg, alangvartype, llvmvartype);\n\n int arity = ctx.index_to_global_array().size();\n v.setArity(arity);\n if (arity > 0) {\n v.setGlobalArray();\n }\n\n for (int i = 0; i < arity; i++) {\n v.addLevel(Integer.valueOf(ctx.index_to_global_array(i).INT().getText()));\n }\n\n this.globals.put(name, v);\n\n return new CodeFragment(\"\");\n }", "@Override\r\n\tpublic void addVariableControl(Variable variable, JPanel container,\tint line, JLabel typeLabel, JTextField valueField) {\n\t\tif(categoryStrings == null) {\r\n\t\t\tsetCategoryStrings(new ArrayList<String>());\r\n\t\t\tfor(int i = 0; i < getVariables().size(); i++) {\r\n\t\t\t\tif (getVariables().get(i).getType() != 'i') {\r\n\t\t\t\t\tfor(int j = 0; j < getVariables().get(i).getCategoryStrings().size(); j++) {\r\n\t\t\t\t\t\tif (!this.categoryStrings.contains(getVariables().get(i).getCategoryStrings().get(j)))\r\n\t\t\t\t\t\t\tcategoryStrings.add(getVariables().get(i).getCategoryStrings().get(j));\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\tif(categoryVariableBuffers == null)\r\n\t\t\tsetCategoryVariableBuffers(new ArrayList<CategoryVariableBuffer>());\r\n\t\tCategoryVariableBuffer categoryVariableBuffer = new CategoryVariableBuffer (variable, this);\r\n\t\tcategoryVariableBuffers.add(categoryVariableBuffer);\r\n\t\tJToggleButton display = new JToggleButton();\r\n\t\tdisplay.setSelected(true);\r\n\t\tcontainer.add(display, new GridBagConstraints(5, line, 1, 1, 0.0, 0.0,\r\n\t\t\t\tGridBagConstraints.CENTER, GridBagConstraints.BOTH,\r\n\t\t\t\tnew Insets(0, 0, 5, 5), 0, 0));\r\n\t\tcategoryVariableBuffer.setTypeLabel(typeLabel);\r\n\t\tcategoryVariableBuffer.setValueTextField(valueField);\r\n\t\tcategoryVariableBuffer.setDisplayButton(display);\r\n\t\tdisplay.addActionListener(categoryVariableBuffer);\r\n\t}", "public void setValue(double newvalue){\n value = newvalue;\n }", "public void attributeAdded(Component component, String attr, String newValue);", "public Var(String var) {\r\n this.variable = var;\r\n }", "protected void setVariance(double value) {\n\t variance = value;\n\t}", "protected void setVariance(double value) {\n\t variance = value;\n\t}", "public void gxlValueChanged(GXLValueModificationEvent e) {\n\t}", "@Override\n\tpublic void attributeReplaced(ServletContextAttributeEvent event) {\n\t\t\n\t}", "public void setValue(double newV) { // assuming REST API update at instantiation - must be a Set method to prevent access to a variable directly\n this.Value=newV;\n }" ]
[ "0.7124331", "0.7005641", "0.6930661", "0.6891926", "0.68226516", "0.6575768", "0.6190532", "0.616483", "0.6064197", "0.604375", "0.5904939", "0.5855782", "0.5813827", "0.58051497", "0.56782836", "0.566668", "0.5661909", "0.56603944", "0.563899", "0.56371754", "0.5634355", "0.5600911", "0.5600911", "0.55911547", "0.5589678", "0.5564133", "0.5553863", "0.5524269", "0.5519157", "0.5516024", "0.5485475", "0.5474895", "0.5465286", "0.54584026", "0.5448718", "0.544062", "0.5429822", "0.5428908", "0.5428687", "0.54208064", "0.5418829", "0.54166424", "0.54004484", "0.53972596", "0.5389723", "0.53840005", "0.53787977", "0.5360643", "0.53589165", "0.53586227", "0.5333976", "0.53271025", "0.5325137", "0.5321393", "0.53162944", "0.5300499", "0.52850807", "0.52819175", "0.526681", "0.5259586", "0.52561975", "0.5249607", "0.5248205", "0.52368516", "0.5231129", "0.5230785", "0.5227601", "0.5224804", "0.5221915", "0.52076066", "0.5206649", "0.51925594", "0.5192134", "0.5192134", "0.51886666", "0.5184721", "0.5177542", "0.5175166", "0.5161529", "0.5157735", "0.5144711", "0.5139147", "0.512896", "0.5123238", "0.51177186", "0.5114238", "0.5102698", "0.5099183", "0.50965685", "0.5096442", "0.5095401", "0.50942355", "0.50930494", "0.50928056", "0.509164", "0.509144", "0.509144", "0.5090569", "0.5086359", "0.50861454" ]
0.8316199
0
Implementation of Matcher.replaceAll differs in Android and JDK In JDK, if a group has not been captured, it is replaced with "" In android, it is replaced with the string 'null' This is annoying. Can't really be fixed without fully encapsulating the class So, rewriting replaceAll algorithm So we'll just do backref replacement and pass it back to the original replaceAll
private String replaceAll(Matcher matcher, String input, String replacement) { // Process substitution string to replace group references with groups int cursor = 0; StringBuilder result = new StringBuilder(); while (cursor < replacement.length()) { char nextChar = replacement.charAt(cursor); if (nextChar == '\\') { cursor++; nextChar = replacement.charAt(cursor); result.append(nextChar); cursor++; } else if (nextChar == '$') { // Skip past $ cursor++; // The first number is always a group int refNum = (int)replacement.charAt(cursor) - '0'; if ((refNum < 0)||(refNum > 9)) throw new IllegalArgumentException( "Illegal group reference"); cursor++; // Capture the largest legal group string boolean done = false; while (!done) { if (cursor >= replacement.length()) { break; } int nextDigit = replacement.charAt(cursor) - '0'; if ((nextDigit < 0)||(nextDigit > 9)) { // not a number break; } int newRefNum = (refNum * 10) + nextDigit; if (matcher.groupCount() < newRefNum) { done = true; } else { refNum = newRefNum; cursor++; } } // Append group if (matcher.group(refNum) != null) result.append(matcher.group(refNum)); } else { result.append(nextChar); cursor++; } } return matcher.replaceAll(result.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String replaceAll(Matcher matcher, String rep) {\n try {\n StringBuffer sb = null ; // Delay until needed\n while(matcher.find()) {\n if ( sb == null )\n sb = new StringBuffer() ;\n else {\n // Do one match of zerolength string otherwise filter out.\n if (matcher.start() == matcher.end() )\n continue ;\n }\n matcher.appendReplacement(sb, rep);\n }\n if ( sb == null )\n return null ;\n matcher.appendTail(sb);\n return sb.toString();\n } catch (IndexOutOfBoundsException ex) {\n throw new ExprEvalException(\"IndexOutOfBounds\", ex) ;\n }\n }", "@Override\n public String visit(PatternExpr n, Object arg) {\n return null;\n }", "private static void replace(\r\n \t\tStringBuffer orig,\r\n \t\tString o,\r\n \t\tString n,\r\n \t\tboolean all) {\r\n \t\tif (orig == null || o == null || o.length() == 0 || n == null)\r\n \t\t\tthrow new IllegalArgumentException(\"Null or zero-length String\");\r\n \r\n \t\tint i = 0;\r\n \r\n \t\twhile (i + o.length() <= orig.length()) {\r\n \t\t\tif (orig.substring(i, i + o.length()).equals(o)) {\r\n \t\t\t\torig.replace(i, i + o.length(), n);\r\n \t\t\t\tif (!all)\r\n \t\t\t\t\tbreak;\r\n \t\t\t\telse\r\n \t\t\t\t\ti += n.length();\r\n \t\t\t} else\r\n \t\t\t\ti++;\r\n \t\t}\r\n \t}", "public static String replaceAll(String value, String pattern, String replacement) {\n\t\tif (value == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn value.replaceAll(pattern, replacement);\n\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 static void replaceAll0(){\n System.out.println(\">>>>>>>>>>>>\");\n String class0 = \"this is an example\";\n String ret0 = class0.replaceAll(\"is\", \"IS\");\n assert(ret0.equals(\"thIS IS an example\"));\n System.out.println(ret0);\n }", "public String replaceMissingWithNull(String value);", "@Override\n\tpublic String strreplace(String str, int start, int end, String with) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String strreplace(String str, String oldstr, String newstr) {\n\t\treturn null;\n\t}", "default HtmlFormatter replace(Pattern pattern, String replacement) {\n return andThen(s -> pattern.matcher(s).replaceAll(replacement));\n }", "public String replace(String input);", "String getReplaced();", "public abstract void replaceBuffer(Array<Array<Boolean>> pattern);", "protected static <U, V extends U> U replaceNull(U original, V replacement) {\n\n // Check if the replacement object is null.\n if (replacement == null) {\n throw new IllegalArgumentException(\"The replacement object cannot be null.\");\n }\n\n return (original == null) ? replacement : original;\n }", "public String replaceFrom(CharSequence sequence, CharSequence replacement) {\n/* 150 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod) {\n/* 165 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "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 }", "String getReplacementString();", "private static String m19460a(String str, String str2, String str3) {\n if (TextUtils.isEmpty(str3)) {\n str3 = \"\";\n }\n return str.replaceAll(str2, str3);\n }", "protected void replaceText(CharSequence text) {\n/* 564 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private String circleClear(String value,Pattern pattern, String replace) {\n\t\tif (StringUtils.isEmpty(value)) {\n\t\t\treturn value;\n\t\t} else {\n\t\t\tMatcher matcher = pattern.matcher(value);\n\t\t\tboolean isHave = false;\n\t\t\twhile (matcher.find()) {\n\t\t\t\tString param = matcher.group();\n\t\t\t\tvalue = value.replaceAll(param, replace);\n\t\t\t\tisHave = true;\n\t\t\t}\n\t\t\tif (!isHave) {\n\t\t\t\treturn value;\n\t\t\t} else {\n\t\t\t\treturn circleClear(value,pattern, replace);\n\t\t\t}\n\t\t}\n\t}", "private String replaceStr(String src, String oldPattern, \n String newPattern) {\n\n String dst = \"\"; // the new bult up string based on src\n int i; // index of found token\n int last = 0; // last valid non token string data for concat \n boolean done = false; // determines if we're done.\n\n if (src != null) {\n // while we'er not done, try finding and replacing\n while (!done) {\n // search for the pattern...\n i = src.indexOf(oldPattern, last);\n // if it's not found from our last point in the src string....\n if (i == -1) {\n // we're done.\n done = true;\n // if our last point, happens to be before the end of the string\n if (last < src.length()) {\n // concat the rest of the string to our dst string\n dst = dst.concat(src.substring(last, (src.length())));\n }\n } else {\n // we found the pattern\n if (i != last) {\n // if the pattern's not at the very first char of our searching point....\n // we need to concat the text up to that point..\n dst = dst.concat(src.substring(last, i));\n }\n // update our last var to our current found pattern, plus the lenght of the pattern\n last = i + oldPattern.length();\n // concat the new pattern to the dst string\n dst = dst.concat(newPattern);\n }\n }\n } else {\n dst = src;\n }\n // finally, return the new string\n return dst;\n }", "private static String adaptRegEx(Mode mode, String regex, int flagMask, boolean removeWhitespace)\n throws QueryException {\n StringBuilder sb = new StringBuilder();\n boolean escaped = false;\n boolean groupStart = false;\n int completeGroups = 0;\n int backRef = 0;\n int charClassDepth = 0;\n int groupDepth = 0;\n\n for (char c : regex.toCharArray()) {\n if (escaped) {\n if (backRef == 0 && c == '0') {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Reference to group 0 not allowed\");\n } else if (c >= '0' && c <= '9') {\n if (charClassDepth > 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back references in character class expressions\" + \" are disallowed.\");\n }\n backRef = backRef * 10 + Integer.parseInt(Character.toString(c));\n continue;\n }\n }\n\n if (backRef > 0) {\n // Check back reference that just ended\n if (backRef > completeGroups) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back reference to nonexisting or unfinished group.\");\n } else {\n backRef = 0;\n escaped = false;\n }\n }\n\n if (c == '\\\\' && !escaped) {\n // Not preceded by backslash\n escaped = true;\n groupStart = false;\n continue;\n }\n\n if (c == '(' && !escaped) {\n groupStart = true;\n groupDepth++;\n escaped = false;\n continue;\n }\n\n if (c == '?' && !escaped && groupStart) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Pure groups are not supported in XQuery regular expressions.\");\n } else if (c == ')' && !escaped) {\n if (--groupDepth < 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Invalid sequence of brackets.\");\n }\n completeGroups++;\n } else if (c == '[' && !escaped) {\n charClassDepth++;\n } else if (c == ']' && !escaped) {\n if (--charClassDepth < 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Invalid sequence of brackets.\");\n }\n } else if (removeWhitespace) {\n // Remove whitespace outside of character classes\n if (charClassDepth == 0 && WHITESPACE.contains(c)) {\n // Don't touch boolean flags\n continue;\n }\n\n sb.append(c);\n }\n\n groupStart = false;\n escaped = false;\n }\n\n // Check for trailing '\\' (only valid with subsequent characters)\n if (escaped && backRef == 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Trailing backslash character in pattern.\");\n }\n\n // Check back reference if that was last token in pattern\n if (backRef > 0 && backRef > completeGroups) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION,\n \"Back reference to nonexisting or unfinished group.\");\n }\n\n // Check for dangling brackets\n if (charClassDepth != 0 || groupDepth != 0) {\n throw new QueryException(ErrorCode.ERR_INVALID_REGULAR_EXPRESSION, \"Pattern contains dangling brackets.\");\n }\n\n if (!removeWhitespace) {\n sb.append(regex);\n }\n\n if (mode == Mode.MATCH) {\n // Adapt for XQuery substring matching by extending pattern\n if (sb.charAt(0) != '^' || ((flagMask & Pattern.MULTILINE) == Pattern.MULTILINE)) {\n if ((flagMask & Pattern.DOTALL) == Pattern.DOTALL) {\n sb.insert(0, \".*\");\n } else {\n sb.insert(0, \"(?s:.*)\");\n }\n }\n\n if (sb.charAt(sb.length() - 1) != '$' || ((flagMask & Pattern.MULTILINE) == Pattern.MULTILINE)) {\n if ((flagMask & Pattern.DOTALL) == Pattern.DOTALL) {\n sb.append(\".*\");\n } else {\n sb.append(\"(?s:.*)\");\n }\n }\n }\n\n return sb.toString();\n }", "public String replaceFrom(CharSequence sequence, CharSequence replacement, CountMethod countMethod, UnicodeSet.SpanCondition spanCondition) {\n/* 182 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static void replaceAll1(){\n System.out.println(\">>>>>>>>>>>>\");\n String class0 = \"this is an example\";\n String ret0 = class0.replaceAll(\"are\", \"ARE\");\n assert(ret0.equals(\"this is an example\"));\n System.out.println(ret0);\n }", "private void cleanPatterns() {\r\n \tfor (int i = this.patterns.size() - 1; i >= 0; i--) {\r\n \t\tchar[] curr = this.patterns.get(i);\r\n \t\tString s = \"\";\r\n \t\tfor (int j = 0; j < curr.length; j++) {\r\n \t\t\ts += curr[j];\r\n \t\t}\r\n \t\tif (!s.equals(this.currPattern)) {\r\n \t\t\tthis.patterns.remove(i);\r\n \t\t}\r\n \t}\r\n }", "private static String stripRegexCharacters(String text) {\r\n if (StringUtils.isBlank(text)) {\r\n return \"\";\r\n }\r\n return text.replaceAll(\"\\\\*\", \".*\").replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\").replaceAll(\"\\\\?\", \"\")\r\n .replaceAll(\"\\\\{\", \"\").replaceAll(\"\\\\}\", \"\").replaceAll(\"\\\\[\", \"\").replaceAll(\"\\\\]\", \"\")\r\n .replaceAll(\"\\\\+\", \"\").toLowerCase();\r\n }", "@Override\n\tpublic void visit(RegExpMatchOperator arg0) {\n\t\t\n\t}", "public static String ungroupify(String text){\r\n return text.replaceAll(\"[\\\\sx]\", \"\");\r\n}", "@Override\n protected <T> T replaceIfNotNull(T previousVal, T newVal) {\n return newVal;\n }", "public RegexPatternBuilder ()\n {\n this.regex = null;\n }", "public static String replaceAllOccurrences(String saInput, String saMatchPattern, String saReplaceString) {\r\n\t\tif ( (null == saInput) || (saInput.indexOf(saMatchPattern) == AppConstants.NEG_ONE) || (null == saMatchPattern) || (saMatchPattern.length() <= 0)) {\r\n\t\t\treturn saInput;\r\n\t\t}\r\n\r\n\t\tString slInput = saInput;\r\n\r\n\t\t// StringBuffer sblTemp = new StringBuffer();\r\n\r\n\t\t// int ilIndex = slInput.indexOf(saMatchPattern);\r\n\r\n\t\tStringBuffer sblTemp = new StringBuffer(slInput);\r\n\t\tint ilIndex = sblTemp.toString().indexOf(saMatchPattern);\r\n\r\n\t\twhile (ilIndex >= 0) {\r\n\t\t\tsblTemp = sblTemp.delete(ilIndex, saMatchPattern.length() + ilIndex);\r\n\t\t\tsblTemp = sblTemp.insert(ilIndex, saReplaceString);\r\n\r\n\t\t\tilIndex = sblTemp.toString().indexOf(saMatchPattern);\r\n\t\t}\r\n\r\n\t\treturn sblTemp.toString();\r\n\t}", "public void replaceAll(MConstText srcText) {\r\n replace(0, length(), srcText, 0, srcText.length());\r\n }", "public static String replace(String orig, String o, String n) {\n\n if (orig == null) {\n return null;\n }\n StringBuffer origSB = new StringBuffer(orig);\n replace(origSB, o, n, true);\n String newString = origSB.toString();\n\n return newString;\n }", "private CharSequence replacewithZawgyi(String zawgyi, String myString1) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(zawgyi);\n int max_loop = rule_array.length();\n \n myString1 = myString1.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString1 = myString1.replaceAll(from, to);\n myString1 = myString1.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString1 = myString1.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString1;\n \n\t}", "public static boolean replaceAll(java.util.List arg0, java.lang.Object arg1, java.lang.Object arg2)\n { return false; }", "@Override\r\n\t\t\tpublic void _dont_implement_Matcher___instead_extend_BaseMatcher_() {\n\t\t\t\t\r\n\t\t\t}", "private void clearCustom() {\n if (patternCase_ == 8) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "public void test_buildPattern_null() {\n Pattern p1 = PatternHelper.buildPattern((String[])null);\n assertEquals(\".*\", p1.pattern());\n\n Pattern p2 = PatternHelper.buildPattern(true, (String[])null);\n assertEquals(\".*\", p2.pattern());\n }", "private CharSequence replacewithUni(String uni1, String myString2) {\n\t\ttry {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\t\tmyString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "private void clearPatch() {\n if (patternCase_ == 6) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "public String replace(CharSequence target, CharSequence replacement) {\n\t\treturn Pattern.compile(target.toString(), Pattern.LITERAL).matcher(this).replaceAll(Matcher.quoteReplacement(replacement.toString()));\n\t}", "public static String substituteAll(String s, String o, String n) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\twhile (s.indexOf(o) != -1)\n\t\t\ts = substituteOne(s, o, n);\n\t\treturn s;\n\t}", "int replaceAll(SearchOptions searchOptions, String replacement);", "public static String stripFormattingCodes(String str) {\n \treturn str == null ? null : formattingCodesPattern.matcher(str).replaceAll(\"\");\n }", "private void setNullGroupTolerance() {\r\n\r\n QualifierCheck.QualifierInfo qualifierInfo = qualifierMap.get(Qualifier.COLLECTION_DATE_QUALIFIER_NAME);\r\n for(RegexGroupInfo regexInfo : qualifierInfo.getRegexGroupInfos()){\r\n if(regexInfo.getGroupNumber() == 3){\r\n regexInfo.setNonMatch(true);\r\n }\r\n }\r\n \r\n }", "public static CharSequence literalReplaceAll(CharSequence pattern, CharSequence replacement, CharSequence in, boolean ignoreCase) {\n if (in.length() < pattern.length()) {\n return in;\n }\n if (pattern.length() == 0) {\n throw new IllegalArgumentException(\"Pattern is the empty string\");\n }\n if (pattern.equals(replacement)) {\n throw new IllegalArgumentException(\"Replacing pattern with itself: \" + pattern);\n }\n int max = in.length();\n StringBuilder result = new StringBuilder(in.length() + replacement.length());\n int patternEnd = pattern.length() - 1;\n int testPos = pattern.length() - 1;\n int lastMatch = -1;\n for (int i = max - 1; i >= 0; i--) {\n char realChar = in.charAt(i);\n char testChar = pattern.charAt(testPos);\n if (ignoreCase) {\n realChar = Character.toLowerCase(realChar);\n testChar = Character.toLowerCase(testChar);\n }\n if (realChar == testChar) {\n testPos--;\n if (lastMatch == -1) {\n lastMatch = i;\n }\n if (testPos < 0) {\n result.insert(0, replacement);\n testPos = patternEnd;\n lastMatch = -1;\n }\n } else {\n if (lastMatch != -1) {\n CharSequence missed = in.subSequence(i, lastMatch + 1);\n result.insert(0, missed);\n lastMatch = -1;\n } else {\n result.insert(0, realChar);\n }\n testPos = patternEnd;\n }\n }\n return result;\n }", "@Test\n public void testReplacingEmptyString()\n {\n String expectedValue=null,actualValue;\n actualValue=replaceingchar.replaceChar(\" \");\n assertEquals(expectedValue,actualValue);\n }", "private JBurgPatternMatcher()\n\t{\n\t}", "public static void replace(StringBuffer orig, String o, String n,\n boolean all) {\n if (orig == null || o == null || o.length() == 0 || n == null) {\n throw new XDBServerException(\n ErrorMessageRepository.ILLEGAL_PARAMETER, 0,\n ErrorMessageRepository.ILLEGAL_PARAMETER_CODE);\n }\n\n int i = 0;\n while (i + o.length() <= orig.length()) {\n if (orig.substring(i, i + o.length()).equalsIgnoreCase(o)) {\n orig.replace(i, i + o.length(), n);\n if (!all) {\n break;\n } else {\n i += n.length();\n }\n } else {\n i++;\n }\n }\n }", "public String filter(final String in)\n {\n if (in == null)\n {\n return null;\n }\n\n for (int i = 0; i < patterns.length; i++)\n {\n int ipos = in.indexOf(patterns[i]);\n if (ipos >= 1)\n {\n return in.substring(0, ipos)\n + replacements[i]\n + in.substring(ipos + patterns[i].length());\n }\n }\n return in;\n }", "@Override\r\n\tpublic String repl() {\n\t\treturn null;\r\n\t}", "private void clearPost() {\n if (patternCase_ == 4) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "private static String regReplace(String text, String regex) {\n\n String result = text;\n\n Pattern p = Pattern.compile(regex);\n Matcher matcher = p.matcher(text);\n while (matcher.find()) {\n\n String url = matcher.group();\n\n LOG.info(\"matched url path:{}\", url);\n\n String convertUrl = null;\n if (StringUtils.equals(regex, ORIG_URL_REGEX)) {\n\n convertUrl = getRelativeRewriteUrl(url);\n } else if (StringUtils.equals(regex, REWRITE_URL_REGEX)) {\n // convertUrl = getRelativeOrigUrl(url);\n }\n\n if (!StringUtils.equals(convertUrl, url)) {\n\n result = StringUtils.replace(result, url, convertUrl);\n }\n }\n\n return result;\n }", "private CharSequence replacewithSan(String uni1, String myString2) {\n try {\n JSONArray rule_array = new JSONArray(uni1);\n int max_loop = rule_array.length();\n myString2 = myString2.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myString2 = myString2.replaceAll(from, to);\n myString2 = myString2.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n myString2 = myString2.replace(\"\\uFFFF\\uFFFF\", \"null\");\n return myString2;\n }", "@Override\n public void replace(FilterBypass fb, int offset, int length, String text, AttributeSet attrs)\n throws BadLocationException {\n if (text.equals(last) && last.equals(\"^\")) {\n text = \"\";\n }\n last = text;\n super.replace(fb, offset, length, text, attrs);\n }", "public static void main (String[] args) {\n String allDigits = \"[0-9]\";\n\n /** regex only for letters a,b,c and d */\n String abc = \"[abcd]\";\n\n String sampleString = \"hola 123 world 456\";\n System.out.println(sampleString.replaceAll(allDigits, \"\"));\n System.out.println(sampleString.replaceAll(abc, \"\"));\n }", "@Handler\n private void replace( ReceivePrivmsg event )\n {\n String text = event.getText();\n Matcher sedMatcher = replacePattern.matcher( text );\n\n String nick = event.getSender();\n\n if ( sedMatcher.matches() )\n {\n String correction = \"Correction: \";\n\n /**\n * If the last group of the regex captures a non-null string, the user is fixing another user's message.\n */\n if ( sedMatcher.group( 5 ) != null )\n {\n nick = sedMatcher.group( 5 );\n correction = nick + \", ftfy: \";\n }\n\n if ( lastMessageMapByNick.containsKey( nick ) )\n {\n String regexp = sedMatcher.group( 2 );\n String replacement = sedMatcher.group( 3 );\n String endFlag = sedMatcher.group( 4 );\n\n synchronized ( lastMessageMapByNickMutex )\n {\n String lastMessage = lastMessageMapByNick.get( nick );\n\n if ( !lastMessage.contains( regexp ) )\n {\n event.reply( \"Wow. Seriously? Try subbing out a string that actually occurred. Do you even sed, bro?\" );\n }\n else\n {\n String replacedMsg;\n String replacedMsgWHL;\n\n String replacementWHL = Colors.bold( replacement );\n\n // TODO: Probably can be simplified via method reference in Java 8\n if ( \"g\".equals( endFlag ) )\n {\n replacedMsg = lastMessage.replaceAll( regexp, replacement );\n replacedMsgWHL = lastMessage.replaceAll( regexp, replacementWHL );\n }\n else\n {\n replacedMsg = lastMessage.replaceFirst( regexp, replacement );\n replacedMsgWHL = lastMessage.replaceFirst( regexp, replacementWHL );\n }\n\n event.reply( correction + replacedMsgWHL );\n lastMessageMapByNick.put( nick, replacedMsg );\n }\n }\n }\n }\n else\n {\n synchronized ( lastMessageMapByNickMutex )\n {\n lastMessageMapByNick.put( nick, text );\n }\n }\n }", "private static String removeAllTags(final String page, final String pattern)\n {\n if (page == null || page.length() == 0)\n {\n return null;\n }\n\n return RegExUtils.replaceAll(page, \"(?i)\" + pattern, \"\");\n }", "public static CharSequence replaceAll(final CharSequence s, final CharSequence searchFor,\n\t\t\tCharSequence replaceWith)\n\t{\n\t\tif (s == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\t// If searchFor is null or the empty string, then there is nothing to\n\t\t// replace, so returning s is the only option here.\n\t\tif (searchFor == null || \"\".equals(searchFor))\n\t\t{\n\t\t\treturn s;\n\t\t}\n\n\t\t// If replaceWith is null, then the searchFor should be replaced with\n\t\t// nothing, which can be seen as the empty string.\n\t\tif (replaceWith == null)\n\t\t{\n\t\t\treplaceWith = \"\";\n\t\t}\n\n\t\tString searchString = searchFor.toString();\n\t\t// Look for first occurrence of searchFor\n\t\tint matchIndex = search(s, searchString, 0);\n\t\tif (matchIndex == -1)\n\t\t{\n\t\t\t// No replace operation needs to happen\n\t\t\treturn s;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Allocate a AppendingStringBuffer that will hold one replacement\n\t\t\t// with a\n\t\t\t// little extra room.\n\t\t\tint size = s.length();\n\t\t\tfinal int replaceWithLength = replaceWith.length();\n\t\t\tfinal int searchForLength = searchFor.length();\n\t\t\tif (replaceWithLength > searchForLength)\n\t\t\t{\n\t\t\t\tsize += (replaceWithLength - searchForLength);\n\t\t\t}\n\t\t\tfinal AppendingStringBuffer buffer = new AppendingStringBuffer(size + 16);\n\n\t\t\tint pos = 0;\n\t\t\tdo\n\t\t\t{\n\t\t\t\t// Append text up to the match`\n\t\t\t\tappend(buffer, s, pos, matchIndex);\n\n\t\t\t\t// Add replaceWith text\n\t\t\t\tbuffer.append(replaceWith);\n\n\t\t\t\t// Find next occurrence, if any\n\t\t\t\tpos = matchIndex + searchForLength;\n\t\t\t\tmatchIndex = search(s, searchString, pos);\n\t\t\t}\n\t\t\twhile (matchIndex != -1);\n\n\t\t\t// Add tail of s\n\t\t\tbuffer.append(s.subSequence(pos, s.length()));\n\n\t\t\t// Return processed buffer\n\t\t\treturn buffer;\n\t\t}\n\t}", "public static Object pregexpWrapQuantifierIfAny(Object vv, Object s, Object n) {\n Object x;\n Object i;\n char c;\n Object re = lists.car.apply1(vv);\n Object i2 = lists.cadr.apply1(vv);\n while (Scheme.numGEq.apply2(i2, n) == Boolean.FALSE) {\n try {\n try {\n char c2 = strings.stringRef((CharSequence) s, ((Number) i2).intValue());\n boolean x2 = unicode.isCharWhitespace(Char.make(c2));\n if (x2) {\n if ($Stpregexp$Mnspace$Mnsensitive$Qu$St != Boolean.FALSE) {\n x = Scheme.isEqv.apply2(Char.make(c2), Lit65);\n if (x != Boolean.FALSE) {\n Object x3 = Scheme.isEqv.apply2(Char.make(c2), Lit66);\n if (x3 == Boolean.FALSE) {\n Object x4 = Scheme.isEqv.apply2(Char.make(c2), Lit47);\n if (x4 != Boolean.FALSE) {\n if (x4 == Boolean.FALSE) {\n return vv;\n }\n } else if (Scheme.isEqv.apply2(Char.make(c2), Lit67) == Boolean.FALSE) {\n return vv;\n }\n } else if (x3 == Boolean.FALSE) {\n return vv;\n }\n } else if (x == Boolean.FALSE) {\n return vv;\n }\n Pair new$Mnre = LList.list1(Lit68);\n LList.chain4(new$Mnre, Lit69, Lit70, Lit71, re);\n Object new$Mnvv = LList.list2(new$Mnre, Lit72);\n if (Scheme.isEqv.apply2(Char.make(c2), Lit65) == Boolean.FALSE) {\n Object apply1 = lists.cddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply1, Lit73);\n Object apply12 = lists.cdddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply12, Boolean.FALSE);\n } catch (ClassCastException e) {\n throw new WrongType(e, \"set-car!\", 1, apply12);\n }\n } catch (ClassCastException e2) {\n throw new WrongType(e2, \"set-car!\", 1, apply1);\n }\n } else if (Scheme.isEqv.apply2(Char.make(c2), Lit66) != Boolean.FALSE) {\n Object apply13 = lists.cddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply13, Lit8);\n Object apply14 = lists.cdddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply14, Boolean.FALSE);\n } catch (ClassCastException e3) {\n throw new WrongType(e3, \"set-car!\", 1, apply14);\n }\n } catch (ClassCastException e4) {\n throw new WrongType(e4, \"set-car!\", 1, apply13);\n }\n } else if (Scheme.isEqv.apply2(Char.make(c2), Lit47) != Boolean.FALSE) {\n Object apply15 = lists.cddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply15, Lit73);\n Object apply16 = lists.cdddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply16, Lit8);\n } catch (ClassCastException e5) {\n throw new WrongType(e5, \"set-car!\", 1, apply16);\n }\n } catch (ClassCastException e6) {\n throw new WrongType(e6, \"set-car!\", 1, apply15);\n }\n } else if (Scheme.isEqv.apply2(Char.make(c2), Lit67) != Boolean.FALSE) {\n Object pq = pregexpReadNums(s, AddOp.$Pl.apply2(i2, Lit8), n);\n if (pq == Boolean.FALSE) {\n pregexpError$V(new Object[]{Lit74, Lit75});\n }\n Object apply17 = lists.cddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply17, lists.car.apply1(pq));\n Object apply18 = lists.cdddr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply18, lists.cadr.apply1(pq));\n i2 = lists.caddr.apply1(pq);\n } catch (ClassCastException e7) {\n throw new WrongType(e7, \"set-car!\", 1, apply18);\n }\n } catch (ClassCastException e8) {\n throw new WrongType(e8, \"set-car!\", 1, apply17);\n }\n }\n i = AddOp.$Pl.apply2(i2, Lit8);\n while (true) {\n if (Scheme.numGEq.apply2(i, n) == Boolean.FALSE) {\n Object apply19 = lists.cdr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply19, Boolean.FALSE);\n Object apply110 = lists.cdr.apply1(new$Mnvv);\n try {\n lists.setCar$Ex((Pair) apply110, i);\n break;\n } catch (ClassCastException e9) {\n throw new WrongType(e9, \"set-car!\", 1, apply110);\n }\n } catch (ClassCastException e10) {\n throw new WrongType(e10, \"set-car!\", 1, apply19);\n }\n } else {\n try {\n try {\n c = strings.stringRef((CharSequence) s, ((Number) i).intValue());\n boolean x5 = unicode.isCharWhitespace(Char.make(c));\n if (x5) {\n if ($Stpregexp$Mnspace$Mnsensitive$Qu$St != Boolean.FALSE) {\n break;\n }\n } else if (!x5) {\n break;\n }\n i = AddOp.$Pl.apply2(i, Lit8);\n } catch (ClassCastException e11) {\n throw new WrongType(e11, \"string-ref\", 2, i);\n }\n } catch (ClassCastException e12) {\n throw new WrongType(e12, \"string-ref\", 1, s);\n }\n }\n }\n if (!characters.isChar$Eq(Char.make(c), Lit47)) {\n Object apply111 = lists.cdr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply111, Boolean.TRUE);\n Object apply112 = lists.cdr.apply1(new$Mnvv);\n try {\n lists.setCar$Ex((Pair) apply112, AddOp.$Pl.apply2(i, Lit8));\n } catch (ClassCastException e13) {\n throw new WrongType(e13, \"set-car!\", 1, apply112);\n }\n } catch (ClassCastException e14) {\n throw new WrongType(e14, \"set-car!\", 1, apply111);\n }\n } else {\n Object apply113 = lists.cdr.apply1(new$Mnre);\n try {\n lists.setCar$Ex((Pair) apply113, Boolean.FALSE);\n Object apply114 = lists.cdr.apply1(new$Mnvv);\n try {\n lists.setCar$Ex((Pair) apply114, i);\n } catch (ClassCastException e15) {\n throw new WrongType(e15, \"set-car!\", 1, apply114);\n }\n } catch (ClassCastException e16) {\n throw new WrongType(e16, \"set-car!\", 1, apply113);\n }\n }\n return new$Mnvv;\n }\n } else if (!x2) {\n x = Scheme.isEqv.apply2(Char.make(c2), Lit65);\n if (x != Boolean.FALSE) {\n }\n Pair new$Mnre2 = LList.list1(Lit68);\n LList.chain4(new$Mnre2, Lit69, Lit70, Lit71, re);\n Object new$Mnvv2 = LList.list2(new$Mnre2, Lit72);\n if (Scheme.isEqv.apply2(Char.make(c2), Lit65) == Boolean.FALSE) {\n }\n i = AddOp.$Pl.apply2(i2, Lit8);\n while (true) {\n if (Scheme.numGEq.apply2(i, n) == Boolean.FALSE) {\n }\n i = AddOp.$Pl.apply2(i, Lit8);\n }\n if (!characters.isChar$Eq(Char.make(c), Lit47)) {\n }\n return new$Mnvv2;\n }\n i2 = AddOp.$Pl.apply2(i2, Lit8);\n } catch (ClassCastException e17) {\n throw new WrongType(e17, \"string-ref\", 2, i2);\n }\n } catch (ClassCastException e18) {\n throw new WrongType(e18, \"string-ref\", 1, s);\n }\n }\n return vv;\n }", "boolean hasReplace();", "@Test\n public void shouldCollapseAllDigitsByX(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.replaceFrom(\"123TT T4\",\"x\"),is(\"xxxTT Tx\"));\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE).replaceFrom(\"123TT T4\", \"x\"),is(\"xTTxTx\"));\n }", "public static String removeRefHtmlDev(final String text) {\r\n\t\treturn REF_HTML_DEV_PATTERN.matcher(text).replaceAll(\"\");\r\n\t}", "public static String replace(String target, List<String> groups) {\n for (int index = 0; index < groups.size(); index++) {\n target = target.replace(\"$\" + (index + 1), groups.get(index));\n }\n return target;\n }", "public String apply(TregexMatcher tregexMatcher)\n/* */ {\n/* 275 */ return this.result;\n/* */ }", "@Override\n public DBFunctionSymbol getDBRegexpReplace3() {\n throw new UnsupportedOperationException(UNSUPPORTED_MSG);\n }", "public Builder clearRegex() {\n\n regex_ = getDefaultInstance().getRegex();\n onChanged();\n return this;\n }", "public Builder clearRegex() {\n\n regex_ = getDefaultInstance().getRegex();\n onChanged();\n return this;\n }", "private String replaceVariable(String statement) {\r\n String pattern = \"\\\\$\\\\{(.+?)\\\\}\";\r\n Pattern p = Pattern.compile(pattern);\r\n Matcher m = p.matcher(statement);\r\n StringBuffer sb = new StringBuffer();\r\n while (m.find()) {\r\n String key = m.group(1);\r\n String value = this.getSqlFragment(key);\r\n m.appendReplacement(sb, \"\");\r\n sb.append(value == null ? \"\" : value);\r\n }\r\n m.appendTail(sb);\r\n return sb.toString();\r\n }", "SearchResult replace(SearchResult result, String replacement);", "public static void main(String[] args) {\n String s = \"hello boy\";\n String result = replaceBlankToOther(s);\n System.out.println(result);\n }", "public String rep(String str, String reg_ex, String rep) {\n Pattern p;\n Matcher m;\n StringBuffer sb;\n\n str = repNull(str);\n p = Pattern.compile(reg_ex);\n m = p.matcher(str);\n sb = new StringBuffer();\n\n while (m.find()) {\n m.appendReplacement(sb, rep);\n }\n\n m.appendTail(sb);\n\n str = sb.toString();\n\n return str;\n }", "private CharSequence replacewithXUi(String Xuni, String myUi) {\n \ttry {\n JSONArray rule_array = new JSONArray(Xuni);\n int max_loop = rule_array.length();\n myUi = myUi.replace(\"null\", \"\\uFFFF\\uFFFF\");\n for (int i = 0; i < max_loop; i++) {\n JSONObject obj = rule_array.getJSONObject(i);\n String from = obj.getString(\"from\");\n String to = obj.getString(\"to\");\n myUi = myUi.replaceAll(from, to);\n myUi = myUi.replace(\"null\", \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n \tmyUi = myUi.replace(\"\\uFFFF\\uFFFF\", \"null\");\n \n return myUi;\n\t\t\n\t}", "private String genNonGreedyRegex(int charloc,\n String specification,\n String eolcapture,\n String nonGreedyCapture) {\n\n return (charloc == specification.length()) ? eolcapture : nonGreedyCapture;\n }", "@Override\n protected void compileRegex(String regex) {\n }", "private static String sanitizePackageName(String group) {\n return group.replaceAll(\"-\", \"\");\n }", "default String getPattern() {\n return null;\n }", "@Override\r\n\tpublic Node visitPatternExpr(PatternExprContext ctx) {\n\t\treturn super.visitPatternExpr(ctx);\r\n\t}", "public static String literalReplaceAll(String pattern, String replacement, String in) {\n return literalReplaceAll(pattern, replacement, in, false).toString();\n }", "private String replaceNull(Time s) {\n\t\treturn s == null ? \"--\" : s.toString();\n\t}", "@Override\n\tpublic String strreplace(String str, char oldchar, char newchar) {\n\t\treturn null;\n\t}", "@Test\n public void testReplacingFailure()\n {\n String expectedValue=\"datly fry\",actualValue;\n actualValue=replaceingchar.replaceChar(inputString);\n assertNotEquals(expectedValue,actualValue);\n }", "public final void replaceText(CharSequence charSequence) {\n if (this.f152273r) {\n super.replaceText(charSequence);\n }\n }", "public RegexNode ReduceGroup()\n\t{\n\t\tRegexNode u;\n\n\t\tfor (u = this; u.Type() == Group;)\n\t\t{\n\t\t\tu = u.Child(0);\n\t\t}\n\n\t\treturn u;\n\t}", "private static String convertPattern(String pattern) {\n if (Strings.isNullOrEmpty(pattern)) {\n return pattern;\n }\n\n return \"^\" + pattern\n .replaceAll(\"\\\\[\", \"\\\\[\")\n .replaceAll(\"]\", \"\\\\]\")\n .replaceAll(\"\\\\.\", \"\\\\.\")\n .replaceAll(\"\\\\*\", \"\\\\*\")\n .replaceAll(\"(?<!\\\\\\\\)_\", \".\")\n .replaceAll(\"\\\\\\\\_\", \"_\")\n .replaceAll(\"(?<!\\\\\\\\)%\", \".*\")\n .replaceAll(\"\\\\\\\\%\", \"%\") +\n \"$\";\n }", "private void clearPut() {\n if (patternCase_ == 3) {\n patternCase_ = 0;\n pattern_ = null;\n }\n }", "private String replaceSingleQuotes(String toReplace) {\n if (!StringUtils.isBlank(toReplace)) {\n return toReplace.replaceAll(\"'\", \"\");\n } else {\n return toReplace;\n }\n\n }", "public static String replaceEscapeChars(final String input) {\n if (input == null) return null;\n\n String retValue = LEFT_SQUARE_BRACKET_PATTERN.matcher(input).replaceAll(\"[\");\n retValue = RIGHT_SQUARE_BRACKET_PATTERN.matcher(retValue).replaceAll(\"]\");\n retValue = LEFT_BRACKET_PATTERN.matcher(retValue).replaceAll(\"(\");\n retValue = RIGHT_BRACKET_PATTERN.matcher(retValue).replaceAll(\")\");\n retValue = COLON_PATTERN.matcher(retValue).replaceAll(\":\");\n retValue = COMMA_PATTERN.matcher(retValue).replaceAll(\",\");\n retValue = EQUALS_PATTERN.matcher(retValue).replaceAll(\"=\");\n retValue = PLUS_PATTERN.matcher(retValue).replaceAll(\"+\");\n return MINUS_PATTERN.matcher(retValue).replaceAll(\"-\");\n }", "public <T> SafeHtml replaceAll(List<? extends FindReplace> findReplaceList) {\n if (findReplaceList == null || findReplaceList.isEmpty()) {\n return this;\n }\n\n StringBuilder pat = new StringBuilder();\n Iterator<? extends FindReplace> it = findReplaceList.iterator();\n while (it.hasNext()) {\n FindReplace fr = it.next();\n pat.append(fr.pattern().getSource());\n if (it.hasNext()) {\n pat.append('|');\n }\n }\n\n StringBuilder result = new StringBuilder();\n RegExp re = RegExp.compile(pat.toString(), \"g\");\n String orig = asString();\n int index = 0;\n MatchResult mat;\n while ((mat = re.exec(orig)) != null) {\n String g = mat.getGroup(0);\n // Re-run each candidate to find which one matched.\n for (FindReplace fr : findReplaceList) {\n if (fr.pattern().test(g)) {\n try {\n String repl = fr.replace(g);\n result.append(orig.substring(index, mat.getIndex()));\n result.append(repl);\n } catch (IllegalArgumentException e) {\n continue;\n }\n index = mat.getIndex() + g.length();\n break;\n }\n }\n }\n result.append(orig.substring(index, orig.length()));\n return asis(result.toString());\n }", "private\n\tRegExHelper()\n\t{\n\t\tsuper();\n\t}", "private String findReplace(String str, String find, String replace)\n/* */ {\n/* 944 */ String des = new String();\n/* 945 */ while (str.indexOf(find) != -1) {\n/* 946 */ des = des + str.substring(0, str.indexOf(find));\n/* 947 */ des = des + replace;\n/* 948 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 950 */ des = des + str;\n/* 951 */ return des;\n/* */ }", "public native final String SRC_REPLACE() /*-{\n\t\treturn this.SRC_REPLACE;\n\t}-*/;", "public RegularExpressionValueMatcher() {\n\t\tthis(null);\n\t}", "private String findReplace(String str, String find, String replace)\n/* */ {\n/* 938 */ String des = new String();\n/* 939 */ while (str.indexOf(find) != -1) {\n/* 940 */ des = des + str.substring(0, str.indexOf(find));\n/* 941 */ des = des + replace;\n/* 942 */ str = str.substring(str.indexOf(find) + find.length());\n/* */ }\n/* 944 */ des = des + str;\n/* 945 */ return des;\n/* */ }", "abstract public void selfReplace(Command replacement);", "public static String replace(String number) {\n if (TextUtils.isEmpty(number)) { return \"0\"; }\n if (number.indexOf(\".\") > 0) {\n number = number.replaceAll(\"0+?$\", \"\"); //Remove the useless zero behind\n number = number.replaceAll(\"[.]$\", \"\"); //If the decimal point is all zero, remove the decimal point\n }\n return number;\n }", "public static String replaceSpaceKey(String groupPattern, String spaceKey) {\n if ((groupPattern != null) && (groupPattern.indexOf(CustomPermissionConstants.SPACEKEY) != -1)) {\n //Replace String \"SPACEKEY\" with input Space Key.\n groupPattern = groupPattern.replaceFirst(CustomPermissionConstants.SPACEKEY, spaceKey);\n }\n\n return groupPattern;\n }", "@Override\n\tpublic String clean(String input) {\n\t\tinput = input.replaceAll(removeCommonWords.toString(), \" \");\n\t\t//input = input.replaceAll(removeSingleCharacterOrOnlyDigits.toString(), \" \");\n\t\t//input = input.replaceAll(removeTime.toString(), \" \");\n\t\t//input = input.replaceAll(\"(\\\\s+>+\\\\s+)+\", \" \");\n\t\treturn input;\n\t}", "@Test\n\t public void test2()\n\t{\n\t\t\tString s = new String(\"abcdefg\");\n\t s = s.replaceAll(\"\\\\s+\", \" \");\n\t assertEquals(\"\", LRS.lrs(s)); \n\t}" ]
[ "0.6135861", "0.5430943", "0.54180044", "0.5396392", "0.53557396", "0.53521174", "0.53172094", "0.52731013", "0.52237755", "0.52225745", "0.52040964", "0.5173137", "0.5160421", "0.51306957", "0.50976443", "0.5080876", "0.5058796", "0.5028218", "0.5007606", "0.49973178", "0.49849722", "0.49781427", "0.49772298", "0.4951738", "0.49323612", "0.49141595", "0.49132913", "0.4890639", "0.48847324", "0.484384", "0.48420414", "0.48397845", "0.48352796", "0.48045477", "0.47961035", "0.4791632", "0.4779362", "0.47752494", "0.4770733", "0.47655496", "0.47607276", "0.47548896", "0.47497594", "0.47425687", "0.4715448", "0.4709932", "0.4708772", "0.47030196", "0.46905175", "0.468527", "0.4678873", "0.4666078", "0.46376234", "0.46374035", "0.46346316", "0.46334335", "0.4632581", "0.46234712", "0.46212205", "0.46060485", "0.45960522", "0.4595403", "0.45904616", "0.45884886", "0.45720243", "0.4558315", "0.45478275", "0.45419395", "0.45419395", "0.45384756", "0.453398", "0.45109382", "0.4508361", "0.45037988", "0.44880033", "0.44841635", "0.44578472", "0.44486442", "0.4435004", "0.44327524", "0.4431268", "0.4418663", "0.44180757", "0.44160345", "0.441252", "0.4402453", "0.43995926", "0.43965018", "0.4395724", "0.43895793", "0.4387876", "0.43714085", "0.436112", "0.4358317", "0.4355873", "0.43463382", "0.43321764", "0.43239677", "0.43212003", "0.4319163" ]
0.60225356
1
recuperar chaveMD5 existente na tabela AD_FACILITACONS
public boolean carregarChaveMD5(final String idChaveMD5) throws Exception { boolean chave = false; final NativeSql nativeSql = new NativeSql(jdbcWrapper); nativeSql.appendSql("SELECT MD5"); nativeSql.appendSql(" FROM AD_FACILITACONS "); nativeSql.appendSql(" WHERE MD5 = '" + idChaveMD5.toString() + "'"); final ResultSet resultSet = nativeSql.executeQuery(); if (resultSet.next()) { chave = resultSet.getString("MD5") != null ? true: false; } return chave; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String md5(byte[] b) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.reset();\n md.update(b);\n byte[] digest = md.digest();\n StringBuffer sb = new StringBuffer();\n for (int i=0; i<digest.length; i++) {\n String a = Integer.toHexString(0xff & digest[i]);\n if (a.length() == 1) a = \"0\" + a;\n sb.append(a);\n }\n return sb.toString();\n }\n catch (NoSuchAlgorithmException e) { writeLog(e); }\n return null;\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public static String createMd5(String value)\r\n\t{ \r\n\t\ttry \r\n\t\t{\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\t\t\t\r\n\t\t\tbyte[] hashInBytes = md.digest(value.getBytes(StandardCharsets.UTF_8));\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t for (byte b : hashInBytes) \r\n\t {\r\n\t sb.append(String.format(\"%02x\", b));\r\n\t }\r\n\t return sb.toString();\r\n\t\t}\r\n\t\tcatch(Exception ex)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "public static void main(String[] args) throws NoSuchAlgorithmException, FileNotFoundException, IOException {\n \r\n String hash = \"F5D080D4F4E185DECA8A8B24F72408D9\";\r\n String [] keys = {\"9A1BA7F38A3E8D8F9DDD55972868CB3F\",\"17185CEF199E1C89804EDEE9DCDD1B90\",\"F5D080D4F4E185DECA8A8B24F72408D9\"};\r\n String password = \"NoSuchPassword\";\r\n File file = null;\r\n JFileChooser ff = new JFileChooser();\r\n int a = ff.showOpenDialog(null);\r\n if(a == JFileChooser.APPROVE_OPTION){\r\n try {\r\n file = ff.getSelectedFile();\r\n JOptionPane.showMessageDialog(ff, a);\r\n \r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n System.out.println(file.getPath());\r\n }\r\n } \r\n BufferedReader fr = null;\r\n fr = new BufferedReader(new FileReader(file.getPath()));\r\n String line = null;\r\n int i = 0; \r\n //This is the funtion that Java implement in java.security.MessageDigest\r\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n while((line = fr.readLine()) != null){\r\n System.out.println(line);\r\n md5.update(line.getBytes());\r\n byte [] digests = md5.digest();\r\n String hashs = DatatypeConverter.printHexBinary(digests).toUpperCase();\r\n if(keys[i].equals(hashs)){\r\n System.out.println(\"CORRECT!\\nThe hash created is the same as the hash saved \");\r\n }\r\n else{\r\n System.out.println(\"ERROR!\\nThere was a mistake, the hash create doesn't mach the hash saved\");\r\n }\r\n i++;\r\n } \r\n fr.close();\r\n /**In conclusion we can use the MD5 for digest a words and then same them\r\n * is a DataBase, this with the function that if the DB is committed the\r\n * passwords will not be there\r\n */\r\n }", "public String getMD5() {\n return hash;\n }", "public String MD5(String md5) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "private static String getMD5Checksum(String filename) throws Exception {\r\n\t\tbyte[] b = createChecksum(filename);\r\n\t\tStringBuilder result = new StringBuilder();\r\n\t\tfor (byte v : b) {\r\n\t\t\tresult.append(Integer.toString((v & 0xff) + 0x100, 16).substring(1));\r\n\t\t}\r\n\t\treturn result.toString();\r\n\t}", "private static String md5(final String s) {\n final String MD5 = \"MD5\";\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest\n .getInstance(MD5);\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuilder hexString = new StringBuilder();\n for (byte aMessageDigest : messageDigest) {\n String h = Integer.toHexString(0xFF & aMessageDigest);\n while (h.length() < 2)\n h = \"0\" + h;\n hexString.append(h);\n }\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "private String getFileMd5Checksum(String filename){\n\t\ttry {\n\t\t\tbyte[] fileBytes = Files.readAllBytes(Paths.get(FILES_ROOT + filename));\n\t\t\tbyte[] fileHash = MessageDigest.getInstance(\"MD5\").digest(fileBytes);\n\n\t\t\treturn DatatypeConverter.printHexBinary(fileHash);\n\t\t} catch (IOException e) {\n\t\t\t// TODO: Handle file doesn't exist\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "private static byte[] generateMD5(String info) throws\n UnsupportedEncodingException, NoSuchAlgorithmException {\n byte[] inputData = info.getBytes(\"UTF-8\");\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(inputData);\n byte[] digest= md.digest();\n return digest;\n }", "private static String getKeyByMd5(String url) {\n String key;\n try {\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.update(url.getBytes());\n key = md5Encryption(messageDigest.digest());\n return key;\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n key = String.valueOf(url.hashCode());\n }\n return key;\n }", "public byte[] getMD5() {\n return MD5;\n }", "public String md5(String s) {\n try {\n // Create MD5 Hash\n MessageDigest digest = java.security.MessageDigest.getInstance(\"MD5\");\n digest.update(s.getBytes());\n byte messageDigest[] = digest.digest();\n\n // Create Hex String\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < messageDigest.length; i++)\n hexString.append(Integer.toHexString(0xFF & messageDigest[i]));\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return \"\";\n }", "public String getMD5ForGame(String gameId) {\n return \"TODO\";\n }", "public boolean IsFileMd5Equeal(UploadReport report) {\r\n\t\tString filename = this.conf.getFtpMountDirectory() + \"/DATA/\" + report.getFilename();\r\n\t\tString md5value = MD5Util.getFileMD5(new File(filename));\r\n\t\tFile file = new File(filename);\r\n\t\tif (file.exists()) {\r\n\t\t\tif (md5value.compareTo(report.getMd5value()) == 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, Original value: \" + report.getMd5value()\r\n\t\t\t\t\t\t+ \", New value : \" + md5value);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tLogUtils.logger.error(\"Error happened when Caculate MD5 value, File: \" + filename + \" does not exist! \");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n public void md5Checksum() throws NoSuchAlgorithmException {\n String string = Utils.md5Checksum(\"abcde fghijk lmn op\");\n Assert.assertEquals(\"1580420c86bbc3b356f6c40d46b53fc8\", string);\n }", "private String md5(String message) throws java.security.NoSuchAlgorithmException\n\t{\n\t\tMessageDigest md5 = null;\n\t\ttry {\n\t\t\tmd5 = MessageDigest.getInstance(\"MD5\");\n\t\t}\n\t\tcatch (java.security.NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tbyte[] dig = md5.digest((byte[]) message.getBytes());\n\t\tStringBuffer code = new StringBuffer();\n\t\tfor (int i = 0; i < dig.length; ++i)\n\t\t{\n\t\t\tcode.append(Integer.toHexString(0x0100 + (dig[i] & 0x00FF)).substring(1));\n\t\t}\n\t\treturn code.toString();\n\t}", "public static String getMobileAdminPasswordMD5(){\n\t\treturn \"e3e6c68051fdfdf177c8933bfd76de48\";\n\t}", "private String md5(String input) {\r\n\t\tString md5 = null;\r\n\t\tif (null == input)\r\n\t\t\treturn null;\r\n\r\n\t\ttry {\r\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(input.getBytes(), 0, input.length());\r\n\t\t\tmd5 = new BigInteger(1, digest.digest()).toString(16);\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn md5;\r\n\t}", "private String md5(final String s)\n\t{\n\t\ttry {\n\t\t\t// Create MD5 Hash\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(s.getBytes());\n\t\t\tbyte messageDigest[] = digest.digest();\n\n\t\t\t// Create Hex String\n\t\t\tStringBuffer hexString = new StringBuffer();\n\t\t\tfor (int i=0; i<messageDigest.length; i++) {\n\t\t\t\tString h = Integer.toHexString(0xFF & messageDigest[i]);\n\t\t\t\twhile (h.length() < 2) h = \"0\" + h;\n\t\t\t\thexString.append(h);\n\t\t\t}\n\t\t\treturn hexString.toString();\n\t\t} catch(NoSuchAlgorithmException e) {\n\t\t\t//Logger.logStackTrace(TAG,e);\n\t\t}\n\t\treturn \"\";\n\t}", "public static String md5(String message) {\n String digest = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hash = md.digest(message.getBytes(\"UTF-8\"));\n\n //converting byte array to HexadecimalString\n StringBuilder sb = new StringBuilder(2 * hash.length);\n for (byte b : hash) {\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n digest = sb.toString();\n } catch (UnsupportedEncodingException ex) {\n log.error(\"UnsupportedEncodingException\",ex);\n } catch (NoSuchAlgorithmException ex) {\n log.error(\"NoSuchAlgorithmException\",ex);\n }\n\n return digest;\n }", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "String saveData(MultipartFile md5File) throws IOException;", "private static String MD5Password(String password) {\n String md = org.apache.commons.codec.digest.DigestUtils.md5Hex(password);\n return md;\n }", "public static String md5(final String data) {\n return ByteString.encodeUtf8(data).md5().hex().toLowerCase();\n }", "public static String getMD5(String s) {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(s.getBytes(), 0, s.length());\n return \"\" + new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n logger.error(\"MD5 is not supported !!!\");\n }\n return s;\n }", "protected static String md5(final String string) {\n try {\n final MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.update(string.getBytes(), 0, string.length());\n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException e) {\n return \"\";\n }\n }", "public void atualizarMD5(String pMd5) throws ACBrException {\n int ret = ACBrAACInterop.INSTANCE.AAC_AtualizarMD5(getHandle(), toUTF8(pMd5));\n checkResult(ret);\n }", "public static String md5(String str) {\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n messageDigest.reset();\n messageDigest.update(str.getBytes(\"UTF-8\"));\n } catch (NoSuchAlgorithmException | UnsupportedEncodingException e) {\n // do nothing\n }\n byte[] byteArray = messageDigest.digest();\n StringBuffer md5StrBuff = new StringBuffer();\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1)\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n else\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n return md5StrBuff.toString();\n }", "public static String encryptMD5(String st) {\n MessageDigest messageDigest;\n byte[] digest = new byte[0];\n try {\n messageDigest = MessageDigest.getInstance(DefaultValueConstants.DEFAULT_ENCRYPTING_ALGORITHM);\n messageDigest.reset();\n messageDigest.update(st.getBytes());\n digest = messageDigest.digest();\n } catch (NoSuchAlgorithmException e) {\n log.error(e);\n }\n BigInteger bigInt = new BigInteger(1, digest);\n String md5Hex = bigInt.toString(16);\n while (md5Hex.length() < 32) {\n md5Hex = \"0\" + md5Hex;\n }\n return md5Hex;\n }", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "public HashCode getInstallMD5() {\n return installMD5;\n }", "@Override\n public int hashCode() {\n int i;\n int result = 17;\n if (getAtrfAudUid() == null) {\n i = 0;\n } else {\n i = getAtrfAudUid().hashCode();\n }\n result = 37*result + i;\n return result;\n }", "private static byte[] m14295fl(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"MD5\");\n if (instance == null) {\n return str.getBytes();\n }\n instance.update(str.getBytes());\n return instance.digest();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return str.getBytes();\n }\n }", "public Boolean isAlreadyExist(String fileName, String md5){\n String sql =\n \"SELECT distinct fileName, firstWord FROM decodedFile \" +\n \"WHERE fileName = ? AND md5 = ?\";\n Connection conn = null;\n\n try {\n // create the connection\n conn = dataSource.getConnection();\n\n // prepare the query & execute\n PreparedStatement ps = conn.prepareStatement(sql);\n ps.setString(1, fileName);\n ps.setString(2, md5);\n ResultSet rs = ps.executeQuery();\n Boolean exist = rs.next();\n\n // close\n rs.close();\n ps.close();\n return exist;\n } catch (SQLException e) {\n LOG.error(\"Error when try to say if file \" + fileName + \" and md5 \" + md5 + \" exist in the database\");\n } finally {\n closeConnection(conn);\n }\n\n return false;\n }", "public static String getFileMD5(String path) {\n\t\treturn getFileMD5(new File(path));\n\t}", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}", "public String md5(String md5StringInput) {\n try {\n java.security.MessageDigest md = java.security.MessageDigest.getInstance(\"MD5\");\n byte[] array = md.digest(md5StringInput.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < array.length; ++i) {\n sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));\n }\n return sb.toString();\n } catch (java.security.NoSuchAlgorithmException e) {\n }\n return null;\n }", "public static String getFileMD5(File file) {\n\t\tMessageDigest messageDigest = null;\n\t\tFileInputStream fileInStream = null;\n\t\tbyte buffer[] = new byte[1024];\n\t\tint length = -1;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t\tfileInStream = new FileInputStream(file);\n\t\t\twhile ((length = fileInStream.read(buffer, 0, 1024)) != -1) {\n\t\t\t\tmessageDigest.update(buffer, 0, length);\n\t\t\t}\n\t\t\tfileInStream.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String computeMD5Hash(String password) {\n StringBuffer MD5Hash = new StringBuffer();\n\n try {\n // Create MD5 Hash\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n digest.update(password.getBytes());\n byte messageDigest[] = digest.digest();\n\n for (int i = 0; i < messageDigest.length; i++)\n {\n String h = Integer.toHexString(0xFF & messageDigest[i]);\n while (h.length() < 2)\n h = \"0\" + h;\n MD5Hash.append(h);\n }\n\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return MD5Hash.toString();\n }", "public String getMD5() {\n return m_module.getConfiguration().getMD5();\n }", "public static String getMd5(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public static String fileMD5(File file) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public String getMd5Hash() {\n return md5Hash;\n }", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String encode(String mdp)\n\t {\n\t byte[] uniqueKey = mdp.getBytes();\n\t byte[] hash = null;\n\n\t try\n\t {\n\t hash = MessageDigest.getInstance(\"MD5\").digest(uniqueKey);\n\t }\n\t catch (NoSuchAlgorithmException e)\n\t {\n\t throw new Error(\"No MD5 support in this VM.\");\n\t }\n\n\t StringBuilder hashString = new StringBuilder();\n\t for (int i = 0; i < hash.length; i++)\n\t {\n\t String hex = Integer.toHexString(hash[i]);\n\t if (hex.length() == 1)\n\t {\n\t hashString.append('0');\n\t hashString.append(hex.charAt(hex.length() - 1));\n\t }\n\t else\n\t hashString.append(hex.substring(hex.length() - 2));\n\t }\n\t return hashString.toString();\n\t }", "public static String getMD5Hash(String string) {\r\n\t\tMessageDigest digest;\r\n\t\ttry {\r\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\r\n\t\t\tdigest.update(string.getBytes());\r\n\t\t\tfinal byte[] hash = digest.digest();\r\n\t\t\tfinal StringBuilder result = new StringBuilder(hash.length);\r\n\t\t\tfor (int i = 0; i < hash.length; i++) {\r\n\t\t\t\tresult.append(Integer.toString((hash[i] & 0xff) + 0x100, 16)\r\n\t\t\t\t\t\t.substring(1));\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t} catch (final NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"error\";\r\n\t\t}\r\n\t}", "static String generateChecksum(String filename) {\n\n try {\n // Instantiating file and Hashing Algorithm.\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n FileInputStream file = new FileInputStream(filename);\n\n // Generation of checksum.\n byte[] dataBytes = new byte[1024];\n int nread;\n\n while ((nread = file.read(dataBytes)) != -1) {\n md.update(dataBytes, 0, nread);\n }\n\n byte[] mdbytes = md.digest();\n\n // Convert byte to hex.\n StringBuilder hexString = new StringBuilder();\n\n for (byte mdbyte : mdbytes) {\n String hex = Integer.toHexString(0xff & mdbyte);\n if (hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n\n // Return checksum as completed string.\n return hexString.toString();\n\n } catch (NoSuchAlgorithmException | IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public static String fileMD5(String filePath) {\n\t\tFileInputStream fis = null;\n\t\tString md5 = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filePath));\n\t\t\tmd5 = org.apache.commons.codec.digest.DigestUtils.md5Hex(fis);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(fis);\n\t\t}\n\t\treturn md5;\n\t}", "public static String computeMD5(String filename) throws Exception {\r\n byte[] b = createGenericChecksum(filename, 0);\r\n String result = \"\";\r\n for (int i = 0; i < b.length; i++) {\r\n result += Integer.toString((b[i] & 0xff) + 0x100, 16).substring(1);\r\n }\r\n return result;\r\n }", "public static String getStringMD5(String src) {\n\t\tMessageDigest messageDigest = null;\n\t\tbyte[] srcBytes = src.getBytes();\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmessageDigest.update(srcBytes, 0, srcBytes.length);\n\t\tBigInteger bigInt = new BigInteger(1, messageDigest.digest());\n\t\treturn bigInt.toString(16);\n\t}", "public static String md5(String password){\n byte[] data = messageDigest.digest(password.getBytes());\n return byteToHex(data);\n }", "public String getMD5(String txt){\n String md5output;\n md5output = txt;\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n m.reset();\n m.update(md5output.getBytes());\n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n md5output = bigInt.toString(16);\n } catch (Exception e) {\n md5output = null;\n } finally{\n return md5output;\n }\n \n }", "public static String getFileMD5(File file) {\n if (!file.isFile()) {\n return null;\n }\n MessageDigest digest = null;\n FileInputStream in = null;\n byte buffer[] = new byte[1024];\n int len;\n try {\n digest = MessageDigest.getInstance(\"MD5\");\n in = new FileInputStream(file);\n while ((len = in.read(buffer, 0, 1024)) != -1) {\n digest.update(buffer, 0, len);\n }\n in.close();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n BigInteger bigInt = new BigInteger(1, digest.digest());\n String md5 = bigInt.toString(16);\n while (md5.length() < 32)\n md5 = \"0\" + md5;\n return md5;\n }", "private String m34495c(byte[] bArr) {\n MessageDigest a = m34492a(\"MD5\");\n a.update(bArr);\n return m34494b(a.digest());\n }", "public static String encryptMD5ToString(final byte[] data) {\n return bytes2HexString(encryptMD5(data));\n }", "public static String computeMD5FileHash (File file) throws Exception {\n byte[] b = createFileChecksum(file);\n String result = \"\";\n\n for (int i=0; i < b.length; i++) {\n result += Integer.toString( ( b[i] & 0xff ) + 0x100, 16).substring( 1 );\n }\n return result;\n }", "public static byte[] encryptMD5(final byte[] data) {\n return hashTemplate(data, \"MD5\");\n }", "public void setMD5Result(String md5) throws FrameException {\n \tinfoElements.put(new Integer(InfoElement.MD5_RESULT), md5.getBytes());\n }", "private static java.security.MessageDigest f() {\n /*\n r0 = \"MD5\";\n r1 = j;\n r0 = r0.equals(r1);\n if (r0 == 0) goto L_0x003a;\n L_0x000a:\n r0 = java.security.Security.getProviders();\n r1 = r0.length;\n r2 = 0;\n L_0x0010:\n if (r2 >= r1) goto L_0x003a;\n L_0x0012:\n r3 = r0[r2];\n r3 = r3.getServices();\n r3 = r3.iterator();\n L_0x001c:\n r4 = r3.hasNext();\n if (r4 == 0) goto L_0x0037;\n L_0x0022:\n r4 = r3.next();\n r4 = (java.security.Provider.Service) r4;\n r4 = r4.getAlgorithm();\n j = r4;\n r4 = j;\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n r4 = java.security.MessageDigest.getInstance(r4);\t Catch:{ NoSuchAlgorithmException -> 0x001c }\n if (r4 == 0) goto L_0x001c;\n L_0x0036:\n return r4;\n L_0x0037:\n r2 = r2 + 1;\n goto L_0x0010;\n L_0x003a:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.koushikdutta.async.util.FileCache.f():java.security.MessageDigest\");\n }", "public String encodeByMD5(String string) {\n\t\t\tif (string == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\r\n\t\t\t\t\r\n\t\t\t\t//使用平台的默认字符集将此 String 编码为 byte 序列,并将结果存储到一个新的 byte 数组中。\r\n\t\t\t\t//将byte数组给摘要\r\n\t\t\t\tmessageDigest.update(string.getBytes());\r\n\t\t\t\t//通过执行诸如填充之类的最终操作完成哈希计算。在调用此方法之后,摘要被重置。 \r\n\t\t\t\t//返回:\r\n\t\t\t\t//存放哈希值结果的 byte 数组。\r\n\t\t\t\t\r\n\t\t\t\treturn getFormattedText(messageDigest.digest());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t}\r\n\t\t}", "@Test\n public void fsckTagkUIDHigh() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, Bytes.fromLong(42L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "private String hashKey(String key) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hashInBytes = md.digest(key.getBytes(StandardCharsets.UTF_8));\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < hashInBytes.length; i++) {\n sb.append(Integer.toString((hashInBytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n String s = sb.toString();\n return s;\n }", "private String encriptarClave(String clave, UMD5 mo) {\r\n\t\ttry{\r\n\t\t\t//UMD5 md = UMD5.getInstance();\r\n\t\t\t\r\n\t\t\tlog.info(\"clave:\"+clave);\r\n\t\t\tclave=mo.hashData(clave.getBytes()).toLowerCase();\r\n\t\t\tlog.info(\"clave:\"+clave);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t/*fin\r\n\t\t * */\r\n\t\treturn clave;\r\n\t}", "@Test\n public void testMd5Mechanism() throws Exception {\n\n String testString = activityTestRule.getActivity().getString(R.string.app_name);\n String testedStringHash = \"0bbd25f190709954ca75cf3d67f8bd52\";\n\n assertEquals(MainModelImpl.getInstance().getMd5Hash(testString), testedStringHash);\n }", "public boolean Verificar_Clave(usuarios usuario,String clave){\r\n MD5 md5 = new MD5();\r\n boolean tipo;\r\n tipo = (md5.Clave_MD5(clave).equals(usuario.getContraseña()));\r\n return tipo;\r\n }", "public static String md5(String inputFile) {\r\n String md5 = null;\r\n logger.debug(\"Start to calculate hashcode (SHA1) for {}\", inputFile);\r\n try (DigestInputStream digestIn = new DigestInputStream(new FileInputStream(inputFile),\r\n MessageDigest.getInstance(\"SHA1\"))) {\r\n byte[] buffer = new byte[1024 * 1024];\r\n while (digestIn.read(buffer) > 0) {\r\n // do nothing\r\n }\r\n md5 = toHexString(digestIn.getMessageDigest().digest());\r\n } catch (NoSuchAlgorithmException | IOException e) {\r\n logger.warn(\"Fail to md5 for {} ({})\", inputFile, e.getMessage());\r\n }\r\n logger.debug(\"End to calculate hashcode (SHA1) for {}, {}\", inputFile, md5);\r\n return md5;\r\n }", "public static String EncoderByMd5(String source){\n String sCode = null;\n try{\n MessageDigest md5=MessageDigest.getInstance(\"MD5\"); \n sCode = Base64.encode(md5.digest(source.getBytes(\"UTF-8\"))); \n }\n catch(UnsupportedEncodingException e1){}\n catch(NoSuchAlgorithmException e2){}\n \n return sCode;\n }", "public void setHash() throws NoSuchAlgorithmException {\n\t\tString transformedName = new StringBuilder().append(this.titulo).append(this.profesor)\n .append(this.descripcion).append(this.materia.getUniversidad()).append(this.materia.getDepartamento())\n\t\t\t\t.append(this.materia.getCarrera()).append(this.materia.getIdMateria()).append(new Date().getTime()).toString();\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n\t\tmessageDigest.update(transformedName.getBytes(StandardCharsets.UTF_8));\n\t\tthis.hash = new BigInteger(1, messageDigest.digest()).toString(16);\n\t}", "public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException {\n return computeMD5Hash(new ByteArrayInputStream(data));\n }", "public static String getMD5(File file) throws IOException, NoSuchAlgorithmException {\n return getChecksum(file, MessageDigest.getInstance(\"MD5\"));\n }", "public static String getMD5Sum(String variable) throws NoSuchAlgorithmException{\t\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t\tmd.update(variable.getBytes());\n\t\treturn new BigInteger(1,md.digest()).toString(16);\n\t}", "org.apache.xmlbeans.XmlAnyURI xgetManifestHashAlgorithm();", "private String encryptPassword(String password) {\n\t\tbyte[] defaultBytes = password.getBytes();\r\n StringBuffer hexString = new StringBuffer();\r\n try{\r\n MessageDigest algorithm = MessageDigest.getInstance(\"MD5\");\r\n algorithm.reset();\r\n algorithm.update(defaultBytes);\r\n byte messageDigest[] = algorithm.digest();\r\n for (int i=0;i<messageDigest.length;i++) {\r\n String hex = Integer.toHexString(0xFF & messageDigest[i]);\r\n if(hex.length()==1)\r\n hexString.append('0');\r\n hexString.append(hex);\r\n }\r\n }catch (Exception e){e.printStackTrace();}\r\n\t\tpassword = hexString.toString();\r\n\t\t//System.out.println(password);\r\n\t\treturn password;\r\n\t}", "public static String encryptedByMD5(String password) {\n StringBuilder result = new StringBuilder();\n try {\n byte[] pass = MessageDigest\n .getInstance(\"MD5\")\n .digest(password.getBytes());\n\n for (byte b : pass) {\n int salt = b & 0xCA; //Salt\n String saltString = Integer.toHexString(salt);\n if (1 == saltString.length()) {\n result.append(\"0\");\n }\n result.append(saltString);\n }\n return result.toString();\n } catch (NoSuchAlgorithmException e) {\n LOG.error(\"No MD5 Algorithm in this System! \", e);\n throw new RuntimeException(\"Could not encrypt the user password in this system!\", e);\n }\n }", "private String calchash() {\r\n String a0 = String.valueOf(bindex);\r\n a0 += String.valueOf(bdate);\r\n a0 += bdata;\r\n a0 += String.valueOf(bonce);\r\n a0 += blasthash;\r\n String a1;\r\n a1 = \"\";\r\n try {\r\n a1 = sha256(a0);\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(Block.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return a1;\r\n\r\n }", "public static String getmd5(String saltedPassword) {\n\t\tmd5MessageDigest.get().update(saltedPassword.getBytes());\n\t\treturn toHex(md5MessageDigest.get().digest());\n\t}", "void persistFingerprint(String user, SongMetadata smd, Fingerprint fp) throws SQLException;", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "public static String str2MD5(String strs) {\n StringBuffer sb = new StringBuffer();\n try {\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n byte[] bs = digest.digest(strs.getBytes());\n /*\n * after encryption is -128 to 127 ,is not safe\n * use it to binary operation,get new encryption result\n *\n * 0000 0011 0000 0100 0010 0000 0110 0001\n * &0000 0000 0000 0000 0000 0000 1111 1111\n * ---------------------------------------------\n * 0000 0000 0000 0000 0000 0000 0110 0001\n *\n * change to 16 bit\n */\n for (byte b : bs) {\n int x = b & 255;\n String s = Integer.toHexString(x);\n if (x < 16) {\n sb.append(\"0\");\n }\n sb.append(s);\n }\n\n } catch (Exception e) {\n System.out.println(\"encryption lose\");\n }\n return sb.toString();\n }", "private static String CalHash(byte[] passSalt) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n //get the instance value corresponding to Algorithm selected\n MessageDigest key = MessageDigest.getInstance(\"SHA-256\");\n //Reference:https://stackoverflow.com/questions/415953/how-can-i-generate-an-md5-hash\n //update the digest using specified array of bytes\n key.update(passSalt);\n String PassSaltHash = javax.xml.bind.DatatypeConverter.printHexBinary(key.digest());\n return PassSaltHash;\n }", "private boolean checkLogin(String username, String passwordMD5) {\n try {\n Statement stmt = GUITracker.conn.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * from account where username='\" + username + \"' and password='\" + passwordMD5 + \"'\");\n if (rs.next()) {\n //iduser = rs.getInt(\"Id\");\n return true;\n } else {\n return false;\n } \n \n// if ((username.equals(usernamePeer)) && (passwordMD5.equals(passwordPeer))) {\n// return true;\n// } else {\n// return false;\n// }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }", "protected void md5file(File file) throws IOException {\n if (file.isDirectory()) {\n throw new IllegalArgumentException(\"Only files can be check summed !\");\n }\n\n // calculating the output\n byte[] md5 = DigestUtils.md5(new FileInputStream(file));\n\n // getting the output file\n File outputFile = new File(file.getAbsolutePath() + \".md5\");\n Files.write(Paths.get(outputFile.getAbsolutePath()), md5);\n\n }", "public MD5(String texto) throws Exception {\n this.md5 = MessageDigest.getInstance(\"MD5\");\n this.texto = texto;\n this.byTexto = texto.getBytes();\n calcMD5();\n }", "public static byte[] MD5(String ran, String strKey){\n \n \tString clientSecretKey = ran + strKey;\n MessageDigest m = null;\n \n try {\n \t\n m = MessageDigest.getInstance(\"MD5\");\n \n } \n catch (NoSuchAlgorithmException ex) {\n \t\n ex.printStackTrace();\n \n }\n \n m.reset();\n m.update(clientSecretKey.getBytes());\n byte[] digest = m.digest();\n \n return digest;\n \n }", "boolean hasDigest();", "@Test\n public void fsckTagvUIDHigh() throws Exception {\n\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, Bytes.fromLong(42L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "public void printHashKey(){\n try {\n PackageInfo info = getPackageManager().getPackageInfo(\n \"com.credolabs.justcredo\",\n PackageManager.GET_SIGNATURES);\n for (Signature signature : info.signatures) {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(signature.toByteArray());\n Log.d(\"Credo:\", Base64.encodeToString(md.digest(), Base64.DEFAULT));\n }\n } catch (PackageManager.NameNotFoundException e) {\n\n } catch (NoSuchAlgorithmException e) {\n\n }\n }", "List<MD5ExistenceCheckDTO> checkForExistence(String[] md5Codes) ;", "java.lang.String getManifestHashAlgorithm();", "private byte[] RIPEMD160(byte[] tobeHashed){\r\n\tRIPEMD160Digest digester = new RIPEMD160Digest();\r\n\tbyte[] retValue=new byte[digester.getDigestSize()]; \r\n\tdigester.update(tobeHashed, 0, tobeHashed.length); \r\n\tdigester.doFinal(retValue, 0);\t \r\n\tbyte[] version = new byte[]{0x00};\r\n\treturn concateByteArray(version,retValue);\t\r\n}", "public static boolean checkEncodeWithMD5(String origin, byte[] mDigest) {\n try {\n return checkEncode(origin, mDigest, MD5Utils.MD5);\n } catch (NoSuchAlgorithmException ex) {\n return false;\n }\n }", "String getDigestAlgorithm();", "private String getFqcnForHashingMethod( LdapSecurityConstants hashingMethod )\n {\n switch ( hashingMethod )\n {\n case HASH_METHOD_MD5:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_MD5;\n \n case HASH_METHOD_SMD5:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SMD5;\n \n case HASH_METHOD_CRYPT:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_CRYPT;\n \n case HASH_METHOD_SHA256:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SHA256;\n \n case HASH_METHOD_SSHA256:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SSHA256;\n \n case HASH_METHOD_SHA384:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SHA384;\n \n case HASH_METHOD_SSHA384:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SSHA384;\n \n case HASH_METHOD_SHA512:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SHA512;\n \n case HASH_METHOD_SSHA512:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SSHA512;\n \n case HASH_METHOD_SHA:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SHA;\n \n case HASH_METHOD_SSHA:\n default:\n return HASHING_PASSWORD_INTERCEPTOR_FQCN_SSHA;\n }\n }", "public static String getMD5(String string) throws NoSuchAlgorithmException, IOException {\n MessageDigest md5;\n md5 = MessageDigest.getInstance(\"MD5\");\n\n try (DigestInputStream stream = new DigestInputStream(new ByteArrayInputStream(string.getBytes()), md5)) {\n byte[] buffer = new byte[8192];\n while (true) {\n if ((stream.read(buffer) == -1)) break;\n }\n StringBuilder sb = new StringBuilder();\n for (byte b : md5.digest()) {\n sb.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }\n }", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "public static String calcHash(String input) {\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(input.toLowerCase().getBytes(\"UTF8\"));\n byte[] digest = md.digest();\n StringBuilder sb = new StringBuilder();\n for (byte b : digest) {\n sb.append(hexDigit(b>>4));\n sb.append(hexDigit(b));\n }\n return sb.toString();\n } catch (Exception ex) {\n throw new RuntimeException(ex.getMessage(), ex);\n }\n }", "public static void md5(File outputFile) throws ConverterException {\r\n\t\ttry {\r\n\t\t\tFileInputStream fileInputStream = new FileInputStream(outputFile);\r\n\t\t\tBufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\r\n\t\t\t\r\n\t\t\tbyte[] datei = bufferedInputStream.readAllBytes();\r\n\t\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\r\n\t\t\tbyte[] md5 = md.digest(datei);\r\n\t\t\tfor (int i = 0; i < md5.length; i++) {\r\n\t\t\t\tSystem.out.print(String.format(\"%02X\", md5[i]));\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\" File Length: \" + outputFile.length());\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tbufferedInputStream.close();\r\n\t\t\tfileInputStream.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new ConverterException(\"Datei kann nicht gefunden werden\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ConverterException(\"Beim Lesen der Datei ist ein Fehler aufgetreten\");\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static String computeOnce(String str) {\n str = (str == null) ? \"\" : str;\n MessageDigest md5 = null;\n try {\n md5 = MessageDigest.getInstance(\"MD5\");\n } catch (Exception e) {\n throw new ExternalException();\n }\n // convert input String to a char[]\n // convert that char[] to byte[]\n // get the md5 digest as byte[]\n // bit-wise AND that byte[] with 0xff\n // prepend \"0\" to the output StringBuffer to make sure that we don't end\n // up with\n // something like \"e21ff\" instead of \"e201ff\"\n\n char[] charArray = str.toCharArray();\n\n byte[] byteArray = new byte[charArray.length];\n\n for (int i = 0; i < charArray.length; i++)\n byteArray[i] = (byte) charArray[i];\n\n byte[] md5Bytes = md5.digest(byteArray);\n\n StringBuffer hexValue = new StringBuffer();\n\n for (int i = 0; i < md5Bytes.length; i++) {\n int val = (md5Bytes[i]) & 0xff;\n if (val < 16)\n hexValue.append(\"0\");\n hexValue.append(Integer.toHexString(val));\n }\n\n return hexValue.toString();\n }" ]
[ "0.5898584", "0.5571508", "0.5438658", "0.5406914", "0.5406211", "0.5373069", "0.5315165", "0.5313389", "0.5307883", "0.53062564", "0.5290919", "0.52877724", "0.5281354", "0.52411455", "0.52228343", "0.52208483", "0.52185196", "0.5217527", "0.51997614", "0.5196696", "0.51829845", "0.5180568", "0.5172316", "0.51481676", "0.51414895", "0.5135951", "0.5106291", "0.5038611", "0.50197667", "0.5017784", "0.501509", "0.5005345", "0.49944162", "0.4974254", "0.49687508", "0.4963307", "0.4960348", "0.49574938", "0.49496865", "0.49310535", "0.49299797", "0.49234426", "0.49179572", "0.4910843", "0.49099308", "0.48785877", "0.48730358", "0.4868403", "0.48423883", "0.48372057", "0.48194784", "0.48143515", "0.48136902", "0.4803314", "0.47860807", "0.47807825", "0.47766507", "0.4774611", "0.47692886", "0.4755891", "0.4754451", "0.4750381", "0.47481298", "0.47172448", "0.47054905", "0.4700623", "0.4696441", "0.46782514", "0.46708226", "0.46675596", "0.46555883", "0.4642294", "0.4640986", "0.46403405", "0.46271753", "0.4627148", "0.46163183", "0.46152294", "0.46123084", "0.4604494", "0.4603555", "0.4599055", "0.4599037", "0.45988268", "0.45944685", "0.4590051", "0.45728937", "0.4567696", "0.45657924", "0.4562094", "0.45595267", "0.45468885", "0.45455602", "0.4528003", "0.45245486", "0.45092082", "0.45062408", "0.45040265", "0.4491113", "0.4490126" ]
0.66876054
0
Created by XiYong Yang on 2015/5/20.
@MyBatisMapper public interface RouteFilterDao { //for api public List<RouteFilter> listRouteFilter(int userId); public List<RouteFilter> listRouteFilterIncludeModelRoute(int userId); public List<RouteFilter> listFilterRoutes(int userId); public RouteFilter getFilterRoutesByFilterId(int userId, int filterId); //首页列表 public int findTotalCount(); public List<RouteFilter> listFilterByPage(int pageNo, int pageSize); //编辑 public RouteFilter findOne(int filterId); //根据ID查找出分类同时带有模式 public RouteFilter findOneWithModel(int filterId); //根据ID查找出分类同时带有控制器 public RouteFilter findOneWithControl(int filterId); public List<Control> listControlByFilterId(int filterId); //保存 public void addFilter(RouteFilter routeFilter); //删除 public void deleteFilter(int filterId); //更新 public void updateFilter(RouteFilter routeFilter); //根据名称查询 public List<RouteFilter> findByName(String filterName, int pageNo, int pageSize); //保存分类模式对应关系 public void saveFilterModel(Map<String, Object> gruMap); public void deleteModelFromFilterModelMapping(int groupID); //保存分类模式对应关系 public void saveFilterControl(Map<String, Object> gruMap); public void deleteControlFromFilterControlMapping(int groupID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@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\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\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\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void memoria() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "@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}", "private void poetries() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void mo4359a() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\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 }", "@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 public void func_104112_b() {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\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 }", "@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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "private void init() {\n\n\n\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "private void kk12() {\n\n\t}", "Petunia() {\r\n\t\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}" ]
[ "0.6262964", "0.6181301", "0.61094564", "0.6105594", "0.6077188", "0.6077188", "0.6064318", "0.6027788", "0.5942597", "0.59407365", "0.5895749", "0.58953893", "0.5889517", "0.58623344", "0.58552104", "0.5852819", "0.5835734", "0.58317566", "0.5798894", "0.5790222", "0.57808745", "0.57808745", "0.57498145", "0.5739141", "0.5733991", "0.57314706", "0.5726239", "0.57254755", "0.57228327", "0.57148796", "0.5703244", "0.56768405", "0.56768405", "0.56768405", "0.56768405", "0.56768405", "0.5673791", "0.5668487", "0.5662228", "0.56596315", "0.5657215", "0.56471837", "0.5645071", "0.56332755", "0.5627399", "0.56226814", "0.562106", "0.562106", "0.5617582", "0.5617582", "0.5617582", "0.5617582", "0.5617582", "0.5617582", "0.5617582", "0.561615", "0.561615", "0.561615", "0.5602698", "0.5595626", "0.5595626", "0.55930877", "0.55930877", "0.55930877", "0.55930877", "0.55930877", "0.55930877", "0.55922014", "0.55922014", "0.55922014", "0.5583123", "0.5583123", "0.5583123", "0.5577591", "0.5572391", "0.5571388", "0.5546608", "0.55460507", "0.5536114", "0.5535179", "0.5529328", "0.55283064", "0.5520165", "0.5519161", "0.55080307", "0.5506855", "0.55049026", "0.5497514", "0.5494736", "0.5489648", "0.54891646", "0.54888463", "0.5483754", "0.5482284", "0.5481863", "0.5456692", "0.5456692", "0.5452657", "0.5446314", "0.54378283", "0.54332006" ]
0.0
-1
Created by robin on 2017/7/30.
public interface HeroInterface { public void saveBeauty(); public void helpPool(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \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\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "private Rekenhulp()\n\t{\n\t}", "public void baocun() {\n\t\t\n\t}", "Consumable() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "private void getStatus() {\n\t\t\n\t}", "private Singletion3() {}", "@Override\n void init() {\n }", "private void init() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@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 init() {}", "@Override\n public void init() {}", "@Override\n protected void prot() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo6081a() {\n }", "public void mo21877s() {\n }", "private void m50366E() {\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}", "zzafe mo29840Y() throws RemoteException;", "@Override\n public void initialize() { \n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private void kk12() {\n\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}", "protected void mo6255a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\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 public void init() {\n\n }", "@Override\n public void init() {\n\n }" ]
[ "0.61891526", "0.60775816", "0.6052281", "0.5998251", "0.5933897", "0.5900455", "0.5897906", "0.58509135", "0.58509135", "0.5796279", "0.579187", "0.57756245", "0.5770466", "0.57165223", "0.5688704", "0.5659043", "0.5658313", "0.5641457", "0.5616877", "0.5616877", "0.5616877", "0.5616877", "0.5616877", "0.5616877", "0.5615094", "0.5615094", "0.5588206", "0.55621696", "0.55550766", "0.5546575", "0.5546575", "0.55413973", "0.55413973", "0.55347204", "0.5527216", "0.55220556", "0.5521913", "0.55153084", "0.55152124", "0.5512749", "0.5512688", "0.5509173", "0.5498342", "0.5494549", "0.5494549", "0.5485592", "0.5485229", "0.54768515", "0.5471687", "0.5466998", "0.5460955", "0.5459088", "0.5442093", "0.54330224", "0.54308164", "0.542832", "0.54275477", "0.54192066", "0.54178", "0.54178", "0.54178", "0.54178", "0.54178", "0.5409175", "0.5398814", "0.53961265", "0.5389568", "0.5388513", "0.53787607", "0.53732663", "0.53580767", "0.53549284", "0.5350412", "0.5350412", "0.53487885", "0.53475416", "0.53405935", "0.53405935", "0.53405935", "0.53382427", "0.5334913", "0.5334913", "0.5334913", "0.53332007", "0.5332543", "0.53293985", "0.53233194", "0.532295", "0.53220356", "0.5320686", "0.53104734", "0.53104734", "0.5306736", "0.5306736", "0.5306736", "0.5306736", "0.5306736", "0.5306736", "0.5306736", "0.53030974", "0.53030974" ]
0.0
-1
metodo push que ingresa elementos al vector
@Override public void push (T operando){ miLista.add(operando); posicion++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void push(Object x) {\n\t\tthis.vector.add(x);\n\t}", "@Override\r\n\tpublic void push(String item) {\n\t\tvector.addElement(item);\r\n\t\t\r\n\t}", "public void push (E element);", "public void push(E element) {\r\n items.add(0, element);\r\n }", "public void push(E element);", "public void push(T v) {\n if (used < values.length) {\n used += 1;\n }\n head = (head + 1) % values.length;\n values[head] = v;\n }", "public void push(T element);", "public void push(T element);", "public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}", "public void push(T newEntry) {\n\t\tcheckInitialization();\n\t\tvector.addElement(newEntry);\n\t}", "public void push(T elem);", "void push(Object elem);", "public void push(T element){\n\t\tarray[noOfElements] = element;\n\t\tnoOfElements ++;\t\t\n\t}", "public void push(T element) {\n\t\t//add the new element\n\t\telements.add(element);\n\n\t}", "public void push(Object anElement);", "public void push(TYPE element);", "@Override\n public void push(T element){\n arrayAsList.add(element);\n stackPointer++;\n }", "public void push(Object element)\n\t{\n\t\tensureCapacity();\n\t\telements[size++] = element;\n\t}", "public void push(int elem);", "public void pushFront(O o)\r\n {\r\n //create new VectorItem\r\n VectorItem<O> vi = new VectorItem<O> (o,null, first);\r\n \r\n first = vi;\r\n if (isEmpty()) last = vi;\r\n count++;\r\n }", "public Heap(Vector v){\n int i;\n data = new Vector(v.size()); //we know ultimate size\n for (i = 0; i < v.size(); i++){\n //add elements to heap\n add((Bloque)v.get(i));\n }\n }", "@Override\n\tpublic void push(Object x) {\n\t\tlist.addFirst(x);\n\t}", "public void push(E item);", "public void push(E value) {\n list.addLast(value);\n index++;\n }", "@Override\r\n\tpublic void addElement(VOI o) {\r\n add(o); // add the voi to the vector\r\n }", "void push(T item) {\n contents.addAtHead(item);\n }", "void push(int element);", "public void push(T o) {\r\n\t\tadd(o);\t\r\n\t}", "public void push(E o) \r\n {\r\n list.add(o);\r\n }", "public void push(E value);", "public void push(T val){ if(this.isUpgraded) this.linkArray.push(val); else this.nativeArray.add(val); }", "public void push(E o) {\n list.add(o);\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void push(Object element) {\n\t\tif(size == capacity) {\n\t\t\tthrow new IllegalArgumentException(\"Capacity has been reached.\");\n\t\t}\n\t\tlist.add(0, (E) element);\n\t\tsize++;\n\t\t\n\t}", "public void push(E newItem);", "@Override\n\tpublic void push(E item) {\n\t\t\n\t}", "void push(Object item);", "void push(int v);", "public void push(T newItem);", "public synchronized void push(Object o) {\n itemcount++;\n addElement(o);\n notify();\n }", "public void pushBack (O o)\r\n {\r\n //create new VectorItem\r\n VectorItem<O> vi = new VectorItem<O> (o,last, null);\r\n if (isEmpty()) \r\n {\r\n last = vi;\r\n first = vi;\r\n }\r\n else \r\n {\r\n last.setNext(vi);\r\n last = vi;\r\n }\r\n count++;\r\n }", "public void push(E elem) {\n if (elem != null) {\r\n contents[++top] = elem;\r\n }\r\n\r\n // Usually better to resize after an addition rather than before for\r\n // multi-threading reasons. Although, that is not important for this class.\r\n if (top == contents.length-1) resize();\r\n }", "public void push(T x) {\n\t\tl.push(x);\n\t}", "public void push(E item) {\n addFirst(item);\n }", "void push(T item);", "void push(T item);", "public void push(Object value) {\n\t\tthis.add(value);\n\t}", "public void push(T item);", "public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }", "public void push(T dato );", "@Override\r\n\tpublic void push(E e) {\n\t\t\r\n\t}", "public Vector add(Vector vec) {\n return new Vector(this.head.add(vec));\n }", "void push(E Obj);", "public void push(int x) {\n \tlist.add(x);\n }", "public Object push(Object arg)\n {\n dataList.add(arg);\n return arg;\n }", "@Override\n public void push(Integer value) {\n ar[pos++] = value; \n }", "public void push(int x) {\n one.add(x);\n for(int i=0;i<one.size()-1;i++)\n {\n one.add(one.poll());\n }\n \n }", "public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}", "public void push(E obj) {\n super.add(obj);\n }", "public void push (E item){\n this.stack.add(item);\n }", "public void push(T x);", "public void push(Object value) {\n this.collection.add(value);\n }", "public void push(ShapeCommand element) {\r\n\t\tthis.items.add(element);\r\n\t}", "public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }", "public static void main(String[] args) {\n\t\tVector v1=new Vector(2,8);\n\t\tSystem.out.println(v1.capacity());\n\t\tv1.add(10);\n\t\tv1.add(20);\nv1.add(30);\n\tv1.add(40);\n\tv1.add(50);\n\tv1.add(60);\n\tv1.add(70);\n\tv1.add(80);\n\tv1.add(90);\n\t\tv1.add(10);\n\t\tv1.add(11);\n\t\tArrayList a1=new ArrayList(v1);\n\t\ta1.add(200);\n\t\tSystem.out.println(a1);\n\t\n\n\n\t}", "public void push(E data);", "public void push(Item s) {\n\t\tif (N == arr.length)\n\t\t\tresize (arr.length*2);\t\n\t\tarr[N++] = s;\n\t}", "public void push(int x) {\n \tint size = s2.size();\n \tfor(int i = 0; i < size; i++) {\n \t\ts.push(s2.pop());\n \t}\n \ts.push(x);\n }", "@Override\n public void add(int index, T element) {\n Object[] newArray = new Object[size + 1];\n for (int i = 0; i < index; i++) {\n newArray[i] = data[i];\n }\n newArray[index] = element;\n for (int i = index + 1; i < newArray.length; i++) {\n newArray[i] = data[i - 1];\n }\n data = newArray;\n size++;\n }", "@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}", "public void push(T element) {\n if(isFull()) {\n throw new IndexOutOfBoundsException();\n }\n this.stackArray[++top] = element;\n }", "public Collection<V> addVertices(Collection<V> vs);", "public void push(Object o){\n if (count<maxsize && maxsize!=-1)\n { insert(o);}\n else if (maxsize==-1){ insert(o);}\n else { System.out.println(\"Can't add element.\");}\n }", "void push(E e);", "void push(E e);", "public void push(T e) {\n\t\tif(size == data.length){\n\t\t\tresize(size * 2);\n\t\t}\n\t\tthis.data[size++] = e;\n\t}", "public void push(Node element) {\r\n\t\tif (size() == 0) {\r\n\t\t\tstart = element;\r\n\t\t}\r\n\t\telse {\r\n\t\t\telement.setNext(start);\r\n\t\t\tstart = element;\r\n\t\t}\r\n\t\telements++;\r\n\t}", "public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }", "public void push(E e) throws Exception;", "@Override\n public void add(T element) {\n add(size(), element);\n }", "public void push_front(T element);", "void push(T t);", "public void push(int x) {\n helper.add(x);\n helper.addAll(objects);\n\n tmp = objects;\n tmp.clear();\n objects = helper;\n helper = tmp;\n }", "public static void push(Object data) {\n list.add(data);\n }", "public void push(int x) {\n\t\tlist.add(x);\n\t}", "public void push(T aValue);", "public void add(int x, int y, int t, int v) {\n\t\tif (v < vArray[49]) {\n\t\t\treturn;\n\t\t}\n\t\t \t\n \t// find out the position\n \tint newIndex = indexOf(v);\n \t \t\n \t// shift arrays\n \tfor (int i = 49; i > newIndex; --i) {\n \t\txArray[i] = xArray[i - 1];\n \t\tyArray[i] = yArray[i - 1];\n \t\ttArray[i] = tArray[i - 1];\n \t\tvArray[i] = vArray[i - 1];\n \t}\n\n \t// put the new item in position\n \txArray[newIndex] = x;\n \tyArray[newIndex] = y;\n \ttArray[newIndex] = t;\n \tvArray[newIndex] = v;\n\t}", "void push(T x);", "public void push(T ele)\n\t{\n\t\tif (ele == null)\n\t\t\tthrow new IllegalArgumentException(\"Tried to add a NULL element!\");\n\t\t\n\t\tlist.addFirst(ele);\n\t}", "public void agregarAlFinal(T v){\n\t\tNodo<T> nuevo = new Nodo<T>();\r\n\t\tnuevo.setInfo(v);\r\n\t\tnuevo.setRef(null);\r\n\t\t\r\n\t\t//si la lista aun no tiene elementos\r\n\t\tif(p == null){\r\n\t\t\t//el nuevo nodo sera el primero\r\n\t\t\tp=nuevo;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//retorno la lista hasta que aux apunte al ultimo nodo\r\n\t\tNodo<T> aux;\r\n\t\tfor(aux=p; aux.getRef() != null; aux=aux.getRef()){\r\n\t\t\t//enlazo el nuevo nodo como el siguiente del ultimo\r\n\t\t\taux.setRef(nuevo);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}", "public void push(int x) { //全部放到第一个\n temp1.push(x);\n }", "public void addVoto(Voto v) {\n if(v.idPA != this.id) {\n \tSystem.out.println(\"addVoto PA error: idPa \"+v.idPA +\"!= this \"+ this.id); \n }\n votos.add(v); \n }", "public void push(T entry)\n { \n first = push(entry, first);\n }", "void doVector() {\n Vector<String> v = new Vector<>();//creating vector\n v.add( \"umesh\" );//method of Collection\n v.addElement( \"irfan\" );//method of Vector\n v.addElement( \"kumar\" );\n //traversing elements using Enumeration\n Enumeration e = v.elements(); // creates enumeration objects\n while (e.hasMoreElements()) { //\n System.out.println( e.nextElement() );\n }\n }", "public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }", "private void arrivedAdd(Passenger in) {\n\t\tif(counter >= capacity) {\n\t\t\tcapacity *= 2;\n\t\t\tPassenger[] temp = new Passenger[capacity];\n\t\t\tfor(int i = 0; i < arrivedOrder.length; i++) {\n\t\t\t\ttemp[i] = arrivedOrder[i];\n\t\t\t}\n\t\t\tarrivedOrder = temp;\n\t\t}\n\t\tarrivedOrder[counter] = in;\n\t}", "public E push(E item) {\n try {\n stackImpl.push(item);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Array is full. Switching to unbound implementation\");\n StackImplementationIF<E> stackImplTemp = new ListStack<E>();\n for (Enumeration en = new ImplIterator<E>(this); en.hasMoreElements();) {\n E c = (E) en.nextElement();\n stackImplTemp.push(c);\n }\n stackImpl = stackImplTemp;\n stackImpl.push(item);\n }\n return item;\n }", "public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }", "public void push(int x) {\n temp.push(x);\n }", "public void push(T data)\n {\n ll.insert(ll.getSize(), data);\n }" ]
[ "0.73735297", "0.71415854", "0.6777714", "0.67419827", "0.67281353", "0.6690563", "0.6668273", "0.6668273", "0.6646086", "0.6643039", "0.6592882", "0.65263426", "0.6487283", "0.64790887", "0.6463987", "0.6433675", "0.64160204", "0.6360774", "0.630735", "0.62151396", "0.62092346", "0.61958766", "0.6185627", "0.61806935", "0.6176684", "0.617111", "0.6166974", "0.61548966", "0.61385614", "0.611905", "0.6115306", "0.6102046", "0.6085316", "0.60717726", "0.6037488", "0.60340095", "0.6030856", "0.60296416", "0.6028056", "0.602589", "0.6007248", "0.60009706", "0.5992993", "0.59917325", "0.59917325", "0.59862125", "0.59833336", "0.59581506", "0.5944449", "0.5920064", "0.5900836", "0.5877935", "0.58715993", "0.58558625", "0.58513016", "0.58493805", "0.58358806", "0.5834939", "0.583029", "0.58180714", "0.5807943", "0.57819706", "0.5765081", "0.5761861", "0.57576555", "0.57528114", "0.57358015", "0.5734281", "0.573196", "0.57304096", "0.5723786", "0.57213235", "0.5720441", "0.5720441", "0.57175493", "0.57010233", "0.56738144", "0.5665083", "0.5659841", "0.5659455", "0.5658509", "0.5657099", "0.56459486", "0.5637953", "0.5627865", "0.56117445", "0.5610332", "0.5596269", "0.5578977", "0.55762285", "0.5575597", "0.5562633", "0.55606914", "0.55586165", "0.5553037", "0.55503017", "0.5549204", "0.55489874", "0.55487365", "0.554458" ]
0.6482919
13
metodo po que obtine el elemento actual y resta al contador posicion
@Override public T pop (){ T elemento= (T) miLista.get(posicion-1); miLista.remove(posicion-1); posicion--; return elemento; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element getElement(Position pos);", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "private void actualizarEnConsola() {\n\t\tfor(int i=0; i<elementos.size();i++){\n\t\t\tElemento e = elementos.get(i);\n\t\t\tSystem.out.println(e.getClass().getName()+\"- Posicion: , X: \"+e.getPosicion().getX()+\", Y: \"+ e.getPosicion().getY());\n\t\t}\n\t\t\n\t}", "public T darElemento(){\r\n\t\treturn elemento;\r\n\t}", "public String getElementoIndice(int indice) {\n No temp = ini;\n int count = 1;\n \n //Percorre todos os elementos da lista, ate achar o elemento procurado, ou ate chegar ao final\n while (temp != null){\n if (count == indice) {\n //Caso tenha encontrado o elemento\n return temp.getElemento();\n }\n \n temp = temp.getProx();\n count++;\n }\n \n return \"\";\n }", "@Override\r\n\tpublic void findElement() {\n\t\t\r\n\t}", "public Elemento getElemento() {\n\t\treturn elemento;\n\t}", "public Elemento getElemento (String nombre) {\n Elemento tmp = null;\n if (porNombre.containsKey(nombre)) {\n tmp=porNombre.remove(nombre);\n addPeso(-tmp.getPeso());\n }\n return tmp;\n }", "public T get() {\n return this.elemento;\n }", "Elem getPointedElem();", "E getElement() throws IllegalStateException;", "@Override\n\tpublic T get(int indice) {\n\t\tif (indice >= 0 && indice < tamanho) {\n\t\t\treturn elementosDaLista[indice];\n\t\t}\n\t\treturn null;\n\t}", "private E getElement(int index) {\n if (index >= contents.size()) {\n return null;\n } else {\n return contents.get(index);\n }\n }", "int getPosition(Object elementID) throws Exception;", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "public Object getElement();", "public Object getObject(int pos) {\n return elements.get(pos);\n }", "Elem getElem();", "public void moverElementoAnterior() {\n\t\tif(indiceElementoMenuActual>0) {\n\t\t\tindiceElementoMenuActual--;\n\t\t}\n\t\tsetElementoMenuActual();\n\t}", "@Override\n\t\tpublic E getElement() throws IllegalStateException {\n\t\t\treturn element;\n\t\t}", "public abstract Element getElement(int id) throws PositionEX;", "Element getElement();", "public Element getElement() {\n/* 78 */ return this.e;\n/* */ }", "public E getElement() { return element; }", "public Nodo obtener_Nodo() {\n\t\treturn this.elem;\n\t}", "String getElem();", "public E next() throws NoSuchElementException{\n\t\tPosition<E> aux=actual;\n\t\tif (aux == null) \n\t\t\tthrow new NoSuchElementException();\t\t\n\t\tthis.avanzar();\n\t\treturn aux.element();\n\t}", "@Override\r\n public Element findElement()\r\n {\n return null;\r\n }", "@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 }", "public Node buscarElemento(String x){\r\n\t\t//verifica se a arvore é vazia\r\n\t\tif (raiz == null){\r\n\t\t\tpos = 0;\r\n\t\t\treturn raiz;\r\n\t\t}\t\t\r\n if(pr == nil){\r\n pr = raiz;\r\n }\r\n\t\t//testa se o no é vazio\r\n\t\tif(pr == null)return null;\t\t\r\n\t\t//achou o no\r\n\t\telse if (pr.conteudoNo.equals(x)){\r\n Node aux=pr;\r\n pr=raiz;\r\n return aux; \r\n } \r\n\t\t//no a esquerda\r\n\t\telse if((compare(x, pr.conteudoNo)) < 0){ // faz comparação, se palavra menor que nó\r\n\t\t\taux = pr;\r\n\t\t\tpr = pr.esq;\r\n\t\t\taux.esq = pr;\r\n\t\t\tpos = 1; //posicao indica a insersao na esquerda - valor definido 1(esquerda) e 2(direita)\r\n\t\t\treturn buscarElemento(x);\r\n\t\t}\t\t\r\n\t\telse { \r\n\t\t\taux = pr;\r\n\t\t\tpr= pr.dir;\r\n\t\t\taux.dir = pr;\r\n\t\t\tpos = 2;//posicao indica a insercao na direita - valor definido 1(esquerda) e 2(direita)\r\n\t\t\treturn buscarElemento(x);\r\n }\r\n }", "protected WebElement aguardaElemento(WebElement elemento) {\n Log.info(\"Aguardando elemento: \" + getReferenceNameElement(elemento));\n try {\n return aguardaElemento(ExpectedConditions.refreshed(ExpectedConditions.visibilityOf(elemento)));\n } catch (Exception e) {\n throw new AutomacaoBusinessException(\"Não foi encontrado o elemento: \" + getReferenceNameElement(elemento));\n }\n }", "public Object obtenerFrente(){\n \n Object element = null;\n\n if(!this.esVacia()){\n element = this.frente.getElemento();\n }\n return element;\n }", "private Element getElement(int index) {\n if (index < this._size / 2) {\n return this.getElementForwards(index);\n } else {\n return this.getElementBackwards(index);\n }\n }", "public E getElement(int position){\r\n\t\t// Position is larger than the current size.\r\n\t\tif(checkPosition(position)){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getDoubleNodeAt(position).element;\r\n\t}", "public int eliminardelInicio(){\n int elemento = inicio.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n inicio = inicio.sig;\n inicio.ant = null;\n }\n return elemento;\n \n \n }", "public int pedirElemento(){\n int opcion = -1;\n\n do {\n Lib.limpiarPantalla();\n System.out.println(\"Cual elemento quieres alquilar?\");\n System.out.println(\"1. Nueva pelicula\");\n System.out.println(\"2. Nuevo Videojuego\");\n System.out.println(\"0. Cancelar\\n\");\n System.out.println(\"Elija una opción: \");\n try {\n opcion = Integer.parseInt(Lib.lector.nextLine());\n if (opcion < 0 || opcion > 2) {\n System.out.println(\"Elija una opción del menú [0-2]\");\n Lib.pausa();\n }\n } catch (NumberFormatException nfe) {\n System.out.println(\"Solo números por favor\");\n Lib.pausa();\n }\n } while (opcion < 0 || opcion > 2);\n return opcion;\n\n }", "public int eliminardelfinal(){\n int elemento=fin.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n fin=fin.anterior;\n fin.siguiente=null;}\n return elemento;\n }", "public HTMLElement getElementValorEd() { return this.$element_ValorEd; }", "public RTWElementRef getAsElement(int i);", "Object element();", "Object element();", "private AnyType elementAt(BinaryNode<AnyType> t) {\n\t\treturn t == null ? null : t.element;\n\t}", "@Override\r\n\tpublic boolean getElemento(T elemento) {\n\t\treturn false;\r\n\t}", "public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}", "public void impactoContra(Elemento elemento){}", "String getElement();", "public T getElement();", "private E element() {\n if (startPos >= queue.length || queue[startPos] == null) throw new NoSuchElementException();\n return (E) queue[startPos];\n }", "@Test\r\n public void testGetElement() throws Exception {\r\n System.out.println(\"getElement ModeloListaOrganizadores\");\r\n\r\n String expResult = \"Diana\";\r\n Utilizador u = new Utilizador(\"teste\", \"[email protected]\", \"teste\", \"teste\", true, 5);\r\n u.setNome(\"Diana\");\r\n Organizador o = new Organizador(u);\r\n\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n instance.addElement(o);\r\n instance.getElementAt(0);\r\n\r\n Organizador teste = e.getListaOrganizadores().getListaOrganizadores().get(0);\r\n\r\n String result = teste.getUtilizador().getNome();\r\n assertEquals(expResult, result);\r\n\r\n }", "public Object quitar() {\r\n if (primero == null)\r\n return null;\r\n Object o = primero.elem;\r\n primero = primero.Next;\r\n tamaño--;\r\n return o;\r\n }", "public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}", "public void getLastMove(Element lastmove){\n\n}", "public Object getElement()\r\n\t\t{ return element; }", "public T getElement()\n {\n\n return element;\n }", "public AbstractDNode getOriginalElement() {\n return element;\n }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public HTMLInputElement getElement_operacion() { return this.$element__operacion; }", "public Nodo pop() {\n Nodo aux = this.start;\n if (this.isEmpty())\n return null;\n else {\n if (aux == this.start) { //Algoritmo para dejar a null la posicion que sacamos\n this.start = this.start.getNext();\n if (this.start == null)\n this.end = null;\n else\n this.start.setPrevious(null);\n }\n this.elements--; //Reduccion de la propiedad elementos de la cola\n return aux; //Retornamos el nodo\n }\n }", "public void inserirFinal(int elemento) {\n No novo = new No(elemento, null);\n No temp = ini;\n\n if (eVazia()) {\n ini = novo;\n } else {\n //Percorrer até chegar no ultimo Nó\n while (temp.getProximo() != null) {\n temp = temp.getProximo();\n }\n temp.setProximo(novo);\n }\n\n }", "public void moverElementoSiguiente() {\n\t\tif(elementosMenu!=null && indiceElementoMenuActual< elementosMenu.size()-1) {\n\t\t\tindiceElementoMenuActual++;\n\t\t}\n\t\tsetElementoMenuActual();\n\t}", "public T get() {\n return element;\n }", "public HTMLElement getElementCodigoPoaEd() { return this.$element_CodigoPoaEd; }", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public Object element() { return e; }", "ElementChange getElementChange();", "public void firstElement() {\r\n \t\tcurrentObject = 0;\r\n \t}", "public ElementIterator (PositionList<E> l) {\n\t\tlist = l;\t//Guardo la referencia a la lista a iterar\n\t\tif(list.isEmpty()) cursor = null; //Si la lista esta vacia la posicion corriente es nula\n\t\telse\n\t\t\ttry {\n\t\t\t\tcursor = list.first();//sino la posicion corriente es la primerea de la lista\n\t\t\t} catch (EmptyListException e) {e.printStackTrace();}\n\t}", "public E element();", "public void actualizarValor() {\n\t\tif (valor!=null && valor < getCantElementos()-1){\n\t\t\tvalor++;\n\t\t}\n\t\telse {\n\t\t\tvalor = 0;\n\t\t}\t\t\n\t}", "@Override\r\n\tpublic E element() {\n\t\treturn null;\r\n\t}", "public void spojElementeNaizmenicno(ListaBrojeva novaLista) {\n if (novaLista.prvi == null)\n return;\n else if (jePrazna())\n prvi = novaLista.prvi;\n else {\n Element tek = prvi.veza;\n Element novaListaTek = novaLista.prvi;\n Element pomocni = prvi;\n while (tek != null && novaListaTek != null) {\n pomocni.veza = novaListaTek;\n pomocni = pomocni.veza;\n novaListaTek = novaListaTek.veza;\n \n pomocni.veza = tek;\n pomocni = pomocni.veza;\n tek = tek.veza;\n \n }\n if (novaListaTek != null)\n pomocni.veza = novaListaTek;\n }\n }", "public int getPosicion(String referencia) throws Exception{\n if (buscar(referencia)) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // COntado para almacenar la posición del nodo.\r\n int cont = 0;\r\n // Recoore la lista hasta llegar al nodo de referencia.\r\n while(referencia != aux.getValor()){\r\n // Incrementa el contador.\r\n cont ++;\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n // Retorna el valor del contador.\r\n return cont;\r\n // Crea una excepción de Valor inexistente en la lista.\r\n } else {\r\n throw new Exception(\"Valor inexistente en la lista.\");\r\n }\r\n }", "public void obrniListu() {\n if (prvi != null && prvi.veza != null) {\n Element preth = null;\n Element tek = prvi;\n \n while (tek != null) {\n Element sled = tek.veza;\n \n tek.veza = preth;\n preth = tek;\n tek = sled;\n }\n prvi = preth;\n }\n }", "public void actualizarPodio() {\r\n\t\tordenarXPuntaje();\r\n\t\tint tam = datos.size();\r\n\t\traizPodio = datos.get(tam-1);\r\n\t\traizPodio.setIzq(datos.get(tam-2));\r\n\t\traizPodio.setDer(datos.get(tam-3));\r\n\t}", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public T getElement() {\n return element;\n }", "@Override\n\tpublic Element getElement() {\n\t\treturn elem;\n\t}", "public String getElement() { return element; }", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "public T getElement() {\n\t\treturn element;\n\t}", "public NodoDoble(NodoDoble<E> anterior, E elemento, NodoDoble<E> siguiente){//a ver si no te da problema el nodo por no estar especigicando su tipo... puesto que esta clase es genérica y aquí estas creando uno sin saber, asi que creo que debería de especificarselo\n contenido = elemento;\n nodoSiguiente = siguiente;\n nodoAnterior = anterior;\n }", "@Override\n public NodoL next() {\n posicionActual = posicionActual.getSiguiente();\n return posicionActual;\n }", "public void access(E e) {\n Position<Item<E>> p = findPosition(e); // try to locate existing element\n if (p == null) // new element\n p = list.addLast(new Item<E>(e)); // if new , place at end\n p.getElement().increment(); // always increment count\n moveUp(p);\n }", "public Object nextElement() {\n/* 75 */ return this.iterator.next();\n/* */ }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public E getElement() {\r\n return element;\r\n }", "@Override\r\n\tpublic void updateElement() {\n\r\n\t}", "@Override\n\t\tprotected Element getElement(ElementType button) {\n\t\t\treturn null;\n\t\t}", "public void pop() {\n if (cabeza!= null) {\n //SI CABEZA.SIGUENTE ES DISTINTO A NULO\n if (cabeza.siguiente==null) {\n //CABEZA SERA NULO\n cabeza=null; \n //SE IRAN RESTANDO LOS NODOS\n longitud--;\n } else {\n //DE LO CONTRARIO EL PUNTERO SERA IGUAL A CABEZA\n Nodo puntero=cabeza;\n //MIENTRTAS EL PUNTERO SEA DISITINTO A NULO \n while (puntero.siguiente.siguiente!=null) { \n //PUNTYERO SERA IGUAL A LA DIRECCION DEL SIGUIENTE NODO\n puntero=puntero.siguiente;\n }\n puntero.siguiente=null;\n longitud--;\n }\n }\n }", "Object getElementAt(int index);", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "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 }", "@Override\n\tpublic Consultation getElementAt(int arg0) {\n\t\treturn listaConsultatii.get(arg0);\n\t}", "public ChosenItemPage rememberElementAndFindIt(){\n showxButton.click(); //делает выпадющее меню количества выбора показываемых товаров\n waitVisibilityOf(showx12Button); \n showx12Button.click(); //выбираем показывать по 12\n WebElement firstItem=results.get(0);\n waitVisibilityOf(firstItem);\n String name=firstItem.getText(); //name of the product in the first item\n\n Assert.assertEquals(\"Показывать по 12 не установлено\",\n \"Показывать по 12\", showx.getText());\n\n Stash.put(Stash.firstItemName, name); //remeber first item\n fillField(name,headerSearch);\n headerSearch.sendKeys(Keys.ENTER);\n return new ChosenItemPage();\n }", "public Element getElement() {\n return super.getElement();\n }", "public HTMLDivElement getElementDivEdicion() { return this.$element_DivEdicion; }", "public void setElement(E e){\r\n\t\trotulo = e;\r\n\t}", "public OpcionMenu getElementoMenuActual() {\n\t\treturn elementoMenuActual;\n\t}", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}" ]
[ "0.6712871", "0.654446", "0.6507775", "0.6369378", "0.62932", "0.62812126", "0.62376934", "0.62271917", "0.6194608", "0.6169908", "0.61510295", "0.6138514", "0.60761", "0.6075747", "0.6046129", "0.60300374", "0.5998229", "0.5989491", "0.5971816", "0.59585255", "0.59486675", "0.59347165", "0.59337074", "0.5932425", "0.5932239", "0.5932145", "0.59081966", "0.59024626", "0.5890948", "0.5885385", "0.5883866", "0.58544356", "0.58531004", "0.58289844", "0.582093", "0.5819695", "0.5796884", "0.5795461", "0.57885087", "0.57831395", "0.57831395", "0.5780423", "0.57522386", "0.57451797", "0.57403797", "0.573001", "0.5728939", "0.57057405", "0.5698818", "0.5692616", "0.5684068", "0.5681439", "0.5673975", "0.56647784", "0.5658674", "0.56565154", "0.56565154", "0.56565154", "0.56442213", "0.5633183", "0.56326663", "0.5629553", "0.5617357", "0.56155616", "0.5611404", "0.5606255", "0.5605312", "0.55959815", "0.55922437", "0.55821913", "0.5576026", "0.5573841", "0.557189", "0.55693513", "0.5567648", "0.55594146", "0.555845", "0.554834", "0.55457", "0.5532896", "0.55302525", "0.5529993", "0.5526239", "0.5524134", "0.55226946", "0.55204505", "0.5511982", "0.55103886", "0.5498781", "0.54908884", "0.5487132", "0.5481195", "0.54811656", "0.5467212", "0.5461369", "0.54575324", "0.54562455", "0.54472095", "0.5446769", "0.54411197" ]
0.5685833
50
List HorseList = new ArrayList(); List Running = new ArrayList();
public static void main(String[] args) { HorseList.add(new Horse1("0번마",1)); Running.add(0); HorseList.add(new Horse1("1번마",1)); Running.add(0); HorseList.add(new Horse1("2번마",1)); Running.add(0); HorseList.add(new Horse1("3번마",1)); Running.add(0); HorseList.add(new Horse1("4번마",1)); Running.add(0); HorseList.add(new Horse1("5번마",1)); Running.add(0); HorseList.add(new Horse1("6번마",1)); Running.add(0); HorseList.add(new Horse1("7번마",1)); Running.add(0); HorseList.add(new Horse1("8번마",1)); Running.add(0); HorseList.add(new Horse1("9번마",1)); Running.add(0); for(Horse1 hs : HorseList) { hs.start(); } for(int i=0; i<55; i++) { try { for (Horse1 hs : HorseList) { String result =""; result +=hs.getNm(); for (int j = 0; j < 50; j++) { if(j==Running.get(Integer.parseInt(hs.getNm().substring(0,1)))) { result +="♘>"; }else { result +="-"; } } System.out.println(result); } System.out.println(); Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); } } System.out.println("경기 끝..."); System.out.println("---------------------"); System.out.println(); System.out.println(" 경기 결과 "); System.out.println("=================전역변수로정렬==================="); System.out.println(" 1등 2등 3등 4등 5등 6등 7등 8등 9등 10등"); System.out.println("말이름 : " + strRank); System.out.println("=================compare정렬전==================="); for(Horse1 hs : HorseList) { System.out.println(hs.getNm() + " : " + hs.getRank() + "등"); } System.out.println("=================compare정렬후==================="); Collections.sort(HorseList, new Sortrank1()); for(Horse1 hs : HorseList) { System.out.println(hs.getNm() + " : " + hs.getRank()+ "등"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tList<Horse>horses=new ArrayList<>();\n\t\tfor(int i=0;i<8;i++){\nHorse h =new Horse();\nhorses.add(h);\nh.start();\n\t}\n\n}", "List<Horse> getAllHorses();", "public abstract ArrayList<GameObject> fight();", "public ArrayList<PlayingCard> getHand();", "public LinkedList<HorseData> getHorsesList() {\n\t\treturn manager.getFileManager().getList();\n\t}", "public Horse(String name)\n {\n this.name = name;\n }", "public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\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\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }", "Horse addHorse(Horse horse);", "public HandKarten(){\n this.listKartenInhand = new ArrayList<Karte>();\n }", "protected void newPlayerList() {\n int len = getPlayerCount();\n mPlayerStartList = new PlayerStart[ len ];\n for(int i = 0; i < len; i++) {\n mPlayerStartList[i] = new PlayerStart( 0.f, 0.f );\n }\n }", "public static void main(String[] args)\n {\n String[] nameOfPeople = new String[] { \"John\" , \"Mike\" , \"Steve\" , \"Sam\" , \"Ben\"} ;\n String[] nameOfLocation = new String[]{ \"Kitchen\" , \"BedRoom\" , \"Hall\" , \"BathRoom\" , \"Balcony\" };\n String[] nameOfWeapons = new String[] {\"Knife\" , \"Stick\" , \"Gun\" , \"Poison\" , \"Pen\" };\n\n //Initialise all the lists for various types\n ArrayList<Card> people = new ArrayList<>();\n ArrayList<Card> location = new ArrayList<>();\n ArrayList<Card> weapons = new ArrayList<>();\n\n //List of the players\n ArrayList<IPlayer> players = new ArrayList<>();\n\n // create cards with the values and add them to the List\n addCardsToList(people , nameOfPeople , \"Person\");\n addCardsToList(location , nameOfLocation , \"Location\");\n addCardsToList(weapons , nameOfWeapons , \"Weapon\");\n\n // gets user input to get the number of player he wants to play with\n Scanner scan = new Scanner(System.in);\n System.out.println(\"New Game Starts...\");\n System.out.println(\"How many players you want to play with : \");\n int compPlayers = -1;\n while(compPlayers < 1) {\n try {\n compPlayers = Integer.parseInt(scan.nextLine());\n } catch (NumberFormatException ne) {\n System.out.println(\"Enter a valid Integer Value !\");\n } // Handles all the exception\n if(compPlayers < 1)\n System.out.println(\"Enter the value greater than 0 !\");\n }\n\n //add player to the list\n IPlayer newPlayer = new Human();\n players.add(newPlayer);\n\n for(int i = 1 ; i <= compPlayers ; i++)\n {\n IPlayer computerPlayer = new Computer();\n players.add(computerPlayer);\n }\n\n //Initialise the TheModel class\n TheModel simulator = new TheModel(people , location , weapons , players);\n\n simulator.startGame(); // start the game\n simulator.gamePlay(); // plays the game\n\n }", "private List<Boat> playStateBoats() {\n\t\tList<Boat> output = new ArrayList<>();\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tBoat boat = this.boats.get(generator.nextInt(this.boats.size() - 1));\n\t\t\toutput.add(boat);\n\t\t\tthis.boats.remove(boat);\n\t\t}\n\t\treturn output;\n\t}", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "public static void main(String[] args) {\nArrayList<PlayingCard>deck=new ArrayList();\r\n\r\nint count=0;\r\n\r\nfor(int suit=1;suit<=4;suit++) {\r\n\tfor(int value=1;value<=13;value++) {\r\n\t\tPlayingCard pc=new PlayingCard(value,suit);\r\n\t\tdeck.add(pc);\r\n\t\tcount++;\r\n\t}\r\n}\r\n\r\nfor(PlayingCard pc:deck) {\r\n\tSystem.out.println(pc);\r\n}\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t}", "public static void hunt(ArrayList<Player> playerList){\n Random r = new Random();\n for (int i = 0; i < playerList.size();i++){\n int eggNum = r.nextInt(11);\n for(int e = 0; e < eggNum; e++){\n Egg egg = new Egg();\n playerList.get(i).foundEgg(egg);\n }\n }\n }", "@Override\n public String getChosenHorse() {\n return chosenHorse.getName();\n }", "public void eat(ArrayList<Fish> list) {\n\t\tSystem.out.println(\">>>>>\"+list.size());\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t// ¾ØÐÎÏཻ¾ÍÅжÏsize\n\t\t\tFish fish1 = this;\n\t\t\tFish fish2 = list.get(i);\n\t\t\tif (fish1 != fish2\n\t\t\t\t\t&& ((fish1.x >= fish2.x && fish1.x <= fish2.x + fish2.size && fish1.y >= fish2.y\n\t\t\t\t\t\t\t&& fish1.y <= fish2.y + fish2.size)\n\t\t\t\t\t|| (fish1.x >= fish2.x && fish1.x <= fish2.x + fish2.size && fish1.y + fish1.size >= fish2.y\n\t\t\t\t\t\t\t&& fish1.y + fish1.size <= fish2.y + fish2.size)\n\t\t\t\t\t|| (fish1.x + fish1.size >= fish2.x && fish1.x + fish1.size <= fish2.x + fish2.size\n\t\t\t\t\t\t\t&& fish1.y >= fish2.y && fish1.y <= fish2.y + fish2.size)\n\t\t\t\t\t|| (fish1.x + fish1.size >= fish2.x && fish1.x + fish1.size <= fish2.x + fish2.size\n\t\t\t\t\t\t\t&& fish1.y + fish1.size >= fish2.y && fish1.y + fish1.size <= fish2.y + fish2.size))) {\n\n\t\t\t\tif (fish1.size > fish2.size) {\n\t\t\t\t\tfish1.size += fish2.size / 4;\n\t\t\t\t\tfish2.size = 0;\n\t\t\t\t\t//musiceat.playEatMusic();\n\t\t\t\t} else if (fish1.size < fish2.size) {\n\t\t\t\t\tfish2.size += fish1.size / 4;\n\t\t\t\t\tfish1.size = 0;\n\t\t\t\t\t //musiceat.playEatMusic();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Sharks() {\n sharks = new ArrayList<Shark>(); // Initialize the ArrayList\n }", "public BowlingGame(List<BowlingPlayer> bowlingPlayers){\n _bowlingPlayers = bowlingPlayers;\n }", "public PlayStation4Game() \n\t{\n\t\t// TODO Auto-generated constructor stub\n\t\tsuper();\n\t\tgameTrophies = new ArrayList<PlayStationTrophy>();\n\t}", "Horse getHorse(long id);", "public static ArrayList<Player> getWinners(){return winners;}", "public Human (){\r\n\t\tArrayList <Choice> list = new ArrayList <Choice> ();\r\n\t\tlist.add(Choice.ROCK);\r\n\t\tlist.add(Choice.PAPER);\r\n\t\tlist.add(Choice.SCISSORS);\r\n\t\tthis.lst=list;\r\n\t}", "public Player(){\r\n cards = new ArrayList<String>();\r\n indexes = new ArrayList<Integer>();\r\n }", "public Hand(){\n cards = new ArrayList<Card>();\n }", "protected void treatSpeakers()\n\t{\n\t\tint nHP = (Integer) results[0];\n\t\tdouble Xdist = (Double)results[1];\n\t\tdouble Ydist = (Double)results[2];\n\t\tdouble shift = (Double)results[3];\n\t\tfloat height = (Float) results[4];\n\t\tint numHP1 = (Integer) results[5];\n\t\tboolean stereoOrder = (Boolean)results[6];\n\t\tint lastHP = (replace ? 0 : gp.speakers.size()-1);\n\t\tint numHP;\n\t\tint rangees = (nHP / 2);\n\t\tfloat X, Y;\n\t\tif(replace) gp.speakers = new Vector<HoloSpeaker>(nHP);\n\t\tnumHP1 = (evenp(nHP) ? numHP1 : 1 + numHP1);\n\t\t// Creation des HPs en fonction de ces parametres\n\t\tfor (int i = 1; i <= rangees; i++)\n\t\t\t{\n\t\t\t\t// on part du haut a droite, on descend puis on remonte\n\t\t\t\t\n\t\t\t\tX = (float) (-Xdist);\n\t\t\t\tY = (float) (shift + (Ydist * (rangees - 1) * 0.5) - (Ydist * (i - 1)));\n\t\t\t\tif(stereoOrder)\n\t\t\t\t\tnumHP = numHP1+(i-1)*2;\n\t\t\t\telse\n\t\t\t\t\tnumHP = (numHP1 + rangees + rangees - i) % nHP + 1;\n\t\t\t\tgp.speakers.add(new HoloSpeaker(X, Y, height, numHP+lastHP,-1));\n\t\t\t\t\n\t\t\t\tX = (float) (Xdist);\n\t\t\t\tY = (float) (shift + (Ydist * (rangees - 1) * 0.5) - (Ydist * (i - 1)));\n\t\t\t\tif(stereoOrder)\n\t\t\t\t\tnumHP = numHP1+(i-1)*2+1;\n\t\t\t\telse\n\t\t\t\t\tnumHP = (numHP1 + i - 1) % nHP + 1;\n\t\t\t\tgp.speakers.add(new HoloSpeaker(X, Y, height, numHP+lastHP,-1));\n\t\t\t\tinc();\n\t\t\t}\n\n\t\t\tif (!evenp(nHP))\n\t\t\t{\n\t\t\tX = 0;\n\t\t\tY = (float) (shift + (Ydist * (rangees - 1) * 0.5));\n\t\t\tnumHP = ((numHP1 - 1) % nHP) + 1;\n\t\t\tgp.speakers.add(new HoloSpeaker(X, Y, height, numHP+lastHP,-1));\n\t\t}\n\t}", "public List<Piece> whitePieces();", "private ArrayList<Slime> getSlimes(){\n\t\treturn slimes;\n\t}", "private void initHorseAndHome() {\n\t\thorses=new Horse[48];\n\t\thomes=new AnchorPane[4];\n\t\thomes[0]=h1;\n\t\thomes[1]=h2;\n\t\thomes[2]=h3;\n\t\thomes[3]=h4;\n\t}", "public List<Piece> blackPieces();", "@Override\n public String addHorse(Observer... horses) {\n for (Observer horse : horses) {\n mounts.add(horse);\n }\n return (Answer.HORSES.toString(2));\n }", "private void listGames(){\n\n }", "public ArrayList<ArrayList<Dog>> getVetSchedule() {\n\t\t\tint initialCapacity = 10;\r\n\t\t\tArrayList<ArrayList<Dog>> list = new ArrayList<ArrayList<Dog>>(initialCapacity); //list to put in lists of dogs\r\n\t\t\t//intialize ArrayList with size ArrayList\r\n\t\t\tlist.add(new ArrayList<Dog>());\r\n\t\t\t/*for(int i=0; i<=10; i++){\r\n\t\t\t\tlist.add(new ArrayList<Dog>());\r\n\t\t\t}\r\n\t\t\t*/\r\n\t\t\tDogShelterIterator iterator = new DogShelterIterator();\r\n\t\t\twhile(iterator.hasNext()){\r\n\t\t\t\tDog nextDog = iterator.next();\r\n\t\t\t\tint index = nextDog.getDaysToNextVetAppointment()/7;\r\n\t\t\t\tif(index < list.size())list.get(index).add(nextDog);\r\n\t\t\t\telse{\r\n\t\t\t\t\t//index out of range --> create larger list\r\n\t\t\t\t\tArrayList<ArrayList<Dog>> newList = new ArrayList<ArrayList<Dog>>(index+1);\r\n\t\t\t\t\tnewList.addAll(list); //add all lists from the old list\r\n\t\t\t\t\tfor(int i=0; i<(index+1)-list.size(); i++){ //initialize the other half with new ArrayLists\r\n\t\t\t\t\t\tnewList.add(new ArrayList<Dog>());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlist = newList; //update list to the larger newList\r\n\t\t\t\t\tlist.get(index).add(nextDog);\r\n\t\t\t\t}\r\n\t\t\t}\r\n return list;\r\n\t\t}", "@SuppressWarnings(\"ResultOfObjectAllocationIgnored\")\n private String getWinnerList() {\n String list = \"\";\n\n ArrayList<IPlayer> arrlist = sortPlayerAfterPoints();\n\n for (IPlayer i : arrlist) {\n try {\n list += i.getName();\n list += \": \" + i.getPoints() + \"\\n\";\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n\n try {\n if (dialog.getSoundBox().isSelected()) {\n if (iPlayerList.size() > 0) {\n if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.ROT))) {\n new SoundClip(\"red_team_is_the_winner\");\n } else if (playersAgentsMap.get(arrlist.get(0).getName()).get(0).getColor().equals(Color.decode(AgentUtils.BLAU))) {\n new SoundClip(\"blue_team_is_the_winner\");\n } else {\n new SoundClip(\"Flawless_victory\");\n }\n } else {\n new SoundClip(\"players_left\");\n }\n }\n } catch (NumberFormatException | RemoteException e) {\n e.printStackTrace();\n }\n\n return list;\n }", "public static Lista getLista(String hilera) {\r\n\t\tif (hilera.equals(\"basica\")) {\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tListaSimple<Enemigo> listaEnemigosBasica = new ListaSimple<Enemigo>();\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tlistaEnemigosBasica.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\txPos += 75;\r\n\t\t\t\tcont++;\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosBasica;\r\n\r\n\t\t} else if (hilera.equals(\"claseA\")) {\r\n\t\t\tListaSimple<Enemigo> listaEnemigosClaseA = new ListaSimple<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 1), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseA.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseA;\r\n\t\t} else if (hilera.equals(\"claseB\")) {\r\n\t\t\tListaDoble<Enemigo> listaEnemigosClaseB = new ListaDoble<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tint x = (int) (Math.random() * 4 + 1);\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, x, \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseB.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseB;\r\n\t\t} else if (hilera.equals(\"claseC\")) {\r\n\t\t\tListaCircular<Enemigo> listaEnemigosClaseC = new ListaCircular<Enemigo>();\r\n\t\t\tint cont = 0;\r\n\t\t\tint xPos = 40;\r\n\t\t\tint yPos = 475;\r\n\t\t\tint random = (int) (Math.random() * 10);\r\n\t\t\twhile (cont < 10) {\r\n\t\t\t\tif (cont == random) {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(\r\n\t\t\t\t\t\t\tnew Enemigo(xPos, yPos, (int) (Math.random() * 4 + 2), \"boss2.png\", \"boss\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlistaEnemigosClaseC.agregarAlFinal(new Enemigo(xPos, yPos, 1, \"enemySprite.png\", \"enemy\"));\r\n\t\t\t\t\tcont++;\r\n\t\t\t\t\txPos += 75;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn listaEnemigosClaseC;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public static void main(String args[]){\n Random random = new Random(); //used to pick a random object from the list\n Board gameBoard = new Board();\n gameBoard.populateBoard(); // populates the board with a bunch of squares\n Player player = new Player(\"John\"); // used to keep track of the players status in the game\n \n Scanner keyboard = new Scanner(System.in);\n\n //loop will run forever unless the user presses the W key\n while(true){\n\n ArrayList<Square> squares = gameBoard.RandomizeList(gameBoard.getList()); //returns a random arraylist from the gameboard\n \n //prints all elements of the random list\n for (Square square : squares){\n System.out.println(square.getTitle());\n }\n //user prompt \n System.out.println(\"Press any key to spin and W to exit\");\n String input = keyboard.nextLine();\n\n //adds the award to the players list of awards\n Square newAward = squares.get(random.nextInt(squares.size()));\n player.addAward(newAward);\n \n System.out.println(\"\\nYour reward: \" +newAward.getTitle()+\"\\n\\n\\n\");\n\n \n \n \n if(input.equalsIgnoreCase(\"w\")){\n break;\n }\n\n \n }\n \n //prints the player's awards to the screen\n \n System.out.println(\"\\n\\n\\nYour awards: \");\n for (Square square : player.getAwards()){\n System.out.println(square.getTitle());\n } \n }", "public static void recap(ArrayList<Player> playerList){\n for (int i = 0; i < playerList.size();i++){\n System.out.println(\"Player \" + i + \" found \" + playerList.get(i).getNumEggs() + \" eggs\");\n playerList.get(i).printBasket();\n System.out.println();\n } \n }", "private void InitializeHumanHand(){\n for(int i = 0; i < 7; i++){\n //Add to the human hand\n handHuman.add(deck.get(i));\n }\n\n for(int i = 6; i >= 0; i--){\n deck.remove(i);\n }\n\n /*\n System.out.println(\"HUMAN\");\n for(int i = 0; i < handHuman.size(); i++){\n System.out.println(handHuman.get(i));\n }\n\n System.out.println(\"DECK AFTER REMOVE\");\n for(int i = 0; i < deck.size(); i++){\n System.out.println(deck.get(i));\n }\n */\n }", "public List<Player> playMatch(List<Player> arrayListPlayers) {\n\n //instantiate Lists for winners / losers\n List<Player> winners = new ArrayList<>();\n List<Player> losers = new ArrayList<>();\n\n //Pairing up - each Player with the next Player, iterator runs for every 2\n for (int i = 0; i < arrayListPlayers.size(); i += 2) {\n\n System.out.println(arrayListPlayers.get(i).printName() + \" (\" + arrayListPlayers.get(i).score + \") vs \"\n + arrayListPlayers.get((i + 1) % arrayListPlayers.size()).printName() + \" (\" + arrayListPlayers.get(i + 1).score + \")\");\n\n //Extra layer of random scoring, so calculateScore is run with each round\n //Without this, players get an initial score that stay with them through the tournament\n arrayListPlayers.get(i).calculateScore();\n\n //Use score to decipher winner, if (i) score is greater than (i +1) score then add (i) to winners List\n if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n //And if (i) score is less than (i + 1) score add (i + 1) to winners List\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i + 1));\n\n\n //extra if statement to handle draws, if score is equal add player [0] to winners List, could randomise this?\n } else if\n (arrayListPlayers.get(i).score == arrayListPlayers.get(i + 1).score) {\n winners.add(arrayListPlayers.get(i));\n }\n\n /**\n * Additional if statements for adding Player objects to new List 'losers'\n */\n //Create List of losers (not output)\n if (arrayListPlayers.get(i).score < arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i));\n losers.add(arrayListPlayers.get(i));\n\n } else if (arrayListPlayers.get(i).score > arrayListPlayers.get(i + 1).score) {\n winners.remove(arrayListPlayers.get(i + 1));\n losers.add(arrayListPlayers.get(i + 1));\n }\n }\n\n /**\n * This section of the playRound method outputs the list of winners for each round\n * A sleep function was added in attempt to slow down the output\n */\n\n System.out.println(\"\\n-x-x-x-x-x-x-x W I N N E R S x-x-x-x-x-x-x-\\n\");\n //Loop through winners and attach names\n try {\n sleep(10);\n for (int i = 0; i < winners.size(); i++) {\n //SysOut to console the winners\n System.out.println(winners.get(i).printName() + \" won with \" + winners.get(i).score + \" points\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //Execution completed return winners List<>\n return winners;\n\n }", "public Hand() {\n downStack = new ArrayList<>();\n cardsInPlayStack = new Stack<>();\n }", "public Hand()\n {\n cards = new ArrayList<Card>();\n }", "public ArrayList darEscenarios( )\n {\n return escenarios;\n }", "public Pile(){\n pile = new ArrayList<Card>();\n }", "public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }", "public List<Colour> getPlayerList();", "@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}", "public List<Player> getDisplayList(){\n\t\tList<Player> dis = new ArrayList<>(1);\n\t\tif(!playersFinished.isEmpty()){\n\t\t\tdis.add(playersFinished.get(tempNumber -1));//last to finish\n\t\t}\n\t\treturn dis;\n\t}", "public void startUp() { // method that runs the whole program\n\t\tJet[] defaultList = createDefaultListOfJets(); \n\t\thangar = new Hangar(defaultList); // hangar object instantiated with new Jet array placed inside\n\n\t\twhile (true) { // while loop instead of a switch... I don't like switches for some reason\n\t\t\tSystem.out.println(\"***Welcome to the JET FLEET***\");\n\t\t\tSystem.out.println(\"**********************************\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Please choose and enter one of the options below:\");\n\t\t\tSystem.out.println(\"1. List of current JETS in the FLEET\");\n\t\t\tSystem.out.println(\"2. View the fastest JET in the FLEET\");\n\t\t\tSystem.out.println(\"3. View the longest range JET in the FLEET\");\n\t\t\tSystem.out.println(\"4. Add a new JET to the FLEET\");\n\t\t\tSystem.out.println(\"5. Quit\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"**********************************\");\n\t\t\tSystem.out.println(\"**********************************\");\n\n\t\t\tint option = kb.nextInt(); // Choose between all 5 options\n\n\t\t\tif (option == 1) {\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t\tSystem.out.println(\"***Current JET FLEET***\");\n\t\t\t\tdisplayJets();\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t} else if (option == 2) {\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t\tSystem.out.println(\"***Fastest JET in JET FLEET***\");\n\t\t\t\tJet fastest = hangar.listFastestJetInFleet();\n\t\t\t\tSystem.out.println(fastest);\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t} else if (option == 3) {\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t\tSystem.out.println(\"***Longest range JET in JET FLEET***\");\n\t\t\t\tJet longestRangeJet = hangar.listLongRangeJetInFleet();\n\t\t\t\tSystem.out.println(longestRangeJet);\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t} else if (option == 4) {\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t\taddNewJet();\n\t\t\t\tdisplayJets();\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t} else if (option == 5) {\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t\tSystem.out.println(\"You have successfully quit the program...\");\n\t\t\t\tSystem.out.println(\"======================================\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tkb.close();\n\t}", "ArrayList<Habit> getHabits();", "private List<WordScore> liveList(List<WordScore> gridList, String s) {\n s = s.toLowerCase();\n List<WordScore> liveList = new ArrayList<>();\n for(WordScore ws : gridList){\n int nochars = s.length() - s.replaceAll(ws.getWord(), \"\").length();\n liveList.add(new WordScore(ws.getWord(), ws.getScore()-nochars));\n }\n return liveList;\n }", "private List<Position> getHalos() {\n\t\t\tList<Position> halos = new ArrayList<Position>();\n\t\t\tGamePiece selectedPiece = game.getSelectedPiece();\n\t\t\tif (selectedPiece != null) {\n\t\t\t\thalos.add(selectedPiece.getPosition());\n\t\t\t\thalos.addAll(selectedPiece.getLegalMoves());\n\t\t\t}\n\t\t\treturn halos;\n\t\t}", "public SafetyPile(){\r\n this.cards = new ArrayList<Card>();\r\n }", "public static void cardFlowCompute(ArrayList<String> arrayList,int player){\n for(int i=0;i<player;i++){\n System.out.println(\"player have\"+i+1+\"to the below cards\");\n for(int j=0;j<9;j++){\n System.out.println(arrayList.get(i+j*player));\n }\n }\n }", "public War()\n {\n //Create the decks\n dealer = new Deck(); \n dw = new Deck();\n de = new Deck(); \n warPile = new Deck(); \n \n \n fillDeck(); //Add the cards to the dealer's pile \n dealer.shuffle();//shuffle the dealer's deck\n deal(); //deal the piles \n \n }", "private void InitializeDeck(){\n //Spades\n\n deck.add(\"spadesace\");\n deck.add(\"spadesjack\");\n deck.add(\"spadesqueen\");\n deck.add(\"spadesking\");\n deck.add(\"spades2\");\n deck.add(\"spades3\");\n deck.add(\"spades4\");\n deck.add(\"spades5\");\n deck.add(\"spades6\");\n deck.add(\"spades7\");\n deck.add(\"spades8\");\n deck.add(\"spades9\");\n deck.add(\"spades10\");\n\n\n //Diamonds\n deck.add(\"diamondsace\");\n deck.add(\"diamondsjack\");\n deck.add(\"diamondsqueen\");\n deck.add(\"diamondsking\");\n deck.add(\"diamonds2\");\n deck.add(\"diamonds3\");\n deck.add(\"diamonds4\");\n deck.add(\"diamonds5\");\n deck.add(\"diamonds6\");\n deck.add(\"diamonds7\");\n deck.add(\"diamonds8\");\n deck.add(\"diamonds9\");\n deck.add(\"diamonds10\");\n\n //Clubs\n deck.add(\"clubsace\");\n deck.add(\"clubsjack\");\n deck.add(\"clubsqueen\");\n deck.add(\"clubsking\");\n deck.add(\"clubs2\");\n deck.add(\"clubs3\");\n deck.add(\"clubs4\");\n deck.add(\"clubs5\");\n deck.add(\"clubs6\");\n deck.add(\"clubs7\");\n deck.add(\"clubs8\");\n deck.add(\"clubs9\");\n deck.add(\"clubs10\");\n\n //Hearts\n deck.add(\"heartsace\");\n deck.add(\"heartsjack\");\n deck.add(\"heartsqueen\");\n deck.add(\"heartsking\");\n deck.add(\"hearts2\");\n deck.add(\"hearts3\");\n deck.add(\"hearts4\");\n deck.add(\"hearts5\");\n deck.add(\"hearts6\");\n deck.add(\"hearts7\");\n deck.add(\"hearts8\");\n deck.add(\"hearts9\");\n deck.add(\"hearts10\");\n\n Collections.shuffle(deck);\n\n for(int i = 0; i < deck.size(); i++){\n System.out.println(deck.get(i));\n }\n }", "public Player()\n {\n playerItem = new ArrayList();\n }", "public static void horse() {\n System.out.println(\"There was an old woman who swallowed a horse,\");\n System.out.println(\"She died of course.\");\n }", "public Deck()\n {\n deck = new ArrayList<>();\n }", "private void setupPlayers() {\n\t\tuserData=(UserData) Main.currentStage.getUserData();\n\t\tnumberPlayers=userData.getNumberPlayers();\n\t\tplayerNames=userData.getPlayerNames();\n\t\tcurrentPlayer=userData.getFirstPlayer();\n\t\tlb_currentplayername.setText(playerNames[currentPlayer]);\n\t\tplayers =new Player[4];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif(i<numberPlayers) {\n\t\t\t\tplayers[i]=new Player(playerNames[i], false, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//waiting for player choose what way to go then handler that choice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayers[i]=new Player(playerNames[i], true, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//randomchoice and next player rolldice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\tswitch (i) {\n\t\t\t\tcase 0:{\n\t\t\t\t\tplayers[i].setHorseColor(yh0, yh1, yh2, yh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tplayers[i].setHorseColor(bh0, bh1, bh2, bh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tplayers[i].setHorseColor(rh0, rh1, rh2, rh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tplayers[i].setHorseColor(gh0, gh1, gh2, gh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "ArrayList<IPlayer> buildPlayerList();", "public War(String name) {\n // contructs the parent class\n super(name);\n // initialize the game deck\n gameDeck = new GeneralDeck(52);\n // create array of players\n players = new ArrayList<>();\n \n // creates a new player\n System.out.print(\"Enter player name: \");\n player = new WarPlayer(in.nextLine());\n \n // adds the player and the cpu to the players ArrayList\n players.add(cpu);\n players.add(player);\n // adds the players to the list of players\n super.setPlayers(players);\n \n // populates the gameDeck with PokerCards\n System.out.println(\"Initializing game deck\");\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n Card card = new PokerCard(j, i);\n gameDeck.addCard(card);\n }\n\n }\n \n //shuffles the game deck\n gameDeck.shuffle();\n System.out.println(\"Finished initializing game deck\");\n System.out.println(\"Initializing Player decks\");\n \n // adding cards to both the player and the cpu decks\n player.getDeck().addCards(gameDeck.showCards().subList(0, \n gameDeck.getSize() / 2));\n\n cpu.getDeck().addCards(gameDeck.showCards().subList(gameDeck.getSize() \n / 2, gameDeck.getSize()));\n\n gameDeck.clearDeck();\n System.out.println(\"Finished initializing Player decks\");\n \n //prompts the user to start the game with enter\n System.out.println(\"Press enter to start the game\");\n in.nextLine();\n }", "public void start() {\n clear();\n // Assigning chess pieces to players.\n whitePieces.add(new Piece(Owner.WHITE, Who.KING, Rank.R1, File.E));\n whitePieces.add(new Piece(Owner.WHITE, Who.QUEEN, Rank.R1, File.D));\n whitePieces.add(new Piece(Owner.WHITE, Who.ROOK, Rank.R1, File.A));\n whitePieces.add(new Piece(Owner.WHITE, Who.ROOK, Rank.R1, File.H));\n whitePieces.add(new Piece(Owner.WHITE, Who.BISHOP, Rank.R1, File.C));\n whitePieces.add(new Piece(Owner.WHITE, Who.BISHOP, Rank.R1, File.F));\n whitePieces.add(new Piece(Owner.WHITE, Who.KNIGHT, Rank.R1, File.B));\n whitePieces.add(new Piece(Owner.WHITE, Who.KNIGHT, Rank.R1, File.G));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.A));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.B));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.C));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.D));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.E));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.F));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.G));\n whitePieces.add(new Piece(Owner.WHITE, Who.PAWN, Rank.R2, File.H));\n\n for (Piece p : whitePieces) {\n board[p.row.ordinal()][p.col.ordinal()] = p;\n }\n\n blackPieces.add(new Piece(Owner.BLACK, Who.KING, Rank.R8, File.E));\n blackPieces.add(new Piece(Owner.BLACK, Who.QUEEN, Rank.R8, File.D));\n blackPieces.add(new Piece(Owner.BLACK, Who.ROOK, Rank.R8, File.A));\n blackPieces.add(new Piece(Owner.BLACK, Who.ROOK, Rank.R8, File.H));\n blackPieces.add(new Piece(Owner.BLACK, Who.BISHOP, Rank.R8, File.C));\n blackPieces.add(new Piece(Owner.BLACK, Who.BISHOP, Rank.R8, File.F));\n blackPieces.add(new Piece(Owner.BLACK, Who.KNIGHT, Rank.R8, File.B));\n blackPieces.add(new Piece(Owner.BLACK, Who.KNIGHT, Rank.R8, File.G));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.A));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.B));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.C));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.D));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.E));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.F));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.G));\n blackPieces.add(new Piece(Owner.BLACK, Who.PAWN, Rank.R7, File.H));\n\n for (Piece p : blackPieces) {\n board[p.row.ordinal()][p.col.ordinal()] = p;\n }\n\n whoseTurn = Owner.WHITE;\n canCastle = 15;\n passer = null;\n movesDone = lastEatMove = 0;\n }", "public static ArrayList<Symbol> spin(){\n Symbol s1=new Symbol(6,new Image(\"Images/bell.png\")); //bell payout credit is 6\n Symbol s2=new Symbol(2,new Image(\"Images/cherry.png\")); //cherry payout credit is 2\n Symbol s3=new Symbol(3,new Image(\"Images/lemon.png\")); //lemon payout credit is 3\n Symbol s4=new Symbol(4,new Image(\"Images/plum.png\")); //plum payout credit is 4\n Symbol s5=new Symbol(7,new Image(\"Images/redseven.png\")); //seven payout credit is 7\n Symbol s6=new Symbol(5,new Image(\"Images/watermelon.png\"));//watermelon payout credit is 5\n\n //add symbols to the arraylist by adding the objects\n symbolList.add(s1);\n symbolList.add(s2);\n symbolList.add(s3);\n symbolList.add(s4);\n symbolList.add(s5);\n symbolList.add(s6);\n\n //shuffle the arraylist to get random symbols/images\n Collections.shuffle(symbolList);\n return symbolList;\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tArrayList<String> testArray = new ArrayList<String>();\n\t\ttestArray.add(\"Zero\");\n\t\ttestArray.add(\"One\");\n\t\ttestArray.add(\"Two\");\n\t\t\n\t\ttestArray.remove(1);\n\t\tSystem.out.println(testArray);\n\t\t\n//\t\tTest test = new Test();\n//\t\tRaceTrackMachine machine = new RaceTrackMachine();\n//\t\t\n//\t\t\n//\t\tmachine.setWinner(7);\n//\t\tSystem.out.println(machine.getHorses().toString());\n\n//\t\ttest.setup();\n//\t\t\n//\t\tint amount = 3000; System.out.print(\"amount: \" + amount);\n//\t\tif (test.totalAmount() >= amount) test.calculate(amount); else System.out.println(\"No sufficient funds\");\n//\t\ttest.display();\n//\n//\t\tamount = 250; System.out.print(\"amount: \" + amount);\n//\t\tif (test.totalAmount() >= amount) test.calculate(amount); else System.out.println(\"No sufficient funds\");\n//\t\ttest.display();\n//\t\t\n//\t\tamount = 777; System.out.print(\"amount: \" + amount);\n//\t\tif (test.totalAmount() >= amount) test.calculate(amount); else System.out.println(\"No sufficient funds\");\n//\t\ttest.display();\n//\t\t\n//\t\ttest.inventory.get(4).setInventory(10);\n//\t\tamount = 668; System.out.print(\"amount: \" + amount);\n//\t\tif (test.totalAmount() >= amount) test.calculate(amount); else System.out.println(\"No sufficient funds\");\n//\t\ttest.display();\n//\t\t\n//\t\tamount = 26686; System.out.print(\"amount: \" + amount);\n//\t\tif (test.totalAmount() >= amount) test.calculate(amount); else System.out.println(\"No sufficient funds\");\n//\t\ttest.display();\n\t\t\n\t}", "public void displayGame()\n { \n System.out.println(\"\\n-------------------------------------------\\n\");\n for(int i=3;i>=0;i--)\n {\n if(foundationPile[i].isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(foundationPile[i].peek());\n }\n System.out.println();\n for(int i=6;i>=0;i--)\n {\n for(int j=0;j<tableauHidden[i].size();j++)\n System.out.print(\"X\");\n System.out.println(tableauVisible[i]);\n }\n System.out.println();\n if(waste.isEmpty())\n System.out.println(\"[ ]\");\n else System.out.println(waste.peek());\n if(deck.isEmpty())\n System.out.println(\"[O]\");\n else System.out.println(\"[X]\");\n }", "private void InitializeComputerHand(){\n for(int i = 0; i < 7; i++){\n //Add to the computer\n handComputer.add(deck.get(i));\n }\n\n for(int i = 6; i >= 0; i--){\n deck.remove(i);\n }\n }", "public ArrayList<LootOutListItem> getHoard() {\n return hoard;\n }", "public TrainCardDeck(){\n this.cardDeck = new ArrayList<>();\n \n //110 Train Car cards (12 each of Box-PINK, Passenger-WHITE, Tanker-BLUE, Reefer-YELLOW, \n //Freight-ORANGE, Hopper-BLACK, Coal-RED, Caboose-GREEN, plus 14 Locomotives-RAINBOW)\n \n for(int i = 1 ; i <= 12 ; i++){\n for(VALUE color : VALUE.values()){\n cardDeck.add(new TrainCard(color));\n }\n }\n cardDeck.add(new TrainCard(RAINBOW));\n cardDeck.add(new TrainCard(RAINBOW));\n }", "public Caldean datingScene(Caldean theBachelor){\n\n ArrayList<Double> compChart = new ArrayList();\n\n ArrayList<Caldean> theSuitors;\n if(theBachelor.isFemale())\n theSuitors = eligibleDuises;\n else\n theSuitors = eligibleDuas;\n\n if(theSuitors.size()!=0){\n\n System.out.print(\"courting\");\n\n Iterator<Caldean> paradise = theSuitors.iterator();\n\n rankWeightSum= 0;\n ageWeightSum = 0;\n\n while(paradise.hasNext())\n {\n howManyFishInThePond(theBachelor, paradise.next());\n }\n\n paradise = theSuitors.iterator();\n\n while(paradise.hasNext()){\n compChart.add(butAreYouAGemini(theBachelor, paradise.next()));\n }\n\n double myDesire = fate.nextDouble();\n double myDuty = 0;\n int andTheLuckyWinnerIs = 0;\n\n\n for(int i = 0; myDuty>myDesire; i++){\n myDuty = myDuty + compChart.get(i);\n andTheLuckyWinnerIs = i;\n }\n\n return theSuitors.get(andTheLuckyWinnerIs);\n}\nelse\n return null;\n}", "public void mixSalad() {\n Collections.shuffle(list);\n System.out.println(\"\\nSalad is ready.\");\n }", "public List<Pair> GetSnake() {\n return snake;\n }", "public CaseZero(List<Player> listPlayer){\n\t\tthis.index = 0;\n\t\tthis.listePlayer = listPlayer;\n\t}", "List genCaps() {\n\tList ret = new ArrayList();\n\n\tif (side == LIGHT) {\n\tlong moves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t& pieceBits[DARK];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7)\n\t& pieceBits[DARK];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t} else {\n\tlong moves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t}\n\tlong pieces = pieceBits[side] ^ pawnBits[side];\n\twhile (pieces != 0) {\n\tint p = getLBit(pieces);\n\tfor (int j = 0; j < offsets[piece[p]]; ++j)\n\tfor (int n = p;;) {\n\tn = mailbox[mailbox64[n] + offset[piece[p]][j]];\n\tif (n == -1)\n\tbreak;\n\tif (color[n] != EMPTY) {\n\tif (color[n] == xside)\n\tgenPush(ret, p, n, 1);\n\tbreak;\n\t}\n\tif (!slide[piece[p]])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\tif (ep != -1) {\n\tif (side == LIGHT) {\n\tif (COL(ep) != 0 && color[ep + 7] == LIGHT\n\t&& piece[ep + 7] == PAWN)\n\tgenPush(ret, ep + 7, ep, 21);\n\tif (COL(ep) != 7 && color[ep + 9] == LIGHT\n\t&& piece[ep + 9] == PAWN)\n\tgenPush(ret, ep + 9, ep, 21);\n\t} else {\n\tif (COL(ep) != 0 && color[ep - 9] == DARK\n\t&& piece[ep - 9] == PAWN)\n\tgenPush(ret, ep - 9, ep, 21);\n\tif (COL(ep) != 7 && color[ep - 7] == DARK\n\t&& piece[ep - 7] == PAWN)\n\tgenPush(ret, ep - 7, ep, 21);\n\t}\n\t}\n\treturn ret;\n\t}", "@Override\n public String setChosenHorse(int i) {\n chosenHorse = mounts.get(i - 1);\n return chosenHorse.getName();\n }", "public static List<List<String>> turnHands(List<List<String>> flopHand){\r\n\t\tList<List<String>> turnHands = new ArrayList<List<String>>();\r\n\t\tfor (int i = 0; i < Poker.numberPlayers; i++) {\r\n\t\t\tList<String> playerCards = new ArrayList<String>();\r\n\t\t\tplayerCards.addAll(flopHand.get(i));\r\n\t\t\tplayerCards.add(RunGameLoop.hand.getTurn());\r\n\t\t\tturnHands.add(playerCards);\r\n\t\t}\r\n\t\treturn turnHands;\r\n\t}", "public void battleTrainer(PokemonTrainer otherTrainer)\n {\n ArrayList<AbstractPokemon> otherTrainersPokemon = otherTrainer.getPokemon();\n AbstractPokemon myPokemon = caughtPokemon.get(0);\n AbstractPokemon otherPokemon = otherTrainersPokemon.get(0);\n while(caughtPokemon.size() > 0 && otherTrainersPokemon.size() > 0)\n {\n System.out.println(toString() + \" sent out \" + caughtPokemon.get(0).toString() + \".\");\n System.out.println(otherTrainer.toString() + \" sent out \" + otherTrainersPokemon.get(0).toString() + \".\");\n System.out.println(otherTrainer.toString() + \"'s \" + otherPokemon.toString() + \" has \" + otherPokemon.getHealth() + \" HP.\");\n System.out.println(toString() + \"'s \" + myPokemon.toString() + \" has \" + myPokemon.getHealth() + \" HP.\");\n while (otherPokemon.getHealth() > 0 && myPokemon.getHealth() > 0)\n {\n otherPokemon.takeDamage(myPokemon);\n if(otherPokemon.getHealth() < 0)\n otherPokemon.setHealth(0);\n System.out.println(otherTrainer.toString() + \"'s \" + otherPokemon.toString() + \" has \" + otherPokemon.getHealth() + \" HP.\");\n if(otherPokemon.getHealth() > 0)\n {\n myPokemon.takeDamage(otherPokemon);\n if(myPokemon.getHealth() < 0)\n myPokemon.setHealth(0);\n System.out.println(toString() + \"'s \" + myPokemon.toString() + \" has \" + myPokemon.getHealth() + \" HP.\");\n }\n }\n if (myPokemon.getHealth() <= 0)\n {\n System.out.println(toString() + \"'s \" + myPokemon.toString() + \" has fainted!\");\n caughtPokemon.remove(0);\n }\n else\n {\n System.out.println(otherTrainer.toString() + \"'s \" +otherPokemon.toString() + \" has fainted!\");\n otherTrainersPokemon.remove(0);\n }\n if (caughtPokemon.size() > 0)\n {\n System.out.println(toString() + \" sent out \" + caughtPokemon.get(0).toString() + \".\");\n myPokemon = caughtPokemon.get(0);\n }\n if (otherTrainersPokemon.size() > 0)\n {\n System.out.println(otherTrainer.toString() + \" sent out \" + otherTrainersPokemon.get(0).toString() + \".\");\n otherPokemon = otherTrainersPokemon.get(0);\n }\n }\n if (otherTrainersPokemon.size() == 0)\n {\n System.out.println(otherTrainer.toString() + \" has blacked out! \" + otherTrainer.toString() + \" has appeared at a PokeCenter.\");\n otherTrainer.removeSelfFromGrid();\n myPokemon.setHealth(20);\n }\n else\n {\n System.out.println(toString() + \" has blacked out! \" + toString() + \" has appeared at a PokeCenter.\");\n removeSelfFromGrid();\n }\n System.out.println(\"\");\n }", "public void printHangman(){\n\t\t\r\n\t\tif(wrongList.size()==0){\r\n\t\t\tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\t else if(wrongList.size()==1){\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t else if(wrongList.size()==2){\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t else if(wrongList.size()==3){\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| ---\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t else if(wrongList.size()==4){\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| --- ---\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t else if(wrongList.size()==5){\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| --- ---\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t else if(wrongList.size()==6){\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| --- ---\");\r\n\t\t\tSystem.out.println(\"| | |\");\r\n\t\t\tSystem.out.println(\"| | | \");\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t else if(wrongList.size()==7){\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| --- ---\");\r\n\t\t\tSystem.out.println(\"| | |\");\r\n\t\t\tSystem.out.println(\"| | | \");\r\n\t\t\tSystem.out.println(\"| --\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t else{\r\n\t \tSystem.out.println(\"___________\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| O\");\r\n\t\t\tSystem.out.println(\"| |\");\r\n\t\t\tSystem.out.println(\"| --- ---\");\r\n\t\t\tSystem.out.println(\"| | |\");\r\n\t\t\tSystem.out.println(\"| | | \");\r\n\t\t\tSystem.out.println(\"| -- --\");\r\n\t\t\tSystem.out.println(\"|_________________\");\r\n\t\t\tSystem.out.println(\"\");\r\n\t }\r\n\t}", "private List<Card> setupDeck(){\n List<Card> llist = new LinkedList<Card>();\n String[] faceCards = {\"J\",\"Q\",\"K\",\"A\"};\n String[] suits = {\"spades\",\"clubs\",\"diamonds\",\"hearts\"};\n\n for(int i=2; i<=10; i++){\n for(int j=1; j<=4; j++){\n llist.add(new Card(Integer.toString(i), suits[j-1], j, i));\n }\n }\n for(int k=1; k<=4; k++){\n for(int l=1; l<=4; l++){\n llist.add(new Card(faceCards[k-1],suits[l-1], l, k+10));\n }\n }\n return llist;\n }", "void play() {\n\n ArrayList<Card> cardsInMiddle = new ArrayList<>();\n\n Card[] lastCardsPlayed = new Card[numOfPlayers];\n\n //simulation of each player flipping their next card\n for (int i = 0; i < players.length; i++) {\n lastCardsPlayed[i] = players[i].getNextCard();\n cardsInMiddle.add(lastCardsPlayed[i]);\n\n }\n\n //if there's a tie\n while (tieForCards(lastCardsPlayed)) {\n //check to see if players have enough cards to continue\n //if not, then clear that players hand and game will end\n WarPlayer lessThan3Cards = tryGetPlayerWithLessThanThreeCards();\n if (lessThan3Cards != null) {\n lessThan3Cards.getHand().clear();\n return;\n }\n\n //simulation of flipping 2 extra cards\n for (int i = 0; i < players.length; i++) {\n cardsInMiddle.add(players[i].getNextCard());\n cardsInMiddle.add(players[i].getNextCard());\n\n Card lastCard = players[i].getNextCard();\n cardsInMiddle.add(lastCard);\n lastCardsPlayed[i] = lastCard;\n }\n }\n setLastCardsPlayed(lastCardsPlayed);\n\n //determining who gets all the cards played for the round\n int highestCardIndex = largestCard(lastCardsPlayed);\n players[highestCardIndex].addCards(cardsInMiddle);\n players[highestCardIndex].addPoints(cardsInMiddle.size() / numOfPlayers);\n }", "public void missionlist() {\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tSystem.out.println(\" \" + hTemp.getName());\r\n\t\t}\r\n\t}", "public Player()\r\n {\r\n playerItem = new ArrayList();\r\n }", "private void MembentukListHuruf(){\n for(int i = 0; i < Panjang; i ++){\n Huruf Hrf = new Huruf();\n Hrf.CurrHrf = Kata.charAt(i);\n if(!IsVertikal){\n //horizontal\n Hrf.IdX = StartIdxX;\n Hrf.IdY = StartIdxY+i;\n }else{\n Hrf.IdX = StartIdxX+i;\n Hrf.IdY = StartIdxY;\n }\n // System.out.println(\"iniii \"+Hrf.IdX+\" \"+Hrf.IdY+\" \"+Hrf.CurrHrf+\" \"+NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].AddNoSoal(NoSoal);\n TTS.Kolom[Hrf.IdX][Hrf.IdY].Huruf=Hrf.CurrHrf;\n \n }\n }", "Horse updateHorse(Horse horse);", "@Override\n List<SleepGameItem> eat(List<SleepGameItem> itemList) {\n List<SleepGameItem> eatenItem = new ArrayList<>();\n for (SleepGameItem item : itemList) {\n if (!(item instanceof Wolf)) {\n // check for the distance between wolf and other items\n double distance =\n Math.hypot(Math.abs(item.getX() - this.getX()), Math.abs(item.getY() - this.getY()));\n if (distance <= 50) {\n eatenItem.add(item);\n this.setX(item.getX());\n this.setY(item.getY());\n }\n }\n }\n return eatenItem;\n }", "List<GameCode> getGameCodeList();", "public Model() {\r\n// waiting_games = new ArrayList<>();\r\n// full_games = new ArrayList<>();\r\n games = new ArrayList<>();\r\n }", "Deque<PokerCard> getShuffledHalfDeck();", "public void initHearts(){\n for(int i = 0; i < shipVal.getHealth(); i++){ //initializes the hearts based on the number of health the ship has\n hearts.add(new ImageView(cacheHeart));\n }\n addHearts();\n }", "public ArrayList<Animal> createSwimmers() {\n ArrayList<Animal> swimmers = new ArrayList<>();\n if (getAnimals().size() > 0)\n swimmers = (ArrayList<Animal>) getAnimals().stream()\n .filter(animal -> animal instanceof Swimmer)\n .collect(Collectors.toList());\n return swimmers;\n }", "public ERSBoard(int numPlayers)\n {\n board = new ArrayList<Card>();\n slapOrder = new ArrayList<Integer>();\n players = new ArrayList<Player>();\n starters = new ArrayList<Deck>();\n deck = new Deck(RANKS, SUITS);\n deck.shuffle();\n for (int x = 0; x < numPlayers; x++) {\n starters.add(new Deck());\n }\n int divisions = 52/numPlayers;\n int leftovers = 52 % numPlayers;\n int place = 0;\n for (int x = 0; x < starters.size(); x++) {\n for (int y = place; y < place + divisions; y++) {\n starters.get(x).addCard(deck.deal());\n }\n }\n for (int x = 0; x < numPlayers; x++) {\n players.add(new Player(starters.get(x),x+1));\n }\n \n\n }", "public PlayList() {\n\t\tsongList = new ArrayList<Song>();\n\t}", "public void startGameState(){\n\n ArrayList<Integer> checkeredSpaces = new ArrayList<Integer>(Arrays.asList(1, 3, 5, 7, 8, 10, 12, 14, 17, 19, 21,\n 23, 24, 26, 28, 30, 33, 35, 37, 39, 41, 42, 44, 46, 48,\n 51, 53, 55, 56, 58, 60, 62));\n\n\n\n for(int i =0; i < 63; i++){\n if(!checkeredSpaces.contains(i)){\n //set all black spaces to null on the board\n mCheckerBoard.add(null);\n }\n else if(i < 24){\n //set first three rows to red checkers\n mCheckerBoard.add(new Checker((i/2), true));\n }\n else if(i < 40){\n //set middle two rows to null\n mCheckerBoard.add(null);\n }\n else{\n //set top three row to black checkers\n mCheckerBoard.add(new Checker((i/2), false));\n }\n }\n\n }", "public PlayerServices(){\n playerList = new ArrayList<>();\n }", "public static void main(String args[]){\n ArrayList<String> heroes = new ArrayList<String>();\n heroes.add(\"ironman\");\n heroes.add(\"spider\");\n heroes.add(\"antman\");\n heroes.add(0,\"capt.america\");\n System.out.println(\"My super Hero : \"+heroes.get(0));\n \n }", "public void fileReadGameHistory(String filename)\n {\n \t//ArrayList<GameObject> gameObject = new ArrayList<>();\n\t\tFileReader file = null;\n\t\ttry {\n\t\t\tfile = new FileReader(filename);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(filename);\n\t\tBufferedReader br = new BufferedReader(file);\n\t\tString s = \"\";\n\t\ttry\n\t\t{\n\t\t\twhile((s = br.readLine()) != null )\n\t\t\t{\n\t\t\t\tString[] prop1 = s.split(\"#\");\n\t\t\t\tSystem.out.println(prop1[0] + \" fgdfsgfds \" + prop1[1]);\n\t\t\t\tString indexOfList = prop1[0];\n\t\t\t\tString[] prop2 = prop1[1].split(\",\");\n\t\t\t\tString[] prop3;\n\t\t\t\tString[] prop4 = indexOfList.split(\";\");\n\t\t\t\t//gameObject.add(new GameObject(indexOfList));\n\t\t\t\tcount = count +1;\n\t\t\t\texistCount = existCount + 1;\n\t\t\t\tif (indexOfList.charAt(0) == 's')//when this line is data of a swimming game\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(prop4[0]);\n\t\t\t\t\tgames.add(new Swimming(prop4[1],\"Swimming\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'c')//when this line is data of a cycling game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Cycling(prop4[1],\"Cycling\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'r')//when this line is data of a running game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Running(prop4[1],\"Running\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "@Before\r\n\tpublic void setList() {\r\n\t\tthis.list = new DoubleList();\r\n\t\tfor (int i = 0; i < 15; i++) {\r\n\t\t\tlist.add(new Munitions(i, i + 1, \"iron\"));\r\n\t\t}\r\n\t}", "public ArrayList<PrizeCard> scramble() {\n java.util.Random rand1 = new java.util.Random();\n ArrayList<PrizeCard> scrambled = new ArrayList<PrizeCard>();\n scrambled = prizeCards;\n /* write your code here */\n\n\n\n for (int i = 0; i < 40; i++) {\n if (i % 10 == 0) {\n int rand = rand1.nextInt(39 / 10) * 10;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else if (i % 2 == 0) {\n int rand = rand1.nextInt(39 / 2) * 2;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else {\n int rand = (rand1.nextInt(38 / 2) * 2) + 1;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n }\n }\n\n return scrambled;\n }", "pieces getPiece(int position)\n {\n int j ;\n if(position == whiteHorse1.position && whiteHorse1.alive == true ) return whiteHorse1;\n if(position == whiteHorse2.position && whiteHorse2.alive == true) return whiteHorse2;\n if(position == whiteQueen.position && whiteQueen.alive == true ) return whiteQueen;\n if(position == whiteKing.position && whiteKing.alive == true) return whiteKing;\n if(position == whiteCastle1.position && whiteCastle1.alive == true ) return whiteCastle1;\n if(position == whiteCastle2.position && whiteCastle2.alive == true) return whiteCastle2;\n if(position == whiteBishop1.position && whiteBishop1.alive == true) return whiteBishop1;\n if(position == whiteBishop2.position && whiteBishop2.alive == true) return whiteBishop2;\n j=0;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];j++;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];j++;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];j++;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];j++;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];j++;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];j++;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];j++;\n if(position == whitePawn[j].position && whitePawn[j].alive == true) return whitePawn[j];\n \n \n \n if(position == blackHorse1.position && blackHorse1.alive == true ) return blackHorse1;\n if(position == blackHorse2.position && blackHorse2.alive == true) return blackHorse2;\n if(position == blackQueen.position && blackQueen.alive == true ) return blackQueen;\n if(position == blackKing.position && blackKing.alive == true) return blackKing;\n if(position == blackCastle1.position && blackCastle1.alive == true ) return blackCastle1;\n if(position == blackCastle2.position && blackCastle2.alive == true) return blackCastle2;\n if(position == blackBishop1.position && blackBishop1.alive == true) return blackBishop1;\n if(position == blackBishop2.position && blackBishop2.alive == true) return blackBishop2;\n j=0;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];j++;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];j++;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];j++;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];j++;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];j++;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];j++;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];j++;\n if(position == blackPawn[j].position && blackPawn[j].alive == true) return blackPawn[j];\n\n else return null;\n }", "public ArrayList<Card> getHand(){\n return cards;\n }", "public static void main(String[] args) {\n Sport Football = new Sport(\"Football\"); //Creating instance of Sport class (Creating football sport)\n Football RM = new Football(\"RealMadrid\"); //Creating instance of Football class (Creating football team)\n Football Monaco = new Football(\"Monaco\");//Creating instance of Football class (Creating football team)\n Football Barca = new Football(\"Barca\");//Creating instance of Football class (Creating football team)\n Football Liverpool = new Football(\"Liverpool\");//Creating instance of Football class (Creating football team)\n\n League<Football> footballLeague = new League<>(\"Football\"); //Creating arraylist with objects from Football class (Creating league)\n footballLeague.addTeamToLeague(RM); //adding team to league\n footballLeague.addTeamToLeague(Monaco);\n footballLeague.addTeamToLeague(Barca);\n footballLeague.addTeamToLeague(Liverpool);\n footballLeague.displayLeague(); //display all teams from football league\n\n System.out.println();\n\n Sport Hockey = new Sport(\"Hockey\"); //The same for hockey\n Hockey CB =new Hockey(\"Chicago Bulls\");\n Hockey CSKA =new Hockey(\"CSKA\");\n Hockey Sparta =new Hockey(\"Sparta\");\n Hockey RB =new Hockey(\"Red Bull\");\n Hockey GK =new Hockey(\"German Knights\");\n League<Hockey> hockeyLeague = new League<>(\"Hockey\");\n hockeyLeague.addTeamToLeague(CB);\n hockeyLeague.addTeamToLeague(CSKA);\n hockeyLeague.addTeamToLeague(Sparta);\n hockeyLeague.addTeamToLeague(RB);\n hockeyLeague.addTeamToLeague(GK);\n hockeyLeague.displayLeague();\n }" ]
[ "0.7138328", "0.6443993", "0.608018", "0.58636206", "0.58268833", "0.5792302", "0.5755872", "0.574276", "0.56856483", "0.5666993", "0.56588954", "0.56529975", "0.5630279", "0.5627394", "0.5595617", "0.55813384", "0.5556346", "0.5543994", "0.55300254", "0.5510531", "0.5507748", "0.5487882", "0.54859394", "0.5463377", "0.54630697", "0.5460249", "0.5453076", "0.5436315", "0.53911936", "0.53882205", "0.53798646", "0.53725696", "0.53668064", "0.53567034", "0.53565365", "0.5352717", "0.5345679", "0.53365856", "0.5326771", "0.53232837", "0.53064966", "0.5301154", "0.52889", "0.5287136", "0.5284658", "0.52823925", "0.5269084", "0.5253211", "0.5242263", "0.5232546", "0.5232538", "0.52218264", "0.5217625", "0.52162194", "0.5212102", "0.51959246", "0.5194717", "0.51929307", "0.5190616", "0.5184966", "0.51794904", "0.5176082", "0.516757", "0.51654947", "0.51598907", "0.5156927", "0.5155884", "0.5154945", "0.51526034", "0.51478785", "0.5140299", "0.5137676", "0.5136908", "0.51315707", "0.5129587", "0.5129235", "0.5129175", "0.5127714", "0.5127214", "0.5126974", "0.51193666", "0.5113303", "0.5109235", "0.51089185", "0.509982", "0.5093965", "0.50793153", "0.5078981", "0.5078529", "0.50782317", "0.50770694", "0.5075114", "0.5074297", "0.5073463", "0.5072551", "0.5065479", "0.5059971", "0.5057267", "0.5049738", "0.5049283" ]
0.6244074
2
given a String with even number character count print 2 characters in one line 01234567 for example : Gokyuzum / Go 01 ky 23 uz 45 um 67 System.out.println(name.substring(0,2)); System.out.println(name.substring(2,4)); System.out.println(name.substring(4,6)); System.out.println(name.substring(6,8)); int x = 0; System.out.println(name.substring(x,x+2)); x = x + 2; System.out.println(name.substring(x,x+2)); x = x + 2; System.out.println(name.substring(x,x+2)); x = x + 2; System.out.println(name.substring(x,x+2));
public static void main(String[] args) { // x = x + 2; // System.out.println(name.substring(x,x+2)); // x = x + 2; // System.out.println(name.substring(x,x+2)); // x = x + 2; // System.out.println(name.substring(x,x+2)); String name = "Gokyuzum"; int charCount = name.length(); int lastCharIndex = charCount-1; // my condition is x <= charCount - 2 or lastCharIndex-1 for (int x = 0; x <= lastCharIndex-1; x += 2){ System.out.println(name.substring(x,x+2)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n String name = \"Georgesa\";\n int charCount = name.length();\n int lastCharIndex = charCount - 1;\n\n\n // System.out.println( name.substring (0,2));\n // System.out.println( name.substring (2,4));\n // System.out.println( name.substring (4,6));\n //System.out.println( name.substring (6,8));\n\n\n }", "public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n String word= scan.next();\n // HELLO = 5/2=2 the half index for odd char count\n //JAVA = 4/2 = 2 the half index for even char count\n\n int halfIndex = word.length()/2;\n String halfWord = word.substring(0, halfIndex);\n System.out.println(halfWord + halfWord);\n\n\n\n }", "public static void main(String[] args) {\n String word = \"java\";\n int length=word.length();\n int a =length/2;\n\n System.out.println(word.substring(0,a)+word.substring(0,a));\n }", "public static void main(String[] args) {\r\n Scanner obj = new Scanner(System.in);\r\n int t=obj.nextInt();\r\n for(int k=0;k<t;k++)\r\n {\r\n String s=obj.next();\r\n int l=s.length();\r\n for(int i=0;i<l;i=i+2)\r\n {\r\n System.out.print(s.charAt(i));\r\n }\r\n System.out.print(\" \");\r\n for(int i=1;i<l;i=i+2)\r\n {\r\n System.out.print(s.charAt(i));\r\n } \r\n System.out.println();\r\n }\r\n }", "public static String secondLetters( Scanner s){\n\t\t\n\t\tString tempString; \n\t\tString finalString = \"\";\n\t\t\n\t\twhile(s.hasNext()){\n\t\t\t\n\t\t\ttempString = s.next();\n\t\t\t\n\t\t\t//check to make sure that tempString is at least two letter before adding letter\n\t\t\tif(tempString.length() >= 2 ){\n\t\t\t\tfinalString += tempString.charAt(1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn finalString;\n\t\n\t}", "static int twoCharaters(String s) {\n\t\tList<String> list = Arrays.asList(s.split(\"\"));\n\t\tHashSet<String> uniqueValues = new HashSet<>(list);\n\t\tSystem.out.println(uniqueValues);\n\t\tString result;\n\t\twhile(check(list,1,list.get(0))) {\n\t\t\tresult = replace(list,1,list.get(0));\n\t\t\tif(result != null) {\n\t\t\t\tSystem.out.println(result);\n\t\t\t\ts = s.replaceAll(result,\"\");\n\t\t\t\tlist = Arrays.asList(s.split(\"\"));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(s);\n\t\treturn 5;\n }", "private static void capMid(String name){\n int mid= name.length()/2;\n System.out.print(name.toUpperCase().substring(mid,(mid+1)));\n }", "public String twoChar(String str, int index) {\r\n return index > 0 && index < str.length() - 1 ? str.substring(index, index + 2) : str.substring(\r\n 0, 2);\r\n }", "public static String getSecondPart(String str) {\n\t\t// we assume that str argument will only have even(length) strings\n\t\t// return second part of the string \n\t\t\n\t\t// str.substring(2); // abcd -> cd : 4 / 2 = 2\n\t\t// str.substring(3); // banana : 6 / 2 = 3\n\t\t// str.substring(4); // 12345678 : 8 / 2 =4\n\t\t\n\t\tint len = str.length();\n\t\tstr = str.substring(len / 2);\n\t\treturn str;\n\t}", "public static void printX2(int n, String string) {\n\t\tfor(int i=0; i<n;i++) {\n\t\t\tfor(int j=0; j<n; j++) {\n\t\t\t\tif(i< n/2) {\n\t\t\t\t\tif(j<i) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(string.substring(i, i+1)+\" \");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif((i+j)<(n-1)) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(string.substring(i, i+1)+\" \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void prnt(String l) {\n String even = \"\",odd=\"\";\r\n \r\n int t = 0;\r\n \r\n while(t!=l.length())\r\n {\r\n if (t==0 || t%2==0)\r\n even = even+l.charAt(t);\r\n else\r\n odd = odd+l.charAt(t);\r\n t++;\r\n }\r\n \r\n System.out.println(\"\"+even+\" \"+odd+\"\");\r\n }", "public static void main(String[] args) {\n\n String s = \"bleinlirvdllgpqysgejejaptjrnmuvsulpwwofocahzbdngybbqdfleycicnpbrdkzmzraayiqzwplgnnmirnddadidsyftrezectrelgwzegsrvzyjramgqvwwotacyurxrpfyrvkrqpcjrezpbizwkzwtucohtcwqktiyrlvxtwuilwvjdhoqaiiqjpkosjkolpgojlfabpperqqtmnjowynwmxavicjdknpgnmpktovtssynavflaxqbxygryjbfymjfcemqgnhrhyunopicpsskhzkvdnedrweuneshcuoegxzlmcuvojbnqcyapqvnwpfufqpekjvxxujogguhhtvwlrrvctqdllpdegtwwmfnceaiqfpfoqggkqpbmdzhdpsrklllsssazidvcpsipxhucgcqxpekijfijqblnvbrubgqohwpqrngilierbzjrjozslmibpocyzeqrtfenkcklvtajhrzumyjgdkzdaztytogvrncqgcutwdpvnuesbadhfgijjcjygonhvkhlypwnexumozowkfnykdovqjrwnwsudufhvcikaedsfiyzoqyvodmwixpmdpxtveinykvdrjdbmandgzcouzdlpiynwlhcwqafaqpqjdkbouelfbmztbqshzlgedbduhgcerrbqnqzfvgpfheqrnwlsduxklrfjjnkmvetkuzagkdmkaugptrdenqfiavgqzfubybmjcgoqlmvgcdmddwigtqmvjpkwlkuyxdycuriyrvlbghvyagxulvqmrkxlqfpxblnwdctznlrbbactsrbubcaayntkjmhzjzuyruejekcorvtbglaccnzxhutfqzjrfadgpgubqynmbxziudhmzcpmpx\";\n\n System.out.println(twoChars(s));\n }", "public static void main(String[] args) {\n\n String text= \"merhaba arkadaslar \";\n System.out.println( \"1. bolum =\" + text .substring(1,5));// 1 nolu indexten 5 e kadar. 5 dahil degil\n System.out.println(\"2. bolum =\"+ text.substring(0,3));\n System.out.println(\"3. bolum =\"+ text.substring(4));// verilen indexten sonun akadar al\n\n String strAlinan= text.substring(0,3);\n\n\n\n\n\n }", "public static String oddsOnly( String s ) {\n String s2 = \"\";\n for (int i = 0; i < s.length(); i++) {\n if ((int)s.charAt(i) % 2 == 1)\n s2 = s2 + s.charAt(i);\n }\n return s2;\n // return new String( \"IKIKIK\" );\n }", "static long repeatedString(String s, long n) {\n char[] arr=s.toCharArray();\n int i,count=0,cnt=0;\n for(i=0;i<arr.length;i++){\n if(arr[i]=='a'){\n count++;\n }\n }\n long len=(n/arr.length)*count;\n long extra=n%arr.length;\n if(extra==0){\n return len;\n }else{\n for(i=0;i<extra;i++){\n if(arr[i]=='a'){\n cnt++;\n }\n }\n return len+cnt;\n }\n\n\n }", "public static void main(String[] args) {\n\n\t\tString s = \"coding\";\n\t\tSystem.out.println(s.substring(2));\n\t\tSystem.out.println(s.substring(2, 5));\n\t\t\n\t\tint ci = 3;\n\t\tSystem.out.println(s.substring(0, ci) + s.substring(ci + 1));\n\t}", "public static void Print04(){\n Scanner input = new Scanner(System.in);\n System.out.println(\" 4 . MASUKKAN KALIMAT/KATA : \");\n String inputString = input.nextLine();\n\n String[] inputArray = inputString.split( \" \");\n\n for (int i = 0; i < inputArray.length; i++) {\n char[] charArray = inputArray[i].toCharArray();\n if(i % 2 == 0 ){\n for (int j = 0; j < charArray.length; j++) {\n if( j % 2 == 0) {\n System.out.print(charArray[j]);\n }\n else {\n System.out.print(\"*\");\n }\n }\n }\n else {\n for (int j = 0; j < charArray.length; j++) {\n if(j % 2 == 0) {\n System.out.print(\"*\");\n }\n else {\n System.out.print(charArray[j]);\n }\n }\n }\n System.out.print(\" \");\n }\n System.out.println();\n }", "public static void main(String[] args) {\n\t\tString name=\"Merzet\";\n\t\t\n\t\t//rze\n\t\tSystem.out.println( name.substring(2, 5));\n\t\t\n\t\t//System.out.println(name.substring(5,1)); wrong\n\t\t\n\t\t//System.out.println( name.substring(1, 10));wrong no 10 letters Merzet\n\t\t\n\t\tSystem.out.println( name.substring(1, 6)); //answer erzet sebabi o dan baslap sanayar\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void Print02(){\n Scanner input = new Scanner(System.in);\n\n System.out.println(\"2. MASUKKAN KALIMAT/KATA : \");\n String inputString = input.nextLine();\n\n String[] inputArray = inputString.split( \" \");\n for(String text : inputArray)\n {\n char[] charArray = text.toCharArray();\n\n for (int i = 0; i < charArray.length; i++) {\n if(i == 0 || i == text.length() - 1 ) {\n System.out.print(charArray[i]);\n }\n else if (i == text.length() / 2) {\n System.out.print(\"***\");\n }\n else {\n System.out.print(\"\");\n }\n }\n System.out.print(\" \");\n }\n System.out.println();\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter String \");\n\t\tString s = sc.next().toUpperCase();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tif(i%2 != 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n Scanner scan=new Scanner(System.in);\n System.out.println(\"Enter your word\");\n String word=scan.nextLine();\n //index num=01234\n String result=\"\"; // all below characters will be concatenated one by one- knalB\n if (word.length()>5){\n result=\"Too long\";\n }else if (word.length()<5){\n result=\"Too short\";\n }else {\n /* result+=word.charAt(4);\n result+=word.charAt(3);\n result+=word.charAt(2);\n result+=word.charAt(1);\n result+=word.charAt(0);\n\n */\n result=\"\" + word.charAt(4) + word.charAt(3) + word.charAt(2) + word.charAt(1) + word.charAt(0);\n } // e l c n u\n System.out.println(\"result = \" + result);\n\n\n\n }", "public static void main(String[] args) {\n\t\tString s1=\"abc def ghi\";\n\t\tString s3=\"rupomroy\";\n\t\tString s7 =s3.substring(0, 4);\n\t\tSystem.out.println(s7);\n\t\t\n\t\t String[] s5 =s3.split(\"roy\");\n\t\t System.out.println(s5[0]);\n String s2 = s1.substring(4);\t\n System.out.println(s2);\n\t\t\n\t\t String[] s = s1.split(\" \");\n\t\t System.out.println(s[0]);\n\t\t System.out.println(s[1]);\n\t\t System.out.println(s[2]);\n\t\t\n\t\tSystem.out.println(s1);\n\t\t\n\t\t\n\n\t}", "public static void SubString(String str, int n)\r\n {\r\n\t\tint count = 0;\r\n\t\tStringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < n; i++) { \r\n for (int j = i+1; j <= n; j++) {\r\n \t String subs = str.substring(i, j);\r\n \t \r\n \t if((Integer.valueOf(subs)) <= 26) {\r\n \t\t System.out.println(subs);\r\n \t\t sb.append(subs);\r\n \t\t \r\n \t }\r\n }\r\n }\r\n \r\n for(int i = 0; i < sb.length() - 2; i++) {\r\n \t for(int j = i + 1; j < sb.length() - 1; j++) {\r\n \t\t for(int k = j + 1; k < sb.length(); k++) {\r\n \t\t\t StringBuilder temp = new StringBuilder();\r\n \t\t\t temp.append(sb.charAt(i));\r\n \t\t\t temp.append(sb.charAt(j));\r\n \t\t\t temp.append(sb.charAt(k));\r\n \t\t\t //System.out.println(temp.toString());\r\n \t\t\t if(temp.toString().equals(str)) { // !!! have to use equals!!!!\r\n \t\t\t\t count++;\r\n \t\t\t }\r\n \t\t }\r\n \t } \r\n \t}\r\n System.out.println(\"count \" + count);\r\n }", "public void subCharacter() {\n\t\t\tString name = \"martin\";\n\t\t\tString subCharacter = name.substring(2, 4);\n\t\t\tSystem.out.println(subCharacter);\n\t\t}", "public static void main(String[] args) {\r\n\r\n\t\t String str = \"boopity bop\";\r\n\t\t int i = 10;\r\n\t\tSystem.out.print(str.charAt(5));\r\n\t\tSystem.out.print(str.charAt(8));\r\n\t\tSystem.out.print(str.charAt(1));\r\n\t\tSystem.out.print(str.charAt(10));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the string: \");\r\n\t\tString s1 = scan.nextLine();\r\n\t\tString a=\" \";\r\n\t\tint n=s1.length();\r\n\t\tif(n%2 != 0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"null\");\r\n\t\t}\r\n\t\telse {\r\n\t\t\ta=s1.substring(0,n/2);\r\n\t\t\tSystem.out.println(a);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tString s = \"Esto es una cadena de caracteres\";\n\t\tString s1 = s.substring(0,7);\n\t\tString s2 = s.substring(8,12);\n\t\tString s3 = s.substring(8);\n\t\tSystem.out.println(s1);\n\t\tSystem.out.println(s2);\n\t\tSystem.out.println(s3);\n\t}", "public static String getSubstring(String s, int i, int j){\n if(i>j){\n throw new IllegalArgumentException(\"The second integer cannot be smaller than the first integer\");\n }\n else{\n String subString = \"\";\n for(int n = i; n<=j; n++){\n subString += s.charAt(n);\n }\n return subString; \n }\n }", "public static void main(String[] args) {\n\tScanner scan=new Scanner(System.in);\n\t String str;\n\t\n\t System.out.println(\"Please enter the String\");\n\tstr=scan.nextLine();\n\t\n\tif( !str.isEmpty()) {\n\t\tif(str.length()%2!=0 && str.length()>=3) {\n\t\t\tSystem.out.println(str.charAt(str.length()/2));\n\t\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\"The string has an even number of characters\");\n\t\t}\n\t} else {\n\t\tSystem.out.println(\"The String is empty\");\n\t}\n\t\n\t\n\t\n\t\n\t\n\t}", "public static void main(String[] args) {\n\n String s = \"a2b5c7a9f0dafa2s6a8d5a\";\n String a =\"\";\n String rest = \"\";\n\n for (int i = 0; i<s.length(); i++) {\n\n if (s.charAt(i)=='a') {\n a+=s.charAt(i);\n } else {\n rest+=s.charAt(i);\n }\n\n\n }\n System.out.println(a+rest);\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n\t String name = \"hi how\";\n\t String[] split = name.split(\" \");\n\t for(int i=0; i<split.length; i++)\n\t {\n\t \t int len = split[i].length();\n\t \t for(int a=len-1; a>=0; a--)\n\t \t {\n\t \t\t System.out.print(split[i].charAt(a));\n\t \t }\n\t \t System.out.print(\" \");\n\t \n\t }\n\t}", "public String front22(String str) {\n String front2;\n if (str.length() <= 2) {\n front2 = str;\n } else {\n front2 = str.substring(0, 2);\n }\n \n return front2 + str + front2;\n}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tSystem.out.println(\"1st example :\"+\"\\n\");\r\n\t\tString str= new String(\"quick brown fox jumps over the lazy dog\");\r\n\t System.out.println(\"Substring starting from index 17:\");\r\n\t System.out.println(str.substring(17));\r\n\t System.out.println(\"Substring starting from index 15 and ending at 20:\");\r\n\t System.out.println(str.substring(17, 23));\r\n\t\t\r\n\t System.out.println(\"2nd example :\"+\"\\n\");\r\n\t \r\n\t String mystring = new String(\"Lets Learn Java\");\r\n\t\t/* The index starts with 0, similar to what we see in the arrays\r\n\t\t * The character at index 0 is s and index 1 is u, since the beginIndex\r\n\t\t * is inclusive, the substring is starting with char 'u'\r\n\t\t */\r\n\t\tSystem.out.println(\"substring(1):\"+mystring.substring(1));\r\n\t\t\t\r\n\t\t/* When we pass both beginIndex and endIndex, the length of returned\r\n\t\t * substring is always endIndex - beginIndex which is 3-1 =2 in this example\r\n\t\t * Point to note is that unlike beginIndex, the endIndex is exclusive, that is \r\n\t\t * why char at index 1 is present in substring while the character at index 3 \r\n\t\t * is not present.\r\n\t\t */\r\n\t\tSystem.out.println(\"substring(1,3):\"+mystring.substring(1,3));\r\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\n\n // Initialize variables\n int intLength;\n int intSpaces = 0;\n int intA = 0;\n int intCount;\n String theSentence;\n String strOdd = \"\";\n char chrCharacter;\n\n // User inputs sentence and get value\n theSentence = keyboard.readLine();\n intLength = theSentence.length();\n\n // Looping to calculate how many spaces, a's and grab odd numbers\n for (intCount = 0; intCount < intLength; intCount++) {\n\n chrCharacter = theSentence.charAt(intCount);\n\n if (chrCharacter == ' ') {\n intSpaces = intSpaces + 1;\n }else if (chrCharacter == 'a' || chrCharacter == 'A') {\n intA = intA + 1;\n\n // Grabbing all the odd letters\n }if (intCount % 2 == 0) {\n strOdd = strOdd + (theSentence.charAt(intCount));\n }\n\n }\n\n // Printing results\n System.out.println(\"There are \" + intLength + \" characters in the sentence\");\n System.out.println(\"There are \" + intSpaces + \" spaces in the sentence\");\n System.out.println(\"There are \" + intA + \" letter a in the sentence\");\n System.out.println(\"Taking the odd numbered characters in the sentence produces the following string (\" + strOdd + \")\");\n\n }", "public static void main(String[] args) {\n\n String str1= \"Java\";\n // 0123\n\n char ch1= str1.charAt(3);\n System.out.println(ch1);\n\n // char ch2 = str1.charAt(4); out of range\n // System.out.println(ch2);\n\n //length(): returns the total number of chars in \"int\".\n String str2 = \"Cybertek School\";\n int total = str2.length();\n System.out.println(total);\n\n int maxIndex = str2.length()-1;\n char ch3= str2.charAt(maxIndex);\n System.out.println(ch3);\n System.out.println(\"=======================================\");\n\n //concat(str); it does the concatenation\n\n String str3= \"Cybertek\";\n str3 = str3.concat(\" School\"); //\"Cybertek School\"\n System.out.println(str3);\n\n String str4 = \"Java\";\n str4= str4.concat(\" is fun\"); // return new string as \"Java is fun\"\n\n System.out.println(str4);\n\n System.out.println(\"=======================================\");\n\n //toLowerCase() & toUperCase(); converting strings to lower and uper cases.\n\n String str5 = \"CYBERTEK SCHOOL\";\n str5 = str5.toLowerCase(); //\"cybertek school\"\n System.out.println(str5);\n\n String str6 = \"murtaza nazeeri\";\n str6= str6.toUpperCase(); // reassigned to \"MURTAZA NAZEERI\"\n System.out.println(str6); //\n\n System.out.println(\"=======================================\");\n\n //trim(): removes the unused(white) spaces from the string.\n\n String str7 = \" Messi \";\n str7 = str7.trim();\n System.out.println(str7);\n System.out.println(str7.length());\n\n String str8= \" \";\n str8 = str8.trim();\n\n System.out.println(str8.length());\n\n System.out.println(\"=========================================\");\n\n //1) substring(beginning index, ending index): creates substring starting from beginnging to ending index.\n //the ending index is excluded.\n String sentence1= \"I like Java\";\n // 0123456789..\n\n String word1 = sentence1.substring(7,sentence1.length()); //\"Java\"\n String word2 = sentence1.substring(2,6);\n System.out.println(word1);\n System.out.println(word2);\n\n String word3= sentence1.substring(2,6) + sentence1.substring(7,sentence1.length());\n System.out.println(word3);\n\n\n\n\n // 2) substring(begiining index): creates the sub string from beginning index till the end of the string. returns new string\n String sentence2 = \"I like to learn Java\";\n // 0123456789\n\n String r1 = sentence2.substring(10); // \"learn Java\";\n System.out.println(r1);\n\n String r2 = \"Java\"; //JaVa;\n // 0123\n String r3 = r2.substring(0, 2); //Ja\n\n String r4 = r2.substring(2,3) ; // v\n r4 = r4.toUpperCase(); //V\n\n String r5 = r2.substring(3); //a\n\n String result = r3+r4+r5; // JaVa\n\n System.out.println(result);\n\n\n System.out.println(\"=============================================\");\n\n\n }", "public void printCharsWhile(String s){\n while int i = 0(i < s.lenth){\n println(s.charAt(i));\n x++;\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str= scan.nextLine();\n\n int count =0;\n for(int i =0; i <=str.length()-2; i++){\n String s= str.substring(i,i+2);\n if(s.equals(\"hi\")){\n count +=1;\n }\n\n }\n\n System.out.println(count);\n\n\n\n }", "public static void main(String [] args) {\n\t\tString str = \"ccacacabccacabaaaabbcbccbabcbbcaccabaababcbcacabcabacbbbccccabcbcabbaaaaabacbcbbbcababaabcbbaa\"\n\t\t\t\t+ \"ababababbabcaabcaacacbbaccbbabbcbbcbacbacabaaaaccacbaabccabbacabaabaaaabbccbaaaab\"\n\t\t\t\t+ \"acabcacbbabbacbcbccbbbaaabaaacaabacccaacbcccaacbbcaabcbbccbccacbbcbcaaabbaababacccbaca\"\n\t\t\t\t+ \"cbcbcbbccaacbbacbcbaaaacaccbcaaacbbcbbabaaacbaccaccbbabbcccbcbcbcbcabbccbacccbacabcaacbcac\"\n\t\t\t\t+ \"cabbacbbccccaabbacccaacbbbacbccbcaaaaaabaacaaabccbbcccaacbacbccaaacaacaaaacbbaaccacbcbaaaccaab\"\n\t\t\t\t+ \"cbccacaaccccacaacbcacccbcababcabacaabbcacccbacbbaaaccabbabaaccabbcbbcaabbcabaacabacbcabbaaabccab\"\n\t\t\t\t+ \"cacbcbabcbccbabcabbbcbacaaacaabb\"\n\t\t\t\t+ \"babbaacbbacaccccabbabcbcabababbcbaaacbaacbacacbabbcacccbccbbbcbcabcabbbcaabbaccccabaa\"\n\t\t\t\t+ \"bbcbcccabaacccccaaacbbbcbcacacbabaccccbcbabacaaaabcccaaccacbcbbcccaacccbbcaaaccccaabacabc\"\n\t\t\t\t+ \"abbccaababbcabccbcaccccbaaabbbcbabaccacaabcabcbacaccbaccbbaabccbbbccaccabccbabbbccbaabcaab\"\n\t\t\t\t+ \"cabcbbabccbaaccabaacbbaaaabcbcabaacacbcaabbaaabaaccacbaacababcbacbaacacccacaacbacbbaacbcbbbabc\"\n\t\t\t\t+ \"cbababcbcccbccbcacccbababbcacaaaaacbabcabcacaccabaabcaaaacacbccccaaccbcbccaccacbcaaaba\";\n\t\tSystem.out.println(substrCount2(1017, str));\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString day=\"Sunday\";\n\t\tfor (int i=day.length()-1; i>=0; i--) {\n\t\t\tSystem.out.print(day.charAt(i));\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t// to print the middle of the string \n\t\tString str=\"Hello\";\n\t\t \n\t\tint lenght =str.length();\n\t\tint middle=str.length()/2;\n\t\t\n\t\tif (str.isEmpty()) {\n\t\t\t if (lenght%2!=0 && lenght>=3) { //it should be a reminder\n\t\t\n\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t }\n\t\tSystem.out.println(str.charAt(middle));\n\t\t\n\t\t\n\t\t\n\t}", "public String firstTwo(String str) {\r\n return str.length() < 2 ? str : str.substring(0, 2);\r\n }", "public static void main(String[] args) {\n Scanner input = new Scanner (System.in);\n System.out.println(\"Enter your word here please\");\n String str = input.nextLine();\n int length = str.length();\n\n System.out.println(str.substring(length-1)+ str + ( str.substring(length-1)));\n\n }", "public static void main(String[] args){\n\t\tSystem.out.println(makeThreeSubstr(\"hello\",0,2)); //should be hehehe\n\t\tSystem.out.println(makeThreeSubstr(\"shenanigans\",3,7)); //should be naninaninani\n\t}", "public static void main(String[] args) {\n\t\tString sentence = \"He said hi, then she replied hi. hi guys!\";\n\t\t//print letter in pairs\n\t\tSystem.out.println(sentence.substring(7,10));//hi\n System.out.println(sentence.substring(28,31));//hi\n System.out.println(sentence.substring(32,36));//hi\n \n System.out.println(sentence.substring(0,3));//he\n System.out.println(sentence.substring(1,2));//e\n System.out.println(sentence.substring(3,4));//s\n System.out.println(sentence.substring(4,6));//ai\n //two characters at the time\n //check if temp equals \"hi\", if true,add 1 to count\n int count=0;\n for(int i=0;i<sentence.length()-1;i++) {\n \tString temp=sentence.substring(i,i+2);//2 letters\n \t//System.out.println(temp);\n \tif(temp.equals(\"hi\")) {//count how many \"hi\"\n \t\tcount++;\n \t\t\n \t}\n \t\n }\n //count:3\n System.out.println(\"Count: \"+count);//Count: 3\n\t}", "public String solution(String s) {\n\t\tStream<Character> tmp = s.chars().mapToObj(value -> (char)value);\n\t\treturn tmp.collect(Collectors.groupingBy(Function.identity(), Collectors.counting())).entrySet().stream().filter(characterLongEntry -> characterLongEntry.getValue() == 2).findFirst().get().getKey().toString();\n\t}", "static long repeatedString(String s, long n) {\n long l=s.length();\n long k=n/l;\n long r=n%l;\n long count=0;\n long count1=0;\n char ch[]=s.toCharArray();\n for(int t=0;t<ch.length;t++){\n if(ch[t]=='a')\n count1++;\n }\n for(int t=0;t<r;t++){\n if(ch[t]=='a')\n count++;\n }\n return k*count1+count;\n\n }", "include<stdio.h>\nint main()\n{\n char str[100];\n scanf(\"%s\", str);\n int i, count=1, length; \n for(length=0; str[length]!='\\0'; length++);\n if(length>20)\n {\n printf(\"Invalid Input\");\n }\n else\n {\n for(i=0; i<length; i++)\n {\n if(str[i] == str[i+1])\n {\n count++;\n }\n else\n {\n printf(\"%c%d\", str[i], count); \n count = 1;\n }\n }\n }\n return 0;\n}", "public String without2(String str) {\r\n if (str.length() > 2 && str.substring(0, 2).equals(str.substring(str.length() - 2))) {\r\n return str.substring(2);\r\n }\r\n\r\n if (str.length() == 2) {\r\n return \"\";\r\n }\r\n\r\n return str;\r\n }", "public static void main(String[] args) {\n\t\tString s = \"aabacbebebe\";\n\n\t\tSystem.out.println(\"Given String : \" + s);\n\n\t\tSystem.out.println(\"Longest Substring Using Set (2-pointer) : \"\n\t\t\t\t+ lengthOfLongestSubstringUsingSet(s));\n\t\tSystem.out.println(\"Longest Substring Using Sliding Window : \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with 2 distinct characters ===== \");\n\t\tSystem.out.println(\"Original String : \" + s);\n\t\tSystem.out\n\t\t\t\t.println(\"Length of Longest Substring with at most 2 distinct characters: \"\n\t\t\t\t\t\t+ longestStringWithTwoDistinctChars(s));\n\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair = longestStringWithKDistinctChars(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair.getKey() + \", \" + pair.getValue().getKey() + \" \"\n\t\t\t\t+ pair.getValue().getValue());\n\n\t\tif (pair.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair.getValue().getKey(), pair.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\t\t\n\t\tSystem.out.println(\"\\n ===== Longest string with K distinct characters (AS approach) ===== \");\n\n\t\tPair<Integer, Pair<Integer, Integer>> pair1 = longestStringWithKDistinctCharsAS(s, 3);\n\t\tSystem.out.print(\"Longest Substring length with 3 Distinct Chars : \");\n\t\tSystem.out.print(pair1.getKey() + \", \" + pair1.getValue().getKey() + \" \"\n\t\t\t\t+ pair1.getValue().getValue());\n\n\t\tif (pair1.getValue().getKey() != -1)\n\t\t\tSystem.out.println(\", \"\n\t\t\t\t\t+ s.substring(pair1.getValue().getKey(), pair1.getValue()\n\t\t\t\t\t\t\t.getValue() + 1));\n\t\telse\n\t\t\tSystem.out.println(\", Empty String\");\n\n\t\tSystem.out.println(\"\\n ===== Longest string with no repeating characters ===== \");\n\n\t\ts = \"abcabcbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"bbbbb\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\n\t\ts = \"pwwkew\";\n\t\tSystem.out.print(\"For string: \" + s);\n\t\tSystem.out.print(\"; Method Other: \"\n\t\t\t\t+ longestStringWithNoRepeatingChars(s));\n\t\tSystem.out.println(\"; AS: \" + longestStringWithNoRepeatingCharsAS(s));\n\t}", "public static String newWord(String strw) {\n String value = \"Encyclopedia\";\n for (int i = 1; i < value.length(); i++) {\n char letter = 1;\n if (i % 2 != 0) {\n letter = value.charAt(i);\n }\n System.out.print(letter);\n }\n return value;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the first name\");\n\t\tScanner sc=new Scanner(System.in);\n\t\tString first=sc.nextLine();\n\t\tSystem.out.println(\"Enter the second name\");\t\t\n\t\tString middle=sc.nextLine();\n\t\tSystem.out.println(\"Enter the last name\");\n\t\tString last=sc.nextLine();\n\t\tSystem.out.println(\"Enter the age\");\n\t\tint n=sc.nextInt();\n\t\tString f1=\"\";\n\t\t//int x= first.length();\n\t\tf1+=first.charAt(0);\t\n\t\tf1+=middle.charAt(0);\n\t\tf1+=last.charAt(0);\n\t\tf1+=\"\"+n;\n\t\t\n\t\tSystem.out.println(f1);\n\n\n}", "public String everyNth(String str, int n) {\n String result = \"\";\n \n for (int i = 0; i < str.length(); i += n) {\n result += str.charAt(i);\n }\n \n return result;\n}", "public static void main(String[] args) {\n\t\tString s = \"caaab\";\n\t\tString[] res = getUniqueSubstring(s,2);\n\t\tfor(String a : res){\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String s1 = scan.nextLine();\n int begin = scan.nextInt();\n int end = scan.nextInt();\n System.out.println(s1.substring(begin,end + 1));\n }", "private static void subStringNonrepchars(String input) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString s =\"\";\n\n\t\tint j=0,max=0,len=0, i=0;\n\t\tboolean[] flag = new boolean[256];\n\t\tfor(i=0;i<input.length();i++){\n\t\t\tif(!flag[input.charAt(i)]){\n\t\t\t\tSystem.out.println(\"char: \"+input.charAt(i)+\" bool: \"+!flag[input.charAt(i)]);\n\t\t\t\tlen++;\n\t\t\t}else{\n\t\t\t\t//System.out.println(\"coming to else\");\n\t\t\t\tif(len>max){\n\t\t\t\t\tmax= len;len=1;\n\t\t\t\t\tSystem.out.println(j+\" j \"+max +\" :max substring: \"+input.substring(j,i));\n\t\t\t\t}\n\t\t\t\tj = i;\n\t\t\t\tSystem.out.println(\"max len is: \"+max+\" j: \"+j);\n\t\t\t\tflag = new boolean[256];\n\t\t\t}\n\t\t\tflag[input.charAt(i)] = true;\n\n\t\t}\n\t\tif(len>max){\n\t\t\tmax=len;\n\t\t\tj=i;\n\t\t}\n\t\tif(max>j)\n\t\t\tSystem.out.println(input.substring(max-j,max+1));\n\t\telse{\n\t\t\tSystem.out.println(input.substring(j-max,max+1));\n\t\t}\n\n\n\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Ora cle \";\n\t\tint i = str.length();\n\t\tSystem.out.println(i);\n\t\t\n\t\tString strUpper = str.toUpperCase();\n\t\tSystem.out.println(str); // String is immutable - original string will never get changed.\n\t\tSystem.out.println(strUpper);\n\t\t\n\t\tString strLower = str.toLowerCase();\n\t\tSystem.out.println(strLower); // ora cle\n\t\t\n\t\tString first3 = str.substring(0, 3);\n\t\tSystem.out.println(first3); // Ora\n\t\tSystem.out.println(str); // Ora cle\n\t\t\n\t\t// 0123456789\n\t\tstr = \"Programmer\";\n\t\tString lLetter = str.substring(4);\n\t\tSystem.out.println(lLetter); // rammer\n\t\t\n\t\t// length - 4\n\t\t\n\t\t// 012345678910\n\t\tstr = \"JavaScript\"; \n\n\t\tint l = str.length(); \n\t\t // 10 - 1\n\t\tString lLetter2 = str.substring(l - 1);\n\t\tSystem.out.println(lLetter2); // a\n\t\t\n\t\tString java = str.substring(0, 4);\n\t\tSystem.out.println(java);\n\t\t\n\t\tSystem.out.println(getSecondPart(\"abcd\"));\n\t\tSystem.out.println(getSecondPart(\"banana\"));\n\t\tSystem.out.println(getSecondPart(\"12345678\"));\n\t\t\n\t\t// 01234\n\t\tstr = \"booko\";\n\t\tint index = str.indexOf(\"k\");\n\t\tSystem.out.println(index);\n\t\t\n\t\tSystem.out.println(str.indexOf(\"b\")); // 0\n\t\tSystem.out.println(str.indexOf(\"o\")); // 1\n\t\tSystem.out.println(str.lastIndexOf(\"o\"));// 4\n\t\tSystem.out.println(\"----------------\");\n\t\t\n\t\t //01234567.... 16\n\t\tString message = \" {Alex} Hello,!\";\n\t\t\n\t\tint iOne = message.indexOf(\"{\");\n\t\tint iTwo = message.indexOf(\"}\");\n\t\tSystem.out.println(\"First: \" + iOne);\n\t\tSystem.out.println(\"Second: \" + iTwo);\n\t\t\n\t\tString key = message.substring(iOne + 1, iTwo);\n\t\tSystem.out.println(key);\n\t\tSystem.out.println(\"------------------\");\n\t\t\n\t\t// charAt(index) it will return specific char based on argument\n\t\t// 01234\n\t\tString str2 = \"hello\";\n\t\tchar ch = str2.charAt(4); \n\t\tSystem.out.println(ch);\n\t\t\n\t\t// 01234\n\t\tstr2 = \"book\";\n\t\t// 4\n\t\tint len2 = str2.length();\n\t\t// 4 - 1 => 3 charAt(3)\n\t\tchar lastCh = str2.charAt(len2 - 1);\n\t\tSystem.out.println(lastCh);\n\t\tSystem.out.println(\"------------\");\n\t\t\n\t\tString str3 = \"smart-water\";\n\t\tString str4 = str3.replace(\"water\", \"apple\");\n\t\tSystem.out.println(str3); // smart-water\n\t\tSystem.out.println(str4); // smart water\n\t\t\n\t\tSystem.out.println(\"----------\");\n\t\tSystem.out.println(lengthNoSpace(\" c a r\")); // 3\n\t\tSystem.out.println(lengthNoSpace(\"car\")); // 3\n\t\tSystem.out.println(lengthNoSpace(\"ap ple \")); // 5\n\t\t\n\t\tSystem.out.println(\"----------\");\n\t\tString str5 = \" ca r \";\n\t\tString strTrim = str5.trim(); // trim will remove spaces around the string\n\t\tSystem.out.println(str5);\n\t\tSystem.out.println(strTrim);\n\t}", "public static void main(String[] args)\r\n\t\t\r\n\t\t{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tint j=0;\r\n\t\t\tString str=\"saurabh\";\r\n\t\t\tchar[] chars = str.toCharArray();\r\n\t\t\tchar arr[]=new char[chars.length];\r\n\t\t\tfor(char a1:chars) {\r\n\t\t\tint k= a1;\r\n\t\t\t//System.out.print(k+\" \");\r\n\t\t\tint k1=k+3;\r\n\t\t\tarr[j++]= (char) k1;\r\n\t\t\t}\r\n\t\t\tString s= new String(arr);\r\n\t\t\tSystem.out.println(s);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "@Test\n\tpublic static void main() {\n\t\tSystem.out.println(Stringcount2(\"reddygaru\"));\n\t}", "public static void main(String args[])\n {\n Scanner in=new Scanner(System.in);\n String s1=in.nextLine();\n String s2=in.nextLine();\n int n=in.nextInt();\n for(int i=0;i<s2.length();i++)\n {\n if(s2.charAt(i)==' ')\n {\n if(i==s2.length()-1)\n break;\n System.out.println();\n i++;\n }\n System.out.print(s2.charAt(i));\n }\n }", "public String printString(String str, char ch, int count){\n\t\tint occ = 0, i ;\n\t\tif (count == 0){\n\t\t\treturn str;\n\t\t}\n\t\t\n\t\tfor (i = 0 ; i < str.length(); i ++){\n\t\t\tif(str.charAt(i) == ch){\n\t\t\t\tocc++;\n\t\t\t}\n\t\t\tif(occ == count){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn str.substring(i+1);\n\t}", "private String _substring(String s, int start, int end) {\n if (end >= 0) {\n return s.substring(start, end);\n }\n else {\n return \"0\";\n }\n }", "public static void main(String[] args)\n {\n String fruit = \"strawberry\";\n String s = fruit.substring(0, 5);\n System.out.println(s);\n \n // Extract the string \"berry\"\n String u = fruit.substring(5, 10);\n System.out.println(u);\n \n String v = fruit.substring(5);\n System.out.println(v);\n \n // Extract the first character\n String w = fruit.substring(0, 1);\n System.out.println(w);\n \n // Extract the last character\n String x = fruit.substring(9, 10);\n System.out.println(x);\n \n String z = fruit.substring(9);\n System.out.println(z);\n \n // We want to turn the inital \"s\" in\n // \"strawberry\" to an uppercase \"S\"\n \n String uc = \"S\" + fruit.substring(1, 10);\n System.out.println(uc);\n \n String ud = \"S\" + fruit.substring(1);\n System.out.println(ud);\n \n String ue = \"S\" + fruit.substring(1, fruit.length());\n System.out.println(ue);\n }", "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 }", "private static String findSubString2(int index, int len, String s2) {\n\t\tint wLen = len - 1;\n\t\tint remLen = s2.length() - index;\n\t\tif (remLen <= wLen) {\n\t\t\treturn s2.substring(0, index) + s2.substring(index, index+remLen);\n\t\t} else {\n\t\t\tif (index == 0) {\n\t\t\t\treturn s2.substring(0, index) + s2.substring(index, len);\n\t\t\t}\n\t\t\treturn s2.substring(0, index) + s2.substring(index, len+1);\n\t\t}\n\t}", "public static void main(String[] args) {\n\n for ( char ch = 'A', ch1 = 'b'; ch <= 'Z' && ch1 <= 'z' ; ch+=2 , ch1+=2 ){\n\n System.out.print(ch +\"-\");\n System.out.print(ch1+ \"-\");\n }\n\n }", "public static void main(String[] args)\r\n\t{\r\n\t\tString s = \"abc xy prjjj\";\r\n\t\tchar c []= s.toCharArray();\r\n\t\tint count =0;\r\n\t\tfor (int i = 0; i < c.length; i++) \r\n\t\t{\r\n\t\t\tif(c[i]==' ')\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tString s1[]= new String[count+1];\r\n\t\tint si=0;\r\n\t\tint ei=0;\r\n\t\tint co=0;\r\n\t\t\r\n\t\tfor (int i = 0; i < c.length; i++)\r\n\t\t{\r\n\t\t\tif(c[i]==' ' || i==c.length-1)\r\n\t\t\t{\r\n\t\t\t\tei=i-1;\r\n\t\t\t\tif(i==c.length-1)\r\n\t\t\t\t{\r\n\t\t\t\t\tei=i;\r\n\t\t\t\t}\r\n\t\t\t\tint f=0;\r\n\t\t\t\tchar d[]= new char[(ei-si)+1];\r\n\t\t\t\tfor (int j = si; j <=ei; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\td[f++]= c[j];\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tString r1= new String(d);\r\n\t\t\t\ts1[co++] = r1;\t\r\n\t\t\t\t\r\n\t\t\t\tsi=i+1;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int j = 0; j < s1.length; j++)\r\n\t\t{\r\n\t\t\tSystem.out.println(s1[j]);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "String rotWord(String s) {\n return s.substring(2) + s.substring(0, 2);\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n String stroka1 = scanner.nextLine();\n Integer number1 = scanner.nextInt();\n Integer number2 = scanner.nextInt();\n\n System.out.println(stroka1.substring(number1, number2 + 1));\n\n }", "public static String foo2 ( String s )\r\n\t{\r\n\t\tif ( s.length() == 0 )\r\n\t\t\treturn \"even\";\r\n\t\telse if ( s.length() == 1 )\r\n\t\t\treturn \"odd\";\r\n\t\telse\r\n\t\t\treturn foo2( s.substring(0, s.length() - 1 ) );\r\n\t\t\r\n\t}", "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 }", "static long repeatedString(String s, long n) {\n\n char[] str = s.toCharArray();\n\n String temp = \"\";\n\n int i=0;\n long count=0;\n\n while(i<str.length){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n long occurance = n/str.length;\n long remainder = n%str.length;\n count = count*occurance;\n\n i=0;\n while(i<remainder){\n if(str[i]=='a'){\n count++;\n }\n i++;\n }\n\n return count;\n\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Type your name: \");\n String name = scanner.nextLine();\n int i = 0;\n while((i<3)&& name.length()>3){\n\n System.out.println((i+1)+\". \"+\"character: \" + name.charAt(i));\n i++;\n }\n\n }", "public static String evensOnly( String s ) {\n String s2 = \"\"; //tkaing pieces of the string --> put it into s2 ean empty string\n for (int i = 0; i < s.length(); i++) {\n if ((int)s.charAt(i) % 2 == 0) // putting int infront truns it into the ascii value --> so you can check if its divisible by 2\n s2 = s2 + s.charAt(i); // add it to string\n }\n return s2;\n // return new String( \"HJHJHJ\" );\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t String word = scan.nextLine();\r\n\t\tint a = word.length();\r\n\t\tint lastCar= a-1; // last index number\r\n\t\t\r\n\t\tchar FirstLetter = word.charAt(0); // first character 0\r\n\t\t\r\n\t\tchar LastLetter = word.charAt(a-1);\r\n\t\t\r\n\t\tString Concat = LastLetter+word.substring(1,lastCar)+FirstLetter;\r\n\t\t\r\n\t\tSystem.out.println(Concat);\r\n\t}", "public static void main(String[] args) {\n String str = \"This is text\";\n\n // Returns the substring from index 3 to the end of string.\n String substr = str.substring(3);\n\n System.out.println(\"- substring(3)=\" + substr);\n\n // Returns the substring from index 2 to index 7.\n substr = str.substring(2, 7);\n\n System.out.println(\"- substring(2, 7) =\" + substr);\n\t}", "public static void main(String args[]){\n String str = \"aabcadceklmeb\";\n\n HashMap<Character, Integer> map = new HashMap<>();\n\n\n for(int i = 0; i < str.length();i++){\n if(!map.containsKey(str.charAt(i))){\n map.put(str.charAt(i), 1);\n }else{\n int value = map.get(str.charAt(i));\n value++;\n map.put(str.charAt(i), value);\n }\n }\n\n for( char c : map.keySet()){\n if(map.get(c) == 2){\n System.out.println(c);\n }\n }\n \n }", "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 }", "public static void main(String[] args) {\n\t\tint n=3;\n\t\tString s=\"1\";\n\t\tint count =1;\n\t\tint k=1;\n\t\twhile(k<n){\n\t\t\tStringBuilder t=new StringBuilder();\n\t\t\t//t.append(s.charAt(0));\n\t\t\tfor(int i=1;i<=s.length();i++){\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(i==s.length() || s.charAt(i-1)!=s.charAt(i)){\n\t\t\t\t\tt.append(count); t.append(s.charAt(i-1));\n\t\t\t\t\tcount=1;\n\t\t\t\t}\n\t\t\t\telse if(s.charAt(i-1)==s.charAt(i)){count=count+1;}\n\t\t\t }\t\n\t\t\t\ts=t.toString();\n\t\t\t\tk=k+1;\n\t\t\t\tSystem.out.println(\"k:\"+k);\n\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(s);\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private String reduce(String str, int i) {\n\t\tString ret = str;\n\t\tif (i == 8) {\n\t\t\tif (str.length() > 2) {\n\t\t\t\tret = str.substring(str.length()-2);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "public static void main(String[] args) {\nString str=\"subbu\";\nSystem.out.println(str.charAt(9));\n\t}", "public static void main(String[] args) {\n String str = \"geeksforgeeks\";\n System.out.println(longestRepeatedSubstring(str));\n String str1 = \"aaaaaaabbbbbaaa \";\n System.out.println(longestRepeatedSubstring(str1));\n }", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tString word=scan.nextLine();\n\t\tif(!(word.isEmpty())) {\n\t\t\tif(word.length()%2==1 && word.length()>=3) {\n\t\t\t\tSystem.out.println(word.charAt(word.length()/2));\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\tString str = \"Mr John Smith \";\r\n\t\tint trueLength= 13;\r\n\t\tint count=0;\r\n\t\tchar[] strArray = str.toCharArray();\r\n\t\t\r\n\t\tint charLength = strArray.length;\r\n\t\t\r\n\t\tfor(int i=0;i<str.length();i++) {\r\n\t\t\tif(str.charAt(i)==' ') count++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Total white spaces \"+ count);\r\n\t\t\r\n\t\tint index = charLength+2*count;\r\n\t\tif(trueLength<str.length()) strArray[trueLength]='\\0';\r\n\t\t\r\n\t\tfor(int i=charLength-1;i>=0;i--) {\r\n\t\t\tif(strArray[i]==' ') {\r\n\t\t\t\tstrArray[index-1]='0';\r\n\t\t\t\tstrArray[index-2]='2';\r\n\t\t\t\tstrArray[index-3]='%';\r\n\t\t\t\tindex=index-3;\r\n\t\t\t} else {\r\n\t\t\t\tstrArray[index-1]=strArray[i];\r\n\t\t\t\tindex--;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Final String \"+ strArray.toString());\r\n\t\t\r\n\t}", "public String nTwice(String str, int n) {\r\n String result = str;\r\n\r\n if (str.length() > n - 1) {\r\n String frontChars = str.substring(0, n);\r\n String backChars = str.substring(str.length() - n, str.length());\r\n\r\n result = frontChars + backChars;\r\n }\r\n\r\n return result;\r\n }", "public static void main(String[] args) \n\t{\n\t\tString str = \"647mahesh\";\n\t\tint size = str.length();\n\t\tint i;\n\t\tfor (i = 0; i < size ; i++)\n\t\t{\n\t\t\tchar split = str.charAt(i);\n\t\t\tif ('0'<=split && split<='8')\n\t\t\tbreak;\n\t\t}\n\t\tString numeric = str.substring(0,i);\n\t\tString alphabets = str.substring(i);\n\t\tSystem.out.println(numeric);\n\t\tSystem.out.println(alphabets);\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(name.charAt(3));\n\t\t\n\t\t// .indexOf('h') method will provide the index of the character we need\n\t\tSystem.out.println((name.indexOf('h')));\n\t\t\n\t\t// .substring(3, 7) will have two arguments start and end index\n\t\tSystem.out.println(name.substring(3, 7));\n\t\t\n\t\t// .concat(\" swaminathan\") to concat the string\n\t\tSystem.out.println(name.concat(\" swaminathan\"));\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public String withouEnd2(String str) {\r\n return str.length() > 2 ? str.substring(1, str.length() - 1) : \"\";\r\n }", "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 String RemoveDuplicatedLetters(String s, int k) {\n if (s.length() < k) {\n return s;\n }\n String result = \"\";\n int counter = 1;\n Stack<String> stack = new Stack<>();\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n result += stack.pop();\n\n while (!stack.isEmpty()) {\n if (stack.peek().equals(result.charAt(0) + \"\")) {\n counter += 1;\n } else {\n counter = 1;\n }\n result = stack.pop() + result;\n if (counter == k) {\n result = result.length() == k ? \"\" : result.substring(k);\n for (int i = 0; i < s.length(); i++) {\n stack.push(s.substring(i, i + 1));\n }\n counter = 0;\n }\n }\n return result;\n }", "void mo34677H(String str, int i, int i2);", "public static String secondName(String s) {\n\t\tint s0 = s.indexOf(FILE_SEP);\n\t\tint s1 = s.lastIndexOf(FILE_SEP);\n\t\tif (s0 != -1 && s1 != -1 ){\n\t\t\tif (s0 != s1) \treturn s.substring(s0 + 1, s1);//1\n\t\t\tif (s0 == s1) \treturn s.substring(s0 + 1);//2\n\t\t}\n\t\treturn \"\";\n\t}", "public static void printString(String s) {\n System.out.println(first(s));\n // Create variable to hold the string that changes every time\n String reststring = s;\n // Loop using for (because we need the count of the length of the\n // string)\n for (int i = 0; i < length(s); i++) {\n System.out.println(first(reststring));\n reststring = rest(reststring);\n }\n // Subtract first letter by using rest function\n\n }", "public static void main(String[] args) {\n\n char [] copy = new char[20];\n\n String misery = \"I'm your number one fan.\";\n\n misery.getChars(9, 23, copy, 0);\n\n System.out.println(copy);\n\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString s =\"hhpddlnnsjfoyxpciioigvjqzfbpllssuj\";\r\n\t\tint noOfChange=0;\r\n\t\r\n\t\t\r\n\t\tif(s.length()%2!=0){\r\n\t\t\t\r\n\t\t\tnoOfChange=-1;\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tString sub1=s.substring(0, (s.length()/2));\r\n\t\t\tString sub2=s.substring((s.length()/2), (s.length()));\r\n\t\t\tHashMap<Character, Integer>map = new HashMap<Character,Integer>();\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<sub1.length();i++){\r\n\t\t\t\tif(map.containsKey(sub1.charAt(i))){\r\n\t\t\t\t\t\r\n\t\t\t\t\tint count =map.get(sub1.charAt(i));\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tmap.put(sub1.charAt(i), count);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\t\t\t\t\t\r\n\t\t\t\t\tmap.put(sub1.charAt(i), 1);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(sub1);\r\n\t\t\tSystem.out.println(sub2);\r\n\t\t\tfor(int i=0;i<map.size();i++){\r\n\t\t\t\r\n\t\t\t\tif(map.containsKey(sub2.charAt(i))){\r\n\t\t\t\t\tint count =map.get(sub2.charAt(i));\r\n\t\t\t\t\tcount--;\r\n\t\t\t\t\tif(count<0){\r\n\t\t\t\t\t\tnoOfChange++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmap.put(sub2.charAt(i), count);\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tnoOfChange++;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(noOfChange);\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tScanner kb = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Input a string: \");\r\n\t\tString st = kb.nextLine();\r\n\t\tSystem.out.println(\"Result: \"+st.substring(0, st.length()/2));\r\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int number = scanner.nextInt();\n int secondDigit = (number / 10) % 10;\n System.out.println(secondDigit);\n }", "public static void main(String[] args) {\n\tint p1=0,p2=0;\r\n\tString s=\"got job in cts\";\r\n\twhile(p2!=-1)\r\n\t{\tp2=s.indexOf(' ',p1);\r\n\t\r\n\t\tif(p2==-1)\r\n\t\t{\r\n\t\t\tp2=s.length();\r\n\t\t\tSystem.out.println(s.substring(p1,p2));\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(s.substring(p1,p2));\r\n\t\t\tp1=p2+1;\r\n\t\t}\r\n\t}\r\n\t}", "static String stringCutter2(String s) {\n int value = s.length() % 2 == 0 ? s.length() / 2 : s.length() / 2 + 1;\n // pemotongan string untuk kelompok ke dua\n String sentence2 = s.substring(value, s.length());\n\n // perulangan untuk membalik setiap karakter pada kelompok kata ke dua\n String sentence2reverse = \"\";\n for (int i = sentence2.length() - 1; i >= 0; i--) {\n sentence2reverse += sentence2.toUpperCase().charAt(i);\n }\n return sentence2reverse;\n }", "public static void main(String[] args) {\n\t\tString str=\"Suman\";\n\t\tint len=str.length();\n String s1=str.substring(1,len-1);\n System.out.println(s1);\n\t}", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n String test = \"abcabcbb\";\n int result = LongestSubStringWithoutRepeatingCharacters.solution(test);\n System.out.println(result);\n }", "public MyString2 substring(int start) {\n\t\tString result = \" \";\n\t\tfor (int i = start, j = 0; i < s.length(); i++, j++) {\n\t\t\tresult += this.s.charAt(i);\n\t\t}\n\t\treturn new MyString2(result);\n\t}" ]
[ "0.70063394", "0.6787638", "0.63678795", "0.6311272", "0.6291495", "0.62614393", "0.6216801", "0.6199234", "0.61720645", "0.61349183", "0.6128064", "0.5977345", "0.5884568", "0.5862982", "0.5826915", "0.5770853", "0.57656884", "0.5741823", "0.5724199", "0.5704717", "0.5685096", "0.5664797", "0.5663349", "0.5651749", "0.56399894", "0.5606754", "0.56040573", "0.55981046", "0.5595727", "0.55949074", "0.5591474", "0.55848056", "0.55839473", "0.5582619", "0.557479", "0.5556729", "0.553357", "0.5525244", "0.55223143", "0.5520842", "0.5510816", "0.54958576", "0.54931176", "0.5491636", "0.5479802", "0.5466014", "0.54652786", "0.5460152", "0.5452911", "0.5451609", "0.5448352", "0.54412955", "0.5440875", "0.54243284", "0.54082817", "0.54033554", "0.54004455", "0.53975755", "0.5394268", "0.5390361", "0.5388326", "0.5385309", "0.53557456", "0.53545165", "0.53508407", "0.5347823", "0.53406006", "0.53391373", "0.5338616", "0.5331279", "0.5331143", "0.5328606", "0.5324324", "0.53187495", "0.53180045", "0.53138417", "0.53052574", "0.5303066", "0.52971464", "0.52957463", "0.5287446", "0.52777135", "0.5277125", "0.5275145", "0.52632666", "0.52559596", "0.52555484", "0.5254428", "0.52498704", "0.5247149", "0.5243969", "0.5241445", "0.52359027", "0.5227563", "0.5225353", "0.5222818", "0.52213734", "0.52189434", "0.52164626", "0.52131903" ]
0.8060007
0
Utility class that is used to do AppLogging. The actual Applog is done only once with a status of either success or fail. In between the applogging name value pairs are continuously updated to indicate the current progress of the workflow.
public void appLog(int eventId, WorkAssignment workAssignment, UserInfoDocument userInfoDocument, MitchellEnvelopeDocument mitchellEnvelopeDocument) throws MitchellException { appLog(eventId, workAssignment, userInfoDocument, mitchellEnvelopeDocument, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void syncLogsAccordingly( ){\n Log.d(TAG, \"Syncing Logs to Log panel\");\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully \");\n HyperLog.deleteLogs();\n onSync.onSyncSuccess(\"\"+AtsConstants.SYNC_EXISTING_LOGS);\n }else{\n Log.e(TAG, \"Logs Not synced from server got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n }", "private AppLogs getAndSetAppLogs(ApplicationId applicationId)\n throws IOException {\n LOG.debug(\"Looking for app logs mapped for app id {}\", applicationId);\n AppLogs appLogs = appIdLogMap.get(applicationId);\n if (appLogs == null) {\n AppState appState = AppState.UNKNOWN;\n Path appDirPath = getDoneAppPath(applicationId);\n if (fs.exists(appDirPath)) {\n appState = AppState.COMPLETED;\n } else {\n appDirPath = getActiveAppPath(applicationId);\n if (fs.exists(appDirPath)) {\n appState = AppState.ACTIVE;\n } else {\n // check for user directory inside active path\n RemoteIterator<FileStatus> iter = list(activeRootPath);\n while (iter.hasNext()) {\n Path child = new Path(iter.next().getPath().getName(),\n applicationId.toString());\n appDirPath = new Path(activeRootPath, child);\n if (fs.exists(appDirPath)) {\n appState = AppState.ACTIVE;\n break;\n }\n }\n }\n }\n if (appState != AppState.UNKNOWN) {\n LOG.debug(\"Create and try to add new appLogs to appIdLogMap for {}\",\n applicationId);\n appLogs = createAndPutAppLogsIfAbsent(\n applicationId, appDirPath, appState);\n }\n }\n return appLogs;\n }", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "public StatusLogger getStatusLogger();", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}", "protected AppLoggingNVPairs addTimingAndMachineApplogInfo(\n AppLoggingNVPairs appLogPairs, long startTime)\n {\n // Processing time\n\n if (startTime > 0) {\n long endTime = System.currentTimeMillis();\n double totalTime = ((endTime - startTime) / 1000.0);\n appLogPairs.addInfo(\"TotalProcessingTimeSecs\", String.valueOf(totalTime));\n }\n\n // Machine Name/Server Name\n\n String machineInfo = AppUtilities.buildServerName();\n if (machineInfo != null && machineInfo.length() > 0) {\n appLogPairs.addInfo(\"ProcessingMachineInfo\", machineInfo);\n }\n\n return appLogPairs;\n }", "Response<Void> logApplicationStart(String uniqueIdentifier);", "public void checkApplication() {\r\n logger.info(\"ADIT monitor - Checking application.\");\r\n List<String> errorMessages = new ArrayList<String>();\r\n double duration = 0;\r\n DecimalFormat df = new DecimalFormat(\"0.000\");\r\n\r\n Date start = new Date();\r\n long startTime = start.getTime();\r\n\r\n // 1. Check temporary folder\r\n try {\r\n\r\n String tempDir = this.getConfiguration().getTempDir();\r\n File tempDirFile = new File(tempDir);\r\n String randomFileName = Util.generateRandomFileName();\r\n File temporaryFile = new File(tempDirFile.getAbsolutePath() + File.separator + randomFileName);\r\n temporaryFile.createNewFile();\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error checking application - temporary directory not defined or not writable: \", e);\r\n errorMessages.add(\"Error checking application - temporary directory not defined or not writable: \"\r\n + e.getMessage());\r\n }\r\n\r\n // 3. Check test document ID\r\n try {\r\n\r\n Long testDocumentID = this.getMonitorConfiguration().getTestDocumentId();\r\n if (testDocumentID == null) {\r\n throw new Exception(\"Test document ID not defined.\");\r\n }\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error checking application - test document ID not defined.\");\r\n errorMessages.add(\"Error checking application - test document ID not defined.\");\r\n }\r\n\r\n Date end = new Date();\r\n long endTime = end.getTime();\r\n duration = (endTime - startTime) / 1000.0;\r\n\r\n // Errors were detected\r\n if (errorMessages.size() > 0) {\r\n String combinedErrorMessage = \"\";\r\n for (int i = 0; i < errorMessages.size(); i++) {\r\n if (i != 0) {\r\n combinedErrorMessage = combinedErrorMessage + \", \";\r\n }\r\n combinedErrorMessage = combinedErrorMessage + errorMessages.get(i);\r\n }\r\n\r\n this.getNagiosLogger().log(ADIT_APP + \" \" + FAIL + \" \",\r\n new Exception(\"Errors found: \" + combinedErrorMessage));\r\n } else {\r\n this.getNagiosLogger().log(ADIT_APP + \" \" + OK + \" \" + df.format(duration) + \" \" + SECONDS);\r\n }\r\n\r\n }", "public static void logStatus(){\r\n\t\tLogger log = Logger.getLogger(LOGGER_NAME);\r\n\t\tStringBuilder logString = new StringBuilder(\"\\n*** PlugIn Status ***\\n\");\r\n\t\t\r\n\t\tList<String> storagePlugins = getPluginsByType(PluginType.STORAGE);\r\n\t\tlogString.append(\"Storage PlugIns: \"+storagePlugins.size()+\"\\n\");\r\n\t\t\r\n\t\tlog.info(logString.toString());\r\n\t\treturn;\r\n\t}", "abstract protected void _log(TrackingActivity activity) throws Exception;", "abstract void initiateLog();", "void completeLogs() throws IOException;", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "void initializeLogging();", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "void completeCurrentLog() throws IOException;", "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 }", "private synchronized void updateLogCount() {\n this.logCount++;\n }", "public void setTrip(final String flag, final String tag, final String locationSubmissionURL, final OnAtsTripSetterListeners onAtsTripSetterListeners) throws Exception{\n\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully while setting trip.\");\n startSettingFlagNow(flag, tag, locationSubmissionURL, onAtsTripSetterListeners);\n }else{\n Log.e(TAG, \"Logs Not synced from server while setting trip got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n onAtsTripSetterListeners.onTripSetFail(\"Logs Not synced from server while setting trip got message \"+modelResultChecker.getMessage());\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onAtsTripSetterListeners.onTripSetFail(\"Logs Not synced while setting trip with error code: \"+e.getMessage());\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n\n }", "void setupFileLogging();", "protected void logSuccess() {\n String nameToLog = null;\n if (loggedAttributeId != null && attributeContext != null) {\n final IdPAttribute attrToLog = attributeContext.getIdPAttributes().get(loggedAttributeId);\n if (attrToLog != null && !attrToLog.getValues().isEmpty()) {\n nameToLog = attrToLog.getValues().get(0).getDisplayValue();\n }\n }\n \n if (nameToLog == null && samlAuthnContext.getSubject() != null\n && samlAuthnContext.getSubject().getNameID() != null) {\n nameToLog = samlAuthnContext.getSubject().getNameID().getValue();\n }\n\n log.info(\"{} SAML authentication succeeded for '{}'\", getLogPrefix(), nameToLog);\n }", "void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }", "public synchronized void setAppLogs(\n EntityGroupFSTimelineStore.AppLogs incomingAppLogs) {\n this.appLogs = incomingAppLogs;\n }", "private void recordPushLog(String configName) {\n PushLog pushLog = new PushLog();\n pushLog.setAppId(client.getAppId());\n pushLog.setConfig(configName);\n pushLog.setClient(IP4s.intToIp(client.getIp()) + \":\" + client.getPid());\n pushLog.setServer(serverHost.get());\n pushLog.setCtime(new Date());\n pushLogService.add(pushLog);\n }", "Appendable getLog();", "private String getLog() {\n\n\t\tNexTask curTask = TaskHandler.getCurrentTask();\n\t\tif (curTask == null || curTask.getLog() == null) {\n\t\t\treturn \"log:0\";\n\t\t}\n\t\tString respond = \"task_log:1:\" + TaskHandler.getCurrentTask().getLog();\n\t\treturn respond;\n\t}", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "protected void writeLog() {\r\n\r\n // get the current date/time\r\n DateFormat df1 = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\r\n\r\n // write to the history area\r\n if (Preferences.is(Preferences.PREF_LOG) && completed) {\r\n\r\n if (destImage != null) {\r\n\r\n if (srcImage != null) {\r\n destImage.getHistoryArea().setText(srcImage.getHistoryArea().getText());\r\n }\r\n\r\n if (historyString != null) {\r\n destImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n } else if (srcImage != null) {\r\n\r\n if (historyString != null) {\r\n srcImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n }\r\n }\r\n }", "private void logSummary(int migrationSuccessCount, long executionTime) {\n if (migrationSuccessCount == 0) {\n LOG.info(\"Mongo is up to date. No migration necessary.\");\n return;\n }\n\n if (migrationSuccessCount == 1) {\n LOG.info(\"Successfully applied 1 migration to MongoDB (execution time \" +\n TimeFormat.format(executionTime) + \").\");\n } else {\n LOG.info(\"Successfully applied \" + migrationSuccessCount +\n \" migrations to MongoDB (execution time \" +\n TimeFormat.format(executionTime) + \").\");\n }\n }", "private void repetitiveWork(){\n\t PropertyConfigurator.configure(\"log4j.properties\");\n\t log = Logger.getLogger(BackupRestore.class.getName());\n }", "public static void audit(Object arg0) {\n MDC.put(INVOCATION_ID, MDC.get(MDC_KEY_REQUEST_ID));\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n MDC.put(RESPONSE_CODE, \"0\");\n MDC.put(classNameProp, \"\");\n auditLogger.info(\"{}\", arg0);\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 updateLog(String newName){\r\n\t\tString timeStamp = new SimpleDateFormat(\"yyyy/MM/dd HH:mm.ss\").format(new java.util.Date());\r\n\t\tlogger.log(Level.SEVERE,\"Previous name:{0}, New Name: {1}, Date: {2}\", new Object[] {name, newName,timeStamp});\r\n\t}", "public void logData(){\n }", "public void initALog() {\n ALog.Config config = ALog.init(this)\n .setLogSwitch(BuildConfig.DEBUG)// 设置log总开关,包括输出到控制台和文件,默认开\n .setConsoleSwitch(BuildConfig.DEBUG)// 设置是否输出到控制台开关,默认开\n .setGlobalTag(null)// 设置log全局标签,默认为空\n // 当全局标签不为空时,我们输出的log全部为该tag,\n // 为空时,如果传入的tag为空那就显示类名,否则显示tag\n .setLogHeadSwitch(false)// 设置log头信息开关,默认为开\n .setLog2FileSwitch(false)// 打印log时是否存到文件的开关,默认关\n .setDir(\"\")// 当自定义路径为空时,写入应用的/cache/log/目录中\n .setFilePrefix(\"\")// 当文件前缀为空时,默认为\"alog\",即写入文件为\"alog-MM-dd.txt\"\n .setBorderSwitch(true)// 输出日志是否带边框开关,默认开\n .setSingleTagSwitch(true)// 一条日志仅输出一条,默认开,为美化 AS 3.1.0 的 Logcat\n .setConsoleFilter(ALog.V)// log的控制台过滤器,和logcat过滤器同理,默认Verbose\n .setFileFilter(ALog.V)// log文件过滤器,和logcat过滤器同理,默认Verbose\n .setStackDeep(1)// log 栈深度,默认为 1\n .setStackOffset(0)// 设置栈偏移,比如二次封装的话就需要设置,默认为 0\n .setSaveDays(3)// 设置日志可保留天数,默认为 -1 表示无限时长\n // 新增 ArrayList 格式化器,默认已支持 Array, Throwable, Bundle, Intent 的格式化输出\n .addFormatter(new ALog.IFormatter<ArrayList>() {\n @Override\n public String format(ArrayList list) {\n return \"ALog Formatter ArrayList { \" + list.toString() + \" }\";\n }\n });\n ALog.d(config.toString());\n }", "private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }", "String getLogContinued();", "void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "String getLogRetryAttempted();", "public void logStoreAppendSuccess(AppendLogCommand cmd) {\r\n\r\n\r\n\r\n if (logger.isInfoEnabled())\r\n logger.info(\"LogStore call back MemberAppend {}\",\r\n new String(cmd.getTerm() + \" \" + cmd.getLastIndex()));\r\n\r\n\r\n\r\n // send to all follower and self\r\n\r\n\r\n\r\n }", "public void LogIt(ExtentTest logger,String StepInfo){\r\n logger.log(Status.INFO,StepInfo);\r\n }", "@InterfaceAudience.Private\n @VisibleForTesting\n long scanForLogs() throws IOException {\n LOG.debug(\"scanForLogs on {}\", appDirPath);\n long newestModTime = 0;\n RemoteIterator<FileStatus> iterAttempt = list(appDirPath);\n while (iterAttempt.hasNext()) {\n FileStatus statAttempt = iterAttempt.next();\n LOG.debug(\"scanForLogs on {}\", statAttempt.getPath().getName());\n if (!statAttempt.isDirectory()\n || !statAttempt.getPath().getName()\n .startsWith(ApplicationAttemptId.appAttemptIdStrPrefix)) {\n LOG.debug(\"Scanner skips for unknown dir/file {}\",\n statAttempt.getPath());\n continue;\n }\n String attemptDirName = statAttempt.getPath().getName();\n RemoteIterator<FileStatus> iterCache = list(statAttempt.getPath());\n while (iterCache.hasNext()) {\n FileStatus statCache = iterCache.next();\n if (!statCache.isFile()) {\n continue;\n }\n String filename = statCache.getPath().getName();\n String owner = statCache.getOwner();\n //YARN-10884:Owner of File is set to Null on WASB Append Operation.ATS fails to read such\n //files as UGI cannot be constructed using Null User.To Fix this,anonymous user is set\n //when ACL us Disabled as the UGI is not needed there\n if ((owner == null || owner.isEmpty()) && !aclsEnabled) {\n LOG.debug(\"The owner was null when acl disabled, hence making the owner anonymous\");\n owner = \"anonymous\";\n }\n // We should only update time for log files.\n boolean shouldSetTime = true;\n LOG.debug(\"scan for log file: {}\", filename);\n if (filename.startsWith(DOMAIN_LOG_PREFIX)) {\n addSummaryLog(attemptDirName, filename, owner, true);\n } else if (filename.startsWith(SUMMARY_LOG_PREFIX)) {\n addSummaryLog(attemptDirName, filename, owner,\n false);\n } else if (filename.startsWith(ENTITY_LOG_PREFIX)) {\n addDetailLog(attemptDirName, filename, owner);\n } else {\n shouldSetTime = false;\n }\n if (shouldSetTime) {\n newestModTime\n = Math.max(statCache.getModificationTime(), newestModTime);\n }\n }\n }\n\n // if there are no logs in the directory then use the modification\n // time of the directory itself\n if (newestModTime == 0) {\n newestModTime = fs.getFileStatus(appDirPath).getModificationTime();\n }\n\n return newestModTime;\n }", "private static void initLog() {\n LogManager.mCallback = null;\n if (SettingsManager.getDefaultState().debugToasts) {\n Toast.makeText(mContext, mContext.getClass().getCanonicalName(), Toast.LENGTH_SHORT).show();\n }\n if (SettingsManager.getDefaultState().debugLevel >= LogManager.LEVEL_ERRORS) {\n new TopExceptionHandler(SettingsManager.getDefaultState().debugMail);\n }\n //Si hubo un crash grave se guardo el reporte en el sharedpreferences, por lo que al inicio\n //levanto los posibles crashes y, si el envio por mail está activado , lo envio\n String possibleCrash = StoreManager.pullString(\"crash\");\n if (!possibleCrash.equals(\"\")) {\n OtherAppsConnectionManager.sendMail(\"Stack\", possibleCrash, SettingsManager.getDefaultState().debugMailAddress);\n StoreManager.removeObject(\"crash\");\n }\n }", "void log();", "private void getLogs(final CallbackContext callbackContext) {\n final Activity context = cordova.getActivity();\n this.cordova.getThreadPool().execute(new Runnable() {\n public void run() {\n try {\n // TODO: Consultar base de datos.\n List<String> messages = new AppDatabase(context).getMessages();\n\n Log.v(\"Cordova\", \"messages count: \" + messages.size());\n\n String[] payload = messages.toArray(new String[0]);\n\n // Convierte el payLoad a JSON.\n String json = new Gson().toJson(payload);\n\n CordovaPluginJavaConnection.getLogsContext = callbackContext;\n sendResultSuccess(callbackContext, json);\n } catch (Exception ex) {\n errorProcess(callbackContext, ex);\n }\n }\n });\n }", "private static void setupLogger(Application application) {\n\n\t\tapplication.addComponentMenu(Logger.class, \"Logger\", 0);\n\t\tapplication.addComponentMenuElement(Logger.class, \"Clear log\",\n\t\t\t\t(ActionEvent e) -> application.flushLoggerOutput());\n\t\tapplication.addComponentMenuElement(Logger.class, \"Fine level\", (ActionEvent e) -> logger.setLevel(Level.FINE));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Info level\", (ActionEvent e) -> logger.setLevel(Level.INFO));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Warning level\",\n\t\t\t\t(ActionEvent e) -> logger.setLevel(Level.WARNING));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Severe level\",\n\t\t\t\t(ActionEvent e) -> logger.setLevel(Level.SEVERE));\n\t\tapplication.addComponentMenuElement(Logger.class, \"OFF logging\", (ActionEvent e) -> logger.setLevel(Level.OFF));\n\t}", "String getLogHandled();", "public String getRunLog();", "private void Log(String action) {\r\n\t}", "private void log(String val)\n {\n System.out.println(String.format(\"JOB: %s CPU #: %s MSG: %s\",\n currentJobNumber(),\n cpuNum,\n val));\n }", "public String getLog();", "abstract void initiateErrorLog();", "public void log(View view) {\n Log.i(TAG, \"LOGGING FOR \" + X + \", \" + Y);\n logButton.setText(R.string.logging_message);\n logButton.setEnabled(false);\n progressBar.setVisibility(View.VISIBLE);\n\n numLogs = 0;\n // Stops scanning after a pre-defined scan period.\n mHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n numLogs++;\n if (numLogs < NUM_LOGS){\n log();\n mHandler.postDelayed(this, SCAN_PERIOD);\n } else {\n mScanning = false;\n scanBLEDevice(false);\n logButton.setText(R.string.start_log_message);\n logButton.setEnabled(true);\n progressBar.setVisibility(View.INVISIBLE);\n }\n }\n }, SCAN_PERIOD);\n\n mScanning = true;\n scanBLEDevice(true);\n\n }", "public static void loggingExample() {\n\t\tSystem.out.println(\"This is running with the default logger!\");\n\t\tnewLogger.fatal(\"This is fatal\");\n\t\tnewLogger.warn(\"This is the warn level\");\n\t\tnewLogger.info(\"This is the info level\");\n\t\t\n\t}", "abstract protected String getLogFileName();", "LogAction createLogAction();", "private void showExecutionStart() {\n log.info(\"##############################################################\");\n log.info(\"Creating a new web application with the following parameters: \");\n log.info(\"##############################################################\");\n log.info(\"Name: \" + data.getApplicationName());\n log.info(\"Package: \" + data.getPackageName());\n log.info(\"Database Choice: \" + data.getDatabaseChoice());\n log.info(\"Database Name: \" + data.getDatabaseName());\n log.info(\"Persistence Module: \" + data.getPersistenceChoice());\n log.info(\"Web Module: \" + data.getWebChoice());\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}", "@Test\npublic void testAppend() throws Exception { \n Syslog.Append(\"SylogTest\",\"testAppend\",\"Test ok\");\n}", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "@Override\n\tpublic void update() {\n\t\tFile logFile = new File(AppStorage.getInstance().getLogFileLocation());\n\t\tlogFile.getParentFile().mkdirs();\n\n\t\ttry {\n\t\t\tFileHandler fileHandler = new FileHandler(AppStorage.getInstance().getLogFileLocation(), true);\n\t\t\tSimpleFormatter formatter = new SimpleFormatter();\n\t\t\tfileHandler.setFormatter(formatter);\n\n\t\t\twhile (logger.getHandlers().length > 0) {\n\t\t\t\tFileHandler prevFileHandler = (FileHandler)logger.getHandlers()[0];\n\t\t\t\tlogger.removeHandler(prevFileHandler);\n\t\t\t\tprevFileHandler.close();\n\t\t\t}\n\n\t\t\tlogger.addHandler(fileHandler);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void logs() {\n \n }", "public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(serverLogsArray.toJSONString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.loggingApiEndpoint, this.server.createContext(this.loggingApiEndpoint));\n this.setHandler(this.getLoggingApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.getLoggingApiEndpoint(), 0);\n }", "private static boolean updateFilureLog(final HealthCheckVO healthCheckVO, final long currentFailedCount) {\n\t\tfinal Status status = healthCheckVO.getStatus().getStatus();\n\t\t\n\t\t//Update the failure log only if there is a status change\n\t\tif (status == healthCheckVO.getCurrentStatus()) {\n\t\t\treturn false;\n\t\t}\n\t\t//Even if there is a failure and the max retry count is not reached - ignore\n\t\tif (status != Status.UP && currentFailedCount < healthCheckVO.getHealthCheckRetryMaxCount().longValue()) {\n\t\t\treturn false;\n\t\t}\n\t\t//First time status check and if success - ignore\n\t\tif(healthCheckVO.getCurrentStatus() == null && status == Status.UP){\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\tString message = healthCheckVO.getStatus().getMessage();\n\t\tif (status != Status.UP && currentFailedCount >= healthCheckVO.getHealthCheckRetryMaxCount().longValue()) {\n\t\t\tmessage = healthCheckVO.getStatus().getMessage();\n\t\t} else if (status == Status.UP) {\n\t\t\tmessage = \"Status changed from \\\"\" + (healthCheckVO.getCurrentStatus() == null ? \"Not Available\"\n\t\t\t\t\t\t\t: healthCheckVO.getCurrentStatus().getStatusDesc()) + \"\\\" to \\\"\" + status.getStatusDesc() + \"\\\"\";\n\t\t}\n\t\tfinal String updateMessage = message;\n\t\thealthCheckVO.setFailureStatusMessage(updateMessage);\n\t\tComponentFailureLogEntity cfl = new ComponentFailureLogEntity();\n\t\tcfl.setCompRegStsTime(new java.sql.Timestamp(System.currentTimeMillis()));\n\t\tcfl.setFailureMessage(updateMessage);\n\t\tcfl.setStatusId(status.getStatusId());\n\t\tcfl.setHealthCheckId(healthCheckVO.getHealthCheckId());\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tsession.save(cfl);\n\t\ttxn.commit();\n\t\t\n\t\tlogger.debug(\"Inserted Failed Status comp_failure_log : HEALTH_CHECK = \" + healthCheckVO.getHealthCheckId());\n\t\treturn true;\n\t}", "private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}", "void addLog(String beforeChange, String afterChange, String time) {\r\n ArrayList<String> logItem = new ArrayList<>();\r\n logItem.add(beforeChange);\r\n logItem.add(afterChange);\r\n logItem.add(time);\r\n allLogs.add(logItem);\r\n writeToFile(\"Save.bin\",allLogs);\r\n }", "public void globallog() {\n for (Comm currcomm: allcomms.values()) {\n System.out.println(\"===\");\n System.out.println(\"commit \" + currcomm.getCommitID());\n if (currcomm.getMergepointer() != null) {\n System.out.println(\"Merge: \"\n + currcomm.getParent()\n .getCommitID().substring(0, 7) + \" \"\n + currcomm\n .getMergepointer().getCommitID().substring(0, 7));\n }\n System.out.println(\"Date: \" + currcomm.getDate());\n System.out.println(currcomm.getMessage());\n System.out.println();\n }\n }", "abstract public LoggingService getLoggingService();", "public void threadStatusLog() {\n LogUtils.logger(TAG, \"All Run Thread Size : \" + threadControl.size() +\n \"\\nAll Run Thread : \" + threadControl);\n\n }", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\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}", "private void logToFile() {\n }", "@Override\r\n\tpublic String log(String info) {\n\t\tlong id=Thread.currentThread().getId();\r\n\t\tCalcThread b=ProCalcManage.getInstance().threadIDMap.get(id);\r\n\t\tsynchronized (b.proinfo.info.log) {\r\n\t\t\tb.proinfo.info.log.add(new LogInfo(new Date(), info));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn info;\r\n\t}", "@RequestMapping(\"/\")\n String hello(){\n logger.debug(\"Debug message\");\n logger.info(\"Info message\");\n logger.warn(\"Warn message\");\n logger.error(\"Error message\");\n return \"Done\";\n }", "private TypicalLogEntries() {}", "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}", "static public void storeLogs(final boolean shouldStoreLogs) {\n ThreadPoolWorkQueue.execute(new Runnable() {\n @Override public void run() {\n setCaptureSync(shouldStoreLogs);\n // we do this mostly to enable unit tests to logger.wait(100) instead of\n // Thread.sleep(100) -- it's faster, more stable, and more deterministic that way\n synchronized (WAIT_LOCK) {\n WAIT_LOCK.notifyAll ();\n }\n }\n });\n }", "public void enableLogging();", "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 }", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "public void globalLog() {\n\t\tIterator iter = myCommit.entrySet().iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iter.next();\n\t\t\tVersion currVersion = (Version) entry.getValue();\n\t\t\tcurrVersion.log();\n\t\t}\n\t}", "public void testParseLoggingWithApplicationTime() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset3.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 1100288, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 1100288, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 1, jvmRun.getNewRatio());\n Assert.assertEquals(\"Event count not correct.\", 3, jvmRun.getEventTypes().size());\n Assert.assertFalse(JdkUtil.LogEventType.UNKNOWN.toString() + \" collector identified.\",\n jvmRun.getEventTypes().contains(LogEventType.UNKNOWN));\n Assert.assertEquals(\"Should not be any unidentified log lines.\", 0, jvmRun.getUnidentifiedLogLines().size());\n Assert.assertTrue(\"Log line not recognized as \" + JdkUtil.LogEventType.PAR_NEW.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.PAR_NEW));\n Assert.assertTrue(\n \"Log line not recognized as \" + JdkUtil.LogEventType.APPLICATION_STOPPED_TIME.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.APPLICATION_STOPPED_TIME));\n Assert.assertTrue(Analysis.INFO_NEW_RATIO_INVERTED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_NEW_RATIO_INVERTED));\n }", "protected void logStatusMessage(int status) {\n switch (status) {\n case EXIT_OK:\n logger.info(\"SCHEMA CHANGE: OK\");\n break;\n case EXIT_BAD_ARGS:\n logger.severe(\"SCHEMA CHANGE: BAD ARGS\");\n break;\n case EXIT_RUNTIME_ERROR:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n case EXIT_VALIDATION_FAILED:\n logger.warning(\"SCHEMA CHANGE: FAILED\");\n break;\n default:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n }\n }", "@Override\n\tpublic void run() {\n\t\tif (this.isRunning == true) {\n\t\t\treturn;\n\t\t}\n\t\tthis.isRunning = true;\n\t\t// 写入一条日志\n\t\t\n\t\t// 详细运行参数\n\t\ttry {\n\t\t\tthis.taskRun();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isRunning = false;\n\t\tthis.addHistory(new Date());\n\t\tif(this.once) {\n\t\t\tthis.cancel();\n\t\t}\n\t}", "private void getloggersStatus() { \n\t\tAppClientFactory.getInjector().getSearchService().isClientSideLoggersEnabled(new SimpleAsyncCallback<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\tAppClientFactory.setClientLoggersEnabled(result);\n\t\t\t}\n\t\t\t\n\t\t});\n\t}", "private void logCacheStatus() {\n if (!LOGGER.canLogAtLevel(LogLevel.VERBOSE)) {\n return;\n }\n\n final int size = cache.size();\n final int length = cache.getTotalLength();\n\n LOGGER.atVerbose()\n .addKeyValue(SIZE_KEY, size)\n .addKeyValue(TOTAL_LENGTH_KEY, length)\n .log(\"Cache entry added or updated. Total number of entries: {}; Total schema length: {}\",\n size, length);\n }", "@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }", "@Override\n\tpublic void onApplicationEvent(ContextRefreshedEvent event) {\n\t\tlogger.info(\"XD Home: \" + environment.resolvePlaceholders(\"${XD_HOME}\"));\n\t\tlogger.info(\"Transport: \" + environment.resolvePlaceholders(\"${XD_TRANSPORT}\"));\n\t\tlogHadoopDistro();\n\t\tlogConfigLocations();\n\t\tif (isContainer) {\n\t\t\tlogContainerInfo();\n\t\t}\n\t\telse {\n\t\t\tlogAdminUI();\n\t\t}\n\t\tlogZkConnectString();\n\t\tlogZkNamespace();\n\t\tlogger.info(\"Analytics: \" + environment.resolvePlaceholders(\"${XD_ANALYTICS}\"));\n\t\tif (\"true\".equals(environment.getProperty(\"verbose\"))) {\n\t\t\tlogAllProperties();\n\t\t}\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}", "public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }", "@Override\n public void onStepRunning(FlowStep flowStep) {\n //getting Hadoop running job and job client\n HadoopStepStats stats = (HadoopStepStats)flowStep.getFlowStepStats();\n JobClient jc = stats.getJobClient();\n\n // first we report the scripts progress\n int progress = (int) (((runnigJobs * 1.0) / totalNumberOfJobs) * 100);\n Map<Event.WorkflowProgressField, String> eventData = Maps.newHashMap();\n eventData.put(Event.WorkflowProgressField.workflowProgress, Integer.toString(progress));\n pushEvent(currentFlowId, new Event.WorkflowProgressEvent(eventData));\n\n //get job node\n String jobId = stats.getJobID();\n DAGNode<CascadingJob> node = dagNodeJobIdMap.get(jobId);\n if (node == null) {\n log.warn(\"Unrecognized jobId reported for succeeded job: \" + stats.getJobID());\n return;\n }\n\n //only push job progress events for a completed job once\n if (node.getJob().getMapReduceJobState() != null && !completedJobIds.contains(node.getJob().getId())) {\n pushEvent(currentFlowId, new Event.JobProgressEvent(node));\n addMapReduceJobState(node.getJob(), stats);\n\n if (node.getJob().getMapReduceJobState().isComplete()) {\n completedJobIds.add(node.getJob().getId());\n }\n }\n }", "private void syncLogsAccordingly() throws Exception{\n HashMap<String, String> params = new HashMap<>();\n params.put(\"timezone\", TimeZone.getDefault().getID());\n List<DeviceLogModel> deviceLogModels = HyperLog.getDeviceLogs(false) ;\n\n\n JSONObject jsonObject = new JSONObject();\n\n try{\n jsonObject.put(\"key\",gson.toJson(deviceLogModels));\n }catch (Exception e){\n Toast.makeText(mContext, \"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n\n AndroidNetworking.post(\"\" + EndPoint)\n .addJSONObjectBody(jsonObject)\n .setTag(this)\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(final JSONObject jsonObject) {\n HyperLog.deleteLogs();\n }\n\n @Override\n public void onError(ANError anError) {\n// Toast.makeText(ATSApplication.this, \"ERROR : \"+anError.getErrorBody(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tlogger.log();\n\t}", "@Test\n public void testSendingData_platformStatusCodeIgnored_ifNotWaitingForResults()\n throws Throwable {\n mPlatformServiceBridge.setLogMetricsBlockingStatus(1);\n\n AwMetricsLogUploader uploader = new AwMetricsLogUploader(\n /* waitForResults= */ false, /* useDefaultUploadQos= */ false);\n int status = uploader.log(SAMPLE_TEST_METRICS_LOG.toByteArray());\n Assert.assertEquals(HttpURLConnection.HTTP_OK, status);\n }", "public static void actionLogPostProcessor(ResponseStatus statusCode, String responseCode, String responseDescription, boolean isServiceMetricLog,\n LongSupplier getCurrentTime) {\n MDC.put(STATUS_CODE, statusCode.name());\n if (responseCode != null) {\n int logResponseCode = getLogResponseCode(responseCode);\n MDC.put(RESPONSE_CODE, Integer.toString(logResponseCode));\n }\n MDC.put(RESPONSE_DESCRIPTION, responseDescription);\n long beginTimestamp;\n if (isServiceMetricLog) {\n beginTimestamp = Long.parseLong(MDC.get(SERVICE_METRIC_BEGIN_TIMESTAMP));\n } else {\n beginTimestamp = Long.parseLong(MDC.get(BEGIN_TIMESTAMP));\n }\n long endTimestamp = getCurrentTime.getAsLong();\n MDC.put(BEGIN_TIMESTAMP, getLogUtcDateStringFromTimestamp(new Date(beginTimestamp)));\n MDC.put(END_TIMESTAMP, getLogUtcDateStringFromTimestamp(new Date(endTimestamp)));\n MDC.put(ELAPSED_TIME, String.valueOf(endTimestamp - beginTimestamp));\n }", "protected static void pushLog(GDsendObj _pushAction) {\n\t\tint i = 0;\n for (i = 0; i < Pool.size(); i++) {\n if ( Pool.get(i).action == _pushAction.action) {\n if (Pool.get(i).action == \"custom\" && ((GDcustomLog)Pool.get(i).value).key == ((GDcustomLog)_pushAction.value).key) {\n ((GDcustomLog)Pool.get(i).value).value++;\n } else {\n Pool.get(i).value = _pushAction.value;\n }\n break;\n }\n }\n if (i == Pool.size()) Pool.add(_pushAction);\n return; \t\t\n\t}" ]
[ "0.58677334", "0.57884294", "0.56462187", "0.55544823", "0.54810655", "0.5476934", "0.541889", "0.53920037", "0.53751415", "0.5332947", "0.5326464", "0.5320318", "0.53147095", "0.5304191", "0.52939487", "0.52326", "0.52273965", "0.519231", "0.51906025", "0.5190034", "0.5182837", "0.51734155", "0.51553756", "0.51369894", "0.5129647", "0.5096109", "0.50865173", "0.5072285", "0.50665414", "0.5066295", "0.50399184", "0.5012004", "0.5004209", "0.4988377", "0.49722072", "0.49637827", "0.49431902", "0.49369967", "0.49308115", "0.49307305", "0.49206382", "0.49188834", "0.49160463", "0.4908109", "0.48884925", "0.48705938", "0.48700657", "0.48463297", "0.48462665", "0.48308817", "0.48302275", "0.48098007", "0.48054186", "0.47856775", "0.47847942", "0.4783033", "0.476633", "0.47635642", "0.4763062", "0.47589228", "0.4736544", "0.47362578", "0.47360075", "0.4732434", "0.4731909", "0.47304666", "0.47297063", "0.47293022", "0.47209513", "0.471084", "0.4709422", "0.47050095", "0.47050095", "0.47050095", "0.47034994", "0.47025254", "0.47016472", "0.46981752", "0.4694894", "0.46872857", "0.46824056", "0.4682251", "0.4681844", "0.4678244", "0.4678244", "0.46762717", "0.4674478", "0.46743184", "0.46726507", "0.46725047", "0.46626475", "0.46625268", "0.46536955", "0.4652364", "0.46483856", "0.4645958", "0.4640887", "0.46394947", "0.46394593", "0.46309915", "0.4628707" ]
0.0
-1
A function to transform the elements in ME to Event Details NV Pairs.
public void transformMEToAppLogNVPair( final MitchellEnvelopeDocument mitchellEnvelopeDocument, final EventDetails eventDetailsIn) throws MitchellException { final String METHOD_NAME = "transformMEToAppLogNVPair"; logger.entering(CLASS_NAME, METHOD_NAME); final String inputMEXML = mitchellEnvelopeDocument.xmlText(); final String appLogXSLFilePath = this.systemConfigProxy .getSettingValue("/AppraisalAssignment/AppLogging/AppLoggingTemplateBaseDir") + File.separator + this.systemConfigProxy .getSettingValue("/AppraisalAssignment/AppLogging/AppLoggingTemplateXslFile"); if (logger.isLoggable(java.util.logging.Level.INFO)) { logger.info("AppLoggingXSLFilePath is ::" + appLogXSLFilePath); logger.info("Input ME is ::" + inputMEXML); } try { final XsltTransformer xsltTranformer = new XsltTransformer( appLogXSLFilePath); xsltTranformer.createTransformer(); final String appLogXML = xsltTranformer.transformXmlString(inputMEXML); if (appLogXML == null) { throw new MitchellException(CLASS_NAME, METHOD_NAME, "Null String returned while tranforming the MitchellEnvelopeDocument!!"); } if (logger.isLoggable(java.util.logging.Level.INFO)) { logger.info("APPLogXML Is:: " + appLogXML); } final InputStream inputAppLogStream = new ByteArrayInputStream( appLogXML.getBytes()); final SAXParserFactory saxParserfactory = SAXParserFactory.newInstance(); final SAXParser saxParser = saxParserfactory.newSAXParser(); final DefaultHandler defaultHandler = new DefaultHandler() { StringBuffer textBuffer; public void startElement(final String uri, final String localName, final String qName, final Attributes attributes) throws SAXException { } public void endElement(final String uri, final String localName, final String qName) throws SAXException { if (!"root".equals(qName)) { if (logger.isLoggable(java.util.logging.Level.FINE)) { logger.fine("Key::" + qName); logger.fine("Value::" + textBuffer.toString()); } final NameValuePair nvPair = eventDetailsIn.addNewNameValuePair(); nvPair.setName(qName); nvPair.addValue(textBuffer.toString()); } textBuffer = null; } public void characters(final char buf[], final int offset, final int len) throws SAXException { final String textValue = new String(buf, offset, len); if (textBuffer == null) { textBuffer = new StringBuffer(textValue); } else { textBuffer.append(textValue); } } }; saxParser.parse(inputAppLogStream, defaultHandler); if (logger.isLoggable(java.util.logging.Level.INFO)) { logger.info("Parsing completed!!"); } } catch (final MitchellException me) { throw me; } catch (final Exception exception) { logger.severe("Unexpected exception occured::" + exception.getMessage()); throw new MitchellException(CLASS_NAME, METHOD_NAME, "Unexpected exception occured!!", exception); } logger.exiting(CLASS_NAME, METHOD_NAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object[] transformProbElementToList(ProbElement pProbElement) throws Exception{\r\n\t\tObject[] vRet = new Object[3];\r\n\t\t\r\n\t\tif (pProbElement != null) {\r\n\t\t\tvRet[0] = pProbElement.getId();\r\n\t\t\tvRet[1] = pProbElement.getName();\r\n\t\t\tvRet[2] = pProbElement.getProbability();\r\n\t\t} else throw new Exception(\"04; tPEtL,Edi\");\r\n\t\t\r\n\t\treturn vRet;\r\n\t}", "public void addNVPairToEventDetails(final String key, final String value,\n final EventDetails eventDetails)\n {\n\n // check key and value are not null\n NameValuePair nv = null;\n\n if (key != null && key.length() > 0 && value != null && value.length() > 0) {\n\n // Add the pair passed in.\n nv = eventDetails.addNewNameValuePair();\n nv.setName(key);\n nv.addValue(value);\n\n }\n\n }", "@SuppressLint(\"SetTextI18n\")\n public void onE2eIconClick(final Event event, final MXDeviceInfo deviceInfo) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n EncryptedEventContent encryptedEventContent = JsonUtils.toEncryptedEventContent(event.getWireContent().getAsJsonObject());\n\n View layout = inflater.inflate(R.layout.dialog_encryption_info, null);\n\n TextView textView;\n\n textView = layout.findViewById(R.id.encrypted_info_user_id);\n textView.setText(event.getSender());\n\n textView = layout.findViewById(R.id.encrypted_info_curve25519_identity_key);\n if (null != deviceInfo) {\n textView.setText(encryptedEventContent.sender_key);\n } else {\n textView.setText(R.string.encryption_information_none);\n }\n\n textView = layout.findViewById(R.id.encrypted_info_claimed_ed25519_fingerprint_key);\n if (null != deviceInfo) {\n textView.setText(MatrixSdkExtensionsKt.getFingerprintHumanReadable(deviceInfo));\n } else {\n textView.setText(R.string.encryption_information_none);\n }\n\n textView = layout.findViewById(R.id.encrypted_info_algorithm);\n textView.setText(encryptedEventContent.algorithm);\n\n textView = layout.findViewById(R.id.encrypted_info_session_id);\n textView.setText(encryptedEventContent.session_id);\n\n View decryptionErrorLabelTextView = layout.findViewById(R.id.encrypted_info_decryption_error_label);\n textView = layout.findViewById(R.id.encrypted_info_decryption_error);\n\n if (null != event.getCryptoError()) {\n decryptionErrorLabelTextView.setVisibility(View.VISIBLE);\n textView.setVisibility(View.VISIBLE);\n textView.setText(\"**\" + event.getCryptoError().getLocalizedMessage() + \"**\");\n } else {\n decryptionErrorLabelTextView.setVisibility(View.GONE);\n textView.setVisibility(View.GONE);\n }\n\n View noDeviceInfoLayout = layout.findViewById(R.id.encrypted_info_no_device_information_layout);\n View deviceInfoLayout = layout.findViewById(R.id.encrypted_info_sender_device_information_layout);\n\n if (null != deviceInfo) {\n noDeviceInfoLayout.setVisibility(View.GONE);\n deviceInfoLayout.setVisibility(View.VISIBLE);\n\n textView = layout.findViewById(R.id.encrypted_info_name);\n textView.setText(deviceInfo.displayName());\n\n textView = layout.findViewById(R.id.encrypted_info_device_id);\n textView.setText(deviceInfo.deviceId);\n\n textView = layout.findViewById(R.id.encrypted_info_verification);\n\n if (deviceInfo.isUnknown() || deviceInfo.isUnverified()) {\n textView.setText(R.string.encryption_information_not_verified);\n } else if (deviceInfo.isVerified()) {\n textView.setText(R.string.encryption_information_verified);\n } else {\n textView.setText(R.string.encryption_information_blocked);\n }\n\n textView = layout.findViewById(R.id.encrypted_ed25519_fingerprint);\n textView.setText(MatrixSdkExtensionsKt.getFingerprintHumanReadable(deviceInfo));\n } else {\n noDeviceInfoLayout.setVisibility(View.VISIBLE);\n deviceInfoLayout.setVisibility(View.GONE);\n }\n\n builder.setView(layout);\n builder.setTitle(R.string.encryption_information_title);\n\n builder.setNeutralButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // nothing to do\n }\n });\n\n // the current id cannot be blocked, verified...\n if (!TextUtils.equals(encryptedEventContent.device_id, mSession.getCredentials().deviceId)) {\n if ((null == event.getCryptoError()) && (null != deviceInfo)) {\n if (deviceInfo.isUnverified() || deviceInfo.isUnknown()) {\n builder.setNegativeButton(R.string.encryption_information_verify, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n CommonActivityUtils.displayDeviceVerificationDialog(deviceInfo,\n event.getSender(), mSession, getActivity(), VectorMessageListFragment.this, VERIF_REQ_CODE);\n }\n });\n\n builder.setPositiveButton(R.string.encryption_information_block, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mSession.getCrypto().setDeviceVerification(MXDeviceInfo.DEVICE_VERIFICATION_BLOCKED,\n deviceInfo.deviceId, event.getSender(), mDeviceVerificationCallback);\n }\n });\n } else if (deviceInfo.isVerified()) {\n builder.setNegativeButton(R.string.encryption_information_unverify, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mSession.getCrypto().setDeviceVerification(MXDeviceInfo.DEVICE_VERIFICATION_UNVERIFIED,\n deviceInfo.deviceId, event.getSender(), mDeviceVerificationCallback);\n }\n });\n\n builder.setPositiveButton(R.string.encryption_information_block, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mSession.getCrypto().setDeviceVerification(MXDeviceInfo.DEVICE_VERIFICATION_BLOCKED,\n deviceInfo.deviceId, event.getSender(), mDeviceVerificationCallback);\n }\n });\n } else { // BLOCKED\n builder.setNegativeButton(R.string.encryption_information_verify, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n CommonActivityUtils.displayDeviceVerificationDialog(deviceInfo,\n event.getSender(), mSession, getActivity(), VectorMessageListFragment.this, VERIF_REQ_CODE);\n }\n });\n\n builder.setPositiveButton(R.string.encryption_information_unblock, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mSession.getCrypto().setDeviceVerification(MXDeviceInfo.DEVICE_VERIFICATION_UNVERIFIED,\n deviceInfo.deviceId, event.getSender(), mDeviceVerificationCallback);\n }\n });\n }\n }\n }\n\n final AlertDialog dialog = builder.show();\n\n if (null == deviceInfo) {\n mSession.getCrypto()\n .getDeviceList()\n .downloadKeys(Collections.singletonList(event.getSender()), true, new ApiCallback<MXUsersDevicesMap<MXDeviceInfo>>() {\n @Override\n public void onSuccess(MXUsersDevicesMap<MXDeviceInfo> info) {\n Activity activity = getActivity();\n\n if ((null != activity) && !activity.isFinishing() && dialog.isShowing()) {\n EncryptedEventContent encryptedEventContent = JsonUtils.toEncryptedEventContent(event.getWireContent().getAsJsonObject());\n\n MXDeviceInfo deviceInfo = mSession.getCrypto()\n .deviceWithIdentityKey(encryptedEventContent.sender_key, encryptedEventContent.algorithm);\n\n if (null != deviceInfo) {\n dialog.cancel();\n onE2eIconClick(event, deviceInfo);\n }\n }\n }\n\n @Override\n public void onNetworkError(Exception e) {\n }\n\n @Override\n public void onMatrixError(MatrixError e) {\n }\n\n @Override\n public void onUnexpectedError(Exception e) {\n }\n });\n }\n }", "private Pair<Map<String, Object>, Set<Class<?>>> prepareEventPair() {\n\t\tfinal Set<Class<?>> eventClasses = new HashSet<>(Arrays.asList(DefaultEventCallback.class,\n\t\t\t\tExploreEventCallback.class, CharacterEventCallback.class, FightEventCallback.class)).stream()\n\t\t\t\t\t\t.filter(c -> c.isAnnotationPresent(EventCallbackEntity.class)).collect(Collectors.toSet());\n\t\tfinal Map<String, Object> eventObjects = eventClasses.stream()\n\t\t\t\t.collect(Collectors.toMap(Class::getName, eventCallbackFactory::createEventCallback));\n\n\t\treturn new Pair<>(eventObjects, eventClasses);\n\t}", "SSElements createSSElements();", "public void convertHashtoArray(ArrayList<Manufacturer> manu){\r\n\t\tfor(Manufacturer d: manu){\r\n\t\tManlist.add(t.get(d.code));\r\n\t\t}\r\n\t}", "private Map<String, Map<String, String>> getEventsFromAnXML(Activity activity)throws XmlPullParserException, IOException {\n\t\tMap<String, Map<String, String>>detailMap = new HashMap<String, Map<String,String>>();\n//\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\tResources res = activity.getResources();\n//\t\tXmlResourceParser xpp = res.getXml(R.xml.vacc_detail_eng);\n\t\tXmlResourceParser xpp = MiraConstants.LANGUAGE.equals(MiraConstants.HINDI)?res.getXml(R.xml.vacc_detail_hnd):res.getXml(R.xml.vacc_detail_eng);\n\t\txpp.next();\n\t\tint eventType = xpp.getEventType();\n\t\tString name = \"sorry\";\n\t\tString text = \"sorry\";\n\t\tHashMap<String, String>map= new HashMap<String, String>();\n\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\tif (eventType == XmlPullParser.START_TAG) {\n\t\t\t\tname = xpp.getName();\n\n\t\t\t\tif(name.equals(\"VaccId\")){\n\t\t\t\t\tmap= new HashMap<String, String>();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (eventType == XmlPullParser.TEXT) {\n\t\t\t\ttext = xpp.getText();\n //System.out.println(\"Parsing \"+name +\" Value \"+text);\n\t\t\t}\n\t\t\tif (eventType == XmlPullParser.END_TAG) {\n\t\t\t\tif(xpp.getName().equals(\"VaccId\")){\n//\t\t\t\t\tpreArrayList.add(map);\n\t\t\t\t\tdetailMap.put(map.get(\"VaccName\"), map);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (name.equals(\"VaccName\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"VaccMessage\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AdministrationMSG\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AboutMsg\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\t\t\t\n\t\t\t}\n System.out.println(\"In Xml....\"+detailMap);\n\t\t\teventType = xpp.next();\n\t\t}\n\t\treturn detailMap;\n\t}", "protected int[] transformGenElementToList(GenElement pGenElement) throws Exception {\r\n\t\tint[] vRet = new int[3];\r\n\t\t\r\n\t\tif (pGenElement != null) {\r\n\t\t\tvRet[0] = pGenElement.getNumber();\r\n\t\t\tvRet[1] = pGenElement.getSide();\r\n\t\t\tvRet[2] = pGenElement.getOffset();\r\n\t\t}else throw new Exception(\"04; tGEtL,Edi\");\r\n\t\t\r\n\t\treturn vRet;\r\n\t}", "public Map<String,String> getMetadataElementMap() {\n\t\tMap<String,String> uiList = new LinkedHashMap<String,String>();\n\t\tfor (MetadataElement element: MetadataElement.values()){\n\t\t\tuiList.put(element.toString(), element.getDisplayName());\n\t\t}\n \n\t\treturn uiList;\n\t}", "public short[] get_infos_metadata() {\n short[] tmp = new short[2];\n for (int index0 = 0; index0 < numElements_infos_metadata(0); index0++) {\n tmp[index0] = getElement_infos_metadata(index0);\n }\n return tmp;\n }", "public interface IMPDElement {\n /**\n * This method returns a vector of pointers to dash::xml::INode objects which correspond to additional <em>XML Elements</em> of certain\n * MPD elements. These <em>XML Elements</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a vector of pointers to dash::xml::INode objects\n */\n public Vector<Node> GetAdditionalSubNodes();\n\n /**\n * This method returns a map with key values and mapped values of type std::string of all <em>XML Attributes</em> of certain MPD elements. \\n\n * Some of these <em>XML Attributes</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a map with key values and mapped values, both of type std::string\n */\n public HashMap<String, String> GetRawAttributes();\n}", "public Hashtable<String, String> convertTagsToTable() {\r\n final Hashtable<String, String> table = new Hashtable<String, String>();\r\n\r\n final String groupPrefix = \"dicom_0x\";\r\n final String elemPrefix = \"el_0x\";\r\n\r\n String group, elem, data;\r\n VR vr;\r\n int index;\r\n\r\n for (int varIndex = 0; varIndex < getVarArray().length; varIndex++) {\r\n index = getVarElem(varIndex).name.indexOf(groupPrefix);\r\n\r\n if (index != -1) {\r\n group = getVarElem(varIndex).name.substring(groupPrefix.length());\r\n\r\n for (int attIndex = 0; attIndex < getVarElem(varIndex).vattArray.length; attIndex++) {\r\n index = getVarElem(varIndex).getVattElem(attIndex).name.indexOf(elemPrefix);\r\n\r\n if (index != -1) {\r\n elem = getVarElem(varIndex).getVattElem(attIndex).name.substring(elemPrefix.length());\r\n vr = DicomDictionary.getVR(new FileDicomKey(group + \",\" + elem));\r\n if (vr != null && vr.equals(VR.SQ)) {\r\n continue;\r\n }\r\n\r\n data = new String(\"\");\r\n\r\n if (getVarElem(varIndex).getVattElem(attIndex).nc_type == FileInfoMinc.NC_CHAR) {\r\n\r\n for (int i = 0; i < getVarElem(varIndex).getVattElem(attIndex).nelems; i++) {\r\n data += getVarElem(varIndex).getVattElem(attIndex).values[i];\r\n }\r\n } else {\r\n\r\n for (int i = 0; i < getVarElem(varIndex).getVattElem(attIndex).nelems; i++) {\r\n data += \"\" + getVarElem(varIndex).getVattElem(attIndex).values[i] + \" \";\r\n }\r\n }\r\n\r\n table.put(\"(\" + group.toUpperCase() + \",\" + elem.toUpperCase() + \")\", data.trim());\r\n }\r\n }\r\n }\r\n }\r\n\r\n return table;\r\n }", "public static EN eN2ENInternal(org.opencds.vmr.v1_0.schema.EN pENExt) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"eN2ENInternal(): \";\n\n\t\tif (pENExt == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString errStr = null;\n\t\tEN lENInt = new EN();\n\n\t\t// Create internal List<ENXP> element - at least one required\n\t\tList<org.opencds.vmr.v1_0.schema.ENXP> lExtEntityPart = pENExt.getPart();\n\t\tif (lExtEntityPart == null || lExtEntityPart.size() == 0) { // vmr spec says there must be at least one EntityPart\n\t\t\terrStr = _METHODNAME + \"List<ENXP element of EN datatype not populated - required by vmr spec\";\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(errStr);\n\t\t\t}\n\t\t\tthrow new DataFormatException(errStr);\n\t\t}\n\t\tIterator<org.opencds.vmr.v1_0.schema.ENXP> lExtEntityPartIter = lExtEntityPart.iterator();\n\t\tint count = 0;\n\t\twhile (lExtEntityPartIter.hasNext()) {\n\t\t\torg.opencds.vmr.v1_0.schema.ENXP lENXPExt = lExtEntityPartIter.next();\n\t\t\tENXP lENXPInt = eNXP2ENXPInternal(lENXPExt);\n\t\t\tlENInt.getPart().add(lENXPInt);\n\t\t\tcount++;\n\t\t}\n\t\tif (count < 1) {\n\t\t\terrStr = _METHODNAME + \"No ext->int translations of List<ENXP> successful - at least one member of List<ENXP> required by vmr spec\";\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(errStr);\n\t\t\t}\n\t\t\tthrow new InvalidDataException(errStr);\n\t\t}\n\n\t\t// Now transfer over external to internal List<EntityNameUse> (optional in vmr spec)\n\t\tList<org.opencds.vmr.v1_0.schema.EntityNameUse> lEntityNameUseListExt = pENExt.getUse();\n\t\tif (lEntityNameUseListExt != null) {\n\t\t\tIterator<org.opencds.vmr.v1_0.schema.EntityNameUse> lEntityNameUseExtIter = lEntityNameUseListExt.iterator();\n\t\t\torg.opencds.vmr.v1_0.schema.EntityNameUse lEntityNameUseExt = lEntityNameUseExtIter.next();\n\t\t\tEntityNameUse lEntityNameUseInt = eNNameUse2eNNameUseInternal(lEntityNameUseExt);\n\t\t\tlENInt.getUse().add(lEntityNameUseInt);\n\t\t}\n\n\t\treturn lENInt;\n\t}", "StandardMapping(Element e) {\n\t\t\tasnId = e.attributeValue(\"id\");\n\t\t\ttry {\n\t\t\t\tasnText = e.element(\"asnText\").getText();\n\t\t\t\tadnText = e.element(\"adnText\").getText();\n\n\t\t\t} catch (Throwable t) {\n\t\t\t\tprtln(\"StandardMapping init: \" + t.getMessage());\n\t\t\t\tprtln(Dom4jUtils.prettyPrint(e));\n\t\t\t}\n\t\t}", "private UIEvent generateModifyEvent(){\n List<DataAttribut> dataAttributeList = new ArrayList<>();\n for(int i = 0; i< attributModel.size(); i++){\n String attribut = attributModel.elementAt(i);\n dataAttributeList.add(new DataAttribut(attribut));\n }\n //Erstellen des geänderten Produktdatums und des Events\n DataProduktDatum proposal = new DataProduktDatum(name.getText(), new DataId(id.getText()), dataAttributeList, verweise.getText());\n UIModifyProduktDatumEvent modifyEvent = new UIModifyProduktDatumEvent(dataId, proposal);\n return modifyEvent;\n }", "private Object[] computeKeyValuePairOfTuple(AttrName asName, Entry<List<Object>, ? extends Aggregator<?>> item, AttrList byNameAttrs){\n List<Object> list = new ArrayList<Object>();\n List<AttrName> attrs = byNameAttrs.toList();\n for(int i = 0; i < attrs.size(); i++){\n list.add(attrs.get(i).getName());\n list.add((item.getKey().get(i)));\n }\n Aggregator<?> value = item.getValue();\n list.add(asName);\n list.add(value.finish());\n return list.stream().toArray();\n }", "private Object[] transformPrioElementToList(PrioElement pPrioElement) throws Exception{\r\n\t\tObject[] vRet = new Object[3];\r\n\t\t\r\n\t\tif (pPrioElement != null) {\r\n\t\t\tvRet[0] = pPrioElement.getId();\r\n\t\t\tvRet[1] = pPrioElement.getName();\r\n\t\t\tvRet[2] = pPrioElement.getPriority();\r\n\t\t} else throw new Exception(\"04; tPriEtL,Edi\");\r\n\t\t\r\n\t\treturn vRet;\r\n\t}", "@Override\r\n\t\tpublic hust.idc.util.pair.UnorderedPair<E> convertPair() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn synchronizedPair(pair.convertPair(), mutex);\r\n\t\t\t}\r\n\t\t}", "private static Map<String, Object> handleParams(WMElement params) {\n Map<String, Object> res = new HashMap<>();\n int i = 0;\n for (; i < params.ConvertToIdentifier().GetNumberChildren(); i++) {\n WMElement curParam = params.ConvertToIdentifier().GetChild(i);\n String curParamName = curParam.GetAttribute();\n if (!curParam.GetValueType().equalsIgnoreCase(\"id\")) {\n res.put(curParamName, curParam.GetValueAsString());\n }\n else {\n List<Pair<String, String>> extraFeatures = new ArrayList<>();\n for (int j = 0; j < curParam.ConvertToIdentifier().GetNumberChildren(); j++) {\n WMElement curFeature = curParam.ConvertToIdentifier().GetChild(j);\n extraFeatures.add(new ImmutablePair<>(curFeature.GetAttribute(),\n curFeature.GetValueAsString()));\n }\n\n res.put(curParamName, extraFeatures);\n }\n }\n return res;\n }", "@Override\n public List<String[]> namesAndValues() {\n List<String[]> nAv = new ArrayList<>();\n String[] m = {\"Meno\", this.meno};\n String[] i = {\"Iso\", this.iso};\n String[] b = {\"Brummitt 1\", this.brumit1.getMeno(), \"F Brumit1\"};\n nAv.add(m);\n nAv.add(i);\n nAv.add(b);\n return nAv;\n }", "public Map<EmvTags, String> parseEmvData(IsoBuffer isoBuffer);", "public Secs2 toS2F37CollectionEvent();", "protected ArrayList<Object[]> genObjectArrayListFromIDElementList(ArrayList<? extends IDElement> pIDElementList) throws Exception{\r\n\t\tObject[] vElement;\r\n\t\tArrayList<Object[]> vRet;\r\n \t\t\r\n \t\tif (pIDElementList != null) {\r\n \t\t\tvRet = new ArrayList<Object[]>();\r\n \t\t\t\r\n \t\t\tfor (IDElement vCur : pIDElementList) {\r\n \t\t\t\tvElement = new Object[2];\r\n \t \t\t\t\r\n \t \t\t\tvElement[0] = vCur.getId();\r\n \t \t\t\tvElement[1] = vCur.getName();\r\n \t \t\t\t\r\n \t \t\t\tvRet.add(vElement);\r\n \t\t\t}\r\n \t\t} else throw new Exception(\"04; gOALfIDEL,Edi\");\r\n \t\t\r\n \t\treturn vRet;\r\n\t}", "void infoElementAction(String elementType, String elementName, String messageKey, Object... args);", "private SimpleEvent convertToSimpleEvent(ResultSet values) throws SQLException {\n String CREATED_DATE = values.getString(1);\n String MACHINE_NO = values.getString(2);\n String SCRAP_COUNT = values.getString(3);\n String SCRAP_REASON = values.getString(4);\n String FINAL_ARTICLE = values.getString(5);\n\n SimpleEvent simpleEvent = createPrefix(sensor_id, CREATED_DATE);\n\n simpleEvent.putToEventProperties(\"machineId\", createFullSimpleEvent(MACHINE_NO, VariableType.STRING));\n simpleEvent.putToEventProperties(\"quantity\", createFullSimpleEvent(SCRAP_COUNT, VariableType.LONG));\n simpleEvent.putToEventProperties(\"designation\", createFullSimpleEvent(SCRAP_REASON, VariableType.STRING));\n\n if(SCRAP_REASON.equals(\"1011\") || SCRAP_REASON.equals(\"2011\")){\n simpleEvent.putToEventProperties(\"goodPart\", createFullSimpleEvent(\"true\", VariableType.BOOLEAN));\n }else{\n simpleEvent.putToEventProperties(\"goodPart\", createFullSimpleEvent(\"false\", VariableType.BOOLEAN));\n }\n simpleEvent.putToEventProperties(\"finalArticle\", createFullSimpleEvent(FINAL_ARTICLE, VariableType.STRING));\n\n return simpleEvent;\n }", "public Object[] getExtraInfo(Collection c) {\n\t\tVector<PkgOrderTrackWebPrOrderTrackDetailBean> bv = (Vector<PkgOrderTrackWebPrOrderTrackDetailBean>) c; \n\t\tHashSet<String> qualityIdLabelSet = new HashSet();\n\t\tHashSet<String> catPartAttrHeaderSet = new HashSet();\n\t\n\t\tfor (PkgOrderTrackWebPrOrderTrackDetailBean pbean:bv) {\n\t\t\tif( !StringUtils.isEmpty(pbean.getQualityIdLabel()) )\n\t\t\t\tqualityIdLabelSet.add(pbean.getQualityIdLabel());\n\t\t\tif( !StringUtils.isEmpty(pbean.getCatPartAttributeHeader()) )\n\t\t\t\tcatPartAttrHeaderSet.add(pbean.getCatPartAttributeHeader());\n\t\t}\n\t\t// if Hide, then no show column\n\t\t// if empty then appened ( header ) to value and header is empty\n\t\t// else if all the same, used as header.\n\t\tString qualityIdLabelColumnHeader = \"--Hide--\"; \n\t\tString catPartAttrColumnHeader = \"--Hide--\"; \n\t\tif( qualityIdLabelSet.size() == 1 ) {\n\t\t\tfor(String s:qualityIdLabelSet) \n\t\t\t\tqualityIdLabelColumnHeader = s;\n\t\t}\n\t\tif( qualityIdLabelSet.size() > 1 ) {\n\t\t\tqualityIdLabelColumnHeader = \"\"; \n\t\t\tfor (PkgOrderTrackWebPrOrderTrackDetailBean pbean:bv) {\n\t\t\t\tif( StringUtils.isNotEmpty(pbean.getQualityIdLabel() ) && StringUtils.isNotEmpty(pbean.getQualityId() )) \n\t\t\t\t\t\tpbean.setQualityId(pbean.getQualityId() +\" (\"+pbean.getQualityIdLabel()+\")\");\n\t\t\t}\n\t\t}\n\t\tif( catPartAttrHeaderSet.size() == 1 )\n\t\t\tfor(String s:catPartAttrHeaderSet) \n\t\t\t\tcatPartAttrColumnHeader = s;\n\t\tif( catPartAttrHeaderSet.size() > 1 ) {\n\t\t\tcatPartAttrColumnHeader = \"\"; \n\t\t\tfor (PkgOrderTrackWebPrOrderTrackDetailBean pbean:bv) {\n\t\t\t\tif( StringUtils.isNotEmpty(pbean.getCatPartAttributeHeader() ) && StringUtils.isNotEmpty(pbean.getCatPartAttribute() )) \n\t\t\t\t\t\tpbean.setCatPartAttribute(pbean.getCatPartAttribute()+\" (\"+pbean.getCatPartAttributeHeader()+\")\");\n\t\t\t}\n\t\t}\n\t\tObject[] objs = {qualityIdLabelColumnHeader,catPartAttrColumnHeader};\n\t\treturn objs;\n\t}", "public void incompletetestSetEAnnotationsDetails() {\r\n\t\t// any model element should do\r\n\t\tEModelElement modelElement = new Emf().getEcorePackage();\r\n\t\tEAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, \"http://rcpviewer.berlios.de/test/source\");\r\n\t\tMap<String,String> details = new HashMap<String,String>();\r\n\t\tdetails.put(\"foo\", \"bar\");\r\n\t\tdetails.put(\"baz\", \"boz\");\r\n\t\tassertEquals(0, eAnnotation.getDetails().size());\r\n\t\t_emfAnnotations.putAnnotationDetails(eAnnotation, details);\r\n\t\tassertEquals(2, eAnnotation.getDetails().size());\r\n\t}", "protected void measurementToMap(Measurement m) {\n if (m instanceof WithNames) {\n values = new HashMap<String, ProbeValue>();\n for (ProbeValue pv : m.getValues()) {\n values.put(((ProbeValueWithName)pv).getName(), pv);\n }\n } else {\n LoggerFactory.getLogger(TcpdumpReporter.class).error(\"ProcessInfoReporter works with Measurements that are WithNames\");\n }\n }", "public static void main(String[] args){\n\t\tString[] BaseVoltageAttribute = {\"cim:BaseVoltage.nominalVoltage\"};\n\t\tString[] SubstationAttribute = {\"cim:IdentifiedObject.name\",\"cim:Substation.Region\"};\n\t\tString[] VolatgeLevelAttribute = {\"cim:IdentifiedObject.name\",\"cim:VoltageLevel.Substation\",\"cim:VoltageLevel.BaseVoltage\"};\n\t\tString[] GeneratingUnitAttribute = {\"cim:IdentifiedObject.name\",\"cim:GeneratingUnit.maxOperatingP\",\"cim:GeneratingUnit.minOperatingP\",\"cim:Equipment.EquipmentContainer\"};\n\t\tString[] SynchronousMachineAttribute = {\"cim:IdentifiedObject.name\",\"cim:RotatingMachine.ratedS\",\"cim:RotatingMachine.p\",\"cim:RotatingMachine.q\",\"cim:RotatingMachine.GeneratingUnit\",\n\t\t\t\t\"cim:RegulatingCondEq.RegulatingControl\", \"cim:Equipment.EquipmentContainer\",\"baseVoltage\"};\n\t\tString[] RegulatingControlAttribute = {\"cim:IdentifiedObject.name\",\"cim:RegulatingControl.targetValue\"};\n\t\tString[] PowerTransformerAttribute = {\"cim:IdentifiedObject.name\",\"cim:Equipment.EquipmentContainer\"};\n\t\tString[] EnergyConsumerAttribute = {\"cim:IdentifiedObject.name\",\"cim:EnergyConsumer.p\",\"cim:EnergyConsumer.q\",\"cim:Equipment.EquipmentContainer\",\"baseVoltage\"};\n\t\tString[] PowerTransformerEndAttribute = {\"cim:IdentifiedObject.name\",\"cim:PowerTransformerEnd.r\",\"cim:PowerTransformerEnd.x\",\n\t\t\t\t\"cim:PowerTransformerEnd.PowerTransformer\",\"cim:TransformerEnd.BaseVoltage\"};\n\t\tString[] BreakerAttribute = {\"cim:IdentifiedObject.name\",\"cim:Switch.open\",\"cim:Equipment.EquipmentContainer\",\"baseVoltage\"};\n\t\tString[] RatioTapChangerAttribute = {\"cim:IdentifiedObject.name\",\"cim:TapChanger.step\"};\n\t\t\n\t\t// Create an array list with all the attributes\n\t\tArrayList<String[]> AttList = new ArrayList<String[]>();\n\t\tAttList.add(BaseVoltageAttribute);\n\t\tAttList.add(SubstationAttribute);\n\t\tAttList.add(VolatgeLevelAttribute);\n\t\tAttList.add(GeneratingUnitAttribute);\n\t\tAttList.add(SynchronousMachineAttribute);\n\t\tAttList.add(RegulatingControlAttribute);\n\t\tAttList.add(PowerTransformerAttribute);\n\t\tAttList.add(EnergyConsumerAttribute);\n\t\tAttList.add(PowerTransformerEndAttribute);\n\t\tAttList.add(BreakerAttribute);\n\t\tAttList.add(RatioTapChangerAttribute);\n\t\t\t\t\n\t\ttry{\n\t\t\t\n\t\t\t// Read XML file EQ\n\t\t\tFile XmlFileEQ = new File (\"C:\\\\Users\\\\Matteo\\\\Documents\\\\Kic InnoEnergy\\\\KTH\\\\Computer application\\\\Assignment 1\\\\MicroGridTestConfiguration_T1_BE_EQ_V2.xml\");\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc_eq = dBuilder.parse(XmlFileEQ);\n\t\t\t\n\t\t\t// Read XML file SSH\n\t\t\tFile XmlFileSSH = new File (\"C:\\\\Users\\\\Matteo\\\\Documents\\\\Kic InnoEnergy\\\\KTH\\\\Computer application\\\\Assignment 1\\\\MicroGridTestConfiguration_T1_BE_SSH_V2.xml\");\n\t\t\tDocument doc_SSH = dBuilder.parse(XmlFileSSH);\n\t\t\t\n\t\t\t// normalize CIM XML file\n\t\t\tdoc_eq.getDocumentElement().normalize();\n\t\t\tdoc_SSH.getDocumentElement().normalize();\n\t\t\t\n\t\t\tArrayList<NodeList> NodeListList = new ArrayList<NodeList>();\n//\t\t\tString[] nodeListNames = {\"bvList\",\"subList\",\"volList\",\"guList\",\"genList\",\"rcList\",\"ptList\",\"ecList\",\"pteList\",\"bList\",\"rtcList\"};\n\t\t\t// Array with all the CIM objects tags\n\t\t\tString[] tagList = {\"cim:BaseVoltage\",\"cim:Substation\",\"cim:VoltageLevel\",\"cim:GeneratingUnit\",\"cim:SynchronousMachine\",\n\t\t\t\t\t\"cim:RegulatingControl\",\"cim:PowerTransformer\", \"cim:EnergyConsumer\",\"cim:PowerTransformerEnd\",\"cim:Breaker\",\"cim:RatioTapChanger\"};\n\t\t\t// It fill out the ArrayList \"NodeListList\", where each object is a list of nodes characterized by the same tag, i.e. newNodeList\n\t\t\tfor(int i=0; i<tagList.length; i++){\n\t\t\t\t// Node list obtained looking for tags in EQ document\n\t\t\t\tNodeList newNodeList1 = doc_eq.getElementsByTagName(tagList[i]);\n\t\t\t\t// Node list obtained looking for tags in SSH document\n\t\t\t\tNodeList newNodeList2 = doc_SSH.getElementsByTagName(tagList[i]);\n\t\t\t\t// Some tags are not present in the SSH file, hence, we fill that list we the same not of list1, just to avoid handling an empty list\n\t\t\t\tif(newNodeList2 == null || newNodeList2.getLength() == 0 ){\n\t\t\t\t\tnewNodeList2 = newNodeList1;\n\t\t\t\t}\n\t\t\t\t// both lists are added to the same ArrayList\n\t\t\t\t// even position are then relative to NodeList1\n\t\t\t\t// odd positions are relative to NodeList2\n\t\t\t\tNodeListList.add(newNodeList1);\n\t\t\t\tNodeListList.add(newNodeList2);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// … cycle through each list to extract required data\n\t\t\tfor(int k = 0; k < NodeListList.size(); k +=2){\n\t\t\t\t// It extracts each element of NodeListList, called newNodeList, which is a list of nodes having the same tag \n\t\t\t\tSystem.out.println(\"\\n\" + \"---------------------------------------\" + \"\\n\" + tagList[k/2] + \"\\n\" + \"---------------------------------------\" + \"\\n\");\n\t\t\t\tNodeList newNodeList1 = NodeListList.get(k);\n\t\t\t\tNodeList newNodeList2 = NodeListList.get(k+1);\n\t\t\t\n\t\t\t\tfor (int i = 0; i < newNodeList1.getLength(); i++) {\n\t\t\t\t\t// From the node list newNodeList, it extracts each node and invokes extractNode method\n\t\t\t\t\t// newNodeList1 and newNodeList2 have the same length, because they are referred to the same CIM objects.\n\t\t\t\t\tNode node1 = newNodeList1.item(i); \n\t\t\t\t\tNode node2 = newNodeList2.item(i);\n\t\t\t\t\textractNode(node1,node2,k,i,AttList,doc_eq);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private Double[] getDayValue24(DayEM dayEm) {\n\n\t Double[] dayValues = new Double[24];\n\n\t /* OPF-610 정규화 관련 처리로 인한 주석\n\t dayValues[0] = (dayEm.getValue_00() == null ? 0 : dayEm.getValue_00());\n\t dayValues[1] = (dayEm.getValue_01() == null ? 0 : dayEm.getValue_01());\n\t dayValues[2] = (dayEm.getValue_02() == null ? 0 : dayEm.getValue_02());\n\t dayValues[3] = (dayEm.getValue_03() == null ? 0 : dayEm.getValue_03());\n\t dayValues[4] = (dayEm.getValue_04() == null ? 0 : dayEm.getValue_04());\n\t dayValues[5] = (dayEm.getValue_05() == null ? 0 : dayEm.getValue_05());\n\t dayValues[6] = (dayEm.getValue_06() == null ? 0 : dayEm.getValue_06());\n\t dayValues[7] = (dayEm.getValue_07() == null ? 0 : dayEm.getValue_07());\n\t dayValues[8] = (dayEm.getValue_08() == null ? 0 : dayEm.getValue_08());\n\t dayValues[9] = (dayEm.getValue_09() == null ? 0 : dayEm.getValue_09());\n\t dayValues[10] = (dayEm.getValue_10() == null ? 0 : dayEm.getValue_10());\n\t dayValues[11] = (dayEm.getValue_11() == null ? 0 : dayEm.getValue_11());\n\t dayValues[12] = (dayEm.getValue_12() == null ? 0 : dayEm.getValue_12());\n\t dayValues[13] = (dayEm.getValue_13() == null ? 0 : dayEm.getValue_13());\n\t dayValues[14] = (dayEm.getValue_14() == null ? 0 : dayEm.getValue_14());\n\t dayValues[15] = (dayEm.getValue_15() == null ? 0 : dayEm.getValue_15());\n\t dayValues[16] = (dayEm.getValue_16() == null ? 0 : dayEm.getValue_16());\n\t dayValues[17] = (dayEm.getValue_17() == null ? 0 : dayEm.getValue_17());\n\t dayValues[18] = (dayEm.getValue_18() == null ? 0 : dayEm.getValue_18());\n\t dayValues[19] = (dayEm.getValue_19() == null ? 0 : dayEm.getValue_19());\n\t dayValues[20] = (dayEm.getValue_20() == null ? 0 : dayEm.getValue_20());\n\t dayValues[21] = (dayEm.getValue_21() == null ? 0 : dayEm.getValue_21());\n\t dayValues[22] = (dayEm.getValue_22() == null ? 0 : dayEm.getValue_22());\n\t dayValues[23] = (dayEm.getValue_23() == null ? 0 : dayEm.getValue_23());\n\t\t\t*/\n\t \n\t return dayValues;\n\t }", "private Map<String, String> convertArrayToMap(PairDTO[] pairDTOs) {\n Map<String, String> map = new HashMap<>();\n for (PairDTO pairDTO : pairDTOs) {\n map.put(pairDTO.getKey(), pairDTO.getValue());\n }\n return map;\n }", "public interface VisemeEvent {\n /**\n * Returns the speech Stream identifier.\n * @return speech Stream identifier\n */\n public long getStream();\n /**\n * Returns the current Viseme at the time of the event.\n * @return current Viseme at the time of the event\n */\n public Viseme getCurrentViseme();\n /**\n * Returns the Viseme to transition to.\n * @return Viseme to transition to\n */\n public Viseme getNextViseme();\n /**\n * Returns the number of milliseconds for the transition to the next Viseme.\n * @return number of milliseconds for the transition to the next Viseme\n */\n public int getDuration();\n /**\n * Returns the timestamp of the VisemeEvent.\n * @return timestamp of the VisemeEvent\n */\n public long getTimestampMillisecUTC();\n}", "private static Set<Pair<CoreLabel, CoreLabel>> getEventPairs(Annotation annotation) {\n\t\tSet<Pair<CoreLabel, CoreLabel>> result = new HashSet<Pair<CoreLabel, CoreLabel>>();\n\t\tList<CoreMap> sentences = annotation.get(CoreAnnotations.SentencesAnnotation.class);\n\n\t\t// For each sentence, find all timexes and events, and then make pairs\n\t\tfor(CoreMap sentence: sentences) {\n\n\t\t\tList<CoreLabel> tokens = sentence.get(TokensAnnotation.class);\n\n\t\t\t// Keep track of all events in this sentence\n\t\t\tList<CoreLabel> events = new ArrayList<CoreLabel>();\n\n\t\t\t// Keep track of last eid (for multi-token events)\n\t\t\tString lastEid = null;\n\n\t\t\t// Iterate through tokens and store all events and timexes. Relies on the\n\t\t\t// invariant that no token will be both an event and a timex.\n\t\t\tfor (CoreLabel token: tokens) {\n\t\t\t\tEventInfo eventInfo = token.get(EventAnnotation.class);\n\t\t\t\t\n\t\t\t\t// Handle event tokens\n\t\t\t\tif (eventInfo != null) {\n\n\t\t\t\t\t// Check for multiple tokens in same event tag\n\t\t\t\t\tif (lastEid != null && lastEid.equals(eventInfo.currEventId))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tlastEid = eventInfo.currEventId;\n\n\t\t\t\t\tevents.add(token);\n\t\t\t\t} else {\n\t\t\t\t\tlastEid = null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make pairs for this sentence\n\t\t\tfor (int i = 0; i < events.size(); i++) {\n\t\t\t\tfor (int j = i + 1; j < events.size(); j++) {\n\t\t\t\t\tresult.add(new Pair<CoreLabel, CoreLabel>(events.get(i), events.get(j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\r\n\t\tpublic hust.idc.util.pair.ImmutableUnorderedPair<E> convertPair() {\n\t\t\treturn this;\r\n\t\t}", "public void testGetEAnnotationsDetails() {\r\n\t\t// any model element should do\r\n\t\tEModelElement modelElement = new Emf().getEcorePackage();\r\n\t\tEAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, \"http://rcpviewer.berlios.de/test/source\");\r\n\t\tMap<String,String> details = new HashMap<String,String>();\r\n\t\tdetails.put(\"foo\", \"bar\");\r\n\t\tdetails.put(\"baz\", \"boz\");\r\n\t\t_emfAnnotations.putAnnotationDetails(eAnnotation, details);\r\n\t\t\r\n\t\tMap<String,String> retrievedDetails = _emfAnnotations.getAnnotationDetails(eAnnotation);\r\n\t\tassertEquals(2, retrievedDetails.size());\r\n\t\tassertEquals(\"bar\", retrievedDetails.get(\"foo\"));\r\n\t\tassertEquals(\"boz\", retrievedDetails.get(\"baz\"));\r\n\t}", "public List<NoteToken> getElts(){\r\n List<NoteToken> returnList = new ArrayList<NoteToken>();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n returnList.addAll(i.next().getElts());\r\n }\r\n return returnList;\r\n }", "public Map<String, Object> toMap(){\n Map<String, Object> newEvent = new HashMap<>();\n newEvent.put(\"uid\", getUid());\n newEvent.put(\"name\", getName());\n newEvent.put(\"host\", getHost());\n newEvent.put(\"hostContribution\", isHostContribution());\n newEvent.put(\"startTime\", getEpochTime());\n newEvent.put(\"location\", getLocation());\n newEvent.put(\"description\", getDescription());\n newEvent.put(\"coverImageUrl\", getCoverImageUrl());\n newEvent.put(\"amountNeeded\", getAmountNeeded());\n return newEvent;\n }", "private void separateAttributes() {\n\n String gfuncStr = gridRscData.getGdpfun().replaceAll(\"\\\\s+\", \"\").trim();\n if (gfuncStr != null && gfuncStr.endsWith(\"!\")) {\n gfuncStr = gfuncStr.substring(0, gfuncStr.length() - 1);\n }\n String[] gfuncArray = gfuncStr.split(\"!\", -1);\n\n String[] glevelArray = gridRscData.getGlevel().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] gvcordArray = gridRscData.getGvcord().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] skipArray = gridRscData.getSkip().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] filterArray = gridRscData.getFilter().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] scaleArray = gridRscData.getScale().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] typeArray = gridRscData.getType().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] cintArray = gridRscData.getCint().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] lineArray = gridRscData.getLineAttributes()\n .replaceAll(\"\\\\s+\", \"\").split(\"!\", -1);\n String[] fintArray = gridRscData.getFint().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] flineArray = gridRscData.getFline().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] hiloArray = gridRscData.getHilo().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] hlsymArray = gridRscData.getHlsym().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] windArray = gridRscData.getWind().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] markerArray = gridRscData.getMarker().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] clrbarArray = gridRscData.getClrbar().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] textArray = gridRscData.getText().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n String[] colorArray = gridRscData.getColors().replaceAll(\"\\\\s+\", \"\")\n .split(\"!\", -1);\n /* Clean up cint -- max 5 zoom level */\n if (cintArray != null && cintArray.length > 0) {\n for (int i = 0; i < cintArray.length; i++) {\n String[] tmp = cintArray[i].split(\">\");\n if (tmp.length > 5) {\n cintArray[i] = tmp[0] + \">\" + tmp[1] + \">\" + tmp[2] + \">\"\n + tmp[3] + \">\" + tmp[4];\n }\n }\n }\n\n for (int i = 0; i < gfuncArray.length; i++) {\n if (gfuncArray[i].contains(\"//\")) {\n String[] tmpstr = gfuncArray[i].split(\"//\", 2);\n gfuncArray[i] = tmpstr[0];\n String referencedAlias = tmpstr[1];\n String referencedFunc = tmpstr[0];\n /*\n * Need to substitute all occurrences of referencedAlias with\n * referencedFunc\n */\n for (int j = i + 1; j < gfuncArray.length; j++) {\n /*\n * First need to find out if the gfuncArray[i] is a derived\n * quantity\n */\n gfuncArray[j] = substituteAlias(referencedAlias,\n referencedFunc, gfuncArray[j]);\n }\n } else {\n\n /*\n * Handle blank GDPFUN\n */\n if (gfuncArray[i].isEmpty()) {\n if (i > 0) {\n gfuncArray[i] = gfuncArray[i - 1];\n }\n }\n\n }\n }\n\n contourAttributes = new ContourAttributes[gfuncArray.length];\n\n for (int i = 0; i < gfuncArray.length; i++) {\n contourAttributes[i] = new ContourAttributes();\n contourAttributes[i].setGdpfun(gfuncArray[i]);\n\n if (i == 0) {\n contourAttributes[i].setGlevel(glevelArray[0]);\n contourAttributes[i].setGvcord(gvcordArray[0]);\n contourAttributes[i].setSkip(skipArray[0]);\n contourAttributes[i].setFilter(filterArray[0]);\n contourAttributes[i].setScale(scaleArray[0]);\n contourAttributes[i].setType(typeArray[0]);\n contourAttributes[i].setCint(cintArray[0]);\n contourAttributes[i].setLine(lineArray[0]);\n contourAttributes[i].setFint(fintArray[0]);\n contourAttributes[i].setFline(flineArray[0]);\n contourAttributes[i].setHilo(hiloArray[0]);\n contourAttributes[i].setHlsym(hlsymArray[0]);\n contourAttributes[i].setWind(windArray[0]);\n contourAttributes[i].setMarker(markerArray[0]);\n contourAttributes[i].setClrbar(clrbarArray[0]);\n contourAttributes[i].setText(textArray[0]);\n contourAttributes[i].setColors(colorArray[0]);\n } else {\n int idx = (glevelArray.length > i) ? i\n : (glevelArray.length - 1);\n if (glevelArray[idx].isEmpty() && idx > 0) {\n glevelArray[idx] = glevelArray[idx - 1];\n }\n contourAttributes[i].setGlevel(glevelArray[idx]);\n\n idx = (gvcordArray.length > i) ? i : gvcordArray.length - 1;\n if (gvcordArray[idx].isEmpty() && idx > 0) {\n gvcordArray[idx] = gvcordArray[idx - 1];\n }\n contourAttributes[i].setGvcord(gvcordArray[idx]);\n\n idx = (skipArray.length > i) ? i : skipArray.length - 1;\n if (skipArray[idx].isEmpty() && idx > 0) {\n skipArray[idx] = skipArray[idx - 1];\n }\n contourAttributes[i].setSkip(skipArray[idx]);\n\n idx = (filterArray.length > i) ? i : filterArray.length - 1;\n if (filterArray[idx].isEmpty() && idx > 0) {\n filterArray[idx] = filterArray[idx - 1];\n }\n contourAttributes[i].setFilter(filterArray[idx]);\n\n idx = (scaleArray.length > i) ? i : scaleArray.length - 1;\n if (scaleArray[idx].isEmpty() && idx > 0) {\n scaleArray[idx] = scaleArray[idx - 1];\n }\n contourAttributes[i].setScale(scaleArray[idx]);\n\n idx = (typeArray.length > i) ? i : typeArray.length - 1;\n if (typeArray[idx].isEmpty() && idx > 0) {\n typeArray[idx] = typeArray[idx - 1];\n }\n contourAttributes[i].setType(typeArray[idx]);\n\n idx = (cintArray.length > i) ? i : cintArray.length - 1;\n if (cintArray[idx].isEmpty() && idx > 0) {\n cintArray[idx] = cintArray[idx - 1];\n }\n contourAttributes[i].setCint(cintArray[idx]);\n\n idx = (lineArray.length > i) ? i : lineArray.length - 1;\n if (lineArray[idx].isEmpty() && idx > 0) {\n lineArray[idx] = lineArray[idx - 1];\n }\n contourAttributes[i].setLine(lineArray[idx]);\n\n idx = (fintArray.length > i) ? i : fintArray.length - 1;\n if (fintArray[idx].isEmpty() && idx > 0) {\n fintArray[idx] = fintArray[idx - 1];\n }\n contourAttributes[i].setFint(fintArray[idx]);\n\n idx = (flineArray.length > i) ? i : flineArray.length - 1;\n if (flineArray[idx].isEmpty() && idx > 0) {\n flineArray[idx] = flineArray[idx - 1];\n }\n contourAttributes[i].setFline(flineArray[idx]);\n\n idx = (hiloArray.length > i) ? i : hiloArray.length - 1;\n if (hiloArray[idx].isEmpty() && idx > 0) {\n hiloArray[idx] = hiloArray[idx - 1];\n }\n contourAttributes[i].setHilo(hiloArray[idx]);\n\n idx = (hlsymArray.length > i) ? i : hlsymArray.length - 1;\n if (hlsymArray[idx].isEmpty() && idx > 0) {\n hlsymArray[idx] = hlsymArray[idx - 1];\n }\n contourAttributes[i].setHlsym(hlsymArray[idx]);\n\n idx = (windArray.length > i) ? i : windArray.length - 1;\n if (windArray[idx].isEmpty() && idx > 0) {\n windArray[idx] = windArray[idx - 1];\n }\n contourAttributes[i].setWind(windArray[idx]);\n\n idx = (markerArray.length > i) ? i : markerArray.length - 1;\n if (markerArray[idx].isEmpty() && idx > 0) {\n markerArray[idx] = markerArray[idx - 1];\n }\n contourAttributes[i].setMarker(markerArray[idx]);\n\n idx = (clrbarArray.length > i) ? i : clrbarArray.length - 1;\n if (clrbarArray[idx].isEmpty() && idx > 0) {\n clrbarArray[idx] = clrbarArray[idx - 1];\n }\n contourAttributes[i].setClrbar(clrbarArray[idx]);\n\n idx = (textArray.length > i) ? i : textArray.length - 1;\n if (textArray[idx].isEmpty() && idx > 0) {\n textArray[idx] = textArray[idx - 1];\n }\n contourAttributes[i].setText(textArray[idx]);\n\n idx = (colorArray.length > i) ? i : colorArray.length - 1;\n if (colorArray[idx].isEmpty() && idx > 0) {\n colorArray[idx] = colorArray[idx - 1];\n }\n contourAttributes[i].setColors(colorArray[idx]);\n\n }\n }\n }", "@Override\r\n\tpublic void rebuildFromXml(Element e,List<Object> err) {\n\t\tsuper.rebuildFromXml(e,err);\r\n\t\t\t\r\n\t\tif(e.attribute(ModelType.ATR_COORTYPE) != null){\r\n\t\t\t\tcoorType = e.attributeValue(ModelType.ATR_COORTYPE);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_COORTYPE));\r\n\t\t}\r\n\t\t\t\r\n\t\tif(e.attribute(ModelType.ATR_VELOCITY) != null){\r\n\t\t\tvelocity = e.attributeValue(ModelType.ATR_VELOCITY);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_VELOCITY));\r\n\t\t}\r\n\t\t\t\r\n\t\tif(e.attribute(ModelType.ATR_CX) != null){\r\n\t\t\tcx = e.attributeValue(ModelType.ATR_CX);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_CX));\r\n\t\t}\r\n\t\t\r\n\t\tif(e.attribute(ModelType.ATR_CY) != null){\r\n\t\t\tcy = e.attributeValue(ModelType.ATR_CY);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_CY));\r\n\t\t}\r\n\t\t\r\n\t\tif(e.attribute(ModelType.ATR_CZ) != null){\r\n\t\t\tcz = e.attributeValue(ModelType.ATR_CZ);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_CZ));\r\n\t\t}\r\n\t\t\r\n\t\tif(e.attribute(ModelType.ATR_DA) != null){\r\n\t\t\tda = e.attributeValue(ModelType.ATR_DA);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_DA));\r\n\t\t}\r\n\t\t\r\n\t\tif(e.attribute(ModelType.ATR_DB) != null){\r\n\t\t\tdb = e.attributeValue(ModelType.ATR_DB);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_DB));\r\n\t\t}\r\n\t\t\r\n\t\tif(e.attribute(ModelType.ATR_DC) != null){\r\n\t\t\tdc = e.attributeValue(ModelType.ATR_DC);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_DC));\r\n\t\t}\r\n\t\t\r\n\t\tif(e.attribute(ModelType.ATR_R) != null){\r\n\t\t\tR = e.attributeValue(ModelType.ATR_R);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_R));\r\n\t\t}\r\n\t\t\r\n\t\tif(e.attribute(ModelType.ATR_RAD) != null){\r\n\t\t\trad = e.attributeValue(ModelType.ATR_RAD);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_RAD));\r\n\t\t}\r\n\t\t/*if(e.attribute(ModelType.ATR_INDEX) != null){\r\n\t\t\tindex = e.attributeValue(ModelType.ATR_INDEX);\r\n\t\t}\r\n\t\telse{\r\n\t\t\terr.add(new CustomErrorInfo(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tCustomErrorInfo.NULL,\r\n\t\t\t\t\tModelType.ATR_INDEX));\r\n\t\t}*/\r\n\t}", "public void getVentasdeUNMes(int m) {\r\n double vMes[] = new double[nv];\r\n int i;\r\n for (i = 0; i < nv; i++) {\r\n vMes[i] = ventas[i][m];\r\n }\r\n getMostrarVec(vMes);\r\n }", "public Event interpret(Event e) {\r\n\t\tEvent event = new Event(e.getTitle());\r\n\t\tevent.setImpact(e.getImpact());\r\n\t\tevent.setInstrument(e.getInstrument());\r\n\r\n\t\tPattern pattern = Pattern\r\n\t\t\t\t.compile(\"<td class=\\\"time\\\">([0-9]?[0-9]:[0-9][0-9][a-z][a-z])?</td> <td class=\\\"currency\\\">[A-Z][A-Z][A-Z]</td> <td class=\\\"impact\\\"> <span title=\\\"([A-Z]*[a-z]* *)*\\\" class=\\\"[a-z]*\\\"></span> </td> <td class=\\\"event\\\"><span>\"\r\n\t\t\t\t\t\t+ e.getTitle()\r\n\t\t\t\t\t\t+ \"</span></td> <td class=\\\"detail\\\"><a class=\\\"calendar_detail level[0-9]\\\" data-level=\\\"[0-9]\\\"></a></td> <td class=\\\"actual\\\"> <span class=\\\"[a-z]*\\\">-?[0-9]*\\\\.*[0-9]*%?[A-Z]?</span>\");\r\n\t\trfc.downloadFile(\"http://www.forexfactory.com/\");\r\n\r\n\t\tString fileContent = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tfileContent = new Scanner(rfc.getFile()).useDelimiter(\"\\\\Z\").next();\r\n\t\t} catch (FileNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\tMatcher matcher = pattern.matcher(fileContent);\r\n\r\n\t\tboolean foundPrimeResult = false;\r\n\t\tString eventString = \"\";\r\n\t\twhile (matcher.find()) {\r\n\t\t\teventString = matcher.group();\r\n\t\t\tif (eventString.contains(\"EUR\") || eventString.contains(\"USD\"))\r\n\t\t\t\tbreak;\r\n\t\t\tfoundPrimeResult = true;\r\n\t\t}\r\n\r\n\t\t// System.out.println(eventString);\r\n\r\n\t\tPattern resultPattern = Pattern\r\n\t\t\t\t.compile(\"<td class=\\\"actual\\\"> <span class=\\\"[a-z]*\\\">-?[0-9]*\\\\.*[0-9]*%?[A-Z]?</span>\");\r\n\r\n\t\t// match and set result\r\n\t\tmatcher = resultPattern.matcher(eventString);\r\n\t\tif (matcher.find()) {\r\n\t\t\tpattern = Pattern.compile(\"<span class=\\\"[a-z]*\\\">\");\r\n\t\t\tMatcher matcher2 = pattern.matcher(matcher.group());\r\n\t\t\tif (matcher2.find()) {\r\n\t\t\t\tString result = matcher2.group();\r\n\t\t\t\tif (result.contains(\"better\"))\r\n\t\t\t\t\tevent.setResult(EventResult.BETTER);\r\n\t\t\t\telse if (result.contains(\"worse\"))\r\n\t\t\t\t\tevent.setResult(EventResult.WORSE);\r\n\t\t\t\telse\r\n\t\t\t\t\tevent.setResult(EventResult.NONE);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// check if unchanged but result is in\r\n\t\t// TODO fixa denna s? att den inte matcher med events som ?nnu inte har\r\n\t\t// kommit in.\r\n\t\t// Fan sv?rt att matcha unchanged faktiskt tobbe\r\n\t\tif (!foundPrimeResult) {\r\n\t\t\tpattern = Pattern\r\n\t\t\t\t\t.compile(e.getTitle()\r\n\t\t\t\t\t\t\t+ \"</span></td> <td class=\\\"detail\\\"><a class=\\\"calendar_detail level[0-9]\\\" data-level=\\\"[0-9]\\\"></a></td> <td class=\\\"actual\\\">*[0-9]+.*</td>\");\r\n\t\t\tmatcher = pattern.matcher(fileContent);\r\n\t\t\twhile (matcher.find()) {\r\n\t\t\t\tevent.setResult(EventResult.UNCHANGED);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn event;\r\n\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<a;i++){\n\t\t\t\t\tfor(j=0;j<a-i-1;j++){\n\t\t\t\t\t\tString name1=det[j].extn;\n\t\t\t\t\t\tString name2=det[j+1].extn;\n\t\t\t\t\t\tif(name1.compareToIgnoreCase(name2)>0){\n\t\t\t\t\t\t\tdetails tempo=det[j];\n\t\t\t\t\t\t\tdet[j]=det[j+1];\n\t\t\t\t\t\t\tdet[j+1]=tempo;\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\t\n\t\t\t\tfor(i=0;i<a;i++){\n\t\t\t\t\tHashMap<String,String> temp1 = new HashMap<String,String>();\n\t\t\t\t\ttemp1.put(\"name\",det[i].name);\n\t\t\t\t\ttemp1.put(\"size\",String.valueOf(det[i].size));\n\t\t\t\t\ttemp1.put(\"extn\",det[i].extn);\n\t\t\t\t\textns.add(temp1);\n\t\t\t\t}\n\t\t\t\tDisp2();\n\t\t\t}", "public static int numElements_infos_metadata() {\n return 2;\n }", "private Event convertToEvent(String message) {\n\t\tJSONParser parser = new JSONParser();\n\t\tJSONObject jsonObject;\n\t\ttry {\n\t\t\tjsonObject = (JSONObject) parser.parse(message);\n\t\t} catch (ParseException e) {\n\t\t\tthrow new RuntimeException(\"ParseException caught trying to parse message text into JSON object\");\n\t\t}\n\t\tJSONArray events = (JSONArray) jsonObject.get(\"events\");\n\t\tList<EventAttribute> eventAttributes = new ArrayList<>();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tIterator<JSONObject> iterator = events.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tJSONObject jsonT = (JSONObject) iterator.next();\n\t\t\tJSONObject jsonEventAttribute = (JSONObject) jsonT.get(\"attributes\");\n\t\t\tString accountNum = (String) jsonEventAttribute.get(\"Account Number\");\n\t\t\tString txAmount = (String) jsonEventAttribute.get(\"Transaction Amount\");\n\t\t\tString cardMemberName = (String) jsonEventAttribute.get(\"Name\");\n\t\t\tString product = (String) jsonEventAttribute.get(\"Product\");\n\t\t\tEventAttribute eventAttribute = new EventAttribute(accountNum, txAmount, cardMemberName, product);\n\t\t\teventAttributes.add(eventAttribute);\n\t\t}\n\n\t\treturn new Event(eventAttributes);\n\t}", "private <T extends IDElement> ArrayList<Object[]> transformElementListToList(ArrayList<T> pElementList, int pElementType) throws Exception{\r\n\t\tArrayList<Object[]> vRet = new ArrayList<Object[]>();\r\n\t\t\r\n\t\tif (pElementList!= null) {\r\n\t\t\tfor (T vCur : pElementList) {\r\n\t\t\t\tswitch(pElementType) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tvRet.add(transformProbElementToList((ProbElement)vCur));\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tvRet.add(transformPrioElementToList((PrioElement)vCur));\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tthrow new Exception(\"02; tELtL,Edi\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else throw new Exception(\"04; tELtL,Edi\");\r\n\t\t\r\n\t\treturn vRet;\r\n\t}", "@Override\n\tpublic void processItemInformation(ProcessItemInformationObjectEvent e, String message) {\n\t\t\n\t}", "public Track2EquivalentData(byte[] data) {\n if (data.length > 19) {\n throw new SmartCardException(\"Invalid Track2EquivalentData length: \" + data.length);\n }\n String str = Util.byteArrayToHexString(data).toUpperCase();\n //Field Separator (Hex 'D')\n int fieldSepIndex = str.indexOf('D');\n pan = new PAN(str.substring(0, fieldSepIndex));\n //Skip Field Separator\n int YY = Util.binaryHexCodedDecimalToInt(str.substring(fieldSepIndex + 1, fieldSepIndex + 3));\n int MM = Util.binaryHexCodedDecimalToInt(str.substring(fieldSepIndex + 3, fieldSepIndex + 5));\n Calendar cal = Calendar.getInstance();\n cal.set(2000 + YY, MM - 1, 0, 0, 0, 0);\n cal.set(Calendar.MILLISECOND, 0);\n this.expirationDate = cal.getTime();\n serviceCode = new ServiceCode(str.substring(fieldSepIndex + 5, fieldSepIndex + 8).toCharArray());\n int padIndex = str.indexOf('F', fieldSepIndex + 8);\n if (padIndex != -1) {\n //Padded with one Hex 'F' if needed to ensure whole bytes\n discretionaryData = str.substring(fieldSepIndex + 8, padIndex);\n } else {\n discretionaryData = str.substring(fieldSepIndex + 8);\n }\n }", "public int[] get_infos_noise() {\n int[] tmp = new int[3];\n for (int index0 = 0; index0 < numElements_infos_noise(0); index0++) {\n tmp[index0] = getElement_infos_noise(index0);\n }\n return tmp;\n }", "private void trataElement(String tagEleEntOuAtt, HashMap<String, ArrayList<String>> arrEntity, HashMap<String, ArrayList<Atributo>> arrEntityAtt) {\r\n\t\t/*\r\n\t\t * Divide a tag do DTD pelos espaços\r\n\t\t */\r\n\t\tboolean printOut = false;\r\n\t\tString arr[] = tagEleEntOuAtt.split(\" \");\r\n\t\tString nomeDaTag = arr[1];\r\n\t\t/*\r\n\t\t * Verifica se a tag aponta para mais de um elemento\r\n\t\t */\r\n\t\tif (nomeDaTag.startsWith(\"(\") && nomeDaTag.endsWith(\"\")) {\r\n\t\t\t// recursão, mais de uma tag\r\n\t\t\tString iniTag = arr[0];\r\n\t\t\tString fimTag = arr[2];\r\n\t\t\tfor (int i = 3; i < arr.length; i++) {\r\n\t\t\t\tfimTag += \" \" + arr[i];\r\n\t\t\t}\r\n\t\t\tString nomes[] = nomeDaTag.replaceAll(\"(\\\\(|\\\\))\", \"\").split(\"\\\\|\");\r\n\r\n\t\t\tfor (int i = 0; i < nomes.length; i++) {\r\n\t\t\t\tString recTag = iniTag + \" \" + nomes[i] + \" \" + fimTag;\r\n\t\t\t\ttrataElement(recTag, arrEntity, arrEntityAtt);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/*\r\n\t\t * Verifica se o nome da tag aponta para um Entity\r\n\t\t */\r\n\t\tif (nomeDaTag.startsWith(\"%\") && nomeDaTag.endsWith(\";\")) {\r\n\t\t\t// Recursão mais de um elemento\r\n\t\t\tString tagKey = nomeDaTag.replace(\"%\", \"\").replace(\";\", \"\");\r\n\t\t\tif (arrEntity.containsKey(tagKey)) {\r\n\t\t\t\tString iniTag = arr[0];\r\n\t\t\t\tString fimTag = arr[2];\r\n\t\t\t\tfor (int i = 3; i < arr.length; i++) {\r\n\t\t\t\t\tfimTag += \" \" + arr[i];\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < arrEntity.get(tagKey).size(); i++) {\r\n\t\t\t\t\tString recTag = iniTag + \" \" + arrEntity.get(tagKey).get(i) + \" \" + fimTag;\r\n\t\t\t\t\ttrataElement(recTag, arrEntity, arrEntityAtt);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif (printOut){\r\n\t\t\t\t\t//System.out.print(\"Erro entity não encontrado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Atribuir os valores\r\n\t\t */\r\n\t\tTag cTag;\r\n\t\tif (!arrTag.containsKey(nomeDaTag)) {\r\n\t\t\tcTag = new Tag(nomeDaTag);\r\n\t\t\tarrTag.put(nomeDaTag, cTag);\r\n\t\t} else {\r\n\t\t\tcTag = arrTag.get(nomeDaTag);\r\n\t\t}\r\n\t\t/*\r\n\t\t * tratar os valores\r\n\t\t */\r\n\t\tint indiceComecoValores = 0;\r\n\t\tif (arr.length > 3) {\r\n\t\t\tif (arr[2].equals(\"-\") || arr[2].equals(\"O\")) {\r\n\t\t\t\t/*\r\n\t\t\t\t * O que são estes símbolos, quantificadores?\r\n\t\t\t\t */\r\n\t\t\t\tindiceComecoValores = 4;\r\n\t\t\t} else {\r\n\t\t\t\tindiceComecoValores = 3;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (printOut)\r\n\t\t\t//System.out.println(\"Tag=\" + nomeDaTag);\r\n\t\tif (indiceComecoValores != 0) {\r\n\t\t\tString valor = \"\";\r\n\t\t\tfor (int i = indiceComecoValores; i < arr.length; i++) {\r\n\t\t\t\tvalor += arr[i];\r\n\t\t\t}\r\n\t\t\tcTag.setStrValueDtd(valor);\r\n\t\t}\r\n\t}", "public void notify (JsimEvent evt)\n {\n trc.show (\"notify\", \"Event type: \" + evt.getEventType ());\n \n\tObject handback = evt.getRegistrationObject ();\n if (evt.getID () == EventMap.INQUIRE_EVT) {\n } else if (evt.getID () == EventMap.INFORM_EVT) {\n \n /**************************************************************\n * Handle InformEvent from model\n */\n\n ModelProperties prop;\n if (use_xml) {\n\t try {\n Vector data = XMLSerializer.deserializeFromString ((String) handback);\n prop = (ModelProperties) (data.get (0));\n } catch (Exception e) {\n trc.tell (\"notify (InformEvent)\", e.getMessage ());\n e.printStackTrace ();\n return;\n }\n\t } else {\n\t prop = (ModelProperties) handback;\n\t }; // if\n\n if (prop != null) {\n\t\t propCache = prop;\n\t\t new PropertyDialog (this, prop);\n } else {\n\t\t trc.show (\"notify\", \"model prop is null\");\n\t }; // if\n\n } else if (evt.getID () == EventMap.CHANGE_EVT) {\n } else if (evt.getID () == EventMap.CHANGED_EVT) {\n\t fireSimulateEvent ();\n } else if (evt.getID () == EventMap.SIMULATE_EVT) {\n } else if (evt.getID () == EventMap.REPORT_EVT) {\n\t Message msg = null;\n\t if (use_xml) {\n try {\n Vector v = XMLSerializer.deserializeFromString ((String) handback);\n msg = (Message) v.get (0);\n } catch (Exception e) {\n trc.tell (\"notify\", e.getMessage ());\n e.printStackTrace ();\n }\n } else {\n msg = (Message) handback;\n\t }; // if\n\t handleReport (msg);\n } else if (evt.getID () == EventMap.INJECT_EVT) {\n } else if (evt.getID () == EventMap.QUERY_EVT) {\n } else if (evt.getID () == EventMap.STORE_EVT) {\n } else if (evt.getID () == EventMap.RESULT_EVT) {\n } else if (evt.getID () == EventMap.INSTRUCT_EVT) {\n\n /******************************************************************\n * Handle instruct events from a model\n */\n\t Instruct instruct;\n\t if (use_xml) {\n try {\n Vector data = XMLSerializer.deserializeFromString ((String) handback);\n instruct = (Instruct) data.get (0);\n } catch (Exception e) { \n trc.tell (\"notify\", e.getMessage ());\n e.printStackTrace ();\n return;\n }\n\t } else {\n\t instruct = (Instruct) handback;\n\t }; // if\n\n\t scenarioID = instruct.getScenarioID ();\n started = false;\n quit = false;\n fireInquireEvent ();\n\n } else {\n trc.tell (\"notify\", \"Unknown event type!\");\n }; // if\n\n }", "public static String[] parsingMSRData(byte[] rawData)\n {\n final byte[] FS = { (byte) 0x1C };\n final byte[] ETX = { (byte) 0x03 };\n\n String temp = new String(rawData);\n String trackData[] = new String[3];\n\n // ETX , FS\n String[] rData = temp.split(new String(ETX));\n temp = rData[0];\n String[] tData = temp.split(new String(FS));\n\n switch (tData.length)\n {\n case 1:\n break;\n case 2:\n trackData[0] = tData[1];\n break;\n case 3:\n trackData[0] = tData[1];\n trackData[1] = tData[2];\n break;\n case 4:\n trackData[0] = tData[1];\n trackData[1] = tData[2];\n trackData[2] = tData[3];\n break;\n }\n return trackData;\n }", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "@Test\r\n\tpublic void Event() {\n\t\tString message = \"\";\r\n\t\tList<Object[]> myList = new ArrayList<Object[]>();\r\n\r\n\t\tmyList.add(new Object[] { \"nn\", \"artist\", \"not null\" });\r\n\t\tmyList.add(new Object[] { \"s\", \"venue\", null });\r\n\t\tmyList.add(new Object[] { \"s\", \"date\", null });\r\n\t\tmyList.add(new Object[] { \"i\", \"attendees\", 0 });\r\n\t\tmyList.add(new Object[] { \"s\", \"description\", \"\" });\r\n\r\n\t\tfor (Object[] li : myList) {\r\n\t\t\tmessage = String.format(\"initial value for %s should be %s\\n\",\r\n\t\t\t\t\tli[1], li[2]);\r\n\t\t\ttry {\r\n\t\t\t\tswitch (li[0].toString()) {\r\n\t\t\t\tcase \"i\":\r\n\t\t\t\tcase \"s\":\r\n\t\t\t\t\tassertEquals(\r\n\t\t\t\t\t\t\tgetPrivateField(toTest, li[1].toString()).get(\r\n\t\t\t\t\t\t\t\t\ttoTest), li[2], message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase \"nn\":\r\n\t\t\t\t\tassertNotNull(getPrivateField(toTest, li[1].toString())\r\n\t\t\t\t\t\t\t.get(toTest), message);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IllegalArgumentException 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 (IllegalAccessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private PropertyCard createPropertyElement(Element eElement) {\r\n\t\tif ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.UTILITY )\r\n\t\t{\r\n\t\t return new UtilityPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if (PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.RAILING )\r\n\t\t{\r\n\t\t return new RailingPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.SIMPLE )\r\n\t\t{\r\n\t\t\treturn new PlotPropertyCard(\r\n\t\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t\t,PlotPropertyCard.Colour_Type.valueOf(eElement.getElementsByTagName(\"colour\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue0\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValueHotel\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"houseCost\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"hotelCost\").item(0).getTextContent())\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Map<Integer, String> getUomIdAndModel() {\n\t\tList<UomVO> list = partUom();\r\n\t\t/*\r\n\t\t * for (UomVO ob : list) { map.put(ob.getId(), ob.getUomModel()); }\r\n\t\t */\r\n\t\t///\r\n\t\tMap<Integer, String> map = list.stream().collect(Collectors.toMap(UomVO::getId, UomVO::getUomModel));\r\n\t\treturn map;\r\n\r\n\t}", "public short[] get_entries_receiveEst() {\n short[] tmp = new short[11];\n for (int index0 = 0; index0 < numElements_entries_receiveEst(0); index0++) {\n tmp[index0] = getElement_entries_receiveEst(index0);\n }\n return tmp;\n }", "private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }", "private static org.opencds.vmr.v1_0.schema.ENXP eNXPInternal2ENXP(ENXP pENXP) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"eNXPInternal2ENXP(): \";\n\t\tif (pENXP == null)\n\t\t\treturn null;\n\n\t\torg.opencds.vmr.v1_0.schema.ENXP lENXPExt = new org.opencds.vmr.v1_0.schema.ENXP();\n\n\t\t// set external XP.value \n\t\tlENXPExt.setValue(pENXP.getValue());\n\n\t\t// Now translate the internal EntityNamePartType to external EntityNamePartType\n\t\tEntityNamePartType lEntityNamePartTypeInt = pENXP.getType();\n\t\tif (lEntityNamePartTypeInt == null) {\n\t\t\tString errStr = _METHODNAME + \"EntityPartType of external ENXP datatype not populated; required by vmr spec\";\n\t\t\tthrow new DataFormatException(errStr);\n\t\t}\n\t\tString lEntityNamePartTypeStrInt = lEntityNamePartTypeInt.toString();\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"Internal EntityNamePartType value: \" + lEntityNamePartTypeStrInt);\n\t\t}\n\n\t\torg.opencds.vmr.v1_0.schema.EntityNamePartType lEntityNamePartTypeExt = null;\n\t\ttry {\n\t\t\tlEntityNamePartTypeExt = org.opencds.vmr.v1_0.schema.EntityNamePartType.valueOf(lEntityNamePartTypeStrInt);\n\t\t}\n\t\tcatch (IllegalArgumentException iae) {\n\t\t\tString errStr = _METHODNAME + \"there was no direct value mapping from the internal to external enumeration\";\n\t\t\tthrow new InvalidDataException(errStr);\n\t\t}\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"External EntityNamePartType value: \" + lEntityNamePartTypeExt);\n\t\t}\n\t\tlENXPExt.setType(lEntityNamePartTypeExt);\n\n\t\t// Finally create the list of external EntityNamePartQualifiers (optional in spec)\n\t\tList<EntityNamePartQualifier> lPartQualifierListInt = pENXP.getQualifier();\n\t\tif (lPartQualifierListInt != null) {\n\t\t\tIterator<EntityNamePartQualifier> lPartQualifierIterInt = lPartQualifierListInt.iterator();\n\t\t\twhile (lPartQualifierIterInt.hasNext()) {\n\t\t\t\t// Take each internal EntityNamePartQualifier and convert to internal EntityNamePartQualifier for addition to internal EN\n\t\t\t\tEntityNamePartQualifier lPartQualifierInt = lPartQualifierIterInt.next();\n\t\t\t\torg.opencds.vmr.v1_0.schema.EntityNamePartQualifier lPartQualifierExt = eNPartQualifierInternal2ENPartQualifier(lPartQualifierInt);\n\t\t\t\tlENXPExt.getQualifier().add(lPartQualifierExt);\n\t\t\t}\n\t\t}\t\t\n\n\t\treturn lENXPExt;\n\t}", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "Map<Double, Element> getElements();", "protected ArrayList<String> convertUeToNamesList(ArrayList<UE> ueList2) {\n\t\tArrayList<String> ueList = new ArrayList<String>();\n\t\tfor (UE ue : ueList2) {\n\t\t\tueList.add(\"UE\" + ue.getName().replaceAll(\"\\\\D+\", \"\").trim());\n\t\t}\n\t\treturn ueList;\n\t}", "protected String convertGroupElement(final int groupWord, final int elementWord) {\r\n String first, second;\r\n\r\n first = Integer.toString(groupWord, 16);\r\n\r\n while (first.length() < 4) { // prepend with '0' as needed\r\n first = \"0\" + first;\r\n }\r\n\r\n first = first.toUpperCase();\r\n second = Integer.toString(elementWord, 16);\r\n\r\n while (second.length() < 4) { // prepend with '0' as needed\r\n second = \"0\" + second;\r\n }\r\n\r\n second = second.toUpperCase();\r\n\r\n return (first + \",\" + second); // name is the hex string of the tag\r\n }", "public static Map<Integer, Integer> getAcceptabilities(int descriptionSememeNid, StampCoordinate stamp) throws RuntimeException {\n\t\tMap<Integer, Integer> dialectSequenceToAcceptabilityNidMap = new ConcurrentHashMap<>();\n\n\t\tGet.sememeService().getSememesForComponent(descriptionSememeNid).forEach(nestedSememe\n\t\t\t\t-> {\n\t\t\tif (nestedSememe.getSememeType() == SememeType.COMPONENT_NID) {\n\t\t\t\tint dialectSequence = nestedSememe.getAssemblageSequence();\n\n\t\t\t\t@SuppressWarnings({\"rawtypes\", \"unchecked\"})\n\t\t\t\tOptional<LatestVersion<ComponentNidSememe>> latest = ((SememeChronology) nestedSememe).getLatestVersion(ComponentNidSememe.class,\n\t\t\t\t\t\tstamp == null ? Get.configurationService().getDefaultStampCoordinate() : stamp);\n\n\t\t\t\tif (latest.isPresent()) {\n\t\t\t\t\tif (latest.get().value().getComponentNid() == MetaData.PREFERRED.getNid()\n\t\t\t\t\t\t\t|| latest.get().value().getComponentNid() == MetaData.ACCEPTABLE.getNid()) {\n\t\t\t\t\t\tif (dialectSequenceToAcceptabilityNidMap.get(dialectSequence) != null\n\t\t\t\t\t\t\t\t&& dialectSequenceToAcceptabilityNidMap.get(dialectSequence) != latest.get().value().getComponentNid()) {\n\t\t\t\t\t\t\tthrow new RuntimeException(\"contradictory annotations about acceptability!\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdialectSequenceToAcceptabilityNidMap.put(dialectSequence, latest.get().value().getComponentNid());\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tUUID uuid = null;\n\t\t\t\t\t\tString componentDesc = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tOptional<UUID> uuidOptional = Get.identifierService().getUuidPrimordialForNid(latest.get().value().getComponentNid());\n\t\t\t\t\t\t\tif (uuidOptional.isPresent()) {\n\t\t\t\t\t\t\t\tuuid = uuidOptional.get();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tOptional<LatestVersion<DescriptionSememe<?>>> desc = Get.conceptService().getSnapshot(StampCoordinates.getDevelopmentLatest(), LanguageCoordinates.getUsEnglishLanguageFullySpecifiedNameCoordinate()).getDescriptionOptional(latest.get().value().getComponentNid());\n\t\t\t\t\t\t\tcomponentDesc = desc.isPresent() ? desc.get().value().getText() : null;\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// NOOP\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tlog.warn(\"Unexpected component \" + componentDesc + \" (uuid=\" + uuid + \", nid=\" + latest.get().value().getComponentNid() + \")\");\n\t\t\t\t\t\t//throw new RuntimeException(\"Unexpected component \" + componentDesc + \" (uuid=\" + uuid + \", nid=\" + latest.get().value().getComponentNid() + \")\");\n\t\t\t\t\t\t//dialectSequenceToAcceptabilityNidMap.put(dialectSequence, latest.get().value().getComponentNid());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn dialectSequenceToAcceptabilityNidMap;\n\t}", "private void populateSpecialEvent() {\n try {\n vecSpecialEventKeys = new Vector();\n vecSpecialEventLabels = new Vector();\n StringTokenizer stk = null;\n //MSB -09/01/05 -- Changed configuration file and Keys\n // config = new ConfigMgr(\"customer.cfg\");\n // String strSubTypes = config.getString(\"SPECIAL_EVENT_TYPES\");\n// config = new ConfigMgr(\"ArmaniCommon.cfg\");\n config = new ArmConfigLoader();\n String strSubTypes = config.getString(\"SPECIAL_EVT_TYPE\");\n int i = -1;\n if (strSubTypes != null && strSubTypes.trim().length() > 0) {\n stk = new StringTokenizer(strSubTypes, \",\");\n } else\n return;\n types = new String[stk.countTokens()];\n while (stk.hasMoreTokens()) {\n types[++i] = stk.nextToken();\n String key = config.getString(types[i] + \".CODE\");\n vecSpecialEventKeys.add(key);\n String value = config.getString(types[i] + \".LABEL\");\n vecSpecialEventLabels.add(value);\n }\n cbxSpcEvt.setModel(new DefaultComboBoxModel(vecSpecialEventLabels));\n } catch (Exception e) {}\n }", "public void mo5250a(String str, String str2) {\n try {\n ExifInterface exifInterface = new ExifInterface(str);\n ExifInterface exifInterface2 = new ExifInterface(str2);\n if (exifInterface.getAttribute(\"GPSDateStamp\") != null) {\n exifInterface2.setAttribute(\"GPSDateStamp\", exifInterface.getAttribute(\"GPSDateStamp\"));\n }\n if (exifInterface.getAttribute(\"GPSLatitude\") != null) {\n exifInterface2.setAttribute(\"GPSLatitude\", exifInterface.getAttribute(\"GPSLatitude\"));\n }\n if (exifInterface.getAttribute(\"GPSLatitudeRef\") != null) {\n exifInterface2.setAttribute(\"GPSLatitudeRef\", exifInterface.getAttribute(\"GPSLatitudeRef\"));\n }\n if (exifInterface.getAttribute(\"GPSLongitude\") != null) {\n exifInterface2.setAttribute(\"GPSLongitude\", exifInterface.getAttribute(\"GPSLongitude\"));\n }\n if (exifInterface.getAttribute(\"GPSLongitudeRef\") != null) {\n exifInterface2.setAttribute(\"GPSLongitudeRef\", exifInterface.getAttribute(\"GPSLongitudeRef\"));\n }\n if (exifInterface.getAttribute(\"GPSProcessingMethod\") != null) {\n exifInterface2.setAttribute(\"GPSProcessingMethod\", exifInterface.getAttribute(\"GPSProcessingMethod\"));\n }\n if (exifInterface.getAttribute(\"GPSTimeStamp\") != null) {\n exifInterface2.setAttribute(\"GPSTimeStamp\", exifInterface.getAttribute(\"GPSTimeStamp\"));\n }\n if (exifInterface.getAttribute(\"DateTime\") != null) {\n exifInterface2.setAttribute(\"DateTime\", exifInterface.getAttribute(\"DateTime\"));\n }\n if (exifInterface.getAttribute(\"Flash\") != null) {\n exifInterface2.setAttribute(\"Flash\", exifInterface.getAttribute(\"Flash\"));\n }\n if (exifInterface.getAttribute(\"FocalLength\") != null) {\n exifInterface2.setAttribute(\"FocalLength\", exifInterface.getAttribute(\"FocalLength\"));\n }\n if (exifInterface.getAttribute(\"ImageLength\") != null) {\n exifInterface2.setAttribute(\"ImageLength\", exifInterface.getAttribute(\"ImageLength\"));\n }\n if (exifInterface.getAttribute(\"ImageWidth\") != null) {\n exifInterface2.setAttribute(\"ImageWidth\", exifInterface.getAttribute(\"ImageWidth\"));\n }\n if (exifInterface.getAttribute(\"Make\") != null) {\n exifInterface2.setAttribute(\"Make\", exifInterface.getAttribute(\"Make\"));\n }\n if (exifInterface.getAttribute(\"Model\") != null) {\n exifInterface2.setAttribute(\"Model\", exifInterface.getAttribute(\"Model\"));\n }\n if (exifInterface.getAttribute(\"Orientation\") != null) {\n exifInterface2.setAttribute(\"Orientation\", exifInterface.getAttribute(\"Orientation\"));\n }\n if (exifInterface.getAttribute(\"WhiteBalance\") != null) {\n exifInterface2.setAttribute(\"WhiteBalance\", exifInterface.getAttribute(\"WhiteBalance\"));\n }\n exifInterface2.saveAttributes();\n } catch (IOException e) {\n }\n }", "@Override\n public final Object getValue(final GXDLMSSettings settings,\n final ValueEventArgs e) {\n if (e.getIndex() == 1) {\n return GXCommon.logicalNameToBytes(getLogicalName());\n }\n GXByteBuffer buff = new GXByteBuffer();\n if (e.getIndex() == 2) {\n buff.setUInt8(DataType.ARRAY.getValue());\n GXCommon.setObjectCount(pushObjectList.size(), buff);\n for (Entry<GXDLMSObject, GXDLMSCaptureObject> it : pushObjectList) {\n buff.setUInt8(DataType.STRUCTURE.getValue());\n buff.setUInt8(4);\n GXCommon.setData(buff, DataType.UINT16,\n new Integer(it.getKey().getObjectType().getValue()));\n GXCommon.setData(buff, DataType.OCTET_STRING, GXCommon\n .logicalNameToBytes(it.getKey().getLogicalName()));\n GXCommon.setData(buff, DataType.INT8,\n new Integer(it.getValue().getAttributeIndex()));\n GXCommon.setData(buff, DataType.UINT16,\n new Integer(it.getValue().getDataIndex()));\n }\n return buff.array();\n }\n if (e.getIndex() == 3) {\n buff.setUInt8(DataType.STRUCTURE.getValue());\n buff.setUInt8(3);\n GXCommon.setData(buff, DataType.UINT8, new Integer(\n sendDestinationAndMethod.getService().getValue()));\n if (sendDestinationAndMethod.getDestination() != null) {\n GXCommon.setData(buff, DataType.OCTET_STRING,\n sendDestinationAndMethod.getDestination().getBytes());\n } else {\n GXCommon.setData(buff, DataType.OCTET_STRING, null);\n }\n GXCommon.setData(buff, DataType.UINT8,\n sendDestinationAndMethod.getMessage().getValue());\n return buff.array();\n }\n if (e.getIndex() == 4) {\n buff.setUInt8(DataType.ARRAY.getValue());\n GXCommon.setObjectCount(communicationWindow.size(), buff);\n for (Entry<GXDateTime, GXDateTime> it : communicationWindow) {\n buff.setUInt8(DataType.STRUCTURE.getValue());\n buff.setUInt8(2);\n GXCommon.setData(buff, DataType.OCTET_STRING, it.getKey());\n GXCommon.setData(buff, DataType.OCTET_STRING, it.getValue());\n }\n return buff.array();\n }\n if (e.getIndex() == 5) {\n return new Integer(randomisationStartInterval);\n }\n if (e.getIndex() == 6) {\n return new Integer(numberOfRetries);\n }\n if (e.getIndex() == 7) {\n return new Integer(repetitionDelay);\n }\n e.setError(ErrorCode.READ_WRITE_DENIED);\n return null;\n }", "public RecordGPS_Element ConvertRecord_GPS() {\n RecordGPS_Element recordGPS_element;\n String text;\n int[] num = {8, 8, 4, 4, 2, 4};\n List<Integer> data = new ArrayList<>();\n for (int i = 0; i < 6; i++) {\n text = HEX.substring(0, num[i]);\n data.add(converter.convertStringToIntHex(text));\n HEX = HEX.substring(num[i], HEX.length());\n }\n recordGPS_element = Fill_recordGPS_element(data);\n return recordGPS_element;\n }", "public void setElementValueAndNote(String elementName, String value, String note)\n\t{\n\t\tassert(elementName != null);\n\t\tInteger elementSort = Integer.valueOf(elementName);\n\t\t\n\t\tif (elementSort.compareTo(29) < 0)\n\t\t{\n\t\t\tif (elementSort.compareTo(15) < 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(8) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(4) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(2) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE1State(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(2) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE3RecordNumber(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE2(value);\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\telse if (elementSort.compareTo(4) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(6) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE5(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE5Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (elementSort.compareTo(6) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE7(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE7Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE6(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE6Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE4(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE4Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(8) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(12) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(10) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE9(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE9Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(10) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE11(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE11Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE10(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE10Notes(value);\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\telse if (elementSort.compareTo(12) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(13) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE14(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE14Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE13(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE13Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE12(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE12Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (value != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE8(value);\n\t\t\t\t\t}\n\t\t\t\t\tif (note != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE8Notes(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (elementSort.compareTo(15) > 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(23) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(19) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(17) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE16(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE16Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(17) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE18(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE18Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE17(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE17Notes(value);\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\telse if (elementSort.compareTo(19) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(21) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE20(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE20Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(21) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE22(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE22Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE21(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE21Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE19(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE19Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(23) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(27) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(25) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE24(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE24Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(25) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE26(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE26Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE25(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE25Notes(value);\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\telse if (elementSort.compareTo(27) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(28) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE29(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE29Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE28(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE28Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE27(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE27Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (value != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE23(value);\n\t\t\t\t\t}\n\t\t\t\t\tif (note != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE23Notes(value);\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\tif (value != null)\n\t\t\t\t{\n\t\t\t\t\tthis.setE15(value);\n\t\t\t\t}\n\t\t\t\tif (note != null)\n\t\t\t\t{\n\t\t\t\t\tthis.setE15Notes(value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (elementSort.compareTo(29) > 0)\n\t\t{\n\t\t\tif (elementSort.compareTo(44) < 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(37) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(33) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(31) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE30(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE30Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(31) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE32(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE32Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE31(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE31Notes(value);\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\telse if (elementSort.compareTo(33) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(35) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE34(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE34Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (elementSort.compareTo(35) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE36(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE36Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE35(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE35Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE33(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE33Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(37) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(41) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(39) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE38(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE38Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(39) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE40(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE40Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE39(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE39Notes(value);\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\telse if (elementSort.compareTo(41) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(42) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE43(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE43Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE42(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE42Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE41(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE41Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (value != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE37(value);\n\t\t\t\t\t}\n\t\t\t\t\tif (note != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE37Notes(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (elementSort.compareTo(44) > 0)\n\t\t\t{\n\t\t\t\tif (elementSort.compareTo(52) < 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(48) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(46) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE45(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE45Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(46) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE47(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE47Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE46(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE46Notes(value);\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\telse if (elementSort.compareTo(48) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(50) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE49(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE49Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(50) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE51(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE51Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE50(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE50Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE48(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE48Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (elementSort.compareTo(52) > 0)\n\t\t\t\t{\n\t\t\t\t\tif (elementSort.compareTo(56) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(54) < 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE53(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE53Notes(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (elementSort.compareTo(54) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE55(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE55Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE54(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE54Notes(value);\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\telse if (elementSort.compareTo(56) > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (elementSort.compareTo(57) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE58(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE58Notes(value);\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{\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE57(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.setE57Notes(value);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE56(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (note != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setE56Notes(value);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (value != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE52(value);\n\t\t\t\t\t}\n\t\t\t\t\tif (note != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setE52Notes(value);\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\tif (value != null)\n\t\t\t\t{\n\t\t\t\t\tthis.setE44(value);\n\t\t\t\t}\n\t\t\t\tif (note != null)\n\t\t\t\t{\n\t\t\t\t\tthis.setE44Notes(value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (value != null)\n\t\t\t{\n\t\t\t\tthis.setE29(value);\n\t\t\t}\n\t\t\tif (note != null)\n\t\t\t{\n\t\t\t\tthis.setE29Notes(value);\n\t\t\t}\n\t\t}\n\t}", "public static HelloAuthenticatedWithEntitlements parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n HelloAuthenticatedWithEntitlements object =\n new HelloAuthenticatedWithEntitlements();\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 (!\"helloAuthenticatedWithEntitlements\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (HelloAuthenticatedWithEntitlements)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 interface Winevt\n/* */ {\n/* */ public static final int EVT_VARIANT_TYPE_ARRAY = 128;\n/* */ public static final int EVT_VARIANT_TYPE_MASK = 127;\n/* */ public static final int EVT_READ_ACCESS = 1;\n/* */ public static final int EVT_WRITE_ACCESS = 2;\n/* */ public static final int EVT_ALL_ACCESS = 7;\n/* */ public static final int EVT_CLEAR_ACCESS = 4;\n/* */ \n/* */ public enum EVT_VARIANT_TYPE\n/* */ {\n/* 50 */ EvtVarTypeNull(\"\"),\n/* */ \n/* */ \n/* 53 */ EvtVarTypeString(\"String\"),\n/* */ \n/* */ \n/* 56 */ EvtVarTypeAnsiString(\"AnsiString\"),\n/* */ \n/* */ \n/* 59 */ EvtVarTypeSByte(\"SByte\"),\n/* */ \n/* */ \n/* 62 */ EvtVarTypeByte(\"Byte\"),\n/* */ \n/* */ \n/* 65 */ EvtVarTypeInt16(\"Int16\"),\n/* */ \n/* */ \n/* 68 */ EvtVarTypeUInt16(\"UInt16\"),\n/* */ \n/* */ \n/* 71 */ EvtVarTypeInt32(\"Int32\"),\n/* */ \n/* */ \n/* 74 */ EvtVarTypeUInt32(\"UInt32\"),\n/* */ \n/* */ \n/* 77 */ EvtVarTypeInt64(\"Int64\"),\n/* */ \n/* */ \n/* 80 */ EvtVarTypeUInt64(\"UInt64\"),\n/* */ \n/* */ \n/* 83 */ EvtVarTypeSingle(\"Single\"),\n/* */ \n/* */ \n/* 86 */ EvtVarTypeDouble(\"Double\"),\n/* */ \n/* */ \n/* 89 */ EvtVarTypeBoolean(\"Boolean\"),\n/* */ \n/* */ \n/* 92 */ EvtVarTypeBinary(\"Binary\"),\n/* */ \n/* */ \n/* 95 */ EvtVarTypeGuid(\"Guid\"),\n/* */ \n/* */ \n/* 98 */ EvtVarTypeSizeT(\"SizeT\"),\n/* */ \n/* */ \n/* 101 */ EvtVarTypeFileTime(\"FileTime\"),\n/* */ \n/* */ \n/* 104 */ EvtVarTypeSysTime(\"SysTime\"),\n/* */ \n/* */ \n/* 107 */ EvtVarTypeSid(\"Sid\"),\n/* */ \n/* */ \n/* 110 */ EvtVarTypeHexInt32(\"Int32\"),\n/* */ \n/* */ \n/* 113 */ EvtVarTypeHexInt64(\"Int64\"),\n/* */ \n/* */ \n/* 116 */ EvtVarTypeEvtHandle(\"EvtHandle\"),\n/* */ \n/* */ \n/* 119 */ EvtVarTypeEvtXml(\"Xml\");\n/* */ \n/* */ private final String field;\n/* */ \n/* */ EVT_VARIANT_TYPE(String field) {\n/* 124 */ this.field = field;\n/* */ }\n/* */ \n/* */ public String getField() {\n/* 128 */ return this.field.isEmpty() ? \"\" : (this.field + \"Val\");\n/* */ }\n/* */ \n/* */ public String getArrField() {\n/* 132 */ return this.field.isEmpty() ? \"\" : (this.field + \"Arr\");\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ @FieldOrder({\"field1\", \"Count\", \"Type\"})\n/* */ public static class EVT_VARIANT\n/* */ extends Structure\n/* */ {\n/* */ public field1_union field1;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public int Count;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public int Type;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ private Object holder;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public static class field1_union\n/* */ extends Union\n/* */ {\n/* */ public byte byteValue;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public short shortValue;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public int intValue;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public long longValue;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public float floatValue;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public double doubleVal;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public Pointer pointerValue;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public EVT_VARIANT() {\n/* 220 */ super(W32APITypeMapper.DEFAULT);\n/* */ }\n/* */ \n/* */ public EVT_VARIANT(Pointer peer) {\n/* 224 */ super(peer, 0, W32APITypeMapper.DEFAULT);\n/* */ }\n/* */ \n/* */ public void use(Pointer m) {\n/* 228 */ useMemory(m, 0);\n/* */ }\n/* */ \n/* */ public static class ByReference extends EVT_VARIANT implements Structure.ByReference {\n/* */ public ByReference(Pointer p) {\n/* 233 */ super(p);\n/* */ }\n/* */ \n/* */ public ByReference() {}\n/* */ }\n/* */ \n/* */ public static class ByValue\n/* */ extends EVT_VARIANT\n/* */ implements Structure.ByValue {\n/* */ public ByValue(Pointer p) {\n/* 243 */ super(p);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ public ByValue() {}\n/* */ }\n/* */ \n/* */ \n/* */ private int getBaseType() {\n/* 253 */ return this.Type & 0x7F;\n/* */ }\n/* */ \n/* */ public boolean isArray() {\n/* 257 */ return ((this.Type & 0x80) == 128);\n/* */ }\n/* */ \n/* */ public Winevt.EVT_VARIANT_TYPE getVariantType() {\n/* 261 */ return Winevt.EVT_VARIANT_TYPE.values()[getBaseType()];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public void setValue(Winevt.EVT_VARIANT_TYPE type, Object value) {\n/* 272 */ allocateMemory();\n/* 273 */ if (type == null) {\n/* 274 */ throw new IllegalArgumentException(\"setValue must not be called with type set to NULL\");\n/* */ }\n/* 276 */ this.holder = null;\n/* 277 */ if (value == null || type == Winevt.EVT_VARIANT_TYPE.EvtVarTypeNull) {\n/* 278 */ this.Type = Winevt.EVT_VARIANT_TYPE.EvtVarTypeNull.ordinal();\n/* 279 */ this.Count = 0;\n/* 280 */ this.field1.writeField(\"pointerValue\", Pointer.NULL);\n/* */ } else {\n/* 282 */ switch (type) {\n/* */ case EvtVarTypeAnsiString:\n/* 284 */ if (value.getClass().isArray() && value.getClass().getComponentType() == String.class) {\n/* 285 */ this.Type = type.ordinal() | 0x80;\n/* 286 */ StringArray sa = new StringArray((String[])value, false);\n/* 287 */ this.holder = sa;\n/* 288 */ this.Count = ((String[])value).length;\n/* 289 */ this.field1.writeField(\"pointerValue\", sa); break;\n/* 290 */ } if (value.getClass() == String.class) {\n/* 291 */ this.Type = type.ordinal();\n/* 292 */ Memory mem = new Memory((((String)value).length() + 1));\n/* 293 */ mem.setString(0L, (String)value);\n/* 294 */ this.holder = mem;\n/* 295 */ this.Count = 0;\n/* 296 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* */ } \n/* 298 */ throw new IllegalArgumentException(type.name() + \" must be set from String/String[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeBoolean:\n/* 302 */ if (value.getClass().isArray() && value.getClass().getComponentType() == WinDef.BOOL.class) {\n/* 303 */ this.Type = type.ordinal() | 0x80;\n/* 304 */ Memory mem = new Memory((((WinDef.BOOL[])value).length * 4));\n/* 305 */ for (int i = 0; i < ((WinDef.BOOL[])value).length; i++) {\n/* 306 */ mem.setInt((i * 4), ((WinDef.BOOL[])value)[i].intValue());\n/* */ }\n/* 308 */ this.holder = mem;\n/* 309 */ this.Count = 0;\n/* 310 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 311 */ } if (value.getClass() == WinDef.BOOL.class) {\n/* 312 */ this.Type = type.ordinal();\n/* 313 */ this.Count = 0;\n/* 314 */ this.field1.writeField(\"intValue\", Integer.valueOf(((WinDef.BOOL)value).intValue())); break;\n/* */ } \n/* 316 */ throw new IllegalArgumentException(type.name() + \" must be set from BOOL/BOOL[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeString:\n/* */ case EvtVarTypeEvtXml:\n/* 321 */ if (value.getClass().isArray() && value.getClass().getComponentType() == String.class) {\n/* 322 */ this.Type = type.ordinal() | 0x80;\n/* 323 */ StringArray sa = new StringArray((String[])value, true);\n/* 324 */ this.holder = sa;\n/* 325 */ this.Count = ((String[])value).length;\n/* 326 */ this.field1.writeField(\"pointerValue\", sa); break;\n/* 327 */ } if (value.getClass() == String.class) {\n/* 328 */ this.Type = type.ordinal();\n/* 329 */ Memory mem = new Memory(((((String)value).length() + 1) * 2));\n/* 330 */ mem.setWideString(0L, (String)value);\n/* 331 */ this.holder = mem;\n/* 332 */ this.Count = 0;\n/* 333 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* */ } \n/* 335 */ throw new IllegalArgumentException(type.name() + \" must be set from String/String[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeSByte:\n/* */ case EvtVarTypeByte:\n/* 340 */ if (value.getClass().isArray() && value.getClass().getComponentType() == byte.class) {\n/* 341 */ this.Type = type.ordinal() | 0x80;\n/* 342 */ Memory mem = new Memory((((byte[])value).length * 1));\n/* 343 */ mem.write(0L, (byte[])value, 0, ((byte[])value).length);\n/* 344 */ this.holder = mem;\n/* 345 */ this.Count = 0;\n/* 346 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 347 */ } if (value.getClass() == byte.class) {\n/* 348 */ this.Type = type.ordinal();\n/* 349 */ this.Count = 0;\n/* 350 */ this.field1.writeField(\"byteValue\", value); break;\n/* */ } \n/* 352 */ throw new IllegalArgumentException(type.name() + \" must be set from byte/byte[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeInt16:\n/* */ case EvtVarTypeUInt16:\n/* 357 */ if (value.getClass().isArray() && value.getClass().getComponentType() == short.class) {\n/* 358 */ this.Type = type.ordinal() | 0x80;\n/* 359 */ Memory mem = new Memory((((short[])value).length * 2));\n/* 360 */ mem.write(0L, (short[])value, 0, ((short[])value).length);\n/* 361 */ this.holder = mem;\n/* 362 */ this.Count = 0;\n/* 363 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 364 */ } if (value.getClass() == short.class) {\n/* 365 */ this.Type = type.ordinal();\n/* 366 */ this.Count = 0;\n/* 367 */ this.field1.writeField(\"shortValue\", value); break;\n/* */ } \n/* 369 */ throw new IllegalArgumentException(type.name() + \" must be set from short/short[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeHexInt32:\n/* */ case EvtVarTypeInt32:\n/* */ case EvtVarTypeUInt32:\n/* 375 */ if (value.getClass().isArray() && value.getClass().getComponentType() == int.class) {\n/* 376 */ this.Type = type.ordinal() | 0x80;\n/* 377 */ Memory mem = new Memory((((int[])value).length * 4));\n/* 378 */ mem.write(0L, (int[])value, 0, ((int[])value).length);\n/* 379 */ this.holder = mem;\n/* 380 */ this.Count = 0;\n/* 381 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 382 */ } if (value.getClass() == int.class) {\n/* 383 */ this.Type = type.ordinal();\n/* 384 */ this.Count = 0;\n/* 385 */ this.field1.writeField(\"intValue\", value); break;\n/* */ } \n/* 387 */ throw new IllegalArgumentException(type.name() + \" must be set from int/int[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeHexInt64:\n/* */ case EvtVarTypeInt64:\n/* */ case EvtVarTypeUInt64:\n/* 393 */ if (value.getClass().isArray() && value.getClass().getComponentType() == long.class) {\n/* 394 */ this.Type = type.ordinal() | 0x80;\n/* 395 */ Memory mem = new Memory((((long[])value).length * 4));\n/* 396 */ mem.write(0L, (long[])value, 0, ((long[])value).length);\n/* 397 */ this.holder = mem;\n/* 398 */ this.Count = 0;\n/* 399 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 400 */ } if (value.getClass() == long.class) {\n/* 401 */ this.Type = type.ordinal();\n/* 402 */ this.Count = 0;\n/* 403 */ this.field1.writeField(\"longValue\", value); break;\n/* */ } \n/* 405 */ throw new IllegalArgumentException(type.name() + \" must be set from long/long[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeSingle:\n/* 409 */ if (value.getClass().isArray() && value.getClass().getComponentType() == float.class) {\n/* 410 */ this.Type = type.ordinal() | 0x80;\n/* 411 */ Memory mem = new Memory((((float[])value).length * 4));\n/* 412 */ mem.write(0L, (float[])value, 0, ((float[])value).length);\n/* 413 */ this.holder = mem;\n/* 414 */ this.Count = 0;\n/* 415 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 416 */ } if (value.getClass() == float.class) {\n/* 417 */ this.Type = type.ordinal();\n/* 418 */ this.Count = 0;\n/* 419 */ this.field1.writeField(\"floatValue\", value); break;\n/* */ } \n/* 421 */ throw new IllegalArgumentException(type.name() + \" must be set from float/float[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeDouble:\n/* 425 */ if (value.getClass().isArray() && value.getClass().getComponentType() == double.class) {\n/* 426 */ this.Type = type.ordinal() | 0x80;\n/* 427 */ Memory mem = new Memory((((double[])value).length * 4));\n/* 428 */ mem.write(0L, (double[])value, 0, ((double[])value).length);\n/* 429 */ this.holder = mem;\n/* 430 */ this.Count = 0;\n/* 431 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* 432 */ } if (value.getClass() == double.class) {\n/* 433 */ this.Type = type.ordinal();\n/* 434 */ this.Count = 0;\n/* 435 */ this.field1.writeField(\"doubleVal\", value); break;\n/* */ } \n/* 437 */ throw new IllegalArgumentException(type.name() + \" must be set from double/double[]\");\n/* */ \n/* */ \n/* */ case EvtVarTypeBinary:\n/* 441 */ if (value.getClass().isArray() && value.getClass().getComponentType() == byte.class) {\n/* 442 */ this.Type = type.ordinal();\n/* 443 */ Memory mem = new Memory((((byte[])value).length * 1));\n/* 444 */ mem.write(0L, (byte[])value, 0, ((byte[])value).length);\n/* 445 */ this.holder = mem;\n/* 446 */ this.Count = 0;\n/* 447 */ this.field1.writeField(\"pointerValue\", mem); break;\n/* */ } \n/* 449 */ throw new IllegalArgumentException(type.name() + \" must be set from byte[]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ default:\n/* 459 */ throw new IllegalStateException(String.format(\"NOT IMPLEMENTED: getValue(%s) (Array: %b, Count: %d)\", new Object[] { type, Boolean.valueOf(isArray()), Integer.valueOf(this.Count) }));\n/* */ } \n/* */ } \n/* 462 */ write();\n/* */ }\n/* */ public Object getValue() {\n/* */ WinBase.FILETIME fILETIME;\n/* */ WinBase.SYSTEMTIME sYSTEMTIME;\n/* */ Guid.GUID gUID;\n/* */ WinNT.PSID result;\n/* 469 */ Winevt.EVT_VARIANT_TYPE type = getVariantType();\n/* 470 */ switch (type) {\n/* */ case EvtVarTypeAnsiString:\n/* 472 */ return isArray() ? this.field1.getPointer().getPointer(0L).getStringArray(0L, this.Count) : this.field1.getPointer().getPointer(0L).getString(0L);\n/* */ case EvtVarTypeBoolean:\n/* 474 */ if (isArray()) {\n/* 475 */ int[] rawValue = this.field1.getPointer().getPointer(0L).getIntArray(0L, this.Count);\n/* 476 */ WinDef.BOOL[] arrayOfBOOL = new WinDef.BOOL[rawValue.length];\n/* 477 */ for (int i = 0; i < arrayOfBOOL.length; i++) {\n/* 478 */ arrayOfBOOL[i] = new WinDef.BOOL(rawValue[i]);\n/* */ }\n/* 480 */ return arrayOfBOOL;\n/* */ } \n/* 482 */ return new WinDef.BOOL(this.field1.getPointer().getInt(0L));\n/* */ \n/* */ case EvtVarTypeString:\n/* */ case EvtVarTypeEvtXml:\n/* 486 */ return isArray() ? this.field1.getPointer().getPointer(0L).getWideStringArray(0L, this.Count) : this.field1.getPointer().getPointer(0L).getWideString(0L);\n/* */ case EvtVarTypeFileTime:\n/* 488 */ if (isArray()) {\n/* 489 */ WinBase.FILETIME resultFirst = (WinBase.FILETIME)Structure.newInstance(WinBase.FILETIME.class, this.field1.getPointer().getPointer(0L));\n/* 490 */ resultFirst.read();\n/* 491 */ return resultFirst.toArray(this.Count);\n/* */ } \n/* 493 */ fILETIME = new WinBase.FILETIME(this.field1.getPointer());\n/* 494 */ fILETIME.read();\n/* 495 */ return fILETIME;\n/* */ \n/* */ case EvtVarTypeSysTime:\n/* 498 */ if (isArray()) {\n/* 499 */ WinBase.SYSTEMTIME resultFirst = (WinBase.SYSTEMTIME)Structure.newInstance(WinBase.SYSTEMTIME.class, this.field1.getPointer().getPointer(0L));\n/* 500 */ resultFirst.read();\n/* 501 */ return resultFirst.toArray(this.Count);\n/* */ } \n/* 503 */ sYSTEMTIME = (WinBase.SYSTEMTIME)Structure.newInstance(WinBase.SYSTEMTIME.class, this.field1.getPointer().getPointer(0L));\n/* 504 */ sYSTEMTIME.read();\n/* 505 */ return sYSTEMTIME;\n/* */ \n/* */ case EvtVarTypeSByte:\n/* */ case EvtVarTypeByte:\n/* 509 */ return isArray() ? this.field1.getPointer().getPointer(0L).getByteArray(0L, this.Count) : Byte.valueOf(this.field1.getPointer().getByte(0L));\n/* */ case EvtVarTypeInt16:\n/* */ case EvtVarTypeUInt16:\n/* 512 */ return isArray() ? this.field1.getPointer().getPointer(0L).getShortArray(0L, this.Count) : Short.valueOf(this.field1.getPointer().getShort(0L));\n/* */ case EvtVarTypeHexInt32:\n/* */ case EvtVarTypeInt32:\n/* */ case EvtVarTypeUInt32:\n/* 516 */ return isArray() ? this.field1.getPointer().getPointer(0L).getIntArray(0L, this.Count) : Integer.valueOf(this.field1.getPointer().getInt(0L));\n/* */ case EvtVarTypeHexInt64:\n/* */ case EvtVarTypeInt64:\n/* */ case EvtVarTypeUInt64:\n/* 520 */ return isArray() ? this.field1.getPointer().getPointer(0L).getLongArray(0L, this.Count) : Long.valueOf(this.field1.getPointer().getLong(0L));\n/* */ case EvtVarTypeSingle:\n/* 522 */ return isArray() ? this.field1.getPointer().getPointer(0L).getFloatArray(0L, this.Count) : Float.valueOf(this.field1.getPointer().getFloat(0L));\n/* */ case EvtVarTypeDouble:\n/* 524 */ return isArray() ? this.field1.getPointer().getPointer(0L).getDoubleArray(0L, this.Count) : Double.valueOf(this.field1.getPointer().getDouble(0L));\n/* */ case EvtVarTypeBinary:\n/* 526 */ assert !isArray();\n/* 527 */ return this.field1.getPointer().getPointer(0L).getByteArray(0L, this.Count);\n/* */ case EvtVarTypeNull:\n/* 529 */ return null;\n/* */ case EvtVarTypeGuid:\n/* 531 */ if (isArray()) {\n/* 532 */ Guid.GUID resultFirst = (Guid.GUID)Structure.newInstance(Guid.GUID.class, this.field1.getPointer().getPointer(0L));\n/* 533 */ resultFirst.read();\n/* 534 */ return resultFirst.toArray(this.Count);\n/* */ } \n/* 536 */ gUID = (Guid.GUID)Structure.newInstance(Guid.GUID.class, this.field1.getPointer().getPointer(0L));\n/* 537 */ gUID.read();\n/* 538 */ return gUID;\n/* */ \n/* */ case EvtVarTypeSid:\n/* 541 */ if (isArray()) {\n/* 542 */ WinNT.PSID resultFirst = (WinNT.PSID)Structure.newInstance(WinNT.PSID.class, this.field1.getPointer().getPointer(0L));\n/* 543 */ resultFirst.read();\n/* 544 */ return resultFirst.toArray(this.Count);\n/* */ } \n/* 546 */ result = (WinNT.PSID)Structure.newInstance(WinNT.PSID.class, this.field1.getPointer().getPointer(0L));\n/* 547 */ result.read();\n/* 548 */ return result;\n/* */ \n/* */ case EvtVarTypeSizeT:\n/* 551 */ if (isArray()) {\n/* 552 */ long[] rawValue = this.field1.getPointer().getPointer(0L).getLongArray(0L, this.Count);\n/* 553 */ BaseTSD.SIZE_T[] arrayOfSIZE_T = new BaseTSD.SIZE_T[rawValue.length];\n/* 554 */ for (int i = 0; i < arrayOfSIZE_T.length; i++) {\n/* 555 */ arrayOfSIZE_T[i] = new BaseTSD.SIZE_T(rawValue[i]);\n/* */ }\n/* 557 */ return arrayOfSIZE_T;\n/* */ } \n/* 559 */ return new BaseTSD.SIZE_T(this.field1.getPointer().getLong(0L));\n/* */ \n/* */ case EvtVarTypeEvtHandle:\n/* 562 */ if (isArray()) {\n/* 563 */ Pointer[] rawValue = this.field1.getPointer().getPointer(0L).getPointerArray(0L, this.Count);\n/* 564 */ WinNT.HANDLE[] arrayOfHANDLE = new WinNT.HANDLE[rawValue.length];\n/* 565 */ for (int i = 0; i < arrayOfHANDLE.length; i++) {\n/* 566 */ arrayOfHANDLE[i] = new WinNT.HANDLE(rawValue[i]);\n/* */ }\n/* 568 */ return arrayOfHANDLE;\n/* */ } \n/* 570 */ return new WinNT.HANDLE(this.field1.getPointer().getPointer(0L));\n/* */ } \n/* */ \n/* 573 */ throw new IllegalStateException(String.format(\"NOT IMPLEMENTED: getValue(%s) (Array: %b, Count: %d)\", new Object[] { type, Boolean.valueOf(isArray()), Integer.valueOf(this.Count) }));\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ @FieldOrder({\"Server\", \"User\", \"Domain\", \"Password\", \"Flags\"})\n/* */ public static class EVT_RPC_LOGIN\n/* */ extends Structure\n/* */ {\n/* */ public String Server;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public String User;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public String Domain;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public String Password;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public int Flags;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public EVT_RPC_LOGIN() {\n/* 629 */ super(W32APITypeMapper.UNICODE);\n/* */ }\n/* */ \n/* */ public EVT_RPC_LOGIN(String Server, String User, String Domain, String Password, int Flags) {\n/* 633 */ super(W32APITypeMapper.UNICODE);\n/* 634 */ this.Server = Server;\n/* 635 */ this.User = User;\n/* 636 */ this.Domain = Domain;\n/* 637 */ this.Password = Password;\n/* 638 */ this.Flags = Flags;\n/* */ }\n/* */ \n/* */ public EVT_RPC_LOGIN(Pointer peer) {\n/* 642 */ super(peer, 0, W32APITypeMapper.UNICODE);\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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \n/* */ \n/* */ \n/* */ \n/* */ public static class ByReference\n/* */ extends EVT_RPC_LOGIN\n/* */ implements Structure.ByReference {}\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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \n/* */ \n/* */ public static class ByValue\n/* */ extends EVT_RPC_LOGIN\n/* */ implements Structure.ByValue {}\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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \n/* */ \n/* */ \n/* */ public static class EVT_HANDLE\n/* */ extends WinNT.HANDLE\n/* */ {\n/* */ public EVT_HANDLE() {}\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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \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/* */ \n/* */ \n/* */ public EVT_HANDLE(Pointer p) {\n/* 1701 */ super(p);\n/* */ }\n/* */ }\n/* */ \n/* */ public static interface EVT_EVENT_PROPERTY_ID {\n/* */ public static final int EvtEventQueryIDs = 0;\n/* */ public static final int EvtEventPath = 1;\n/* */ public static final int EvtEventPropertyIdEND = 2;\n/* */ }\n/* */ \n/* */ public static interface EVT_QUERY_PROPERTY_ID {\n/* */ public static final int EvtQueryNames = 0;\n/* */ public static final int EvtQueryStatuses = 1;\n/* */ public static final int EvtQueryPropertyIdEND = 2;\n/* */ }\n/* */ \n/* */ public static interface EVT_EVENT_METADATA_PROPERTY_ID {\n/* */ public static final int EventMetadataEventID = 0;\n/* */ public static final int EventMetadataEventVersion = 1;\n/* */ public static final int EventMetadataEventChannel = 2;\n/* */ public static final int EventMetadataEventLevel = 3;\n/* */ public static final int EventMetadataEventOpcode = 4;\n/* */ public static final int EventMetadataEventTask = 5;\n/* */ public static final int EventMetadataEventKeyword = 6;\n/* */ public static final int EventMetadataEventMessageID = 7;\n/* */ public static final int EventMetadataEventTemplate = 8;\n/* */ public static final int EvtEventMetadataPropertyIdEND = 9;\n/* */ }\n/* */ \n/* */ public static interface EVT_PUBLISHER_METADATA_PROPERTY_ID {\n/* */ public static final int EvtPublisherMetadataPublisherGuid = 0;\n/* */ public static final int EvtPublisherMetadataResourceFilePath = 1;\n/* */ public static final int EvtPublisherMetadataParameterFilePath = 2;\n/* */ public static final int EvtPublisherMetadataMessageFilePath = 3;\n/* */ public static final int EvtPublisherMetadataHelpLink = 4;\n/* */ public static final int EvtPublisherMetadataPublisherMessageID = 5;\n/* */ public static final int EvtPublisherMetadataChannelReferences = 6;\n/* */ public static final int EvtPublisherMetadataChannelReferencePath = 7;\n/* */ public static final int EvtPublisherMetadataChannelReferenceIndex = 8;\n/* */ public static final int EvtPublisherMetadataChannelReferenceID = 9;\n/* */ public static final int EvtPublisherMetadataChannelReferenceFlags = 10;\n/* */ public static final int EvtPublisherMetadataChannelReferenceMessageID = 11;\n/* */ public static final int EvtPublisherMetadataLevels = 12;\n/* */ public static final int EvtPublisherMetadataLevelName = 13;\n/* */ public static final int EvtPublisherMetadataLevelValue = 14;\n/* */ public static final int EvtPublisherMetadataLevelMessageID = 15;\n/* */ public static final int EvtPublisherMetadataTasks = 16;\n/* */ public static final int EvtPublisherMetadataTaskName = 17;\n/* */ public static final int EvtPublisherMetadataTaskEventGuid = 18;\n/* */ public static final int EvtPublisherMetadataTaskValue = 19;\n/* */ public static final int EvtPublisherMetadataTaskMessageID = 20;\n/* */ public static final int EvtPublisherMetadataOpcodes = 21;\n/* */ public static final int EvtPublisherMetadataOpcodeName = 22;\n/* */ public static final int EvtPublisherMetadataOpcodeValue = 23;\n/* */ public static final int EvtPublisherMetadataOpcodeMessageID = 24;\n/* */ public static final int EvtPublisherMetadataKeywords = 25;\n/* */ public static final int EvtPublisherMetadataKeywordName = 26;\n/* */ public static final int EvtPublisherMetadataKeywordValue = 27;\n/* */ public static final int EvtPublisherMetadataKeywordMessageID = 28;\n/* */ public static final int EvtPublisherMetadataPropertyIdEND = 29;\n/* */ }\n/* */ \n/* */ public static interface EVT_CHANNEL_REFERENCE_FLAGS {\n/* */ public static final int EvtChannelReferenceImported = 1;\n/* */ }\n/* */ \n/* */ public static interface EVT_CHANNEL_SID_TYPE {\n/* */ public static final int EvtChannelSidTypeNone = 0;\n/* */ public static final int EvtChannelSidTypePublishing = 1;\n/* */ }\n/* */ \n/* */ public static interface EVT_CHANNEL_CLOCK_TYPE {\n/* */ public static final int EvtChannelClockTypeSystemTime = 0;\n/* */ public static final int EvtChannelClockTypeQPC = 1;\n/* */ }\n/* */ \n/* */ public static interface EVT_CHANNEL_ISOLATION_TYPE {\n/* */ public static final int EvtChannelIsolationTypeApplication = 0;\n/* */ public static final int EvtChannelIsolationTypeSystem = 1;\n/* */ public static final int EvtChannelIsolationTypeCustom = 2;\n/* */ }\n/* */ \n/* */ public static interface EVT_CHANNEL_TYPE {\n/* */ public static final int EvtChannelTypeAdmin = 0;\n/* */ public static final int EvtChannelTypeOperational = 1;\n/* */ public static final int EvtChannelTypeAnalytic = 2;\n/* */ public static final int EvtChannelTypeDebug = 3;\n/* */ }\n/* */ \n/* */ public static interface EVT_CHANNEL_CONFIG_PROPERTY_ID {\n/* */ public static final int EvtChannelConfigEnabled = 0;\n/* */ public static final int EvtChannelConfigIsolation = 1;\n/* */ public static final int EvtChannelConfigType = 2;\n/* */ public static final int EvtChannelConfigOwningPublisher = 3;\n/* */ public static final int EvtChannelConfigClassicEventlog = 4;\n/* */ public static final int EvtChannelConfigAccess = 5;\n/* */ public static final int EvtChannelLoggingConfigRetention = 6;\n/* */ public static final int EvtChannelLoggingConfigAutoBackup = 7;\n/* */ public static final int EvtChannelLoggingConfigMaxSize = 8;\n/* */ public static final int EvtChannelLoggingConfigLogFilePath = 9;\n/* */ public static final int EvtChannelPublishingConfigLevel = 10;\n/* */ public static final int EvtChannelPublishingConfigKeywords = 11;\n/* */ public static final int EvtChannelPublishingConfigControlGuid = 12;\n/* */ public static final int EvtChannelPublishingConfigBufferSize = 13;\n/* */ public static final int EvtChannelPublishingConfigMinBuffers = 14;\n/* */ public static final int EvtChannelPublishingConfigMaxBuffers = 15;\n/* */ public static final int EvtChannelPublishingConfigLatency = 16;\n/* */ public static final int EvtChannelPublishingConfigClockType = 17;\n/* */ public static final int EvtChannelPublishingConfigSidType = 18;\n/* */ public static final int EvtChannelPublisherList = 19;\n/* */ public static final int EvtChannelPublishingConfigFileMax = 20;\n/* */ public static final int EvtChannelConfigPropertyIdEND = 21;\n/* */ }\n/* */ \n/* */ public static interface EVT_EXPORTLOG_FLAGS {\n/* */ public static final int EvtExportLogChannelPath = 1;\n/* */ public static final int EvtExportLogFilePath = 2;\n/* */ public static final int EvtExportLogTolerateQueryErrors = 4096;\n/* */ public static final int EvtExportLogOverwrite = 8192;\n/* */ }\n/* */ \n/* */ public static interface EVT_LOG_PROPERTY_ID {\n/* */ public static final int EvtLogCreationTime = 0;\n/* */ public static final int EvtLogLastAccessTime = 1;\n/* */ public static final int EvtLogLastWriteTime = 2;\n/* */ public static final int EvtLogFileSize = 3;\n/* */ public static final int EvtLogAttributes = 4;\n/* */ public static final int EvtLogNumberOfLogRecords = 5;\n/* */ public static final int EvtLogOldestRecordNumber = 6;\n/* */ public static final int EvtLogFull = 7;\n/* */ }\n/* */ \n/* */ public static interface EVT_OPEN_LOG_FLAGS {\n/* */ public static final int EvtOpenChannelPath = 1;\n/* */ public static final int EvtOpenFilePath = 2;\n/* */ }\n/* */ \n/* */ public static interface EVT_FORMAT_MESSAGE_FLAGS {\n/* */ public static final int EvtFormatMessageEvent = 1;\n/* */ public static final int EvtFormatMessageLevel = 2;\n/* */ public static final int EvtFormatMessageTask = 3;\n/* */ public static final int EvtFormatMessageOpcode = 4;\n/* */ public static final int EvtFormatMessageKeyword = 5;\n/* */ public static final int EvtFormatMessageChannel = 6;\n/* */ public static final int EvtFormatMessageProvider = 7;\n/* */ public static final int EvtFormatMessageId = 8;\n/* */ public static final int EvtFormatMessageXml = 9;\n/* */ }\n/* */ \n/* */ public static interface EVT_RENDER_FLAGS {\n/* */ public static final int EvtRenderEventValues = 0;\n/* */ public static final int EvtRenderEventXml = 1;\n/* */ public static final int EvtRenderBookmark = 2;\n/* */ }\n/* */ \n/* */ public static interface EVT_RENDER_CONTEXT_FLAGS {\n/* */ public static final int EvtRenderContextValues = 0;\n/* */ public static final int EvtRenderContextSystem = 1;\n/* */ public static final int EvtRenderContextUser = 2;\n/* */ }\n/* */ \n/* */ public static interface EVT_SYSTEM_PROPERTY_ID {\n/* */ public static final int EvtSystemProviderName = 0;\n/* */ public static final int EvtSystemProviderGuid = 1;\n/* */ public static final int EvtSystemEventID = 2;\n/* */ public static final int EvtSystemQualifiers = 3;\n/* */ public static final int EvtSystemLevel = 4;\n/* */ public static final int EvtSystemTask = 5;\n/* */ public static final int EvtSystemOpcode = 6;\n/* */ public static final int EvtSystemKeywords = 7;\n/* */ public static final int EvtSystemTimeCreated = 8;\n/* */ public static final int EvtSystemEventRecordId = 9;\n/* */ public static final int EvtSystemActivityID = 10;\n/* */ public static final int EvtSystemRelatedActivityID = 11;\n/* */ public static final int EvtSystemProcessID = 12;\n/* */ public static final int EvtSystemThreadID = 13;\n/* */ public static final int EvtSystemChannel = 14;\n/* */ public static final int EvtSystemComputer = 15;\n/* */ public static final int EvtSystemUserID = 16;\n/* */ public static final int EvtSystemVersion = 17;\n/* */ public static final int EvtSystemPropertyIdEND = 18;\n/* */ }\n/* */ \n/* */ public static interface EVT_SUBSCRIBE_NOTIFY_ACTION {\n/* */ public static final int EvtSubscribeActionError = 0;\n/* */ public static final int EvtSubscribeActionDeliver = 1;\n/* */ }\n/* */ \n/* */ public static interface EVT_SUBSCRIBE_FLAGS {\n/* */ public static final int EvtSubscribeToFutureEvents = 1;\n/* */ public static final int EvtSubscribeStartAtOldestRecord = 2;\n/* */ public static final int EvtSubscribeStartAfterBookmark = 3;\n/* */ public static final int EvtSubscribeOriginMask = 3;\n/* */ public static final int EvtSubscribeTolerateQueryErrors = 4096;\n/* */ public static final int EvtSubscribeStrict = 65536;\n/* */ }\n/* */ \n/* */ public static interface EVT_SEEK_FLAGS {\n/* */ public static final int EvtSeekRelativeToFirst = 1;\n/* */ public static final int EvtSeekRelativeToLast = 2;\n/* */ public static final int EvtSeekRelativeToCurrent = 3;\n/* */ public static final int EvtSeekRelativeToBookmark = 4;\n/* */ public static final int EvtSeekOriginMask = 7;\n/* */ public static final int EvtSeekStrict = 65536;\n/* */ }\n/* */ \n/* */ public static interface EVT_QUERY_FLAGS {\n/* */ public static final int EvtQueryChannelPath = 1;\n/* */ public static final int EvtQueryFilePath = 2;\n/* */ public static final int EvtQueryForwardDirection = 256;\n/* */ public static final int EvtQueryReverseDirection = 512;\n/* */ public static final int EvtQueryTolerateQueryErrors = 4096;\n/* */ }\n/* */ \n/* */ public static interface EVT_RPC_LOGIN_FLAGS {\n/* */ public static final int EvtRpcLoginAuthDefault = 0;\n/* */ public static final int EvtRpcLoginAuthNegotiate = 1;\n/* */ public static final int EvtRpcLoginAuthKerberos = 2;\n/* */ public static final int EvtRpcLoginAuthNTLM = 3;\n/* */ }\n/* */ \n/* */ public static interface EVT_LOGIN_CLASS {\n/* */ public static final int EvtRpcLogin = 1;\n/* */ }\n/* */ }", "public Event createModelFromMultpleTSVline(HashSet<String[]> gatheredValues,\n String provenanceInfo,\n char separator,\n DateTimeFormatter dateTimeFormatter,\n boolean filterFrom,\n LocalDate fromDate,\n boolean filterTo,\n LocalDate toDate,\n boolean filterByKeyword,\n String keyword) {\n\n Event event = null;\n boolean firstLine = true;\n for (String[] values : gatheredValues) {\n if (firstLine) {\n event = new Event(values[0], provenanceInfo);\n firstLine = false;\n }\n //fill the attributes\n //add uri\n event.addURI(values[0]);\n\n //add label after removing the language tag\n if (values[1].contains(\"@\"))\n event.addLabel(values[1].substring(0, values[1].indexOf(\"@\")));\n else\n event.addLabel(values[1]);\n\n\n // 1214-07-27^^http://www.w3.org/2001/XMLSchema#date\n //incomplete date 1863-##-##^^http://www.w3.org/2001/XMLSchema#date\n String date = values[2].replace(\"##\", \"01\");\n if (values[2].contains(\"^\"))\n date = date.substring(0, date.indexOf(\"^\"));\n\n try {\n LocalDate localDate = LocalDate.parse(date, dateTimeFormatter);\n //check date against user input parameters\n if (filterFrom) { //&& filterTo) {\n //if (localDate.isAfter(toDate) || localDate.isBefore(fromDate)) {\n if (localDate.isBefore(fromDate)) {\n return null;\n }\n }\n if (filterTo) {\n if (localDate.isAfter(toDate)) {\n return null;\n }\n }\n event.addDate(localDate);\n } catch (DateTimeParseException e) {\n //System.out.println(values[0] + \" \" + date);\n return null;\n }\n\n\n\n //50.5833^^http://www.w3.org/2001/XMLSchema#float\t3.225^^http://www.w3.org/2001/XMLSchema#float\n //event.setLat(Double.valueOf(values[3].substring(0, values[3].indexOf(\"^\"))));\n //event.setLon(Double.valueOf(values[4].substring(0, values[4].indexOf(\"^\"))));\n if (values.length>4) {\n String latString = values[3];\n if (latString.contains(\"^\"))\n latString = latString.substring(0, latString.indexOf(\"^\"));\n String longString = values[4];\n if (longString.contains(\"^\"))\n longString = longString.substring(0, longString.indexOf(\"^\"));\n\n Pair<Double, Double> p = new Pair<>(\n Double.valueOf(latString),\n Double.valueOf(longString)\n );\n event.addCoordinates(p);\n }\n if (values.length>5) {\n event.addSame(values[5]);\n }\n if (values.length>6) {\n Location location = new Location(values[6], provenanceInfo);\n event.addLocation(location);\n }\n }\n\n //filter labels by keyword\n if(filterByKeyword) {\n if (!event.getLabels().stream().anyMatch(label -> label.trim().toLowerCase().contains(keyword.toLowerCase()))) {\n return null;\n } /*else {\n System.out.println(keyword + \" found for \" + event.getLabels());\n }*/\n }\n\n return event;\n }", "@Override\n protected void onConvertTransfer(Persona_tiene_Existencia values, DataSetEvent e) throws SQLException, UnsupportedOperationException\n {\n if (e.getDML() == insertProcedure)\n {\n e.setInt(1, values.getIdPersona());//\"vid_persona\"\n e.setInt(2, values.getEntrada());//\"ventrada\"\n e.setInt(3, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(4, values.getExistencia());//\"vexistencia\"\n }\n\n else if (e.getDML() == updateProcedure)\n {\n e.setInt(1, values.getLinea_Viejo());//\"vlinea_old\"\n e.setInt(2, values.getIdPersona_Viejo());//\"vid_persona_old\"\n e.setInt(3, values.getIdPersona());//\"vid_persona_new\"\n e.setInt(4, values.getEntrada());//\"ventrada\"\n e.setInt(5, values.getIdUbicacion());//\"vid_ubicacion\"\n e.setFloat(6, values.getExistencia());//\"vexistencia\"\n }\n }", "private static ENXP eNXP2ENXPInternal(org.opencds.vmr.v1_0.schema.ENXP pENXP) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"eNXP2ENXPInternal(): \";\n\t\tif (pENXP == null)\n\t\t\treturn null;\n\n\t\tENXP lENXPInt = new ENXP();\n\n\t\t// set XP.value \n\t\tlENXPInt.setValue(pENXP.getValue());\n\n\t\t// Now translate the external EntityNamePartType to external EntityNamePartType\n\t\torg.opencds.vmr.v1_0.schema.EntityNamePartType lEntityNamePartTypeExt = pENXP.getType();\n\t\tif (lEntityNamePartTypeExt == null) {\n\t\t\tString errStr = _METHODNAME + \"EntityPartType of external ENXP datatype not populated; required by vmr spec\";\n\t\t\tthrow new DataFormatException(errStr);\n\t\t}\n\t\tString lEntityNamePartTypeStrExt = lEntityNamePartTypeExt.toString();\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"External EntityNamePartType value: \" + lEntityNamePartTypeStrExt);\n\t\t}\n\t\tEntityNamePartType lEntityNamePartTypeInt = null;\n\t\ttry {\n\t\t\tlEntityNamePartTypeInt = EntityNamePartType.valueOf(lEntityNamePartTypeStrExt);\n\t\t}\n\t\tcatch (IllegalArgumentException iae) {\n\t\t\tString errStr = _METHODNAME + \"there was no direct value mapping from the external to internal enumeration\";\n\t\t\tthrow new InvalidDataException(errStr);\n\t\t}\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(_METHODNAME + \"Internal EntityNamePartType value: \" + lEntityNamePartTypeInt);\n\t\t}\n\t\tlENXPInt.setType(lEntityNamePartTypeInt);\n\n\t\t// Finally create the list of internal EntityNamePartQualifiers (optional in spec)\n\t\tList<org.opencds.vmr.v1_0.schema.EntityNamePartQualifier> lPartQualifierListExt = pENXP.getQualifier();\n\t\tif (lPartQualifierListExt != null) {\n\t\t\tIterator<org.opencds.vmr.v1_0.schema.EntityNamePartQualifier> lPartQualifierIterExt = lPartQualifierListExt.iterator();\n\t\t\twhile (lPartQualifierIterExt.hasNext()) {\n\t\t\t\t// Take each internal EntityNamePartQualifier and convert to internal EntityNamePartQualifier for addition to internal EN\n\t\t\t\torg.opencds.vmr.v1_0.schema.EntityNamePartQualifier lPartQualifierExt = lPartQualifierIterExt.next();\n\t\t\t\tEntityNamePartQualifier lPartQualifierInt = eNPartQualifier2eNPartQualifierInternal(lPartQualifierExt);\n\t\t\t\tlENXPInt.getQualifier().add(lPartQualifierInt);\n\t\t\t}\n\t\t}\t\t\n\n\t\treturn lENXPInt;\n\t}", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\n\t\taddAnnotation\n\t\t (controlEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"control\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Midi(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"midi\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Background(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"background\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Centered(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"centered\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Color(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"color\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_H(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"h\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Inverted(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_LocalOff(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"local_off\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Number(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_OscCs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"osc_cs\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Outline(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"outline\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Response(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"response\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalet(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalet\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Seconds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"seconds\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Size(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"size\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Text(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"text\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_W(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"w\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_X(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Y(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (layoutEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"layout\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Tabpage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"tabpage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Mode(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"mode\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Orientation(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"orientation\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Version(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"version\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (midiEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"midi\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Channel(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"channel\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data1(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data1\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2f(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2f\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2t(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2t\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Var(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"var\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (tabpageEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"tabpage\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Control(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"control\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (topEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"TOP\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTOP_Layout(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"layout\"\n\t\t });\n\t}", "static void perform_mvi(String passed){\n\t\tint type = type_of_mvi(passed);\n\t\tif(type==1)\n\t\t\tmvi_to_reg(passed);\n\t\telse if(type==2)\n\t\t\tmvi_to_mem(passed);\n\t}", "@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }", "@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }", "private Map<String, String> extractSpecifications(final Document detailsDocument) {\n if (detailsDocument == null) {\n return null;\n }\n\n final Map<String, String> specs = new ConcurrentHashMap<>();\n detailsDocument.getElementsByClass(\"specs\").stream() //\n .map(specTable -> specTable.getElementsByTag(\"tr\")) //\n .map(specRowList -> specRowList.subList(1, specRowList.size())) //\n .flatMap(specRowList -> specRowList.stream()) //\n .forEach(specRow -> {\n final Element keyElement = specRow.getElementsByClass(\"lc\").get(0).getElementsByTag(\"span\").get(0);\n final Element valElement = specRow.getElementsByClass(\"rc\").get(0);\n\n specs.put(keyElement.ownText(), valElement.ownText());\n });\n return specs;\n }", "public static Ticker adaptTickerMessage(Instrument instrument, ArrayNode arrayNode) {\n return Streams.stream(arrayNode.elements())\n .filter(JsonNode::isObject)\n .map(\n tickerNode -> {\n ArrayNode askArray = (ArrayNode) tickerNode.get(\"a\");\n ArrayNode bidArray = (ArrayNode) tickerNode.get(\"b\");\n Iterator<JsonNode> closeIterator = tickerNode.get(\"c\").iterator();\n Iterator<JsonNode> volumeIterator = tickerNode.get(\"v\").iterator();\n Iterator<JsonNode> vwapIterator = tickerNode.get(\"p\").iterator();\n Iterator<JsonNode> lowPriceIterator = tickerNode.get(\"l\").iterator();\n Iterator<JsonNode> highPriceIterator = tickerNode.get(\"h\").iterator();\n Iterator<JsonNode> openPriceIterator = tickerNode.get(\"o\").iterator();\n\n // Move iterators forward here required, this ignores the first field if the desired\n // value is in the second element.\n vwapIterator.next();\n volumeIterator.next();\n\n return new Ticker.Builder()\n .open(nextNodeAsDecimal(openPriceIterator))\n .ask(arrayNodeItemAsDecimal(askArray, 0))\n .bid(arrayNodeItemAsDecimal(bidArray, 0))\n .askSize(arrayNodeItemAsDecimal(askArray, 2))\n .bidSize(arrayNodeItemAsDecimal(bidArray, 2))\n .last(nextNodeAsDecimal(closeIterator))\n .high(nextNodeAsDecimal(highPriceIterator))\n .low(nextNodeAsDecimal(lowPriceIterator))\n .vwap(nextNodeAsDecimal(vwapIterator))\n .volume(nextNodeAsDecimal(volumeIterator))\n .instrument(instrument)\n .build();\n })\n .findFirst()\n .orElse(null);\n }", "public void process(EventData event) throws Exception {\n\t\tevent.getDoc().put(\"dimm\", memory());\n\t\tevent.getDoc().put(\"battery\", batteries());\n\t\tevent.getDoc().put(\"chassis\", chassis());\n\t\tevent.getDoc().put(\"pwrsupplies\", pwrsupplies());\n\t\tevent.getDoc().put(\"storage\", storage());\n\t\tevent.getDoc().put(\"fans\", fans());\n\n\t}", "@objid (\"0006fc34-c4c0-1fd8-97fe-001ec947cd2a\")\npublic interface BpmnItemAwareElement extends BpmnFlowElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"2fe549f8-3f6c-4165-affa-9c833b04554a\")\n public static final String MNAME = \"BpmnItemAwareElement\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"92737e58-71fd-4d9b-9c7e-04063f527768\")\n public static final String MQNAME = \"Standard.BpmnItemAwareElement\";\n\n /**\n * Getter for relation 'BpmnItemAwareElement->TargetOfDataAssociation'\n * \n * Metamodel description:\n * <i>Data associations that computes the value of this element.</i>\n */\n @objid (\"ef92d9d1-93c5-49d4-9ec8-65c4eb806567\")\n EList<BpmnDataAssociation> getTargetOfDataAssociation();\n\n /**\n * Filtered Getter for relation 'BpmnItemAwareElement->TargetOfDataAssociation'\n * \n * Metamodel description:\n * <i>Data associations that computes the value of this element.</i>\n */\n @objid (\"3390963b-d6b2-4509-8979-45543db839db\")\n <T extends BpmnDataAssociation> List<T> getTargetOfDataAssociation(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'BpmnItemAwareElement->ItemSubjectRef'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"dba9c7e2-545f-4c12-9866-f5f1258ee9f9\")\n BpmnItemDefinition getItemSubjectRef();\n\n /**\n * Setter for relation 'BpmnItemAwareElement->ItemSubjectRef'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"63776972-d780-48de-b4bd-5d34faa2cbf1\")\n void setItemSubjectRef(BpmnItemDefinition value);\n\n /**\n * Getter for relation 'BpmnItemAwareElement->DataState'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"331f64c4-884c-4de9-a104-ba68088d9e2b\")\n BpmnDataState getDataState();\n\n /**\n * Setter for relation 'BpmnItemAwareElement->DataState'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"dec04375-0805-4a30-ba61-5edb1bdcf44a\")\n void setDataState(BpmnDataState value);\n\n /**\n * Getter for relation 'BpmnItemAwareElement->SourceOfDataAssociation'\n * \n * Metamodel description:\n * <i>Data associations that use this element to compute a value.</i>\n */\n @objid (\"a721af22-ba64-4339-a50c-349201da2a69\")\n EList<BpmnDataAssociation> getSourceOfDataAssociation();\n\n /**\n * Filtered Getter for relation 'BpmnItemAwareElement->SourceOfDataAssociation'\n * \n * Metamodel description:\n * <i>Data associations that use this element to compute a value.</i>\n */\n @objid (\"41478043-fa77-40f4-a16f-953b85cd578a\")\n <T extends BpmnDataAssociation> List<T> getSourceOfDataAssociation(java.lang.Class<T> filterClass);\n\n}", "private static void m25470a(MediationNativeAdapter mediationNativeAdapter, UnifiedNativeAdMapper unifiedNativeAdMapper, NativeAdMapper nativeAdMapper) {\n if (!(mediationNativeAdapter instanceof AdMobAdapter)) {\n VideoController videoController = new VideoController();\n videoController.zza(new zzanj());\n if (unifiedNativeAdMapper != null && unifiedNativeAdMapper.hasVideoContent()) {\n unifiedNativeAdMapper.zza(videoController);\n }\n if (nativeAdMapper != null && nativeAdMapper.hasVideoContent()) {\n nativeAdMapper.zza(videoController);\n }\n }\n }", "public void parse(){\r\n\t\t//StringTokenizer st = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tst = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tString sv = \"\";\r\n\r\n\t\ttry{\r\n\t\t\tnmeaHeader = st.nextToken();//Global Positioning System Fix Data\r\n\t\t\tmode = st.nextToken();\r\n\t\t\tmodeValue = Integer.parseInt(st.nextToken());\r\n\r\n\t\t\tfor(int i=0;i<=11;i++){\r\n\t\t\t\tsv = st.nextToken();\r\n\t\t\t\tif(sv.length() > 0){\r\n\t\t\t\t\tSV[i] = Integer.parseInt(sv);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSV[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tHDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tVDOP = Float.parseFloat(st.nextToken());\r\n\r\n\t\t}catch(NoSuchElementException e){\r\n\t\t\t//Empty\r\n\t\t}catch(NumberFormatException e2){\r\n\t\t\t//Empty\r\n\t\t}\r\n\r\n\t}", "Map getSPEXDataMap();", "protected ArrayList<Object[]> transformProbElementListToList(ArrayList<ProbElement> pProbElementList) throws Exception{\r\n\t\treturn transformElementListToList(pProbElementList, 0);\r\n\t}", "tendermint.abci.EventAttribute getAttributes(int index);", "void method0() {\nprivate static final String ELEMENT_N = \"element_n\";\nprivate static final String ELEMENT_R = \"element_r\";\nprivate static final String ATTRIBUTE_N = \"attribute_n\";\nprivate static final String ATTRIBUTE_R = \"attribute_r\";\nprivate static int ATTIDX_COUNT = 0;\npublic static final int ATTIDX_ABSTRACT = ATTIDX_COUNT++;\npublic static final int ATTIDX_AFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_BASE = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCK = ATTIDX_COUNT++;\npublic static final int ATTIDX_BLOCKDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_DEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_EFORMDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINAL = ATTIDX_COUNT++;\npublic static final int ATTIDX_FINALDEFAULT = ATTIDX_COUNT++;\npublic static final int ATTIDX_FIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_FORM = ATTIDX_COUNT++;\npublic static final int ATTIDX_ID = ATTIDX_COUNT++;\npublic static final int ATTIDX_ITEMTYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_MAXOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MEMBERTYPES = ATTIDX_COUNT++;\npublic static final int ATTIDX_MINOCCURS = ATTIDX_COUNT++;\npublic static final int ATTIDX_MIXED = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAME = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NAMESPACE_LIST = ATTIDX_COUNT++;\npublic static final int ATTIDX_NILLABLE = ATTIDX_COUNT++;\npublic static final int ATTIDX_NONSCHEMA = ATTIDX_COUNT++;\npublic static final int ATTIDX_PROCESSCONTENTS = ATTIDX_COUNT++;\npublic static final int ATTIDX_PUBLIC = ATTIDX_COUNT++;\npublic static final int ATTIDX_REF = ATTIDX_COUNT++;\npublic static final int ATTIDX_REFER = ATTIDX_COUNT++;\npublic static final int ATTIDX_SCHEMALOCATION = ATTIDX_COUNT++;\npublic static final int ATTIDX_SOURCE = ATTIDX_COUNT++;\npublic static final int ATTIDX_SUBSGROUP = ATTIDX_COUNT++;\npublic static final int ATTIDX_SYSTEM = ATTIDX_COUNT++;\npublic static final int ATTIDX_TARGETNAMESPACE = ATTIDX_COUNT++;\npublic static final int ATTIDX_TYPE = ATTIDX_COUNT++;\npublic static final int ATTIDX_USE = ATTIDX_COUNT++;\npublic static final int ATTIDX_VALUE = ATTIDX_COUNT++;\npublic static final int ATTIDX_ENUMNSDECLS = ATTIDX_COUNT++;\npublic static final int ATTIDX_VERSION = ATTIDX_COUNT++;\npublic static final int ATTIDX_XML_LANG = ATTIDX_COUNT++;\npublic static final int ATTIDX_XPATH = ATTIDX_COUNT++;\npublic static final int ATTIDX_FROMDEFAULT = ATTIDX_COUNT++;\n//public static final int ATTIDX_OTHERVALUES = ATTIDX_COUNT++; \npublic static final int ATTIDX_ISRETURNED = ATTIDX_COUNT++;\nprivate static final XIntPool fXIntPool = new XIntPool();\n// constants to return \nprivate static final XInt INT_QUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_QUALIFIED);\nprivate static final XInt INT_UNQUALIFIED = fXIntPool.getXInt(SchemaSymbols.FORM_UNQUALIFIED);\nprivate static final XInt INT_EMPTY_SET = fXIntPool.getXInt(XSConstants.DERIVATION_NONE);\nprivate static final XInt INT_ANY_STRICT = fXIntPool.getXInt(XSWildcardDecl.PC_STRICT);\nprivate static final XInt INT_ANY_LAX = fXIntPool.getXInt(XSWildcardDecl.PC_LAX);\nprivate static final XInt INT_ANY_SKIP = fXIntPool.getXInt(XSWildcardDecl.PC_SKIP);\nprivate static final XInt INT_ANY_ANY = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_ANY);\nprivate static final XInt INT_ANY_LIST = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_LIST);\nprivate static final XInt INT_ANY_NOT = fXIntPool.getXInt(XSWildcardDecl.NSCONSTRAINT_NOT);\nprivate static final XInt INT_USE_OPTIONAL = fXIntPool.getXInt(SchemaSymbols.USE_OPTIONAL);\nprivate static final XInt INT_USE_REQUIRED = fXIntPool.getXInt(SchemaSymbols.USE_REQUIRED);\nprivate static final XInt INT_USE_PROHIBITED = fXIntPool.getXInt(SchemaSymbols.USE_PROHIBITED);\nprivate static final XInt INT_WS_PRESERVE = fXIntPool.getXInt(XSSimpleType.WS_PRESERVE);\nprivate static final XInt INT_WS_REPLACE = fXIntPool.getXInt(XSSimpleType.WS_REPLACE);\nprivate static final XInt INT_WS_COLLAPSE = fXIntPool.getXInt(XSSimpleType.WS_COLLAPSE);\nprivate static final XInt INT_UNBOUNDED = fXIntPool.getXInt(SchemaSymbols.OCCURRENCE_UNBOUNDED);\n// used to store the map from element name to attribute list \n// for 14 global elements \nprivate static final Hashtable fEleAttrsMapG = new Hashtable(29);\n// for 39 local elememnts \nprivate static final Hashtable fEleAttrsMapL = new Hashtable(79);\n// used to initialize fEleAttrsMap \n// step 1: all possible data types \n// DT_??? >= 0 : validate using a validator, which is initialized staticly \n// DT_??? < 0 : validate directly, which is done in \"validate()\" \nprotected static final int DT_ANYURI = 0;\nprotected static final int DT_ID = 1;\nprotected static final int DT_QNAME = 2;\nprotected static final int DT_STRING = 3;\nprotected static final int DT_TOKEN = 4;\nprotected static final int DT_NCNAME = 5;\nprotected static final int DT_XPATH = 6;\nprotected static final int DT_XPATH1 = 7;\nprotected static final int DT_LANGUAGE = 8;\n// used to store extra datatype validators \nprotected static final int DT_COUNT = DT_LANGUAGE + 1;\nprivate static final XSSimpleType[] fExtraDVs = new XSSimpleType[DT_COUNT];\nprotected static final int DT_BLOCK = -1;\nprotected static final int DT_BLOCK1 = -2;\nprotected static final int DT_FINAL = -3;\nprotected static final int DT_FINAL1 = -4;\nprotected static final int DT_FINAL2 = -5;\nprotected static final int DT_FORM = -6;\nprotected static final int DT_MAXOCCURS = -7;\nprotected static final int DT_MAXOCCURS1 = -8;\nprotected static final int DT_MEMBERTYPES = -9;\nprotected static final int DT_MINOCCURS1 = -10;\nprotected static final int DT_NAMESPACE = -11;\nprotected static final int DT_PROCESSCONTENTS = -12;\nprotected static final int DT_USE = -13;\nprotected static final int DT_WHITESPACE = -14;\nprotected static final int DT_BOOLEAN = -15;\nprotected static final int DT_NONNEGINT = -16;\nprotected static final int DT_POSINT = -17;\n// used to resolver namespace prefixes \nprotected XSDHandler fSchemaHandler = null;\n// used to store symbols. \nprotected SymbolTable fSymbolTable = null;\n// used to store the mapping from processed element to attributes \nprotected Hashtable fNonSchemaAttrs = new Hashtable();\n// temprory vector, used to hold the namespace list \nprotected Vector fNamespaceList = new Vector();\n// whether this attribute appeared in the current element \nprotected boolean[] fSeen = new boolean[ATTIDX_COUNT];\nprivate static boolean[] fSeenTemp = new boolean[ATTIDX_COUNT];\n// the following part implements an attribute-value-array pool. \n// when checkAttribute is called, it calls getAvailableArray to get \n// an array from the pool; when the caller is done with the array, \n// it calls returnAttrArray to return that array to the pool. \n// initial size of the array pool. 10 is big enough \nstatic final int INIT_POOL_SIZE = 10;\n// the incremental size of the array pool \nstatic final int INC_POOL_SIZE = 10;\n// the array pool \nObject[][] fArrayPool = new Object[INIT_POOL_SIZE][ATTIDX_COUNT];\n// used to clear the returned array \n// I think System.arrayCopy is more efficient than setting 35 fields to null \nprivate static Object[] fTempArray = new Object[ATTIDX_COUNT];\n// current position of the array pool (# of arrays not returned) \nint fPoolPos = 0;\n}", "public Object lambda13(Object a, Object b, Object c, Object d, Object e) {\n Object[] objArr = new Object[5];\n objArr[0] = C1259lists.cons(C1259lists.car.apply1(this.elt), a);\n Object[] objArr2 = objArr;\n objArr2[1] = C1259lists.cons(C1259lists.cadr.apply1(this.elt), b);\n Object[] objArr3 = objArr2;\n objArr3[2] = C1259lists.cons(C1259lists.caddr.apply1(this.elt), c);\n Object[] objArr4 = objArr3;\n objArr4[3] = C1259lists.cons(C1259lists.cadddr.apply1(this.elt), d);\n Object[] objArr5 = objArr4;\n objArr5[4] = C1259lists.cons(C1259lists.car.apply1(C1259lists.cddddr.apply1(this.elt)), e);\n return misc.values(objArr5);\n }", "void writeEeprom(ImuEepromWriter sensor, int scaleNo, short[] data);", "public String[] getProvenanceInfo(PMLObject pmlObj)\n\t{\n\t\tString[] result = new String[2];\n\n\t\tif (pmlObj != null) \n\t\t{\n\t\t\tIWIdentifiedThing pePo = (IWIdentifiedThing)pmlObj;\n\n\t\t\tif (pePo.getIdentifier() != null && pePo.getIdentifier().getURIString() != null)\n\t\t\t{\n\t\t\t\tString uriStr = pePo.getIdentifier().getURIString();\n\n\n\t\t\t\tresult[0] = pePo.getHasName();\n\t\t\t\tresult[1] = uriStr;\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\t//\t\t\t\t***\t\t\twhat should happen in this case?\n\t\t\t\t//result = getProvenanceDetailsHTMLInList(pePo);\n\t\t\t\tSystem.out.println(\"IN ELSE!! (SwingView class) NEED to getProvenanceDetailsHTMLInLIst(pePo).\");\n\n\t\t\t\tresult[0] = \"No Provenance\";\n\t\t\t\tresult[1] = \"No link\";\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}", "@Override\n public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) {\n RecyclerView.ViewHolder selectedViewHolder = mPhotosListView\n .findViewHolderForAdapterPosition(MainActivity.currentPosition);\n if (selectedViewHolder == null) {\n return;\n }\n\n // Map the first shared element name to the child ImageView.\n sharedElements\n .put(names.get(0), selectedViewHolder.itemView.findViewById(R.id.ivPhoto));\n }", "public double[] getVentasXMes() {\r\n double vMes[] = new double[nm];\r\n int j;\r\n for (j = 0; j < nm; j++) {\r\n vMes[j] = getVentasMes(j);\r\n }\r\n return vMes;\r\n }", "@Override\r\n\tpublic float convertValue(String[] elementDesc) throws MerchantGuideException {\r\n\t\tlog.debug(\"convertValue starts here\");\r\n\t\t//holds final value\r\n\t\tfloat total = 0;\r\n\t\t//for checking previous value for subtraction logic\r\n\t\tfloat prevVal = 0;\r\n\t\tfor (int i = 0; i < elementDesc.length; i++) {\r\n\t\t\tString currentValue = elementDesc[i];\r\n\t\t\tlog.debug(\"input value is :\" + currentValue);\r\n\t\t\tlog.debug(\"previous value is :\" + prevVal);\r\n\t\t\t//validate first all repeating and non-repeating numerals\r\n\t\t\tif(Validator.validateRomanOccurences(currentValue)){\r\n\t\t\t\tfloat currVal = RomanNumbers.getRomanNumbers().get(currentValue);\r\n\t\t\t\t//\"I\" can be subtracted from \"V\" and \"X\" only. 1 be can subtracted from 5 or 10\r\n\t\t\t\t// \"X\" can be subtracted from \"L\" and \"C\" only. 10 be can subtracted from 50 or 100\r\n\t\t\t\t// \"C\" can be subtracted from \"D\" and \"M\" only. 100 be can subtracted from 500 or 100\r\n\t\t\t\tif(currVal > prevVal && (currVal == 5*prevVal || currVal == 10*prevVal)){\r\n\t\t\t\t\ttotal = total + (currVal - prevVal) - prevVal;\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\t// \"V\", \"L\", and \"D\" can never be subtracted. hence getting added\r\n\t\t\t\t\ttotal = total + currVal;\r\n\t\t\t\t}\r\n\t\t\t\t//assigning current value to keep copy\r\n\t\t\t\tprevVal = currVal;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//clears all the counter for checking repetitions\r\n\t\tValidator.clearRepeatationCountMap();\r\n\t\tlog.debug(\"convertValue ends here : final total value is \" + total);\r\n\t\treturn total;\r\n\t}", "public interface FunctionForListToMap<K,V> {\n Pair<K,V> transfomr(Object obj);\n}", "public void MapMyTags() {\n\n\t\t// INITIALIZE THE DB AND ARRAYLIST FOR DB ELEMENTS \n\t\tMsgDatabaseHandler mdb = new MsgDatabaseHandler(getApplicationContext());\n\t\tArrayList<MessageData> message_array_from_db = mdb.Get_Messages();\n\t\t\n\t\tfinal MWMPoint[] points = new MWMPoint[message_array_from_db.size()];\n\t\t\n\t\t// CHECK IF TAGS EXISTS, IF SO PROCESS THE TAGS\n\t\tif (message_array_from_db.size() > 0) {\n\t\t\t\n\t\t\tfor (int i = 0; i < message_array_from_db.size(); i++) {\n\n\t\t\t String tag = message_array_from_db.get(i).getTag();\n\t\t\t String latitude = message_array_from_db.get(i).getLatitude();\n\t\t\t String longitude = message_array_from_db.get(i).getLongitude();\n\t\t\t String _time = message_array_from_db.get(i).getTime();\n\t\t\t \t\t \n\t\t\t Double lat = Double.parseDouble(latitude);\n\t\t\t Double lon = Double.parseDouble(longitude);\n\t\t\t \n\t\t // PROCESS THE TIME DIFFERENCE\n\t\t\t Long then = Long.parseLong(_time);\n\t\t\t\tLong now = System.currentTimeMillis();\n\t\t\t\tString difference = getDifference(now, then);\n\t\t\t\t\n\t\t\t\t// COUNTER FOR TIME SPLIT\n\t\t\t\tint colon = 0;\n\t\t\t\t\n\t\t\t\t// Count colons for proper output\n\t\t\t\tfor(int ix = 0; ix < difference.length(); ix++) {\n\t\t\t\t if(difference.charAt(ix) == ':') colon++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// SPLIT THE DIFFERENCE BY A \":\"\n\t\t\t\tString[] splitDiff = difference.split(\":\");\n\t\t\t\tString hours = null, minutes = null, seconds = null, str = null;\n\t\t\t\t\n\t\t\t\t// CALCULATE THE TIME DIFFERENCE\n\t\t\t\tswitch (colon) {\n\t\t\t\tcase 1:\n\t\t\t\t\tif (Integer.parseInt(splitDiff[0]) == DOUBLE_ZERO) {\n\t\t\t\t\t\tseconds = splitDiff[1];\n\t\t\t\t\t\tif (Integer.parseInt(seconds) > 1) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[1] + \" seconds ago\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (Integer.parseInt(seconds) == 1) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[1] + \" second ago\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (Integer.parseInt(seconds) == DOUBLE_ZERO) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + \"Happening Now\";\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tminutes = splitDiff[0];\n\t\t\t\t\t\tif (Integer.parseInt(minutes) > 1) {\t\t\t\t\t\t\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" minutes ago\";\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\tstr = \"Occurred: \" + splitDiff[0] + \" minute ago\";\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\thours = splitDiff[0];\n\t\t\t\t\tif (Integer.parseInt(hours) > 1) {\n\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" hours ago\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" hour ago\";\n\t\t\t\t\t}\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstr = \"Happening Now\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString mPoint = tag + \"\\n\" + str;\n\t\t\t\t// CALL MAPS WITH ME AND PLOT POINTS ON THE MAP\n\t\t\t points[i] = new MWMPoint(lat, lon, mPoint);\n\t\t\t MapsWithMeApi.showPointsOnMap(this, \"Total Tags: \" + message_array_from_db.size(), points);\n\t\t\t}\n\t\t\tmdb.close();\n\t\t}\n\t\telse {\n\t\t\t// GET THE NAME OF THIS DEVICE \n\t\t\tpreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\tString myTagName = preferences.getString(\"tagID\", \"Sender-01\");\n\t\t\t\n\t\t\tgps.getLocation();\n\t\t\tMapsWithMeApi.showPointOnMap(this, gps.getLatitude(), gps.getLongitude(), myTagName + \"\\nMy Position\");\n\t\t}\t\t\n\t}", "public String getKMLExtendedData(){\r\n String exData = \"\";\r\n for (int i = 0; i<attributes.size(); i++){\r\n String exDataRow = \"<Data name=\\\"\"+attributes.get(i).getAttName()+\"\\\"><value>\"+attributes.get(i).getAttValue()+\"</value></Data>\\n\";\r\n exData = exData+exDataRow;\r\n }\r\n return exData;\r\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 }", "private void assignMeasurementData(Measurement measurement, Obsunit obsUnit, List<Object> dataList) {\n for (Object data : dataList) {\n if (data instanceof DataN) {\n DataN dataN = (DataN) data;\n if (obsUnit.getOunitid().equals(dataN.getDataNPK().getOunitid())) {\n int columnIndex = workbookStudy.getVariateColumnIndex(dataN.getDataNPK().getVariatid());\n if (columnIndex != -1) {\n MeasurementData measurementData = new MeasurementData();\n measurementData.setData(dataN);\n measurement.setMeasurementData(columnIndex, measurementData);\n }\n }\n } else if (data instanceof DataC) {\n DataC dataC = (DataC) data;\n if (obsUnit.getOunitid().equals(dataC.getDataCPK().getOunitid())) {\n int columnIndex = workbookStudy.getVariateColumnIndex(dataC.getDataCPK().getVariatid());\n if (columnIndex != -1) {\n MeasurementData measurementData = new MeasurementData();\n measurementData.setData(dataC);\n measurement.setMeasurementData(columnIndex, measurementData);\n }\n }\n }\n }\n }", "protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceMessage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_ReferenceNumber(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_InvoiceContentTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-precise\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"3\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_InvoiceItemAssocTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_InvoiceItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Percentage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceTermId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermDays(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TextValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_UomId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_InvoiceTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}", "public static org.opencds.vmr.v1_0.schema.EN eNInternal2EN(EN pENInt) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"eNInternal2EN(): \";\n\n\t\tif (pENInt == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString errStr = null;\n\t\torg.opencds.vmr.v1_0.schema.EN lENExt = new org.opencds.vmr.v1_0.schema.EN();\n\n\t\t// Create external List<ENXP> element - at least one required\n\t\tList<ENXP> lIntEntityPart = pENInt.getPart();\n\t\tif (lIntEntityPart == null || lIntEntityPart.size() == 0) { // vmr spec says there must be at least one EntityPart\n\t\t\terrStr = _METHODNAME + \"List<ENXP> element of internal EN datatype not populated - required by vmr spec\";\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(errStr);\n\t\t\t}\n\t\t\tthrow new DataFormatException(errStr);\n\t\t}\n\t\tIterator<ENXP> lIntEntityPartIter = lIntEntityPart.iterator();\n\t\tint count = 0;\n\t\twhile (lIntEntityPartIter.hasNext()) {\n\t\t\tENXP lENXPInt = lIntEntityPartIter.next();\n\t\t\torg.opencds.vmr.v1_0.schema.ENXP lENXPExp = eNXPInternal2ENXP(lENXPInt);\n\t\t\tlENExt.getPart().add(lENXPExp);\n\t\t\tcount++;\n\t\t}\n\t\tif (count < 1) {\n\t\t\terrStr = _METHODNAME + \"No int->ext translations of List<ENXP> successful - at least one member of List<ENXP> required by vmr spec\";\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(errStr);\n\t\t\t}\n\t\t\tthrow new InvalidDataException(errStr);\n\t\t}\n\n\t\t// Now transfer over internal to external List<EntityNameUse> (optional in vmr spec)\n\t\tList<EntityNameUse> lEntityNameUseListInt = pENInt.getUse();\n\t\tif (lEntityNameUseListInt != null) {\n\t\t\tIterator<EntityNameUse> lEntityNameUseIntIter = lEntityNameUseListInt.iterator();\n\t\t\tEntityNameUse lEntityNameUseInt = lEntityNameUseIntIter.next();\n\t\t\torg.opencds.vmr.v1_0.schema.EntityNameUse lEntityNameUseExt = eNNameUseInternal2ENNameUse(lEntityNameUseInt);\n\t\t\tlENExt.getUse().add(lEntityNameUseExt);\n\t\t}\n\n\t\treturn lENExt;\n\t}" ]
[ "0.507011", "0.4977352", "0.48851588", "0.487434", "0.4802378", "0.47374249", "0.4709239", "0.4649251", "0.46300402", "0.45996863", "0.45967525", "0.45860395", "0.4567446", "0.45571113", "0.4541425", "0.45409533", "0.45386532", "0.44979033", "0.44833222", "0.4466244", "0.44630158", "0.44565168", "0.4442858", "0.4435675", "0.44193935", "0.44166914", "0.44129446", "0.4405662", "0.43956408", "0.43926063", "0.43826255", "0.437385", "0.43727338", "0.4335532", "0.4325756", "0.43215072", "0.4320321", "0.42981225", "0.42967385", "0.42964718", "0.42910478", "0.42846444", "0.428445", "0.42776847", "0.4273915", "0.42720526", "0.4269991", "0.42583114", "0.42571148", "0.42521605", "0.42440563", "0.4240297", "0.42382365", "0.4237304", "0.42347118", "0.422501", "0.4216953", "0.4215865", "0.4201948", "0.4197238", "0.41871122", "0.418403", "0.41811097", "0.41792747", "0.41762823", "0.41694114", "0.4162217", "0.41570476", "0.4155336", "0.41501498", "0.41498193", "0.41463763", "0.4145098", "0.41411334", "0.4138897", "0.4136505", "0.413238", "0.41317138", "0.41313353", "0.41223106", "0.41196895", "0.41189498", "0.4115722", "0.41151878", "0.4112623", "0.4109031", "0.41083992", "0.41047284", "0.40980446", "0.40879202", "0.4085767", "0.40826324", "0.40767062", "0.4076403", "0.40692762", "0.40679044", "0.4065627", "0.40560558", "0.40557235", "0.4054919" ]
0.55143666
0
A function to add AppLogging NameValue pair The type of Name value pair being added. Example file, directory etc. It should correspond to one of the types defined in "AppLoggingNVPairs" class.
public void addNVPair(final String key, final String value, final AppLoggingNVPairs appLoggingNVPairs) { // check key and value are not null if (key != null && key.length() > 0 && value != null && value.length() > 0) { // Add the pair passed in. Check the type and call the corresponding // AppLoggingNVPairs function appLoggingNVPairs.addPair(key, value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected AppLoggingNVPairs addTimingAndMachineApplogInfo(\n AppLoggingNVPairs appLogPairs, long startTime)\n {\n // Processing time\n\n if (startTime > 0) {\n long endTime = System.currentTimeMillis();\n double totalTime = ((endTime - startTime) / 1000.0);\n appLogPairs.addInfo(\"TotalProcessingTimeSecs\", String.valueOf(totalTime));\n }\n\n // Machine Name/Server Name\n\n String machineInfo = AppUtilities.buildServerName();\n if (machineInfo != null && machineInfo.length() > 0) {\n appLogPairs.addInfo(\"ProcessingMachineInfo\", machineInfo);\n }\n\n return appLogPairs;\n }", "public void addNVPairToEventDetails(final String key, final String value,\n final EventDetails eventDetails)\n {\n\n // check key and value are not null\n NameValuePair nv = null;\n\n if (key != null && key.length() > 0 && value != null && value.length() > 0) {\n\n // Add the pair passed in.\n nv = eventDetails.addNewNameValuePair();\n nv.setName(key);\n nv.addValue(value);\n\n }\n\n }", "public void add(String name, T val) {\n\t\tnvPairs.add(name);\n\t\tnvPairs.add(val);\n\t}", "public void addProperty(String pair) {\n String[] kv = pair.split(\"=\");\n if (kv.length == 2) {\n properties.put(kv[0], kv[1]);\n } else {\n throw new IllegalArgumentException(\"Property must be defined as key=value, not: \" + pair);\n }\n }", "public void evel_thresholdcross_addl_info_add(String name, String value)\r\n\t{\r\n\t String[] addl_info = null;\r\n\t EVEL_ENTER();\r\n\r\n\t /***************************************************************************/\r\n\t /* Check preconditions. */\r\n\t /***************************************************************************/\r\n\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t assert(name != null);\r\n\t assert(value != null);\r\n\t \r\n\t if( additional_info == null )\r\n\t {\r\n\t\t additional_info = new ArrayList<String[]>();\r\n\t }\r\n\r\n\t LOGGER.debug(MessageFormat.format(\"Adding name={0} value={1}\", name, value));\r\n\t addl_info = new String[2];\r\n\t assert(addl_info != null);\r\n\t addl_info[0] = name;\r\n\t addl_info[1] = value;\r\n\r\n\t additional_info.add(addl_info);\r\n\r\n\t EVEL_EXIT();\r\n\t}", "public interface KeyValuePairLogger {\n\n /**\n * @param key\n * ; the key\n * @param oldValue\n * ; the prior value\n * @param newValue\n * ; the new value\n */\n public void put(String key, Value oldValue, Value newValue);\n\n /**\n * validate that inserting the key makes sense\n *\n * @param key\n * the key to insert\n * @param oldValue\n * the old value\n * @param newValue\n * the new value\n * @param result\n * a place to define why we errored out\n * @return true if the new value can be inserted\n */\n public void validate(String key, Value oldValue, Value newValue, PutResult result);\n}", "public Builder addInfo(KeyValuePair value) {\n if (infoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInfoIsMutable();\n info_.add(value);\n onChanged();\n } else {\n infoBuilder_.addMessage(value);\n }\n return this;\n }", "@Override\r\n\tpublic void addKeyValuePair(String key, String value) {\r\n\t\t\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \") || value == null || value.equals(\" \")) {\r\n System.out.println(\"Key cannot be Empty\");\r\n return;\r\n }\r\n // create new Node to be inserted\r\n Node newNode = new Node(new Data(key, value));\r\n // call recursive function traverse from root to correct Position to add newNode\r\n this.root = insertRecursively(this.root, newNode);\r\n return;\r\n\t\t\r\n\t}", "public abstract void addValue(String str, Type type);", "void addTag(String name, String value);", "public void addKeyValue(String apiName, Object value)\n\t{\n\t\t this.keyValues.put(apiName, value);\n\n\t\t this.keyModified.put(apiName, 1);\n\n\t}", "void addVariant(PushApplication pushApp, Variant variant);", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "public void add(String k, String v) throws RemoteException, Error;", "void appendFileInfo(byte[] key, byte[] value) throws IOException;", "void addRecord(String[] propertyValues) throws IOException;", "private void addToMobileContext(String key, String value) {\n if (key != null && value != null && !key.isEmpty() && !value.isEmpty()) {\n this.mobilePairs.put(key, value);\n }\n }", "public void addType(String value) {\n/* 380 */ addStringToBag(\"type\", value);\n/* */ }", "public void add_to_log(String s){\n }", "Builder addAdditionalType(String value);", "void addEntry(K key, V value);", "public abstract void addParameter(String key, Object value);", "void addPair(String delimiterPair) {\r\n\t\tcheckArgument(delimiterPair.length() == 2, \"Calling addPair with %s. Only 2 characters are allowed.\", delimiterPair);\r\n\r\n\t\tadd((new Delimiter()).pair(delimiterPair));\r\n\t}", "private void addParameter(String key, String value) {\n urlParameters.put(key, new BasicNameValuePair(key, value));\n }", "public ActionStatus addRecord(Map<AuditingFieldsKey, Object> params, String type) {\n\t\tMap<String, Object> displayFields = new HashMap<>();\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Entry<AuditingFieldsKey, Object> entry : params.entrySet()) {\n\t\t\tdisplayFields.put(entry.getKey().getDisplayName(), entry.getValue());\n\t\t\tsb.append(entry.getKey().getDisplayName()).append(\" = \").append(entry.getValue()).append(\",\");\n\t\t}\n\n\t\t// Persisiting\n\t\t// String type = clazz.getSimpleName().toLowerCase();\n\t\tAuditingGenericEvent auditingGenericEvent = new AuditingGenericEvent();\n\t\tpopulateCommonFields(params, auditingGenericEvent);\n\t\tauditingGenericEvent.getFields().putAll(displayFields);\n\n\t\tlog.debug(\"Auditing: Persisting object of type {}, fields: {}\", type, sb.toString());\n\n\t\treturn write(type, auditingGenericEvent);\n\t}", "public void insertIntoParaList(Integer _taskID,Integer _optID, String _tupleTag, String _taskType, String _info1, String _info2, String _destIP,\r\n String _port,String _location, long _timestamp, Object _appSpecific) {\r\n \r\n List entry = new ArrayList();\r\n entry.add(_optID);\r\n entry.add(_tupleTag);\r\n entry.add(_taskType);\r\n entry.add(_info1);\r\n entry.add(_info2);\r\n entry.add(_destIP);\r\n entry.add(_port);\r\n entry.add(_location);\r\n entry.add(_timestamp); \r\n entry.add(_appSpecific);\r\n synchronized (lock) {\r\n paramList.put(_taskID, entry);\r\n } \r\n //System.out.println(\"Parameter list: \"+paramList);\r\n }", "public static void PropertyAddTag(MAILBOX_TAG tag, int va1, int va2) {\n _PropertyAddTag3(tag.getId(), va1, va2);\n }", "public void addStringListValue(int type, String value);", "private void addPair(int word1, int word2) {\n\t\trelatedPairs[word1].add(word2);\n\t}", "void addParameter(String name, String value) throws CheckerException;", "public void add(String value);", "private static void add(String key, List<FieldDefinition> value) {\n if (messageFieldsMap.containsKey(key)) {\n LOGGER.error(\"Initialization error: \" + key + \" already exists in messageFieldsMap\");\n } else {\n messageFieldsMap.put(key, value);\n }\n }", "public void push(String keyName, ValueWrapper valueWrapper) {\n\t\tvar value = multistack.get(keyName);\n\t\tif(value == null) {\n\t\t\tmultistack.put(keyName, new MultistackEntry(valueWrapper, null));\n\t\t}\n\t\telse {\n\t\t\tmultistack.put(keyName, new MultistackEntry(valueWrapper, value));\n\t\t}\n\t}", "void add(String value);", "public void addConfigParam(IFloodlightModule mod, String key, String value) {\n\t Map<String, String> moduleParams = configParams.get(mod.getClass());\n\t if (moduleParams == null) {\n\t moduleParams = new HashMap<String, String>();\n\t configParams.put(mod.getClass(), moduleParams);\n\t }\n\t moduleParams.put(key, value);\n\t}", "void addRecord(String[] propertyValues, Date timestamp) throws IOException;", "public void insertExtra (String key, int version, String format, Object ... args)\n {\n String string = String.format (format, args);\n\n // Store string in hash table\n if (extra == null)\n extra = new VersionedMap ();\n extra.put (key, version, string);\n }", "void add(KeyType key, ValueType value);", "private void upload(String tag, String message, String position, String unique_msg, LogEntry [] inputLogEntry, String [] zipEntryNames, int triggerType, String packageName, String processName){\n\n if (!S3Policy.canLogToS3(getContext(), tag))\n return;\n if( inputLogEntry == null || zipEntryNames == null) {\n Log.d(TAG, \"inputLogEntry or zipEntryNames is null\");\n return;\n }\n\n if (message==null)\n message=\"\";\n if (position==null)\n position=\"\";\n\n String sn = Utils.getSN();\n //Create a device information properties file\n ByteArrayOutputStream os_deviceinfo = new ByteArrayOutputStream();\n S3DeviceInfoCreator deviceInfoCreator = S3DeviceInfoCreator.getInstance(getContext());\n Properties propReportData = deviceInfoCreator.createDeviceInfoProperties(tag, message, position, unique_msg, triggerType, packageName, processName);\n try {\n propReportData.store(os_deviceinfo, sMessageVersion);\n } catch (IOException e1) {\n e1.printStackTrace();\n } finally {\n try {if(os_deviceinfo != null) os_deviceinfo.close();} catch (IOException e) {e.printStackTrace();}\n }\n\n if(Common.SECURITY_DEBUG) Log.d(TAG, propReportData.toString());\n\n Properties prop = new Properties();\n prop.setProperty(\"TAG\", tag);\n prop.setProperty(\"S/N\", sn);\n // sy_wang, 20140321, Get sense version and change to sense ID which has specific format.\n prop.setProperty(\"SENSE_ID\", changeSenseVerToSenseId(Utils.getSenseVersionByCustomizationManager()));\n\n S3EntryFile entryFile = null;\n FileOutputStream zipos = null;\n DataOutputStream dataStream = null;\n ZipOutputStream zip = null;\n InputStream isInputLog = null;\n try {\n //Create a ZIP\n entryFile = S3LogCacheManager.getInstance().putS3LogToCache(getContext(), prop);\n zipos = entryFile.getFileOutputStream();\n dataStream = new DataOutputStream(zipos);\n dataStream.writeUTF(prop.getProperty(\"TAG\", \"ALL\"));\n dataStream.writeUTF(prop.getProperty(\"S/N\", \"unknown\"));\n zip =new ZipOutputStream(zipos);\n ZipEntry zeProperties = new ZipEntry(\"DeviceInfo.properties\");\n zip.putNextEntry(zeProperties);\n zip.write(os_deviceinfo.toByteArray());\n zip.closeEntry();\n\n for(int i=0; i<inputLogEntry.length ; i++) {\n if(inputLogEntry[i] != null) {\n ZipEntry zeLogfile = new ZipEntry(zipEntryNames[i]);\n zip.putNextEntry(zeLogfile);\n isInputLog = inputLogEntry[i].getInputStream();\n streamCopy(isInputLog,zip);\n if(isInputLog != null) {\n isInputLog.close();\n isInputLog = null;\n }\n zip.closeEntry();\n }\n }\n } catch(Exception e) {\n Log.e(TAG, \"Fail to compress Logfile and DeviceInfo\", e);\n } finally {\n try {if(isInputLog != null) isInputLog.close();} catch (IOException e) {e.printStackTrace();}\n try {if(zip != null) zip.finish();} catch (IOException e) {e.printStackTrace();}\n try {if(dataStream != null) dataStream.close();} catch (IOException e) {e.printStackTrace();}\n try {if(zipos != null) zipos.close();} catch (IOException e) {e.printStackTrace();}\n }\n\n //General upload speed for 3G is 0.3 Mb/s .The max size of file to upload is 2.5MB\n //Time cost for uploading = 66.67x2(safety factor) = 133(s)\n String wakelockName = Common.WAKELOCK_S3;\n int wakelockTime = 133000;\n /*\n [2017.02.21 eric lu]\n For UB, we reduce wakelock to 30(s)to prevent power team issues.\n\n If the wakelock exceed 360(s) in 48 hours, we will need to explain why we need to acquire it.\n Hence, 360(s)/2 = 180(s)/day ,and we will upload 4 times per day\n 180/4 = 45(s)/once\n Actually, uploading time was seldom exceed 5(s), we acquire 30(s) as a trade-off.\n */\n if (Common.STR_HTC_UB.equals(tag)){\n wakelockName = Common.WAKELOCK_S3_UB;\n wakelockTime = 30000;\n }\n\n PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, wakelockName);\n wakeLock.setReferenceCounted(false);\n wakeLock.acquire(wakelockTime);\n\n try {\n Log.d(TAG, \"Start upload\");\n Log.d(TAG,\"The size of uploaded file is: \"+entryFile.getFileSize()+\"(bytes)\");\n Utils.logDataSizeForWakeLock(wakelockName,entryFile.getFileSize());\n\n for (int i=RETRY_COUNT; i>=0; i--) {\n try {\n if (!Utils.isNetworkAllowed(getContext(), tag, ReflectionUtil.get(\"ro.build.description\"),entryFile.getFileSize())){\n Log.d(TAG,\"[upload] Stop upload due to no proper network\");\n continue;\n }\n Log.d(TAG,\"uploaded file size: \"+entryFile.getFileSize()+\"(bytes)\"); //must showed it at begin,added by Ricky 2012.06.27\n Response response = s3uploader.putReport(entryFile.getFilePointer(), prop, 30000);\n //Compare the header\n\n if (response != null && response.getResponseCode() == HttpURLConnection.HTTP_OK) {\n entryFile.delete();\n Log.v(TAG, \"Upload Done , TAG=\"+tag);\n resumeCachedReport(s3uploader);\n break;\n }\n else \n {\n if (i==0) {\n deleteHtcPowerExpertTempFile(tag, entryFile); //Rex, Delete cache file directly when uploading HTC_POWER_EXPERT log failed, 2013/02/26\n Log.w(TAG, \"fail \");\n // storeReport(prop);do nothing since already stored\n }\n }\n android.os.SystemClock.sleep(1000);\n } catch (Exception e) {\n if (i==0) {\n deleteHtcPowerExpertTempFile(tag, entryFile); //Rex, Delete cache file directly when uploading HTC_POWER_EXPERT log failed, 2013/02/26\n Log.w(TAG, \"Got exception\",e.getMessage());\n //storeReport(prop); do nothing since already stored\n }\n android.os.SystemClock.sleep(1000);\n }\n }\n } catch (Exception e) {\n Log.e(TAG,\"Exception occurs\", e);\n } finally {\n if(wakeLock !=null && wakeLock.isHeld())\n wakeLock.release();\n }\n }", "public long addFavPair(Pair pair) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues cv = new ContentValues();\n cv.put(FavoriteEntry.SHIRT_ID, pair.getShirt().getId());\n cv.put(FavoriteEntry.TROUSER_ID, pair.getTrouser().getId());\n\n try {\n return db.insertOrThrow(FavoriteEntry.TABLE_NAME, null, cv);\n } catch (SQLException e) {\n Log.d(TAG, \"Could not insert to database! \" + e);\n return -1;\n }\n }", "public void addLogModel(LogModel param) {\n if (localLogModel == null) {\n localLogModel = new LogModel[] { };\n }\n\n //update the setting tracker\n localLogModelTracker = true;\n\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localLogModel);\n list.add(param);\n this.localLogModel = (LogModel[]) list.toArray(new LogModel[list.size()]);\n }", "public KeyValuePair.Builder addInfoBuilder() {\n return getInfoFieldBuilder().addBuilder(\n KeyValuePair.getDefaultInstance());\n }", "void addEntry(String key, Object value) {\n this.storageInputMap.put(key, value);\n }", "public void addValue(String value) {\n synchronized (values) {\n values.add(value);\n }\n }", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "public void add(String key, Object value) {\n Object oldValue = null;\n if (value instanceof String) {\n editor.putString(key, (String) value);\n oldValue = get(key, \"\");\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n oldValue = get(key, false);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n oldValue = get(key, -1);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n oldValue = get(key, -1l);\n } else {\n if (value != null)\n Log.e(TAG, \"Value not inserted, Type \" + value.getClass() + \" not supported\");\n else\n Log.e(TAG, \"Cannot insert null values in sharedprefs\");\n }\n editor.apply();\n\n //notifying the observers\n notifyObservers(key, oldValue, value);\n }", "private void recordPushLog(String configName) {\n PushLog pushLog = new PushLog();\n pushLog.setAppId(client.getAppId());\n pushLog.setConfig(configName);\n pushLog.setClient(IP4s.intToIp(client.getIp()) + \":\" + client.getPid());\n pushLog.setServer(serverHost.get());\n pushLog.setCtime(new Date());\n pushLogService.add(pushLog);\n }", "void addLogEntry(LogEntry entry) throws LogEntryOperationFailedException;", "public void push(String keyName, ValueWrapper valueWrapper) {\n\t\tmap.compute(keyName, (key, old) -> old == null ? \n\t\t\t\tnew MultistackEntry(null, valueWrapper) : new MultistackEntry(old, valueWrapper));\n\t}", "public void addPairs(\n\t\tPair...\tpairs)\n\t{\n\t\tfor (Pair pair : pairs)\n\t\t\tadd(pair);\n\t}", "public void add(String value) {\n add(value, false);\n }", "public void addKeyValue (String key, String value){\r\n\t\tcodebook.put(key, value);\r\n\t}", "public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }", "public static void PropertyAddTag(MAILBOX_TAG tag, int va1, int va2, int va3) {\n _PropertyAddTag4(tag.getId(), va1, va2, va3);\n }", "private static void\n extraWrite (final Map.Entry <String, VersionedValue> entry, State self)\n {\n self.putString (entry.getKey ());\n self.putNumber4 (entry.getValue ().getVersion ());\n self.putString (entry.getValue ().getValue ());\n }", "private void addMetadataByString(Metadata metadata, String name, String value) {\n if (value != null) {\n metadata.add(name, value);\n }\n }", "public Builder addInfo(\n int index, KeyValuePair value) {\n if (infoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInfoIsMutable();\n info_.add(index, value);\n onChanged();\n } else {\n infoBuilder_.addMessage(index, value);\n }\n return this;\n }", "public static void PropertyAddTag(MAILBOX_TAG tag, int va1, int va2, int va3, int va4) {\n _PropertyAddTag5(tag.getId(), va1, va2, va3, va4);\n }", "public void addData(KeyValuePair<Key, Value> newData) {\r\n\t\t\taddData(newData.getKey(), newData.getValue());\r\n\t\t}", "private void addEntranceLog(String logType) {\n if(ticketTrans == null || checkedItems.size() == 0) return;\n\n Entrance entrance = new Entrance(EntranceStep2Activity.this);\n\n Log.d(EntranceStep2Activity.class.toString(), logType);\n\n try {\n entrance.add(encryptRefNo, checkedItems, logType);\n } catch (Exception e) {\n String reason = e.getMessage();\n Toast.makeText(getApplicationContext(), reason, Toast.LENGTH_SHORT).show();\n } finally {\n loading.dismiss();\n }\n }", "public void addParamValue(String name, String value)\n\t{\n\t\tif(name == null)\n\t\t\tthrow new RequiredException(\"name\");\n\t\t\n\t\tCollection<String> values = this.parameters.get(name);\n\t\t\n\t\tif(values == null)\n\t\t\tvalues = newValues();\n\t\t\n\t\tvalues.add(value);\n\t\t\n\t\tthis.parameters.put(name.toUpperCase(), values);\n\t\t\n\t}", "public interface LogAttributeValueMapper\n{\n\n /**\n * The Constant SHORT_VALUE_MAXSIZE.\n */\n public static final short SHORT_VALUE_MAXSIZE = 40 - 1;\n\n /**\n * The Constant LONG_VALUE_MAXSIZE.\n */\n public static final short LONG_VALUE_MAXSIZE = 4000 - 1;\n\n /**\n * return value for short (first) and long (second) db field.\n *\n * @param value the value\n * @return the pair\n */\n public Pair<String, String> mapAttributeValue(String value);\n\n /**\n * The Class ShortValueMapper.\n */\n public static class ShortValueMapper implements LogAttributeValueMapper\n {\n\n @Override\n public Pair<String, String> mapAttributeValue(String value)\n {\n return new Pair<String, String>(LogAttribute.shorten(value, SHORT_VALUE_MAXSIZE), null);\n }\n }\n\n /**\n * The Class LongValueMapper.\n */\n public static class LongValueMapper implements LogAttributeValueMapper\n {\n @Override\n public Pair<String, String> mapAttributeValue(String value)\n {\n // return new Pair<String, String>(null, StringUtils.substring(value, 0, LONG_VALUE_MAXSIZE));\n return new Pair<String, String>(null, value);\n }\n }\n\n /**\n * The Class BothValueMapper.\n */\n public static class BothValueMapper implements LogAttributeValueMapper\n {\n @Override\n public Pair<String, String> mapAttributeValue(String value)\n {\n String sval = LogAttribute.shorten(value, SHORT_VALUE_MAXSIZE);\n if (StringUtils.defaultString(value).length() <= SHORT_VALUE_MAXSIZE) {\n value = null;\n }\n return new Pair<String, String>(sval, value);\n }\n }\n\n /**\n * The Constant shortValueMapper.\n */\n public static final LogAttributeValueMapper shortValueMapper = new ShortValueMapper();\n\n /**\n * The Constant longValueMapper.\n */\n public static final LogAttributeValueMapper longValueMapper = new LongValueMapper();\n\n /**\n * The Constant bothValueMapper.\n */\n public static final LogAttributeValueMapper bothValueMapper = new BothValueMapper();\n}", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "public void add(SignLog log) {\n ContentValues values = new ContentValues();\n values.put(DatabaseSQLiteHelper.LOGS_NAME, log.getName());\n values.put(DatabaseSQLiteHelper.LOGS_PASSWORD, log.getPassword());\n values.put(DatabaseSQLiteHelper.LOGS_USER_ID, log.getUserId());\n values.put(DatabaseSQLiteHelper.LOGS_DAY, log.getDay());\n values.put(DatabaseSQLiteHelper.LOGS_TIME, log.getTime());\n values.put(DatabaseSQLiteHelper.LOGS_TYPE, log.getType());\n\n database.insert(DatabaseSQLiteHelper.TABLE_SIGN_LOGS, null, values);\n }", "public void addContextData( String key,\n String value );", "public void addFileType(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), FILETYPE, value);\r\n\t}", "void add( Map< String, Object > paramMap );", "Builder addAbout(String value);", "public void addEnvEntry (String name, Object value)\n {\n if (_envMap == null)\n _envMap = new HashMap();\n\n if (name == null)\n log.warn (\"Name for java:comp/env is null. Ignoring.\");\n if (value == null)\n log.warn (\"Value for java:comp/env is null. Ignoring.\");\n\n _envMap.put (name, value);\n }", "public void addEnvEntry (String name, String value)\n {\n _plusWebAppContext.addEnvEntry(name, value);\n }", "public void add(Iterable<Map.Entry> kvEntries) {\n // oddly, firing list changed events get much slower as amount of total [map] meta-data increases [NOW WE KNOW WHY]\n\n // the categoryList updates still trigger the updates, so we turn them off with a flag for now\n \n // disableEvents = true;\n try {\n for (Map.Entry e : kvEntries) {\n try {\n categoryList.add(new VueMetadataElement(e.getKey().toString(), e.getValue().toString()));\n } catch (Throwable t) {\n Log.error(\"add entry \" + Util.tags(e), t);\n }\n }\n } catch (Throwable tx) {\n Log.error(\"add iterable \" + Util.tags(kvEntries), tx);\n }\n // finally {\n // disableEvents = false;\n // }\n fireListChanged(\"bulk-add\");\n }", "public interface LogTypeCallback {\n\n void onLogType(ArrayList<String> values);\n}", "public static void main(String[] args) {\n Pair<String, Integer> pair = new Pair<String, Integer>(\"testeString\", 12);\n System.out.println(pair.getTipo1());\n System.out.println(pair.getTipo2());\n pair.setTipo1(\"TESTEAGAIN\");\n System.out.println(pair.getTipo1());\n\n }", "public static void addProperty(String [] propertyValues){\r\n Property oneProperty = new Property();\r\n oneProperty = setPropertyAttributes(oneProperty, propertyValues);\r\n propertyLogImpl.add(oneProperty);\r\n }", "private void addBasicInfo(ArrayList<Object> libValues, Apk apk, Map<String, Object> apkBasicInfoMap) {\n\t\t// add column1: Apk Name\n//\t\tString apkName = apkReadUtils.getApkName(apkFile);\n\t\tString apkName = apk.getShortName();\n\t\tlibValues.add(apkName); \n\t\t// add column2: Apk Version\n\t\tlibValues.add(apkBasicInfoMap.get(\"versionName\")); \n\t\t// add column3: Package Name\n\t\tlibValues.add(apkBasicInfoMap.get(\"package\")); \n\t\t// add column4: NDK Type\n\t\tlibValues.add(apk.getApkType()); \n\t}", "@Override\n public void insert( int partition, List< String > key, List< String > value )\n {\n // guard\n {\n log.trace( \"Insert: \" + partition + \":'\" + key.toString() + \"' -> '\" + value.toString() + \"'\" );\n\n checkState();\n\n if( ! this.isopen() )\n {\n throw new VoldException( \"Tried to operate on WriteLogger while it had not been initialized yet. Open it first!\" );\n }\n }\n\n try\n {\n out.write( \"INSERT: \" + key.toString() + \" |--> \" + value.toString() );\n out.newLine();\n }\n catch( IOException e )\n {\n throw new VoldException( e );\n }\n }", "public Pair<String, String> mapAttributeValue(String value);", "@JRubyMethod(name = \"add\")\n public IRubyObject add(final ThreadContext context,\n final IRubyObject severity, final IRubyObject msg,\n final IRubyObject progname, final Block block) {\n // NOTE possibly - \"somehow\" support UNKNOWN in RackLogger ?!\n return context.runtime.newBoolean( add(UNKNOWN, context, msg, block) );\n }", "void addLog(String beforeChange, String afterChange, String time) {\r\n ArrayList<String> logItem = new ArrayList<>();\r\n logItem.add(beforeChange);\r\n logItem.add(afterChange);\r\n logItem.add(time);\r\n allLogs.add(logItem);\r\n writeToFile(\"Save.bin\",allLogs);\r\n }", "public void addParameter(String key, Object value) {\n try {\n jsonParam.put(key, value);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }", "public boolean add(String token, Object value)\n {\n // look up the token\n String type = _meta.get(token);\n if (type == null) {\n return false;\n }\n\n Object oldVal = _result.get(token);\n\n if (DoubleListArg.equals(type)) {\n if (!(value instanceof String[])) {\n return false;\n }\n List<String[]> valueList = (List<String[]>)oldVal;\n if (valueList == null) {\n valueList = new ArrayList<String[]>(1);\n _result.put(token, valueList);\n }\n valueList.add((String[])value);\n }\n else if (StringArg.equals(type) || oldVal != null) {\n if (!(value instanceof String)) {\n return false;\n }\n _result.put(token, value);\n }\n else if (ListArg.equals(type)) {\n if (!(value instanceof String)) {\n return false;\n }\n List<String> valueList = (List<String>)oldVal;\n if (valueList == null) {\n valueList = new ArrayList<String>(1);\n _result.put(token, valueList);\n }\n valueList.add((String)value);\n }\n else if (IntegerArg.equals(type) || oldVal != null) {\n if (!(value instanceof Integer)) {\n return false;\n }\n _result.put(token, value);\n }\n else if (FlagArgFalse.equals(type) || FlagArgTrue.equals(type)) {\n if (!(value instanceof Boolean)) {\n return false;\n }\n _result.put(token, value);\n }\n\n return true;\n }", "private static void writePair(final StringBuffer buffer, final String key,\n \t\t\tfinal String value) {\n \t\tbuffer.append(key);\n \t\tbuffer.append('=');\n \t\tbuffer.append(value.replace(\"\\\\\", \"\\\\\\\\\").replace(\">\", \"\\\\>\").replace(\n \t\t\t\t\"<\", \"\\\\<\"));\n \t\tbuffer.append(\"\\\\p\");\n \t}", "private void addLogger(String loggerCategory, String loggerNameSpace) {\n categoryLoggers.put(loggerCategory,\n LoggerFactory.getLogger(loggerNameSpace));\n }", "public String addItemByKey(String key, String value) throws DictionaryException {\n\t\tSystem.out.println(\"Going to add value : \" + value + \" for Key : \" + key);\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\t// Check if key exists and add the item\n\t\t\tif (dictMap.containsKey(key)) {\n\t\t\t\tList<String> membersList = dictMap.get(key);\n\t\t\t\tif (membersList.contains(value)) {\n\t\t\t\t\t//Already existing value\n\t\t\t\t\tthrow new DictionaryException(ExceptionConstant.ADD_ERROR);\n\t\t\t\t} else {\n\t\t\t\t\tmembersList.add(value);\n\t\t\t\t\tdictMap.put(key, membersList);\n\t\t\t\t\tdictionary.setMultiValueDict(dictMap);\n\t\t\t\t}\n\t\t\t\t// Code for a fresh key and value insert\n\t\t\t} else {\n\t\t\t\tList<String> valueList = new ArrayList<>();\n\t\t\t\tvalueList.add(value);\n\t\t\t\tdictMap.put(key, valueList);\n\t\t\t}\n\t\t\t// First time entry of items in map\n\t\t} else {\n\t\t\tList<String> valueList = new ArrayList<>();\n\t\t\tvalueList.add(value);\n\t\t\tdictMap.put(key, valueList);\n\n\t\t}\n\t\treturn ApplicationMessage.ADD_SUCCESS_MSG;\n\t}", "private void addString(String value) {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Adding String '\" + value + \"'\");\n }\n\n int index = stringTable.getIndex(value);\n addInt(index);\n }", "public FileInfo append(final byte[] k, final byte[] v, final boolean checkPrefix)\n throws IOException {\n if (k == null || v == null) {\n throw new NullPointerException(\"Key nor value may be null\");\n }\n if (checkPrefix && isReservedFileInfoKey(k)) {\n throw new IOException(\"Keys with a \" + FileInfo.RESERVED_PREFIX + \" are reserved\");\n }\n put(k, v);\n return this;\n }", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "private void addToGeoLocationContext(String key, Object value) {\n if (key != null && value != null && !key.isEmpty() ||\n (value instanceof String) && !((String) value).isEmpty()) {\n this.geoLocationPairs.put(key, value);\n }\n }", "public void writeNextMultivalue(String name, String... values) throws ThingsException;", "protected final void addConfigEntry(String name, String defValue,\n String msg, PluginInfo.ConfigurationType type) {\n // Retrieve the plug-in's info object\n PluginInfo pi = pa.getPluginInfo(getUniqueKey());\n // Will happen if called during bundle's startup\n if (pi == null) {\n log.warn(\"Adding configuration key <\" + name +\n \"> to plugin <\" + getName() + \"> failed: \" +\n \"no PluginInfo.\");\n return;\n }\n // Modify the plug-in's configuration\n try {\n // Update property\n if (pi.hasConfProp(name, type.toString())) {\n if (pi.updateConfigEntry(db, name, defValue)) {\n // Update the Plug-in Admin's information\n pa.pluginUpdated(pa.getPlugin(pi));\n }\n else {\n log.error(\"Property (\" + name +\") update has failed!\");\n }\n }\n // Create property\n else {\n if (pi.addConfigEntry(\n db, name, msg, type.toString(), defValue)) {\n // Update the Plug-in Admin's information\n pa.pluginUpdated(pa.getPlugin(pi));\n }\n else {\n log.error(\"Property (\" + name +\") append has failed!\");\n }\n }\n }\n catch (Exception ex){\n log.error(\"Can not modify property (\" + name +\") for plugin (\"\n + getName(), ex);\n }\n }", "public native String appendItem(String newItem);", "void add(K key, V value);", "public void addApplicationProperty(String property, String value) {\n if (property == null)\n return;\n\n if (appProperties == null)\n appProperties = new Vector();\n \n properties.put(property, value);\n appProperties.addElement(property);\n }", "public void addNode(String node_name, String node_value,\n\t\t\tHashMap<String, String> document) throws IOException {\n\t\tPropertyValues property = new PropertyValues();\n\t\tString key = property.getPropValues(node_name);\n\n\t\tif (key == null)\n\t\t\tkey = node_name;\n\n\t\tif (!document_types.contains(\"|\" + node_name + \"|\")\n\t\t\t\t&& !formatter_nodes.contains(\"|\" + node_name + \"|\")) {\n\t\t\tif (document.containsKey(key)) {\n\t\t\t\tdocument.put(key, document.get(key) + \", \" + node_value);\n\t\t\t} else {\n\t\t\t\tdocument.put(key, node_value);\n\t\t\t}\n\t\t}\n\t}", "private static void addType(String[] data) {\n\t\t// Weird params. \n\t\tif(data.length != 2) {\n\t\t\tSystem.out.println(\"Incorrect parameter usage. Consult help command\");\n\t\t\treturn;\n\t\t}\n\t\t// Valid handicap, let's proceed. \n\t\tif(isValidHandicap(data[1])) {\n\t\t\ttry {\n\t\t\t\tPrintWriter handicaps = new PrintWriter(new FileWriter(\"handicaps.txt\", true));\n\t\t\t\thandicaps.append(\"\\n\");\n\t\t\t\thandicaps.append(data[1]);\n\t\t\t\thandicaps.close();\n\t\t\t\tSystem.out.println(\"Successfully added handicap!\");\n\t\t\t} catch (IOException e) {\n\t\t\t\t\t// Off chance file just doesn't exist.\n\t\t\t\t\tSystem.err.println(\"\\n\\nSEVERE ERROR: CRUCIAL FILE: HANDICAPS.TXT NOT FOUND\\n\\n\");\n\t\t\t\t\tSystem.err.println(\"Attempting to re-create file....\");\n\t\t\t\t\tgenerateHandicaps();\n\t\t\t\t\tSystem.err.println(\"Success!\\nTry command again.\\n\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid handicap. Consult help command for usage information\");\n\t\t}\n\t}", "public static void paramPush(String val) {\n\t\tparamPush(val, PARAM_IDX);\n\t}", "private static void addInfo(String info){\n\tif (started) {\n\t try{\n\t\tif (verbose) {\n\t\t System.out.println(info);\n\t\t System.out.println(newLine);\n\t\t}\n\t\tfStream.writeBytes(info);\n\t\tfStream.writeBytes(newLine);\n\t }catch(IOException e){\n\t }\n\t}\n }", "Property addValue(PropertyValue<?, ?> value);", "public void addDestination(NameValue<String, String> nv) {\n this.addDestination(nv.getKey(), nv.getValue());\n }", "public void addKey(String keyName, String keyValue)\n {\n if ((keyName == null) || (keyName.length() == 0))\n throw new IllegalArgumentException(\"Key name must be supplied.\");\n\n if ((keyValue == null) || (keyValue.length() == 0))\n throw new IllegalArgumentException(\"Key value must be supplied.\");\n \n m_keyNames.add(keyName);\n m_keyValues.add(keyValue);\n }" ]
[ "0.5585952", "0.538945", "0.5348704", "0.52875745", "0.5179664", "0.5139427", "0.5032936", "0.5010002", "0.49819294", "0.49036828", "0.48941073", "0.4880878", "0.48247287", "0.4821926", "0.4807617", "0.4791765", "0.4784884", "0.4758936", "0.47461846", "0.47330928", "0.47317287", "0.47112375", "0.4696748", "0.4671058", "0.46407348", "0.4629987", "0.46214312", "0.4590188", "0.45786592", "0.45616817", "0.45451248", "0.45426023", "0.45169857", "0.4515559", "0.44983932", "0.44975945", "0.4495019", "0.44941738", "0.44841158", "0.4480165", "0.4464053", "0.4462022", "0.44528964", "0.4447901", "0.44458887", "0.4439103", "0.44336146", "0.4426742", "0.44171852", "0.44161952", "0.4408746", "0.44052368", "0.44007763", "0.4397168", "0.43928987", "0.4392678", "0.43914816", "0.43804738", "0.43792936", "0.43760452", "0.43759644", "0.43655497", "0.43598455", "0.43549535", "0.43534812", "0.43386865", "0.4323176", "0.4320574", "0.43199825", "0.431763", "0.43169677", "0.43128097", "0.43125418", "0.43094066", "0.43017232", "0.4301638", "0.42990032", "0.42942333", "0.4293356", "0.42914122", "0.42892116", "0.4286919", "0.42851445", "0.42831025", "0.42788357", "0.42772153", "0.42772135", "0.42747244", "0.42665386", "0.4266373", "0.42660627", "0.42628255", "0.42582667", "0.4257933", "0.42508787", "0.4247934", "0.42376357", "0.4237597", "0.42300227", "0.42222357" ]
0.77056795
0
A function to add NameValue pair in Event Details
public void addNVPairToEventDetails(final String key, final String value, final EventDetails eventDetails) { // check key and value are not null NameValuePair nv = null; if (key != null && key.length() > 0 && value != null && value.length() > 0) { // Add the pair passed in. nv = eventDetails.addNewNameValuePair(); nv.setName(key); nv.addValue(value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Add_event_value(String v)\n {\n\n event_value = new String(v);\t\n }", "public void addEventTuple(TextView calendarName, LinearLayout eventInfo) {\r\n\t\tcalendarNameList.add(calendarName);\r\n\t\teventInfoList.add(eventInfo);\r\n\t}", "public void addDataItem(String name, E value) {\n\t\tdata.put(value, name);\n\t}", "@Override\r\n\tpublic void attributeAdded(ServletRequestAttributeEvent event) {\n\t\tname=event.getName();\r\n\t\tvalue=event.getValue();\r\n\t\tSystem.out.println(event.getServletRequest()+\"范围内添加了名为\"+name+\",值为\"+value+\"的属性!\");\r\n\t}", "static void addEventMetadata(Event event) {\n event.setSessionId(AssociationController.getSessionId());\n event.setAppInstallId(Prefs.INSTANCE.getAppInstallId());\n event.setDt(DateUtil.iso8601DateFormat(new Date()));\n }", "public void evel_thresholdcross_addl_info_add(String name, String value)\r\n\t{\r\n\t String[] addl_info = null;\r\n\t EVEL_ENTER();\r\n\r\n\t /***************************************************************************/\r\n\t /* Check preconditions. */\r\n\t /***************************************************************************/\r\n\t assert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t assert(name != null);\r\n\t assert(value != null);\r\n\t \r\n\t if( additional_info == null )\r\n\t {\r\n\t\t additional_info = new ArrayList<String[]>();\r\n\t }\r\n\r\n\t LOGGER.debug(MessageFormat.format(\"Adding name={0} value={1}\", name, value));\r\n\t addl_info = new String[2];\r\n\t assert(addl_info != null);\r\n\t addl_info[0] = name;\r\n\t addl_info[1] = value;\r\n\r\n\t additional_info.add(addl_info);\r\n\r\n\t EVEL_EXIT();\r\n\t}", "public <T> Builder put(@NotNull String name, @NotNull T value) {\n event.put(name, value);\n return this;\n }", "public void addContextData( String key,\n String value );", "x0401.oecdStandardAuditFileTaxPT1.CustomsDetails addNewCustomsDetails();", "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "@Override\n\tpublic void addDetails(String details) {\n\t\tthis.details = details;\n\t}", "public void add(String name, T val) {\n\t\tnvPairs.add(name);\n\t\tnvPairs.add(val);\n\t}", "private void addMetadataByString(Metadata metadata, String name, String value) {\n if (value != null) {\n metadata.add(name, value);\n }\n }", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void addAttribute(String name, String value) {\n\t\t\t\n\t\t}", "void addTag(String name, String value);", "public void setEventName(String name);", "public int addNameValue (String sName, String sValue)\n\t{\n\t\tif(m_Fields.containsKey(sName)) \n\t\t{\n\t\t\tif(m_Fields.get(sName).compareTo(sValue) == 0)\n\t\t\t{\n\t\t\t\t// TimeCollide-NoChange\n\t\t\t\t// Silently discard\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telse \n\t\t\t{\t// TimeCollide-Change\t\t\n //DebugLogger.theLogger.logInfo_Warning(\" Populating an EventDataUpdate that already has the field (\" + sName + \"), replacing value\");\n //DebugLogger.theLogger.logInfo_Warning(\" Old value is \" + m_Fields.get(sName) + \" vs. \" + sValue);\n //DebugLogger.theLogger.logInfo_Warning(\" t=\" + getTime() + \" Object = \" + getObject().getName());\n\t\t\t\treturn -1;\n\t\t\t}\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Consolidation\n\t\t\tm_Fields.put(sName, sValue);\n\t\t\treturn 1;\n\t\t}\n\t}", "public void addOtherInfo(String key, Object value) {\n this.otherInfo.put(key, value);\n }", "public Builder addInfo(KeyValuePair value) {\n if (infoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInfoIsMutable();\n info_.add(value);\n onChanged();\n } else {\n infoBuilder_.addMessage(value);\n }\n return this;\n }", "public void createEvent(Event e) {\n\t\tLocalDate date = e.sDate;\n\t\tif(!map.containsKey(date)) {\n\t\t\tArrayList<Event> newList = new ArrayList<>();\n\t\t\tnewList.add(e);\n\t\t\tmap.put(date, newList);\n\t\t}\n\t\telse {\n\t\t\tmap.get(date).add(e);\n\n\t\t}\n\t}", "public abstract void addParameter(String key, Object value);", "private void storeEventAttributes(EventGVO event, UIObject sender, String listenerType, String appId,\n String windowId, String eventSessionId) {\n String srcId = getComponentId(sender);\n String srcName = getComponentName(sender);\n Object srcValue = getComponentValue(sender, appId, windowId, srcId);\n String srcListener = listenerType;\n\n storeData(eventSessionId, event.getSourceId(), srcId);\n storeData(eventSessionId, event.getSourceName(), srcName);\n storeData(eventSessionId, event.getSourceValue(), srcValue);\n storeData(eventSessionId, event.getSourceListenerType(), srcListener);\n }", "public void addKeyValue(String apiName, Object value)\n\t{\n\t\t this.keyValues.put(apiName, value);\n\n\t\t this.keyModified.put(apiName, 1);\n\n\t}", "Builder addRecordedAt(Event value);", "@JsonSetter(\"event\")\r\n public void setEvent (String value) { \r\n this.event = value;\r\n }", "@Override //to be moved to Cloud service\r\n\tpublic void createEvent(String eventName) {\n\t\t\r\n\t}", "private void addNewMember(Event x) {\r\n \r\n \r\n \r\n }", "public abstract void addDetails();", "public void add(String headerName, String headerValue)\r\n/* 342: */ {\r\n/* 343:509 */ List<String> headerValues = (List)this.headers.get(headerName);\r\n/* 344:510 */ if (headerValues == null)\r\n/* 345: */ {\r\n/* 346:511 */ headerValues = new LinkedList();\r\n/* 347:512 */ this.headers.put(headerName, headerValues);\r\n/* 348: */ }\r\n/* 349:514 */ headerValues.add(headerValue);\r\n/* 350: */ }", "public void addEntry(EventDataEntry entry) {\r\n eventFields.add(entry);\r\n }", "private void addData() {\n Details d1 = new Details(\"Arpitha\", \"+91-9448907664\", \"25/05/1997\");\n Details d2 = new Details(\"Abhijith\", \"+91-993602342\", \"05/10/1992\");\n details.add(d1);\n details.add(d2);\n }", "private void populateSpecialEvent() {\n try {\n vecSpecialEventKeys = new Vector();\n vecSpecialEventLabels = new Vector();\n StringTokenizer stk = null;\n //MSB -09/01/05 -- Changed configuration file and Keys\n // config = new ConfigMgr(\"customer.cfg\");\n // String strSubTypes = config.getString(\"SPECIAL_EVENT_TYPES\");\n// config = new ConfigMgr(\"ArmaniCommon.cfg\");\n config = new ArmConfigLoader();\n String strSubTypes = config.getString(\"SPECIAL_EVT_TYPE\");\n int i = -1;\n if (strSubTypes != null && strSubTypes.trim().length() > 0) {\n stk = new StringTokenizer(strSubTypes, \",\");\n } else\n return;\n types = new String[stk.countTokens()];\n while (stk.hasMoreTokens()) {\n types[++i] = stk.nextToken();\n String key = config.getString(types[i] + \".CODE\");\n vecSpecialEventKeys.add(key);\n String value = config.getString(types[i] + \".LABEL\");\n vecSpecialEventLabels.add(value);\n }\n cbxSpcEvt.setModel(new DefaultComboBoxModel(vecSpecialEventLabels));\n } catch (Exception e) {}\n }", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType addNewGeneralName();", "public String getEventInfo()\n {\n return \"Event ID: \" + this.hashCode() + \" | Recorded User\\n\" + String.format(\"\\tName %s \\n\\tDate of Birth %s \\n\\tEmail %s \\n\\tContact Number %s \\n\\tAge %d \\nDate %s \\nTime %s \\nParty Size %d \\nEstablishment \\n\\tName: %s \\n\\tAddress: %s\",\n user.getName(), user.getDateOfBirthAsString(), user.getEmail(), user.getPhoneNumber(), \n user.getAge(), getEventDateAsString(), getEventTimeAsString(), partyNumber, establishment.getName(), establishment.getAddress());\n }", "public void addData(String dataName, Object dataItem){\r\n this.mData.put(dataName, dataItem);\r\n }", "Builder addName(Text value);", "protected void configEvent(String[] aKey) {}", "Builder addRecordedAt(Event.Builder value);", "public void addField(String key, Object value) {\n\t\tput(key, value);\n\t}", "public EventParameter(String key, int value) {\n this.key = key;\n this.value = value;\n this.summary = \"\";\n this.valueDescription = \"\";\n }", "Builder addName(String value);", "@Override\n public void eventList(ArrayList<EventModel> eventList) {\n for (int i = 0; i < eventList.size(); i++) {\n //Log.e(\"tag\", \"eventList.getStrName:-\" + eventList.get(i).getStrName());\n }\n\n }", "private JSONObject addMetadataField(String field, String value, JSONObject metadataFields) throws JSONException{\n\t\tif (value != null && value != \"\"){\n\t\t\tmetadataFields.put(field, value);\n\t\t} return metadataFields;\n\t}", "public RecordObject addEvent(String token, Object record) throws RestResponseException;", "public void addData(KeyValuePair<Key, Value> newData) {\r\n\t\t\taddData(newData.getKey(), newData.getValue());\r\n\t\t}", "@Override\n public void put(String name, Object value) {\n emulatedFields.put(name, value);\n }", "public ModelMessage addName(String key, String value) {\n super.addName(key, value);\n return this;\n }", "public Event(String description, String info) {\n super(description);\n this.details = new Date(info);\n this.info = info.trim();\n }", "Builder addReleasedEvent(String value);", "private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }", "public void addProperty(String key, String value);", "public void addEvent(String eventString) {\n String eventInfo[] = eventString.split(\",\");\n if (eventInfo[EVENT_TYPE_POS_IN_EVENT_STRING].equals(DelayEvent.DELAY_EVENT)) {\n int delay = Integer.parseInt(eventInfo[DELAY_POS_IN_EVENT_STRING]);\n events.add(new DelayEvent(delay));\n } else {\n int spawnNumber = Integer.parseInt(eventInfo[SLICER_NUMBER_POS_IN_EVENT_STRING]);\n String slicerType = eventInfo[SLICER_TYPE_POS_IN_EVENT_STRING];\n int spawnDelay = Integer.parseInt(eventInfo[SPAWN_DELAY_IN_EVENT_STRING]);\n events.add(new SpawnEvent(spawnNumber, slicerType, spawnDelay));\n }\n }", "public Builder addInfo(\n int index, KeyValuePair value) {\n if (infoBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureInfoIsMutable();\n info_.add(index, value);\n onChanged();\n } else {\n infoBuilder_.addMessage(index, value);\n }\n return this;\n }", "@Override\n\tpublic void addHeader(String name, String value) {\n\t}", "public void Print_event_value(String v)\n {\n\n System.out.println(v + \": \" + event_value);\n }", "public Map<String, Object> toMap(){\n Map<String, Object> newEvent = new HashMap<>();\n newEvent.put(\"uid\", getUid());\n newEvent.put(\"name\", getName());\n newEvent.put(\"host\", getHost());\n newEvent.put(\"hostContribution\", isHostContribution());\n newEvent.put(\"startTime\", getEpochTime());\n newEvent.put(\"location\", getLocation());\n newEvent.put(\"description\", getDescription());\n newEvent.put(\"coverImageUrl\", getCoverImageUrl());\n newEvent.put(\"amountNeeded\", getAmountNeeded());\n return newEvent;\n }", "@Override\n void postValueWrite(SerializerElem e, String key) {\n\n }", "public void addCust(Event temp){\n eventLine.add(temp);\n }", "public void addNVPair(final String key, final String value,\n final AppLoggingNVPairs appLoggingNVPairs)\n {\n // check key and value are not null\n if (key != null && key.length() > 0 && value != null && value.length() > 0) {\n\n // Add the pair passed in. Check the type and call the corresponding\n // AppLoggingNVPairs function\n appLoggingNVPairs.addPair(key, value);\n\n }\n\n }", "public void addProperty(String key,\n Object value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, value.toString());\n }", "void addHeader(String headerName, String headerValue);", "public void setNewValues_description(java.lang.String param){\n localNewValues_descriptionTracker = true;\n \n this.localNewValues_description=param;\n \n\n }", "public void addParameter(String key, Object value) {\n try {\n jsonParam.put(key, value);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }", "public void addEvent()\n throws StringIndexOutOfBoundsException, ArrayIndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n String taskDescription = userIn.split(EVENT_IDENTIFIER)[DESCRIPTION].substring(EVENT_HEADER);\n String timing = userIn.split(EVENT_IDENTIFIER)[TIMING];\n Event event = new Event(taskDescription, timing);\n tasks.add(event);\n storage.writeToFile(event);\n ui.echoUserInput(event, tasks.taskIndex);\n } catch (StringIndexOutOfBoundsException e) {\n ui.printStringIndexOOB();\n } catch (ArrayIndexOutOfBoundsException e) {\n ui.printArrayIndexOOB();\n }\n System.out.println(LINEBAR);\n }", "void add( Map< String, Object > paramMap );", "private JSONObject eventToJson() {\n JSONObject json = new JSONObject();\n json.put(\"eventName\", event.getName());\n json.put(\"num\", event.getNum());\n return json;\n }", "public void addProperty(String s, Object o) {\n }", "public void addProperty(String s, Object o) {\n }", "private String makeEventSummary(String name) {\n return \"SUMMARY:\" + name + \"\\n\";\n }", "Builder addProperty(String name, String value);", "public void addRequestProperty(String paramString1, String paramString2) {\n/* 310 */ this.delegate.addRequestProperty(paramString1, paramString2);\n/* */ }", "@Override\n\tpublic String onData() {\n\t\tMap<String, Object> mapObj = new HashMap<String, Object>();\n\t\tfor (BasicNameValuePair pair : pairs) {\n\t\t\tmapObj.put(pair.getName(), pair.getValue());\n\t\t}\n\t\tGson gson = new Gson();\n\t\tString json = gson.toJson(mapObj);\n\t\treturn json;\n\t}", "@Override\r\n\tpublic void addAttr(String name, String value) {\n\t}", "Builder addAbout(String value);", "@Override\n\tpublic void addProperty(String name) {\n\t}", "@Whitelisted\n public void createOrUpdateInfo(String name, Object value, String type, String desc) {\n deleteInfo(name, type);\n appendInfo(name, value, type, desc);\n }", "public void SimAdded(AddSimEvento event);", "Builder addLocationCreated(String value);", "public void attributeAdded(HttpSessionBindingEvent arg0) {\n System.out.println(\"HttpSessionAttributeListener--attributeAdded--名:\"+arg0.getName()+\"--值:\"+arg0.getValue()); \r\n }", "void put(String name, Object value);", "public void addParameterToLink(String name, String value) {\n \t\tparameterName.add(name);\n \t\tparameterValue.add(value);\n \t}", "public Map<String, Object> editEvent(String mode);", "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();", "<E extends CtElement> E putMetadata(String key, Object val);", "protected void addInfo(AeExpressionValidationResult aResult, String aMessage, Object[] aArgs) {\r\n String msg = MessageFormat.format(aMessage, aArgs);\r\n aResult.addInfo(msg);\r\n }", "void addSetupEvent(SetupEvent setupEvent);", "public void addProperty(String pair) {\n String[] kv = pair.split(\"=\");\n if (kv.length == 2) {\n properties.put(kv[0], kv[1]);\n } else {\n throw new IllegalArgumentException(\"Property must be defined as key=value, not: \" + pair);\n }\n }", "public void insertInto(final Table table, final String keyValue, final String eiffelevent)\n throws SQLException, ConnectException {\n String sqlInsertStatement = String.format(\"INSERT INTO %s(%s,%s) VALUES(?,?)\", table, EVENT_ID_KEY,\n table.keyName);\n executeUpdate(sqlInsertStatement, keyValue, eiffelevent);\n\n }", "public void addExtraHeader(final String name, final String value) {\n extraHeaders.put(name, value);\n }", "public void addField(String fieldName, String fieldValue) {\r\n\t\tfieldNames.add(fieldName);\r\n\t\tfieldValues.add(fieldValue);\r\n\t}", "public void addName(NameRecord record)\n\t{\n\t\t// add code to add record to the graphArray \n\t\t// and call repaint() to update the graph\n\t}", "public void addEvPEC(Event ev);", "public String Get_event_value() \n {\n\n return event_value;\n }", "public void setDetails(String details) {\n Errors e = Errors.getInstance();\n if (details.length() > 50) {\n e.setError(\"Event details cannot be over 50 characters long\");\n }\n else\n this.details = details;\n }", "@Override\n\tpublic void builder(String name, Object value)\n\t{\n\t\tthis._data.put( name, this.preprocessObject(value));\n\t}", "public void addEvent(Event event) {\n\t\t\n\t}", "void register(String name, K key, V value);", "public void addHeader(String name,String value)\n\t{\n\t\tmAdditionalHttpHeaders.put(name, value);\n\t}", "protected void addFieldToMap(Map<String, Object> fldNames2ValsMap, String ixFldName, String fieldVal)\n {\n addFieldToMap(fldNames2ValsMap, ixFldName, null, fieldVal);\n }" ]
[ "0.65960693", "0.61458904", "0.58893806", "0.5787692", "0.5635829", "0.5620295", "0.55807793", "0.55574703", "0.55380136", "0.55043375", "0.5500699", "0.54803103", "0.5451235", "0.5447572", "0.5447572", "0.5441413", "0.54269433", "0.54255074", "0.54157317", "0.5408287", "0.5407579", "0.5385352", "0.5377596", "0.53530556", "0.53476024", "0.5344546", "0.53326315", "0.5311433", "0.5305135", "0.53032005", "0.52908665", "0.52828395", "0.52631396", "0.52592397", "0.52444994", "0.52302504", "0.52283883", "0.52257377", "0.5223459", "0.5221768", "0.5218297", "0.5216352", "0.52148473", "0.51893175", "0.5187423", "0.5185867", "0.5181958", "0.5174136", "0.5172093", "0.51414955", "0.51299506", "0.5126505", "0.51170534", "0.51161605", "0.51076496", "0.50974745", "0.5081615", "0.50732625", "0.5071174", "0.50576085", "0.50496566", "0.50448537", "0.50446343", "0.50438964", "0.504183", "0.5039847", "0.5025511", "0.50233954", "0.50233954", "0.50171196", "0.50143236", "0.5000912", "0.4994983", "0.49923974", "0.49900824", "0.4981392", "0.49630642", "0.49629432", "0.49582228", "0.4957029", "0.4956466", "0.49550074", "0.49513686", "0.49489743", "0.49481064", "0.49454668", "0.49452856", "0.4942159", "0.49398366", "0.49365127", "0.49303788", "0.49299198", "0.49295092", "0.49245095", "0.49207705", "0.49205986", "0.49199855", "0.49164778", "0.491375", "0.4913061" ]
0.7324778
0
This method adds two AppLog Info entries to the provided AppLoggingNVPairs. First is the time difference in seconds between current time and the provided startTime value. Second is the processing server name.
protected AppLoggingNVPairs addTimingAndMachineApplogInfo( AppLoggingNVPairs appLogPairs, long startTime) { // Processing time if (startTime > 0) { long endTime = System.currentTimeMillis(); double totalTime = ((endTime - startTime) / 1000.0); appLogPairs.addInfo("TotalProcessingTimeSecs", String.valueOf(totalTime)); } // Machine Name/Server Name String machineInfo = AppUtilities.buildServerName(); if (machineInfo != null && machineInfo.length() > 0) { appLogPairs.addInfo("ProcessingMachineInfo", machineInfo); } return appLogPairs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNVPair(final String key, final String value,\n final AppLoggingNVPairs appLoggingNVPairs)\n {\n // check key and value are not null\n if (key != null && key.length() > 0 && value != null && value.length() > 0) {\n\n // Add the pair passed in. Check the type and call the corresponding\n // AppLoggingNVPairs function\n appLoggingNVPairs.addPair(key, value);\n\n }\n\n }", "public void addLog(Timestamp startTime, Element requester, int instrumentId,\n\t\t\tint tickref, int lookupKey, int arg, Element responder, LkuResult resultCode,\n\t\t\tfloat data, int lookupTime) {\n\t\t\n\t\tLkuAuditLog log = new LkuAuditLog(startTime, requester, instrumentId, tickref,\n\t\t\t\tlookupKey, arg, responder, lookupTime, resultCode, data);\n\t\taddLog(log);\t\t\n\t}", "public void testParseLoggingWithApplicationTime() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset3.txt\");\n GcManager gcManager = new GcManager();\n gcManager.store(testFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Max young space not calculated correctly.\", 1100288, jvmRun.getMaxYoungSpace());\n Assert.assertEquals(\"Max old space not calculated correctly.\", 1100288, jvmRun.getMaxOldSpace());\n Assert.assertEquals(\"NewRatio not calculated correctly.\", 1, jvmRun.getNewRatio());\n Assert.assertEquals(\"Event count not correct.\", 3, jvmRun.getEventTypes().size());\n Assert.assertFalse(JdkUtil.LogEventType.UNKNOWN.toString() + \" collector identified.\",\n jvmRun.getEventTypes().contains(LogEventType.UNKNOWN));\n Assert.assertEquals(\"Should not be any unidentified log lines.\", 0, jvmRun.getUnidentifiedLogLines().size());\n Assert.assertTrue(\"Log line not recognized as \" + JdkUtil.LogEventType.PAR_NEW.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.PAR_NEW));\n Assert.assertTrue(\n \"Log line not recognized as \" + JdkUtil.LogEventType.APPLICATION_STOPPED_TIME.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.APPLICATION_STOPPED_TIME));\n Assert.assertTrue(Analysis.INFO_NEW_RATIO_INVERTED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.INFO_NEW_RATIO_INVERTED));\n }", "Response<Void> logApplicationStart(String uniqueIdentifier);", "void addLog(String beforeChange, String afterChange, String time) {\r\n ArrayList<String> logItem = new ArrayList<>();\r\n logItem.add(beforeChange);\r\n logItem.add(afterChange);\r\n logItem.add(time);\r\n allLogs.add(logItem);\r\n writeToFile(\"Save.bin\",allLogs);\r\n }", "public static /*synchronized*/ void addNNResultLog(String queryId, long start, long end, String resultId){\n\t\tQUERY_COUNT++;\n\t\tLOG.appendln(\"Query \" + queryId + \": returned \" + resultId + \" in \" + (end-start) + \" ms.\");\n\t\tLOG.appendln(\"Query ends at: \" + end + \" ms.\");\n\t}", "public synchronized void startUploadToS3Server() {\n\t\t LogEntry [] logEntrys = null;\n\t\t\ttry {\n if(ReportService.ACTION_UPLOAD_UB_LOG.equals(action)) {\n if (tags == null || times == null || zipEntryNames == null || \n tags.length != times.length || tags.length != zipEntryNames.length || \n zipEntryNames.length != tags.length || !isZipEntryNameAllowed(zipEntryNames)) {\n Log.d(TAG, \"Stop uploading UB log --> tags array or times array or zip entry array isn't allowed.\");\n return;\n }\n if(Common.DEBUG && tags != null && times != null && tags.length == times.length) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[UB Report] Ready to upload --> \");\n for(int i=0; i<tags.length; i++) {\n sb.append(\"tag: \").append(tags[i]).append(\", time: \").append(times[i]).append(\" \");\n }\n Log.d(TAG,sb.toString());\n }\n logEntrys = new LogEntry[tags.length];\n for(int i=0; i<tags.length; i++)\n logEntrys[i] = new LogEntry(tags[i], times[i], getContext(), key, iv);\n }\n else {\n logEntrys = new LogEntry[1];\n \t\t\t\tif(file != null)\n \t\t\t\t logEntrys[0] = new LogEntry(file, getContext());\n \t\t\t\telse if (fromDropBox)\n \t\t\t\t logEntrys[0] = new LogEntry(tag, time, getContext(), key, iv);\n \t\t\t\tzipEntryNames = new String [1];\n \t\t\t\tzipEntryNames[0] = \"Logfile\";\n }\n \n upload(tag, msg, position, mUniqueMsg, logEntrys, zipEntryNames, triggerType, packageName, processName);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Fail to create LogEntry\", e);\n\t\t\t} finally {\n\t\t\t if(logEntrys != null) {\n for(LogEntry logEntry : logEntrys)\n logEntry.closeEntry();\n\t\t\t }\n\t\t\t}\n\t }", "public void syncLogsAccordingly( ){\n Log.d(TAG, \"Syncing Logs to Log panel\");\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully \");\n HyperLog.deleteLogs();\n onSync.onSyncSuccess(\"\"+AtsConstants.SYNC_EXISTING_LOGS);\n }else{\n Log.e(TAG, \"Logs Not synced from server got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n }", "private static void seTimeStamps() {\n MDC.put(MDC_INSTANCE_UUID, \"\");\n MDC.put(MDC_ALERT_SEVERITY, \"\");\n\n var startTime = Instant.now();\n var endTime = Instant.now();\n\n seTimeStamps(startTime, endTime);\n\n MDC.put(PARTNER_NAME, \"N/A\");\n\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n MDC.put(RESPONSE_CODE, \"N/A\");\n MDC.put(RESPONSE_DESCRIPTION, \"N/A\");\n\n }", "public void log(String info, String originUrl, String middleUrl, String thumbnailUrl, UrlType urlType){\n \t Intent intent = new Intent();\n intent.setAction(TVActivityLogger.action);\n intent.putExtra(\"info\", info);\n intent.putExtra(\"originUrl\", originUrl); // http://.....\n intent.putExtra(\"middleUrl\", middleUrl); // http://....\n intent.putExtra(\"thumbnailUrl\", thumbnailUrl); // http://....\n intent.putExtra(\"urlType\", urlType.toString().toLowerCase() ); // pic or aud or vid or mp3\n intent.putExtra(\"logDate\", new Date().toString()); // ??toString\n this.context.sendBroadcast(intent);\n }", "void print_statistics(long tot_arrived, long tot_processed, Double end_time){\n\n CloudEvent cloudEvent = new CloudEvent();\n CloudletEvent cletEvent = new CloudletEvent();\n PrintFile print = new PrintFile();\n\n\n // System response time & throughput\n\n float system_response_time = (float)(sum_service_times1_clet+ sum_service_times1_cloud + sum_service_times2_clet+ sum_service_times2_cloud)/ tot_processed;\n float response_time_class1 = (float) ((sum_service_times1_clet+ sum_service_times1_cloud)/ (completition_clet_type1 + completition_cloud_type1));\n float response_time_class2 = (float) ((sum_service_times2_clet+ sum_service_times2_cloud)/ (completition_clet_type2 + completition_cloud_type2));\n\n float lambda_tot = (float) (tot_arrived/end_time);\n float lambda_1 = (float)((arrival_type1_clet+arrival_type1_cloud)/end_time);\n float lambda_2 = (float)((arrival_type2_clet+arrival_type2_cloud)/end_time);\n\n\n // per-class effective cloudlet throughput\n\n float task_rate_clet1 = (float) ((float)completition_clet_type1 / end_time);\n float task_rate_clet2 = (float) ((float)completition_clet_type2 / end_time);\n\n\n // per-class cloud throughput\n\n float lambda_cloud1 = (float) ((arrival_type1_cloud)/end_time);\n float lambda_cloud2 = (float) ((arrival_type2_cloud)/end_time);\n\n\n // class response time and mean population\n\n float response_time_cloudlet = (float) (sum_service_times1_clet+ sum_service_times2_clet)/ (completition_clet_type1 + completition_clet_type2);\n float response_time_cloudlet1 = (float) sum_service_times1_clet/ completition_clet_type1;\n float response_time_cloudlet2 = (float) (sum_service_times2_clet/ completition_clet_type2);\n\n float response_time_cloud = (float) ((sum_service_times1_cloud+ sum_service_times2_cloud)/ (completition_cloud_type1 + completition_cloud_type2));\n float response_time_cloud1 = (float) (sum_service_times1_cloud/ completition_cloud_type1);\n float response_time_cloud2 = (float) (sum_service_times2_cloud/ completition_cloud_type2);\n\n // E[N] cloudlet\n float mean_cloudlet_jobs = cletEvent.mean_cloudlet_jobs_number();\n // E[N] class 1 cloudlet\n float mean_cloudlet_jobs1 = cletEvent.mean_cloudlet_jobs_number1();\n // E[N] class 2 cloudlet\n float mean_cloudlet_jobs2 = cletEvent.mean_cloudlet_jobs_number2();\n\n // E[N] cloud\n float mean_cloud_jobs = cloudEvent.mean_cloud_jobs_number();\n // E[N] class 1 cloud\n float mean_cloud_jobs1 = cloudEvent.mean_cloud_jobs_number1();\n // E[N] class 2 cloud\n float mean_cloud_jobs2 = cloudEvent.mean_cloud_jobs_number2();\n\n\n // Altre statistiche di interesse\n\n float lambda_clet = (float) ((arrival_type1_clet+ arrival_type2_clet)/end_time);\n float lambda_clet1 = (float) ((arrival_type1_clet)/end_time);\n float lambda_clet2 = (float) ((arrival_type2_clet)/end_time);\n float lambda_cloud = (float) ((arrival_type1_cloud+ arrival_type2_cloud)/end_time);\n\n double rate1_clet = mean_cloudlet_jobs1*0.45;\n double rate2_clet = mean_cloudlet_jobs2*0.27;\n\n\n\n NumberFormat numForm = NumberFormat.getInstance();\n numForm.setMinimumFractionDigits(6);\n numForm.setMaximumFractionDigits(6);\n numForm.setRoundingMode(RoundingMode.HALF_EVEN);\n\n\n System.out.println(\"\\n\\n\\n 1) SYSTEM RESPONSE TIME & THROUGHPUT \" + \"(GLOBAL & PER-CLASS)\");\n\n System.out.println(\"\\n Global System response time ...... = \" + numForm.format( system_response_time));\n System.out.println(\" Response time class 1 ...... = \" + numForm.format( response_time_class1));\n System.out.println(\" Response time class 2 ...... = \" + numForm.format( response_time_class2));\n\n System.out.println(\"\\n Global System throughput ...... = \" + numForm.format( lambda_tot));\n System.out.println(\" Throughput class 1 ...... = \" + numForm.format( lambda_1));\n System.out.println(\" Throughput class 2 ...... = \" + numForm.format( lambda_2));\n\n\n System.out.println(\"\\n\\n\\n 2) PER_CLASS EFFECTIVE CLOUDLET THROUGHPUT \");\n System.out.println(\" Task-rate cloudlet class 1 ...... = \" + numForm.format( rate1_clet));\n System.out.println(\" Task-rate cloudlet class 2 ...... = \" + numForm.format( rate2_clet));\n\n\n System.out.println(\"\\n\\n\\n 3) PER_CLASS CLOUD THROUGHPUT \");\n System.out.println(\" Throughput cloud class 1 ...... = \" + numForm.format( lambda_cloud1));\n System.out.println(\" Throughput cloud class 2 ...... = \" + numForm.format( lambda_cloud2));\n\n\n System.out.println(\"\\n\\n\\n 4) CLASS RESPONSE TIME & MEAN POPULATION \" + \"(CLOUDLET & CLOUD)\");\n\n System.out.println(\"\\n Response Time class 1 cloudlet ...... = \" + numForm.format( response_time_cloudlet1));\n System.out.println(\" Response Time class 2 cloudlet ...... = \" + numForm.format(response_time_cloudlet2));\n System.out.println(\" Response Time class 1 cloud ...... = \" + numForm.format( response_time_cloud1));\n System.out.println(\" Response Time class 2 cloud ...... = \" + numForm.format( response_time_cloud2));\n\n System.out.println(\"\\n Mean Population class 1 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs1));\n System.out.println(\" Mean Population class 2 cloudlet ...... = \" + numForm.format( mean_cloudlet_jobs2));\n System.out.println(\" Mean Population class 1 cloud ...... = \" + numForm.format( mean_cloud_jobs1));\n System.out.println(\" Mean Population class 2 cloud ...... = \" + numForm.format( mean_cloud_jobs2));\n\n }", "public TreeMap<String, Integer[]> generateAppCategory(Date startDate, Date endDate) {\n\n //Total Usage Time for each appid\n TreeMap<Integer, Double> appResult = new TreeMap<Integer, Double>();\n //Total Usage Time for each category\n TreeMap<String, Double> result = new TreeMap<String, Double>();\n //Total Usage Time and Percent for each category\n TreeMap<String, Integer[]> toResult = new TreeMap<String, Integer[]>();\n\n AppUsageDAO auDAO = new AppUsageDAO();\n ArrayList<User> userList = new ArrayList<User>();\n\n userList = auDAO.retrieveUsers(startDate, endDate);\n for (int i = 0; i < userList.size(); i++) {\n\n User currUser = userList.get(i);\n ArrayList<AppUsage> userUsage = auDAO.retrieveByUser(currUser.getMacAddress(), startDate, endDate);\n Date nextDay = new Date(startDate.getTime() + 60 * 60 * 1000 * 24);\n\n Date oldTime = null;\n if (userUsage.size() > 0) {\n oldTime = userUsage.get(0).getDate();\n if (oldTime.after(nextDay)) {\n nextDay = new Date(nextDay.getTime() + 60 * 60 * 1000 * 24);\n }\n }\n\n for (int j = 1; j < userUsage.size(); j++) {\n AppUsage au = userUsage.get(j);\n Date newTime = au.getDate();\n\n //store oldTime appId\n int appId = userUsage.get(j - 1).getAppId();\n boolean beforeAppeared = false;\n if (newTime.before(nextDay)) {\n beforeAppeared = true;\n\n //difference = usage time of the oldTime appId\n double difference = Utility.secondsBetweenDates(oldTime, newTime);\n\n //If difference less than/equal 2 minutes\n if (difference <= 2 * 60) {\n // add time to the appId\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + difference));\n } else {\n appResult.put(appId, difference);\n }\n\n } else {\n // add 10sec to appid if > 2 mins\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + 10));\n } else {\n appResult.put(appId, 10.0);\n }\n\n }\n\n } else {\n nextDay = new Date(nextDay.getTime() + 60 * 60 * 1000 * 24);\n\n if (!beforeAppeared) {\n double diff = Utility.secondsBetweenDates(oldTime, newTime);\n //add time to the appid\n if (diff <= 2 * 60) {\n // add time to the appId\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + diff));\n } else {\n appResult.put(appId, diff);\n }\n\n } else {\n // add 10sec to appid if > 2 mins\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + 10));\n } else {\n appResult.put(appId, 10.0);\n }\n\n }\n }\n\n }\n\n oldTime = newTime;\n\n }\n\n //get the appId of the last user usage\n int lastAppId = userUsage.get(userUsage.size() - 1).getAppId();\n\n if (oldTime.before(nextDay)) {\n double difference = Utility.secondsBetweenDates(oldTime, nextDay);\n //add the time difference to last appId\n if (difference < 10) {\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + difference));\n } else {\n appResult.put(lastAppId, difference);\n }\n } else {\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + 10));\n } else {\n appResult.put(lastAppId, 10.0);\n }\n }\n } else {\n\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + 10));\n } else {\n appResult.put(lastAppId, 10.0);\n }\n\n }\n\n //DIVIDE TO GET INTO DAYS\n long days = Utility.daysBetweenDates(startDate, endDate);\n\n AppDAO app = new AppDAO();\n\n //Retrieve appid in each category\n TreeMap<String, ArrayList<Integer>> appCategoryList = app.retrieveByCategory();\n Iterator<String> iter = appCategoryList.keySet().iterator();\n double totTime = 0.0;\n //Sum the total time by category\n while (iter.hasNext()) {\n String key = iter.next();\n //EACH CATEGORY\n ArrayList<Integer> innerList = appCategoryList.get(key);\n double totCatTime = 0.0;\n for (int j = 0; j < innerList.size(); j++) {\n int appid = innerList.get(j);\n double timePerApp = 0.0;\n\n if (appResult.containsKey(appid)) {\n timePerApp = appResult.get(appid);\n\n }\n totCatTime += timePerApp;\n }\n\n double avgCatTime = totCatTime / days;\n\n totTime += avgCatTime;\n result.put(key, avgCatTime);\n }\n\n Iterator<String> iterator = result.keySet().iterator();\n //Calculate the percentage for each category\n while (iterator.hasNext()) {\n\n String name = iterator.next();\n double duration = result.get(name);\n double percent = (duration / totTime) * 100;\n Integer[] arrToReturn = new Integer[2];\n\n arrToReturn[0] = Integer.valueOf(Math.round(duration) + \"\");\n arrToReturn[1] = Integer.valueOf(Math.round(percent) + \"\");\n toResult.put(name, arrToReturn);\n\n }\n\n }\n ArrayList<String> catList = Utility.retrieveCategories();\n\n for (String cat : catList) {\n if (!toResult.containsKey(cat)) {\n Integer[] arrToReturn = new Integer[2];\n arrToReturn[0] = 0;\n arrToReturn[1] = 0;\n toResult.put(cat, arrToReturn);\n }\n }\n return toResult;\n }", "private void addAnalysisTimestamp()\r\n throws XMLStreamException\r\n {\r\n SimpleStartElement start;\r\n SimpleEndElement end;\r\n\r\n addNewline();\r\n\r\n start = new SimpleStartElement(\"analysis_timestamp\");\r\n start.addAttribute(\"analysis\", mimicXpress ? \"xpress\" : \"q3\");\r\n start.addAttribute(\"time\", now);\r\n start.addAttribute(\"id\", \"1\");\r\n add(start);\r\n\r\n addNewline();\r\n\r\n if (mimicXpress)\r\n {\r\n start = new SimpleStartElement(\"xpressratio_timestamp\");\r\n start.addAttribute(\"xpress_light\", \"0\");\r\n add(start);\r\n\r\n end = new SimpleEndElement(\"xpressratio_timestamp\");\r\n add(end);\r\n\r\n addNewline();\r\n }\r\n\r\n end = new SimpleEndElement(\"analysis_timestamp\");\r\n add(end);\r\n }", "public void onMonitor(double timestamp, double startTime){\n\t\n\t\tif(timestamp < startTime) {\n\t\t\t//don't start lagging before the start time\n\t\t\t//clear the logs\n\t\t\tlog.clear(); \n\t\t\treturn;\n\t\t}\n\n\t\t//count the number of waiting requests\n\t\tdouble w = 0;\n\t\tfor(Request r: queue){\n\t\t\tif(r.isWaiting()) w++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Monitor Event at time:\" + timestamp);\n\t\tSystem.out.println(\"---------------------\");\n\t\tdouble[] qAndW = new double[2];\n\t\tqAndW[0] = queue.size();\n\t\tqAndW[1] = w;\n\t\t\n\t\tQandW.add(qAndW);\n\t\t\t\t\n\t}", "private void recordPushLog(String configName) {\n PushLog pushLog = new PushLog();\n pushLog.setAppId(client.getAppId());\n pushLog.setConfig(configName);\n pushLog.setClient(IP4s.intToIp(client.getIp()) + \":\" + client.getPid());\n pushLog.setServer(serverHost.get());\n pushLog.setCtime(new Date());\n pushLogService.add(pushLog);\n }", "public void insertIntoParaList(Integer _taskID,Integer _optID, String _tupleTag, String _taskType, String _info1, String _info2, String _destIP,\r\n String _port,String _location, long _timestamp, Object _appSpecific) {\r\n \r\n List entry = new ArrayList();\r\n entry.add(_optID);\r\n entry.add(_tupleTag);\r\n entry.add(_taskType);\r\n entry.add(_info1);\r\n entry.add(_info2);\r\n entry.add(_destIP);\r\n entry.add(_port);\r\n entry.add(_location);\r\n entry.add(_timestamp); \r\n entry.add(_appSpecific);\r\n synchronized (lock) {\r\n paramList.put(_taskID, entry);\r\n } \r\n //System.out.println(\"Parameter list: \"+paramList);\r\n }", "public void addToDebug(String callingObject, String string) {\n date = java.util.Calendar.getInstance().getTime();\n String currDebugLog = (date+\" : \" +callingObject+ \" : \" + string);\n debugLog.push(currDebugLog);\n System.out.println(currDebugLog);\n }", "public void trace(long startNanoTime, long endNanoTime) {\n trace(\"{}\\t{}\", TOTAL_PROCESSING_TIME, (endNanoTime - startNanoTime) / nanosToMicros);\n }", "public synchronized void setAppLogs(\n EntityGroupFSTimelineStore.AppLogs incomingAppLogs) {\n this.appLogs = incomingAppLogs;\n }", "public void addRequestToServerLogs(HttpExchange httpExchange, long id) {\n JSONObject object = new JSONObject();\n object.put(\"path\", httpExchange.getHttpContext().getPath());\n object.put(\"client_ip\", httpExchange.getRemoteAddress().getAddress().toString());\n object.put(\"log_time\", LocalDateTime.now().toString());\n object.put(\"type\", \"request\");\n object.put(\"id\", id);\n object.put(\"log_id\", this.logId);\n ++logId;\n serverLogsArray.add(object);\n }", "public void Append(int arraySize, long startTime, long endTime, long startTime2, long endTime2) throws IOException {\n\t\tFileWriter pw = new FileWriter(\"Result.csv\", true);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tsb.append(testnum);\n\t\tsb.append(',');\n\t\tsb.append(arraySize);\n \tsb.append(',');\n \tsb.append(endTime - startTime);\n \tsb.append(',');\n \tsb.append(endTime2 - startTime2);\n \tsb.append(',');\n \tsb.append(boCount);\n \tsb.append(',');\n \tsb.append(boCount2);\n \tsb.append('\\n');\n \t\n \tpw.write(sb.toString());\n \tpw.close();\n\t}", "@Override\n\tpublic void insertRecordWithTimeRange(LiveInfoEntity liveInfo, long starttime, long endtime) {\n\n\t}", "private static void addInfo(String info){\n\tif (started) {\n\t try{\n\t\tif (verbose) {\n\t\t System.out.println(info);\n\t\t System.out.println(newLine);\n\t\t}\n\t\tfStream.writeBytes(info);\n\t\tfStream.writeBytes(newLine);\n\t }catch(IOException e){\n\t }\n\t}\n }", "private void log(String url, String headers, String body, String response, Date startTime, Date endTime) {\n\n TranslatorLog translatorLog = new TranslatorLog();\n translatorLog.setId(GeneratorKit.getUUID());\n translatorLog.setUrl(url);\n translatorLog.setHeaders(headers);\n translatorLog.setBody(body);\n translatorLog.setResponse(response);\n translatorLog.setStartTime(startTime);\n translatorLog.setEndTime(endTime);\n translatorLogMapper.insertSelective(translatorLog);\n }", "@Override\r\n\tpublic String log(String info) {\n\t\tlong id=Thread.currentThread().getId();\r\n\t\tCalcThread b=ProCalcManage.getInstance().threadIDMap.get(id);\r\n\t\tsynchronized (b.proinfo.info.log) {\r\n\t\t\tb.proinfo.info.log.add(new LogInfo(new Date(), info));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn info;\r\n\t}", "@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private ArrayList<CallLogsData> getCallLogEntry() {\n ArrayList<CallLogsData> calllogsList = new ArrayList<CallLogsData>();\n try {\n File file = new File(mParentFolderPath + File.separator + ModulePath.FOLDER_CALLLOG\n + File.separator + ModulePath.NAME_CALLLOG);\n BufferedReader buffreader = new BufferedReader(new InputStreamReader(\n new FileInputStream(file)));\n String line = null;\n CallLogsData calllogData = null;\n while ((line = buffreader.readLine()) != null) {\n if (line.startsWith(CallLogsData.BEGIN_VCALL)) {\n calllogData = new CallLogsData();\n// MyLogger.logD(CLASS_TAG,\"startsWith(BEGIN_VCALL)\");\n }\n if (line.startsWith(CallLogsData.ID)) {\n calllogData.id = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(ID) = \" +calllogData.id);\n }\n\n if (line.startsWith(CallLogsData.SIMID)) {\n calllogData.simid = Utils.slot2SimId(Integer.parseInt(getColonString(line)),\n mContext);\n }\n if (line.startsWith(CallLogsData.NEW)) {\n calllogData.new_Type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NEW) = \" +calllogData.new_Type);\n }\n if (line.startsWith(CallLogsData.TYPE)) {\n calllogData.type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(TYPE) = \" +calllogData.type);\n }\n if (line.startsWith(CallLogsData.DATE)) {\n String time = getColonString(line);\n// Date date = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\").parse(time);\n// calllogData.date = date.getTime();\n\n calllogData.date = Utils.unParseDate(time);\n\n MyLogger.logD(CLASS_TAG, \"startsWith(DATE) = \" + calllogData.date);\n }\n if (line.startsWith(CallLogsData.NAME)) {\n calllogData.name = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NAME) = \" +calllogData.name);\n }\n if (line.startsWith(CallLogsData.NUMBER)) {\n calllogData.number = getColonString(line);\n// MyLogger.logD(CLASS_TAG,\"startsWith(NUMBER) = \"+calllogData.number);\n }\n if (line.startsWith(CallLogsData.DURATION)) {\n calllogData.duration = Long.parseLong(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(DURATION) = \"+calllogData.duration);\n }\n if (line.startsWith(CallLogsData.NMUBER_TYPE)) {\n calllogData.number_type = Integer.parseInt(getColonString(line));\n// MyLogger.logD(CLASS_TAG,\"startsWith(NMUBER_TYPE) = \"+calllogData.number_type);\n }\n if (line.startsWith(CallLogsData.END_VCALL)) {\n// MyLogger.logD(CLASS_TAG,calllogData.toString());\n calllogsList.add(calllogData);\n MyLogger.logD(CLASS_TAG, \"startsWith(END_VCALL)\");\n }\n }\n buffreader.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n MyLogger.logE(CLASS_TAG, \"init failed\");\n }\n return calllogsList;\n }", "public static void main(String[] args) throws FileNotFoundException \r\n\t\t{\r\n\t\t\r\n\t\t\tdouble timestamp_difference ; \r\n\t\t{\r\n\t\t\ttry (BufferedReader br = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\" Captured Summary of the Microservices Log file located at C:\\\\mslog.txt is as below : \" );\r\n\t\t\t\t\tSystem.out.println(\" ************ Start of Log file Summary ************* \");\r\n\t\t\t\t\tSystem.out.println(\" Sr.No 1 - \" ); \r\n\t\t\t\t\t\r\n\t\t\t\t\tString sCurrentLine;\r\n\t\t\t \r\n\t\t\t String Search=\"(addClient:97900)\";\r\n\t\t\t while ((sCurrentLine = br.readLine()) != null) \r\n\t\t\t {\t \t\r\n\t\t\t \t \r\n\t\t\t \tif(sCurrentLine.contains(Search))\r\n\t\t\t {\t\t \r\n\t\t\t System.out.println(\" (addClient:97900) string found in log file where Name of service is = addClient & Request id is = 97900 \" ) ;\r\n\t\t\t }\r\n\t\t\t \t\r\n\t\t\t \t\r\n\t\t\t }\r\n\t\t\t { \r\n\t\t\t \t\tint count = 0;\r\n\t\t\t for (int i = 0; i <= 1 ; i++) {\r\n\t\t\t count++;\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t System.out.println( \" Sr.No 2 - Number of requests made to the service are = \" + count);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t\t\r\n\r\n\t\t\t }\t\r\n\t\t\t\r\n\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\t\r\n\t\t\t\tcatch (IOException 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\r\n\t\t\ttry (BufferedReader br1 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search1=\"2015-10-28T12:24:33,903\";\r\n\t\t\t while ((sCurrentLine = br1.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search1))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 3 - Entry time stamp of Add Client Request (id-97900) found in logfile is = \" + Search1 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\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\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\r\n\t\t\ttry (BufferedReader br2 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search2=\"2015-10-28T12:24:34,002\";\r\n\t\t\t while ((sCurrentLine = br2.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search2))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 4 - Exit time stamp of Add Client Request (id-97900) found in logfile is = \" + Search2 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\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\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br3 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search3=\"33,903\";\t\t \r\n\t\t\t while ((sCurrentLine = br3.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search3))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 5 - Entry time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search3 );\r\n\t\t\t //double secexit = Integer.parseInt(Search3);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\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\t\r\n\t\t\t\tcatch (IOException 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\ttry (BufferedReader br4 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search4=\"34,002\";\t\t \r\n\t\t\t while ((sCurrentLine = br4.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search4))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 6 - Exit time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search4 );\r\n\t\t\t //double secentry = Integer.parseInt(Search4);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\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\t\r\n\t\t\t\tcatch (IOException 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\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttimestamp_difference = ( 34002 - 33903 ) * 0.0001 ;\r\n\t\t\tSystem.out.println(\" Sr.No 7 - Maximum time required for Add Client request execution ( in seconds ) is = \" + timestamp_difference );\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" ************ End of Log file Summary ************* \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void actionLogPostProcessor(ResponseStatus statusCode, String responseCode, String responseDescription, boolean isServiceMetricLog,\n LongSupplier getCurrentTime) {\n MDC.put(STATUS_CODE, statusCode.name());\n if (responseCode != null) {\n int logResponseCode = getLogResponseCode(responseCode);\n MDC.put(RESPONSE_CODE, Integer.toString(logResponseCode));\n }\n MDC.put(RESPONSE_DESCRIPTION, responseDescription);\n long beginTimestamp;\n if (isServiceMetricLog) {\n beginTimestamp = Long.parseLong(MDC.get(SERVICE_METRIC_BEGIN_TIMESTAMP));\n } else {\n beginTimestamp = Long.parseLong(MDC.get(BEGIN_TIMESTAMP));\n }\n long endTimestamp = getCurrentTime.getAsLong();\n MDC.put(BEGIN_TIMESTAMP, getLogUtcDateStringFromTimestamp(new Date(beginTimestamp)));\n MDC.put(END_TIMESTAMP, getLogUtcDateStringFromTimestamp(new Date(endTimestamp)));\n MDC.put(ELAPSED_TIME, String.valueOf(endTimestamp - beginTimestamp));\n }", "public void beginLogging() {\n\t\ttry {\n\t\t\tserverSocket.setSoTimeout(0);\n\t\t} catch(SocketException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSystem.out.println(\"Beginning logging...\");\t\t\n\n\t\twhile(keepRunning) {\n\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\n\t\t\t\tSystem.out.println(\"Accepted a client for a NetworkDatum log!\");\n\t\t\t\t\n\t\t\t\tObjectInputStream inputData = new ObjectInputStream(clientSocket.getInputStream());\n\n\t\t\t\tSystem.out.println(\"Trying to add NetworkDatum to our list...\");\n\n\t\t\t\ttry {\n\t\t\t\t\tNetworkDatum nd = (NetworkDatum) inputData.readObject();\n\t\t\t\t\tnetworkLog.add(nd);\n\n\t\t\t\t\tSystem.out.println(\"NetworkDatum added from \" + nd.username + \" at playback time: \" + nd.time);\n\n\t\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} catch(IOException e) {\n\t\t\t\tnetworkLog.registerError();\n\t\t\t}\n\n\t\t}\n\t}", "private void displayTimeInfo(final long startTime, final long endTime) {\n long diff = endTime - startTime;\n long seconds = diff / MSEC_PER_SECOND;\n long millisec = diff % MSEC_PER_SECOND;\n println(\"Time: \" + seconds + \".\" + millisec + \"s\\n\");\n }", "public void addNVPairToEventDetails(final String key, final String value,\n final EventDetails eventDetails)\n {\n\n // check key and value are not null\n NameValuePair nv = null;\n\n if (key != null && key.length() > 0 && value != null && value.length() > 0) {\n\n // Add the pair passed in.\n nv = eventDetails.addNewNameValuePair();\n nv.setName(key);\n nv.addValue(value);\n\n }\n\n }", "public void addLog(String item) {\n\t\tlong itemTime = System.currentTimeMillis();\r\n\r\n\t\t// Measure total time\r\n\t\tlong itemTotalTime = (itemTime - start) / 1000;\r\n\t\tReporter.log(\"<td> - \" + item + itemTotalTime + \" </td>\");\r\n\t}", "public static void logMultiStageAttack(Context context,AttackRecord attackRecord,NetworkRecord networkRecord, MessageRecord messageRecord, long timestamp){\n\t\tIntent intent = new Intent(context, Logger.class);\n\t\tintent.setAction(ACTION_LOG_MULTISTAGE);\n\t\tintent.putExtra(EXTRA_RECORD, (Parcelable) attackRecord);\n\t\tintent.putExtra(EXTRA_RECORD2, (Parcelable)networkRecord);\n\t\tintent.putExtra(EXTRA_RECORD3,(Parcelable)messageRecord);\n\t\tintent.putExtra(EXTRA_TIMESTAMP, timestamp);\n\t\tcontext.startService(intent);\n\n\t}", "private void writeLog(){\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(System.currentTimeMillis() + \", \");\r\n\t\tstr.append(fileInfo.getCreator() + \", \");\r\n\t\tstr.append(fileInfo.getFileName() + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(networkSize + \", \");\r\n\t\tstr.append(fileInfo.getN1() + \", \");\r\n\t\tstr.append(fileInfo.getK1() + \", \");\r\n\t\tstr.append(fileInfo.getN2() + \", \");\r\n\t\tstr.append(fileInfo.getK2() + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT)+ \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.encryStart, logger.encryStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \"\\n\");\r\n\t\t\r\n\t\tString tmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getKeyStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\r\n\t\t\r\n\t\ttmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getFileStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.FILE_CREATION, str.toString());\t\t\r\n\t\t\r\n\t\t// Topology Discovery\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"TopologyDisc, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.topStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT ) + \", \");\r\n\t\tstr.append(\"\\n\");\t\t\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\r\n\t\t\r\n\t\t// Optimization\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"Optimization, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.optStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(\"\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t\t\r\n\t\t\r\n\t\t// File Distribution\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"FileDistribution, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(logger.distStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \", \");\r\n\t\tstr.append(\"\\n\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t}", "private void syncLogsAccordingly() throws Exception{\n HashMap<String, String> params = new HashMap<>();\n params.put(\"timezone\", TimeZone.getDefault().getID());\n List<DeviceLogModel> deviceLogModels = HyperLog.getDeviceLogs(false) ;\n\n\n JSONObject jsonObject = new JSONObject();\n\n try{\n jsonObject.put(\"key\",gson.toJson(deviceLogModels));\n }catch (Exception e){\n Toast.makeText(mContext, \"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n\n\n AndroidNetworking.post(\"\" + EndPoint)\n .addJSONObjectBody(jsonObject)\n .setTag(this)\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(final JSONObject jsonObject) {\n HyperLog.deleteLogs();\n }\n\n @Override\n public void onError(ANError anError) {\n// Toast.makeText(ATSApplication.this, \"ERROR : \"+anError.getErrorBody(), Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void getCallLog(@NotNull Context context) {\n Cursor cursor = context.getApplicationContext().getContentResolver().query(CallLog.Calls.CONTENT_URI, null, null,\n null, CallLog.Calls.DATE + \" DESC\");\n DatabaseHelper dbHelper = DatabaseHelper.getHelper(context);\n\n assert cursor != null;\n if (cursor.getCount() > 0) {\n try {\n cursor.moveToFirst();\n long epoch = Long.parseLong(cursor.getString(cursor.getColumnIndex(CallLog.Calls.DATE)));\n String date = new java.text.SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss z\").format(new java.util.Date(epoch));\n if (BuildConfig.DEBUG) {\n Log.d(\"DATE\", date);\n Log.d(\"TYPE\", cursor.getString(cursor.getColumnIndex(CallLog.Calls.TYPE)));\n Log.d(\"DURATION\", cursor.getString(cursor.getColumnIndex(CallLog.Calls.DURATION)));\n }\n dbHelper.addRecordCallData(cursor.getColumnIndex(CallLog.Calls.TYPE), UserIDStore.id(context.getApplicationContext()), date, cursor.getColumnIndex(CallLog.Calls.DURATION));\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void addQueue(SensorData latest) {\r\n//\t\tMap<String,Integer> latestLog = latest.getSSIDs();\r\n//\t\tLog.v(LOG_TAG, latestLog.keySet().toString());\r\n// \tif( latestLog!=null && passedLog!=null ){\r\n// \tdouble nowRatio = OverlapRatio.between( latestLog, passedLog );\r\n// \tif( nowRatio!=-1 && nowRatio!=0 ){\r\n// \ttimeQueue.add( latest.getTime( MatchingConstants.PARAM_STRING[MatchingConstants.SN_WiFi] ) );\r\n// \toverlapRatioQueue.add( (float)nowRatio );\r\n// \tFloat f = overlapRatioQueue.getLast();\r\n// \tif( f!=null ){\r\n// \tLog.v( LOG_TAG, \"NowRatio=\" + f.toString() + \",Size=\" + overlapRatioQueue.size() );\r\n// \t}\r\n// \t}\r\n// \t}\r\n// \tpassedLog = latestLog;\r\n\t}", "private JSONObject buildTrackingItemObject(String eventIndex, String event, String params, long time){\n JSONObject trackingObject = null;\n\n if (deviceTrackingObjectDefault == null) {\n trackingObject = new JSONObject();\n deviceTrackingObjectDefault = new JSONObject();\n\n for (Entry<String, String> entry : deviceInformationUtils.getTrackingDeviceInfo().entrySet()) {\n try {\n trackingObject.put(entry.getKey() , entry.getValue());\n deviceTrackingObjectDefault.put(entry.getKey() , entry.getValue());\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n }\n }\n } else {\n try {\n trackingObject = new JSONObject(deviceTrackingObjectDefault.toString());\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n }\n }\n\n try {\n trackingObject.put(DataKeys.TRACK_EVENT_INDEX, eventIndex);\n trackingObject.put(DataKeys.TRACK_EVENT_NAME, event);\n trackingObject.put(DataKeys.TRACK_EVENT_PARAM, params);\n trackingObject.put(DataKeys.TRACK_EVENT_TIME, Utils.convertMillisAndFormatDate(time) + \"\");\n trackingObject.put(DataKeys.TRACK_EVENT_TIME_EPOCH, time);\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n }\n\n try {\n JSONObject attributionObject = new JSONObject();\n\n if (event.equals(TrackingEvents.FIRST_APP_LAUNCH)) {\n Thread.sleep(5000);\n }\n\n attributionObject.put(DataKeys.TRACK_ATD_CLICK_ID, DataContainer.getInstance().pullValueString(InstallReceiver.UTM_CLICK_ID, context));\n attributionObject.put(DataKeys.TRACK_ATD_AFFILIATE_ID, DataContainer.getInstance().pullValueString(InstallReceiver.UTM_AFFILIATE_ID, context));\n attributionObject.put(DataKeys.TRACK_ATD_CAMPAIGN_ID, DataContainer.getInstance().pullValueString(InstallReceiver.UTM_CAMPAIGN_ID, context));\n\n trackingObject.put(DataKeys.TRACK_ATTRIBUTION_DATA, attributionObject);\n\n } catch (JSONException e) {\n log.error(e.getMessage(), e);\n } catch (InterruptedException e) {\n log.error(e.getMessage(), e);\n }\n\n trackingObject = trackingObjectCleanup(trackingObject);\n\n return trackingObject;\n }", "protected final void addToAverageRequestProcessingTime(final long time) {\n averageRequestProcessing.addNewStat(time);\n }", "public static /*synchronized*/ void addSelectionResultLog(long start, long end, int resultSize){\n\t\tQUERY_COUNT++;\n\t\tLOG.appendln(\"Query \" + QUERY_COUNT + \": \" + resultSize + \" trajectories in \" + (end-start) + \" ms.\");\n\t\tLOG.appendln(\"Query ends at: \" + end + \" ms.\");\n\t}", "public static void logPortscan(Context context, AttackRecord attackRecord, NetworkRecord netRecord, long timestamp){\n\t\tIntent intent = new Intent(context, Logger.class);\n\t\tintent.setAction(ACTION_LOG_PORTSCAN);\n\t\tintent.putExtra(EXTRA_RECORD, (Parcelable) attackRecord);\n\t\tintent.putExtra(EXTRA_RECORD2, (Parcelable) netRecord);\n\t\tintent.putExtra(EXTRA_TIMESTAMP, timestamp);\n\t\tcontext.startService(intent);\n\n\t}", "public void updateLog(String newName){\r\n\t\tString timeStamp = new SimpleDateFormat(\"yyyy/MM/dd HH:mm.ss\").format(new java.util.Date());\r\n\t\tlogger.log(Level.SEVERE,\"Previous name:{0}, New Name: {1}, Date: {2}\", new Object[] {name, newName,timeStamp});\r\n\t}", "private void showExecutionStart() {\n log.info(\"##############################################################\");\n log.info(\"Creating a new web application with the following parameters: \");\n log.info(\"##############################################################\");\n log.info(\"Name: \" + data.getApplicationName());\n log.info(\"Package: \" + data.getPackageName());\n log.info(\"Database Choice: \" + data.getDatabaseChoice());\n log.info(\"Database Name: \" + data.getDatabaseName());\n log.info(\"Persistence Module: \" + data.getPersistenceChoice());\n log.info(\"Web Module: \" + data.getWebChoice());\n }", "@Override\n\tpublic String appendProcLog(final String inData) {\n\t\tprocLog += inData;\n\t\treturn getProcLog();\n\t}", "public void testCombinedCmsConcurrentApplicationStoppedTimeLogging() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset27.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"Event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertTrue(\"Log line not recognized as \" + JdkUtil.LogEventType.CMS_CONCURRENT.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.CMS_CONCURRENT));\n Assert.assertTrue(\n \"Log line not recognized as \" + JdkUtil.LogEventType.APPLICATION_STOPPED_TIME.toString() + \".\",\n jvmRun.getEventTypes().contains(JdkUtil.LogEventType.APPLICATION_STOPPED_TIME));\n }", "void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }", "public static void main(String args[]) throws Exception\r\n {\r\n System.out.println(\"start\");\r\n final Map<String, LogData> timeInHoursMinsAndLogDataMap = new LinkedHashMap();\r\n final Scanner input = new Scanner(System.in);\r\n int totalRecords = 0;\r\n final List<String> keysToRemove = new ArrayList<>(2);\r\n Set<String> processed = new HashSet<>();\r\n\r\n while (input.hasNext())\r\n {\r\n System.out.println(\"while\");\r\n Long time = Long.parseLong(input.next());\r\n Double processingTime = Double.parseDouble(input.next());\r\n\r\n boolean process = true;\r\n final Date date = new Date(time * 1000);\r\n final String key = String.valueOf(date.getHours()) + \":\" + String.valueOf(date.getMinutes());\r\n if (processed.contains(key))\r\n continue;\r\n if (timeInHoursMinsAndLogDataMap.size() > 0)\r\n {\r\n keysToRemove.clear();\r\n for (Map.Entry<String, LogData> entry : timeInHoursMinsAndLogDataMap.entrySet())\r\n {\r\n final int diffSeconds = getDiffBetweenCurrentAndMapSeconds(key, entry.getKey(), date.getSeconds(),\r\n entry.getValue().maxSeconds);\r\n if (diffSeconds > 60)\r\n {\r\n System.out.println(entry.getValue().getResult());\r\n keysToRemove.add(entry.getKey());\r\n processed.add(entry.getKey());\r\n }\r\n else if (diffSeconds < -60)\r\n {\r\n process = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!process)\r\n continue;\r\n\r\n removeKeyFromMap(timeInHoursMinsAndLogDataMap, keysToRemove);\r\n\r\n LogData logData = timeInHoursMinsAndLogDataMap.get(key);\r\n if (logData == null)\r\n {\r\n logData = new LogData();\r\n logData.setTimeStamp(time);\r\n }\r\n logData.updateBuckets(processingTime);\r\n logData.updateMaxSeconds(date.getSeconds());\r\n timeInHoursMinsAndLogDataMap.put(key, logData);\r\n\r\n }\r\n\r\n for (Map.Entry<String, LogData> entry : timeInHoursMinsAndLogDataMap.entrySet())\r\n {\r\n System.out.println(entry.getValue().getResult());\r\n }\r\n \r\n System.out.println(\"end\");\r\n }", "public abstract void broadcastTraceTimeCustom(Server s, String prefix);", "public void setTrip(final String flag, final String tag, final String locationSubmissionURL, final OnAtsTripSetterListeners onAtsTripSetterListeners) throws Exception{\n\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully while setting trip.\");\n startSettingFlagNow(flag, tag, locationSubmissionURL, onAtsTripSetterListeners);\n }else{\n Log.e(TAG, \"Logs Not synced from server while setting trip got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n onAtsTripSetterListeners.onTripSetFail(\"Logs Not synced from server while setting trip got message \"+modelResultChecker.getMessage());\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onAtsTripSetterListeners.onTripSetFail(\"Logs Not synced while setting trip with error code: \"+e.getMessage());\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n\n }", "private void insertEventRecord(Device device, \n long fixtime, int statusCode, Geozone geozone,\n GeoPoint geoPoint, \n long gpioInput,\n double speedKPH, double heading, \n double altitude,\n double odomKM)\n {\n\n /* create event */\n EventData evdb = createEventRecord(device, fixtime, statusCode, geoPoint, gpioInput, speedKPH, heading, altitude, odomKM);\n\n /* insert event */\n // this will display an error if it was unable to store the event\n Print.logInfo(\"Event : [0x\" + StringTools.toHexString(statusCode,16) + \"] \" + StatusCodes.GetDescription(statusCode,null));\n if (device != null) {\n device.insertEventData(evdb); \n }\n this.eventTotalCount++;\n\n }", "public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(serverLogsArray.toJSONString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.loggingApiEndpoint, this.server.createContext(this.loggingApiEndpoint));\n this.setHandler(this.getLoggingApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.getLoggingApiEndpoint(), 0);\n }", "public void preParseInputFileAE(String inputFile) {\n System.out.println(\"Parsing AE log file...\");\n // gathering lots of data\n serverNames = new LinkedHashSet<>();\n applicationNames = new LinkedHashSet<>();\n serviceNames = new LinkedHashSet<>();\n // connected applications, by servers, by simulation step\n graphHistory = new HashMap<>(); // Map<Integer, Map<FakeServer, List<FakeApplication>>>\n // servers, by simulation step\n serverHistory = new HashMap<>(); // Map<Integer, List<FakeServer>>\n // applications, by simulation step\n applicationHistory = new HashMap<>(); // Map<Integer, List<FakeApplication>>\n int stepCounter = 0;\n try {\n BufferedReader br = Files.newBufferedReader(new File(inputFile).toPath());\n String line;\n while ((line = br.readLine()) != null) {\n // init the maps\n graphHistory.put(stepCounter, new HashMap<>());\n serverHistory.put(stepCounter, new ArrayList<>());\n applicationHistory.put(stepCounter, new ArrayList<>());\n List<FakeServer> currentServers = new ArrayList<>();\n // splitting the servers\n String[] serversRaw = line.split(\"\\\\|\");\n // grabbing robustness from last position\n double robustnessRandomShuffle = Double.parseDouble(serversRaw[serversRaw.length - 4]);\n double robustnessRandomForward = Double.parseDouble(serversRaw[serversRaw.length - 3]);\n double robustnessRandomBackward = Double.parseDouble(serversRaw[serversRaw.length - 2]);\n double robustnessServiceShuffle = Double.parseDouble(serversRaw[serversRaw.length - 1]);\n // stat\n maxSimultaneousServers = Math.max(serversRaw.length - 4, maxSimultaneousServers);\n // for all server full String\n for (String serverRaw : Arrays.asList(serversRaw).subList(0, serversRaw.length - 4)) {\n // grabbing the server part\n String server = serverRaw.split(\"=\")[0];\n // grabbing the application part\n String applications = serverRaw.split(\"=\")[1];\n // server name\n serverNames.add(server.split(\"/\")[0]);\n // building the server object\n FakeServer fakeServer = new FakeServer(server.split(\"/\")[0], Integer.parseInt(server.split(\"/\")[1]),\n Integer.parseInt(server.split(\"/\")[2]), Integer.parseInt(server.split(\"/\")[3]), Integer.parseInt(server.split(\"/\")[4]),\n Arrays.asList(server.split(\"/\")).subList(5, server.split(\"/\").length));\n // stats and tools\n serverHistory.get(stepCounter).add(fakeServer);\n currentServers.add(fakeServer);\n graphHistory.get(stepCounter).put(fakeServer, new ArrayList<>());\n maxServerGeneration = Math.max(Integer.parseInt(server.split(\"/\")[1]), maxServerGeneration);\n maxServerConnections = Math.max(Integer.parseInt(server.split(\"/\")[2]), maxServerConnections);\n maxServerSize = Math.max(Arrays.asList(server.split(\"/\")).size(), maxServerSize);\n serviceNames.addAll(Arrays.asList(server.split(\"/\")).subList(5, server.split(\"/\").length));\n maxSimultaneousApplications = Math.max(applications.split(\";\").length, maxSimultaneousApplications);\n // applications\n for (String application : applications.split(\";\")) {\n // building the application object\n FakeApplication fakeApplication = new FakeApplication(application.split(\"/\")[0], Integer.parseInt(application.split(\"/\")[1]),\n Integer.parseInt(application.split(\"/\")[2]), Integer.parseInt(application.split(\"/\")[4]),\n Arrays.asList(application.split(\"/\")).subList(5, application.split(\"/\").length),\n Arrays.asList(application.split(\"/\")[3].split(\"_\")).stream()\n .map(neighborName -> (FakeServer) findActor(neighborName, currentServers))\n .collect(Collectors.toList()));\n // stats and tools\n applicationHistory.get(stepCounter).add(fakeApplication);\n graphHistory.get(stepCounter).get(fakeServer).add(fakeApplication);\n applicationNames.add(application.split(\"/\")[0]);\n maxApplicationGeneration = Math.max(Integer.parseInt(application.split(\"/\")[1]), maxApplicationGeneration);\n maxApplicationConnections = Math.max(Integer.parseInt(application.split(\"/\")[2]), maxApplicationConnections);\n maxApplicationSize = Math.max(Arrays.asList(application.split(\"/\")).size(), maxApplicationSize);\n serviceNames.addAll(Arrays.asList(application.split(\"/\")).subList(5, application.split(\"/\").length));\n }\n }\n stepCounter++;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(\"Names: \" + serverNames.size() + \"/\" + applicationNames.size() + \"/\" + serviceNames.size());\n System.out.println(\"MaxSimult: \" + maxSimultaneousServers + \"/\" + maxSimultaneousApplications);\n System.out.println(\"MaxGen: \" + maxServerGeneration + \"/\" + maxApplicationGeneration);\n System.out.println(\"MaxSize: \" + maxServerSize + \"/\" + maxApplicationSize);\n stepNumber = stepCounter;\n }", "public Set<Map<String,String>> getProductOutputNumAndTime(String accessKey, String entityId, long startTime, long endTime) throws org.apache.thrift.TException;", "@Override\n public void logStartTime(long startTimeMillis) {\n if (getLogger().isDebugEnabled()) {\n getLogger().debug(\"logStartTime {}\", startTimeMillis);\n }\n\n sendSynchronously(restApiClient::logStartEndTime, createLogStartTimeRequest(startTimeMillis));\n }", "@Override\n public void onResult(String startTime, String endTime)\n {\n TextView useTime = (TextView)itemView.findViewById(R.id.comfire_item_time);\n useTime.setText(\"预订时间:\" + startTime + \"-\" + endTime);\n addResourceIdPrice(info.getServId());\n mNoAirAdapter.notifyDataSetChanged();\n }", "@Test\r\n public void test_logEntrance2_TwoParameters() throws Exception {\r\n LoggingWrapperUtility.logEntrance(log, signature, paramNames, paramValues, true, Level.INFO);\r\n\r\n TestsHelper.checkLog(\"logEntrance\",\r\n \"INFO\",\r\n \"] Entering method [method_signature].\",\r\n \"Input parameters [p1:123, p2:abc]\");\r\n }", "public CallLog createCallLog(Address from, Address to, Call.Dir dir, int duration, long startTime, long connectedTime, Call.Status status, boolean videoEnabled, float quality);", "private void upload(String tag, String message, String position, String unique_msg, LogEntry [] inputLogEntry, String [] zipEntryNames, int triggerType, String packageName, String processName){\n\n if (!S3Policy.canLogToS3(getContext(), tag))\n return;\n if( inputLogEntry == null || zipEntryNames == null) {\n Log.d(TAG, \"inputLogEntry or zipEntryNames is null\");\n return;\n }\n\n if (message==null)\n message=\"\";\n if (position==null)\n position=\"\";\n\n String sn = Utils.getSN();\n //Create a device information properties file\n ByteArrayOutputStream os_deviceinfo = new ByteArrayOutputStream();\n S3DeviceInfoCreator deviceInfoCreator = S3DeviceInfoCreator.getInstance(getContext());\n Properties propReportData = deviceInfoCreator.createDeviceInfoProperties(tag, message, position, unique_msg, triggerType, packageName, processName);\n try {\n propReportData.store(os_deviceinfo, sMessageVersion);\n } catch (IOException e1) {\n e1.printStackTrace();\n } finally {\n try {if(os_deviceinfo != null) os_deviceinfo.close();} catch (IOException e) {e.printStackTrace();}\n }\n\n if(Common.SECURITY_DEBUG) Log.d(TAG, propReportData.toString());\n\n Properties prop = new Properties();\n prop.setProperty(\"TAG\", tag);\n prop.setProperty(\"S/N\", sn);\n // sy_wang, 20140321, Get sense version and change to sense ID which has specific format.\n prop.setProperty(\"SENSE_ID\", changeSenseVerToSenseId(Utils.getSenseVersionByCustomizationManager()));\n\n S3EntryFile entryFile = null;\n FileOutputStream zipos = null;\n DataOutputStream dataStream = null;\n ZipOutputStream zip = null;\n InputStream isInputLog = null;\n try {\n //Create a ZIP\n entryFile = S3LogCacheManager.getInstance().putS3LogToCache(getContext(), prop);\n zipos = entryFile.getFileOutputStream();\n dataStream = new DataOutputStream(zipos);\n dataStream.writeUTF(prop.getProperty(\"TAG\", \"ALL\"));\n dataStream.writeUTF(prop.getProperty(\"S/N\", \"unknown\"));\n zip =new ZipOutputStream(zipos);\n ZipEntry zeProperties = new ZipEntry(\"DeviceInfo.properties\");\n zip.putNextEntry(zeProperties);\n zip.write(os_deviceinfo.toByteArray());\n zip.closeEntry();\n\n for(int i=0; i<inputLogEntry.length ; i++) {\n if(inputLogEntry[i] != null) {\n ZipEntry zeLogfile = new ZipEntry(zipEntryNames[i]);\n zip.putNextEntry(zeLogfile);\n isInputLog = inputLogEntry[i].getInputStream();\n streamCopy(isInputLog,zip);\n if(isInputLog != null) {\n isInputLog.close();\n isInputLog = null;\n }\n zip.closeEntry();\n }\n }\n } catch(Exception e) {\n Log.e(TAG, \"Fail to compress Logfile and DeviceInfo\", e);\n } finally {\n try {if(isInputLog != null) isInputLog.close();} catch (IOException e) {e.printStackTrace();}\n try {if(zip != null) zip.finish();} catch (IOException e) {e.printStackTrace();}\n try {if(dataStream != null) dataStream.close();} catch (IOException e) {e.printStackTrace();}\n try {if(zipos != null) zipos.close();} catch (IOException e) {e.printStackTrace();}\n }\n\n //General upload speed for 3G is 0.3 Mb/s .The max size of file to upload is 2.5MB\n //Time cost for uploading = 66.67x2(safety factor) = 133(s)\n String wakelockName = Common.WAKELOCK_S3;\n int wakelockTime = 133000;\n /*\n [2017.02.21 eric lu]\n For UB, we reduce wakelock to 30(s)to prevent power team issues.\n\n If the wakelock exceed 360(s) in 48 hours, we will need to explain why we need to acquire it.\n Hence, 360(s)/2 = 180(s)/day ,and we will upload 4 times per day\n 180/4 = 45(s)/once\n Actually, uploading time was seldom exceed 5(s), we acquire 30(s) as a trade-off.\n */\n if (Common.STR_HTC_UB.equals(tag)){\n wakelockName = Common.WAKELOCK_S3_UB;\n wakelockTime = 30000;\n }\n\n PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n PowerManager.WakeLock wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, wakelockName);\n wakeLock.setReferenceCounted(false);\n wakeLock.acquire(wakelockTime);\n\n try {\n Log.d(TAG, \"Start upload\");\n Log.d(TAG,\"The size of uploaded file is: \"+entryFile.getFileSize()+\"(bytes)\");\n Utils.logDataSizeForWakeLock(wakelockName,entryFile.getFileSize());\n\n for (int i=RETRY_COUNT; i>=0; i--) {\n try {\n if (!Utils.isNetworkAllowed(getContext(), tag, ReflectionUtil.get(\"ro.build.description\"),entryFile.getFileSize())){\n Log.d(TAG,\"[upload] Stop upload due to no proper network\");\n continue;\n }\n Log.d(TAG,\"uploaded file size: \"+entryFile.getFileSize()+\"(bytes)\"); //must showed it at begin,added by Ricky 2012.06.27\n Response response = s3uploader.putReport(entryFile.getFilePointer(), prop, 30000);\n //Compare the header\n\n if (response != null && response.getResponseCode() == HttpURLConnection.HTTP_OK) {\n entryFile.delete();\n Log.v(TAG, \"Upload Done , TAG=\"+tag);\n resumeCachedReport(s3uploader);\n break;\n }\n else \n {\n if (i==0) {\n deleteHtcPowerExpertTempFile(tag, entryFile); //Rex, Delete cache file directly when uploading HTC_POWER_EXPERT log failed, 2013/02/26\n Log.w(TAG, \"fail \");\n // storeReport(prop);do nothing since already stored\n }\n }\n android.os.SystemClock.sleep(1000);\n } catch (Exception e) {\n if (i==0) {\n deleteHtcPowerExpertTempFile(tag, entryFile); //Rex, Delete cache file directly when uploading HTC_POWER_EXPERT log failed, 2013/02/26\n Log.w(TAG, \"Got exception\",e.getMessage());\n //storeReport(prop); do nothing since already stored\n }\n android.os.SystemClock.sleep(1000);\n }\n }\n } catch (Exception e) {\n Log.e(TAG,\"Exception occurs\", e);\n } finally {\n if(wakeLock !=null && wakeLock.isHeld())\n wakeLock.release();\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}", "@Override\r\n protected void append(LoggingEvent event)\r\n {\n String category = event.getLoggerName();\r\n String logMessage = event.getRenderedMessage();\r\n String nestedDiagnosticContext = event.getNDC();\r\n String threadDescription = event.getThreadName();\r\n String level = event.getLevel().toString();\r\n long time = event.timeStamp;\r\n LocationInfo locationInfo = event.getLocationInformation();\r\n\r\n // Add the logging event information to a LogRecord\r\n Log4JLogRecord record = new Log4JLogRecord();\r\n\r\n record.setCategory(category);\r\n record.setMessage(logMessage);\r\n record.setLocation(locationInfo.fullInfo);\r\n record.setMillis(time);\r\n record.setThreadDescription(threadDescription);\r\n\r\n if (nestedDiagnosticContext != null) {\r\n record.setNDC(nestedDiagnosticContext);\r\n } else {\r\n record.setNDC(\"\");\r\n }\r\n\r\n if (event.getThrowableInformation() != null) {\r\n record.setThrownStackTrace(event.getThrowableInformation());\r\n }\r\n\r\n try {\r\n record.setLevel(LogLevel.valueOf(level));\r\n } catch (LogLevelFormatException e) {\r\n // If the priority level doesn't match one of the predefined\r\n // log levels, then set the level to warning.\r\n record.setLevel(LogLevel.WARN);\r\n }\r\n MgcLogBrokerMonitor monitor = Lf5MainWindowController.getMonitor();\r\n if (monitor != null) {\r\n monitor.addMessage(record);\r\n }\r\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "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 }", "protected void logParsedMessage()\n {\n if (log.isInfoEnabled())\n {\n StringBuffer buf = new StringBuffer(\"Parsed EASMessage:\");\n buf.append(\"\\n OOB alert = \").append(isOutOfBandAlert());\n buf.append(\"\\n sequence_number = \").append(this.sequence_number);\n buf.append(\"\\n protocol_version = \").append(this.protocol_version);\n buf.append(\"\\n EAS_event_ID = \").append(this.EAS_event_ID);\n buf.append(\"\\n EAS_originator_code = \").append(this.EAS_originator_code).append(\": \").append(\n getOriginatorText());\n buf.append(\"\\n EAS_event_code = \").append(this.EAS_event_code);\n buf.append(\"\\n nature_of_activation_text = \").append(getNatureOfActivationText(new String[] { \"eng\" }));\n buf.append(\"\\n alert_message_time_remaining = \").append(getAlertMessageTimeRemaining()).append(\" seconds\");\n buf.append(\"\\n event_start_time = \").append(this.event_start_time);\n buf.append(\"\\n event_duration = \").append(this.event_duration).append(\" minutes\");\n buf.append(\"\\n alert_priority = \").append(getAlertPriority());\n buf.append(\"\\n details_OOB_source_ID = \").append(this.details_OOB_source_ID);\n buf.append(\"\\n details_major_channel_number = \").append(this.details_major_channel_number);\n buf.append(\"\\n details_minor_channel_number = \").append(this.details_minor_channel_number);\n buf.append(\"\\n audio_OOB_source_ID = \").append(this.audio_OOB_source_ID);\n buf.append(\"\\n alert_text = \").append(getAlertText(new String[] { \"eng\" }));\n buf.append(\"\\n location_code_count = \").append(this.m_locationCodes.size());\n for (int i = 0; i < this.m_locationCodes.size(); ++i)\n {\n buf.append(\"\\n location[\").append(i).append(\"]: \").append(this.m_locationCodes.get(i).toString());\n }\n buf.append(\"\\n exception_count = \").append(this.m_exceptions.size());\n for (int i = 0; i < this.m_exceptions.size(); ++i)\n {\n buf.append(\"\\n exception[\").append(i).append(\"]: \").append(this.m_exceptions.get(i).toString());\n }\n buf.append(\"\\n descriptor count = \").append(this.m_descriptors.size());\n for (int i = 0; i < this.m_descriptors.size(); ++i)\n {\n buf.append(\"\\n descriptor[\").append(i).append(\"]: \").append(this.m_descriptors.get(i).toString());\n }\n buf.append(\"\\n isAudioChannelAvailable = \").append(isAudioChannelAvailable());\n buf.append(\"\\n number of audio sources = \").append(this.m_audioFileSources.size());\n for (int i = 0; i < this.m_audioFileSources.size(); ++i)\n {\n buf.append(\"\\n audio file source[\").append(i).append(\"]: \").append(\n this.m_audioFileSources.get(i).toString());\n }\n buf.append(\"\\n m_detailsChannelLocator = \").append(this.m_detailsChannelLocator);\n buf.append(\"\\n m_eventReceivedTime = \").append(new Date(this.m_eventReceivedTime));\n buf.append(\"\\n m_eventStartTime = \").append(new Date(this.m_eventStartTime));\n buf.append(\"\\n m_eventExpirationTime = \").append(new Date(this.m_eventExpirationTime));\n if (log.isInfoEnabled())\n {\n log.info(buf.toString());\n }\n }\n }", "public void log(Request request, Reply reply, int nbytes, long duration) {\n Client client = request.getClient();\n long date = reply.getDate();\n String user = (String) request.getState(AuthFilter.STATE_AUTHUSER);\n URL urlst = (URL) request.getState(Request.ORIG_URL_STATE);\n String requrl;\n if (urlst == null) {\n URL u = request.getURL();\n if (u == null) {\n requrl = noUrl;\n } else {\n requrl = u.toExternalForm();\n }\n } else {\n requrl = urlst.toExternalForm();\n }\n StringBuffer sb = new StringBuffer(512);\n String logs;\n int status = reply.getStatus();\n if ((status > 999) || (status < 0)) {\n status = 999;\n }\n synchronized (sb) {\n byte ib[] = client.getInetAddress().getAddress();\n if (ib.length == 4) {\n boolean doit;\n edu.hkust.clap.monitor.Monitor.loopBegin(349);\nfor (int i = 0; i < 4; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(349);\n{\n doit = false;\n int b = ib[i];\n if (b < 0) {\n b += 256;\n }\n if (b > 99) {\n sb.append((char) ('0' + (b / 100)));\n b = b % 100;\n doit = true;\n }\n if (doit || (b > 9)) {\n sb.append((char) ('0' + (b / 10)));\n b = b % 10;\n }\n sb.append((char) ('0' + b));\n if (i < 3) {\n sb.append('.');\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(349);\n\n } else {\n sb.append(client.getInetAddress().getHostAddress());\n }\n sb.append(\" - \");\n if (user == null) {\n sb.append(\"- [\");\n } else {\n sb.append(user);\n sb.append(\" [\");\n }\n dateCache(date, sb);\n sb.append(\"] \\\"\");\n sb.append(request.getMethod());\n sb.append(' ');\n sb.append(requrl);\n sb.append(' ');\n sb.append(request.getVersion());\n sb.append(\"\\\" \");\n sb.append((char) ('0' + status / 100));\n status = status % 100;\n sb.append((char) ('0' + status / 10));\n status = status % 10;\n sb.append((char) ('0' + status));\n sb.append(' ');\n if (nbytes < 0) {\n sb.append('-');\n } else {\n sb.append(nbytes);\n }\n if (request.getReferer() == null) {\n if (request.getUserAgent() == null) {\n sb.append(\" \\\"-\\\" \\\"-\\\"\");\n } else {\n sb.append(\" \\\"-\\\" \\\"\");\n sb.append(request.getUserAgent());\n sb.append('\\\"');\n }\n } else {\n if (request.getUserAgent() == null) {\n sb.append(\" \\\"\");\n sb.append(request.getReferer());\n sb.append(\"\\\" \\\"-\\\"\");\n } else {\n sb.append(\" \\\"\");\n sb.append(request.getReferer());\n sb.append(\"\\\" \\\"\");\n sb.append(request.getUserAgent());\n sb.append('\\\"');\n }\n }\n sb.append('\\n');\n logs = sb.toString();\n }\n logmsg(logs);\n }", "@Insert({ \"insert into iiot_app_list (app_id, app_name, \", \"node, status, restart_times, \", \"up_time, template, \",\n\t\t\t\"owner, note, rest3, \", \"rest4, rest5, create_time, \", \"uuid)\",\n\t\t\t\"values (#{appId,jdbcType=INTEGER}, #{appName,jdbcType=VARCHAR}, \",\n\t\t\t\"#{node,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{restartTimes,jdbcType=CHAR}, \",\n\t\t\t\"#{upTime,jdbcType=VARCHAR}, #{template,jdbcType=VARCHAR}, \",\n\t\t\t\"#{owner,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{rest3,jdbcType=VARCHAR}, \",\n\t\t\t\"#{rest4,jdbcType=VARCHAR}, #{rest5,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{uuid,jdbcType=CHAR})\" })\n\tint insert(IiotAppList record);", "public void record() throws Exception {\n\n\tString sDatabase = \"\"; // Some services may not have this value.\n\tString sSchema = \"\"; // Some services may not have this value.\n\n\t// If the start has not been defined yet, throw exception.\n\tif (dtStart == null) {\n\t throw new Exception(\n\t\t \"Start timer is not initialized in measurement collection class.\");\n\t}\n\n\t// Stop the timer if it was not defined yet.\n\tif (dtEnd == null) {\n\t stopTimer();\n\t}\n\n\t// Get the hostname\n\tInetAddress addr = InetAddress.getLocalHost();\n\tString hostname = addr.getHostName();\n\n\t// Log the usage in logs directory. This log contains more\n\t// information then what's being logged in CQ.\n\tString sUser = xCqUser.getUsername();\n\tString sClient = xCqClient.getClientName();\n\tif (xCqUser.getDatabase() != null) {\n\t sDatabase = xCqUser.getDatabase();\n\t}\n\tif (xCqUser.getSchema() != null) {\n\t sSchema = xCqUser.getSchema();\n\t}\n\n\tString sRecord = sClient + \";\" + sUser + \";\" + sService + \";\"\n\t\t+ sDatabase + \";\" + sSchema + \";\" + dtStart.toString() + \";\"\n\t\t+ dtEnd.toString() + \";\" + getDuration() + \";\" + hostname\n\t\t+ \";\\n\";\n\n\t// Append to the file.\n\tappend(sRecord);\n }", "public void addSyncStatus(String added_on, int patient_nos, int visit_nos, String responseCode, String responseTime) {\n\n SQLiteDatabase db = null;\n try {\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(ADDED_ON, added_on);\n values.put(PATIENT_SEND, patient_nos);\n values.put(VISIT_SEND, visit_nos);\n values.put(RESPONSE_CODE, responseCode);\n values.put(RESPONSE_TIME, responseTime);\n\n // Inserting Row\n db.insert(TABLE_SYNC_STATUS, null, values);\n // Log.e(\"Valuesis\",\"\"+id);\n\n } catch (Exception e) {\n e.printStackTrace();\n } /*finally {\n if (db != null) {\n db.close();\n }\n }*/\n }", "public void addRecord(String lat1, String lon1, String alt1, String day18991, String date1, String time1) {\n lat.add(PApplet.parseFloat(lat1));\n lon.add(PApplet.parseFloat(lon1));\n alt.add(PApplet.parseFloat(alt1));\n day1899.add(PApplet.parseFloat(day18991));\n date.add(date1);\n time.add(time1);\n record++;\n }", "public void MapMyTags() {\n\n\t\t// INITIALIZE THE DB AND ARRAYLIST FOR DB ELEMENTS \n\t\tMsgDatabaseHandler mdb = new MsgDatabaseHandler(getApplicationContext());\n\t\tArrayList<MessageData> message_array_from_db = mdb.Get_Messages();\n\t\t\n\t\tfinal MWMPoint[] points = new MWMPoint[message_array_from_db.size()];\n\t\t\n\t\t// CHECK IF TAGS EXISTS, IF SO PROCESS THE TAGS\n\t\tif (message_array_from_db.size() > 0) {\n\t\t\t\n\t\t\tfor (int i = 0; i < message_array_from_db.size(); i++) {\n\n\t\t\t String tag = message_array_from_db.get(i).getTag();\n\t\t\t String latitude = message_array_from_db.get(i).getLatitude();\n\t\t\t String longitude = message_array_from_db.get(i).getLongitude();\n\t\t\t String _time = message_array_from_db.get(i).getTime();\n\t\t\t \t\t \n\t\t\t Double lat = Double.parseDouble(latitude);\n\t\t\t Double lon = Double.parseDouble(longitude);\n\t\t\t \n\t\t // PROCESS THE TIME DIFFERENCE\n\t\t\t Long then = Long.parseLong(_time);\n\t\t\t\tLong now = System.currentTimeMillis();\n\t\t\t\tString difference = getDifference(now, then);\n\t\t\t\t\n\t\t\t\t// COUNTER FOR TIME SPLIT\n\t\t\t\tint colon = 0;\n\t\t\t\t\n\t\t\t\t// Count colons for proper output\n\t\t\t\tfor(int ix = 0; ix < difference.length(); ix++) {\n\t\t\t\t if(difference.charAt(ix) == ':') colon++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// SPLIT THE DIFFERENCE BY A \":\"\n\t\t\t\tString[] splitDiff = difference.split(\":\");\n\t\t\t\tString hours = null, minutes = null, seconds = null, str = null;\n\t\t\t\t\n\t\t\t\t// CALCULATE THE TIME DIFFERENCE\n\t\t\t\tswitch (colon) {\n\t\t\t\tcase 1:\n\t\t\t\t\tif (Integer.parseInt(splitDiff[0]) == DOUBLE_ZERO) {\n\t\t\t\t\t\tseconds = splitDiff[1];\n\t\t\t\t\t\tif (Integer.parseInt(seconds) > 1) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[1] + \" seconds ago\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (Integer.parseInt(seconds) == 1) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[1] + \" second ago\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (Integer.parseInt(seconds) == DOUBLE_ZERO) {\n\t\t\t\t\t\t\tstr = \"Occurred: \" + \"Happening Now\";\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tminutes = splitDiff[0];\n\t\t\t\t\t\tif (Integer.parseInt(minutes) > 1) {\t\t\t\t\t\t\n\t\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" minutes ago\";\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\tstr = \"Occurred: \" + splitDiff[0] + \" minute ago\";\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\thours = splitDiff[0];\n\t\t\t\t\tif (Integer.parseInt(hours) > 1) {\n\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" hours ago\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tstr = \"Occurred: \" + splitDiff[0] + \" hour ago\";\n\t\t\t\t\t}\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstr = \"Happening Now\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString mPoint = tag + \"\\n\" + str;\n\t\t\t\t// CALL MAPS WITH ME AND PLOT POINTS ON THE MAP\n\t\t\t points[i] = new MWMPoint(lat, lon, mPoint);\n\t\t\t MapsWithMeApi.showPointsOnMap(this, \"Total Tags: \" + message_array_from_db.size(), points);\n\t\t\t}\n\t\t\tmdb.close();\n\t\t}\n\t\telse {\n\t\t\t// GET THE NAME OF THIS DEVICE \n\t\t\tpreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\t\t\tString myTagName = preferences.getString(\"tagID\", \"Sender-01\");\n\t\t\t\n\t\t\tgps.getLocation();\n\t\t\tMapsWithMeApi.showPointOnMap(this, gps.getLatitude(), gps.getLongitude(), myTagName + \"\\nMy Position\");\n\t\t}\t\t\n\t}", "public void addSPArgsInfo(SPArgsInfo spArgsInfo) {\n\t\tif (this.argsInfoList == null) {\n\t\t\targsInfoList = new ArrayList<SPArgsInfo>();\n\t\t}\n\t\tif (!argsInfoList.contains(spArgsInfo)) {\n\t\t\targsInfoList.add(spArgsInfo);\n\t\t}\n\t}", "private void fillTimeStampParam(byte[] buffer, int startPos) {\n int keyId = ST_Param_Key.ST_PARAM_KEY_TIMESTAMP.ordinal();\n int startIndex = startPos;\n fillInt(buffer, startIndex, keyId);\n\n // fill the payload size\n int payloadSize = SIZE_OF_TIME_STAMP_INFO;\n startIndex = startPos + 4;\n fillInt(buffer, startIndex, payloadSize);\n\n long timeStamp = System.currentTimeMillis();\n startIndex = startPos + 8;\n fillLong(buffer, startIndex, timeStamp);\n }", "public static void addToProductTagsArrayList(String productID, String date, String productTagHash,\n String previousProductTagHash, String lat, String lon, String actions,\n String certificates, String productTagActions, String producerName) {\n\n MapDataModel mapDataModel = new MapDataModel();\n\n mapDataModel.setProductId(Integer.parseInt(productID));\n mapDataModel.setDateTime(date);\n mapDataModel.setCurrHash(productTagHash);\n mapDataModel.setPreHash(previousProductTagHash);\n mapDataModel.setLat(Double.parseDouble(lat));\n mapDataModel.setLng(Double.parseDouble(lon));\n mapDataModel.setActions(actions);\n mapDataModel.setCertificates(certificates);\n mapDataModel.setProductTagActions(productTagActions);\n mapDataModel.setProducerName(producerName);\n\n allMapData.add(mapDataModel);\n\n }", "void appendRecords(Hashtable<String,String> LDUMP,Hashtable<String,String> GDUMP)\n {\t\n \t/**\n\t\t * GDUMP from pred and MY LDUMP are null -- do-nothing\n\t\t * My LDUMP is null -- nothing to append\n\t\t * GDUMP is null -- just make \"to\" <LDUMP> = \"from\" <GDUMP>\n \t*/\t\n \tSet<String> keys = LDUMP.keySet();\n \tfor(String key:keys)\n \t{\n \t\tGDUMP.put(key,LDUMP.get(key));\n \t}\n\t\n \treturn;\n }", "public static void startLog(String newFileName) {\n\t\tif (mDebugLogFile) {\n\t\t\tif (mTracker == null) {\n\t\t\t\tinitLogTracker(PathUtils.PATH_LOG);\n\t\t\t}\n\t\t\tmTracker.startTracking(newFileName);\n\t\t}\n\t}", "public static void logJVMInfo() {\n // Print out vm stats before starting up.\n RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();\n if (runtime != null) {\n LOG.info(\"vmName=\" + runtime.getVmName() + \", vmVendor=\"\n + runtime.getVmVendor() + \", vmVersion=\" + runtime.getVmVersion());\n LOG.info(\"vmInputArguments=\" + runtime.getInputArguments());\n }\n }", "private static void announceProgram() {\r\n\t\t// https://www.mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tDate date = new Date(System.currentTimeMillis());\r\n\t\tDL.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\r\n\t\tDL.println(\" AR Splitter launched: \" + dateFormat.format(date));\r\n\t\tDL.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\r\n\t}", "protected void onANRHappend(long delta) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[############ ANR: take \");\n sb.append(delta);\n sb.append(\" ms #############]\\n\");\n\n printAllStackTraces(sb.toString(), KANRLog);\n\n try {\n // there are may be problem\n LogToES.writeThreadLogToFileReal(LogToES.LOG_PATH,\n KANRLog.logFileName,\n KANRLog);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void logPerfElem(long[] times, XSLTestfileInfo fileInfo, String flavor)\n {\n Hashtable attrs = new Hashtable();\n // Add general information about this perf elem\n attrs.put(\"UniqRunid\", testProps.getProperty(\"runId\", \"runId;none\"));\n attrs.put(\"processor\", flavor);\n // idref is the individual filename\n attrs.put(\"idref\", (new File(fileInfo.inputName)).getName());\n // inputName is the actual name we gave to the processor\n attrs.put(\"inputName\", fileInfo.inputName);\n\n // Add all available specific timing data as well\n for (int i = 0; i < times.length; i++)\n {\n // Only log items that have actual timing data\n if (TransformWrapper.TIME_UNUSED != times[i])\n {\n attrs.put(TransformWrapperHelper.getTimeArrayDesc(i), \n new Long(times[i]));\n }\n }\n\n // Log the element out; note formatting matches\n reporter.logElement(Logger.STATUSMSG, \"perf\", attrs, fileInfo.description);\n }", "public abstract void logTraceTime();", "void addRecord(String[] propertyValues, Date timestamp) throws IOException;", "public void addElement(CharArrayWriter buf, Date date, Request request, Response response, long time)\n/* */ {\n/* 411 */ buf.append(ExtendedAccessLogValve.wrap(urlEncode(request.getParameter(this.parameter))));\n/* */ }", "public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }", "private void dumpResults(long startTime, long endTime) {\n \n Log.info(TAG_LOG, \"***************************************\");\n \n if (testResults != null) {\n int tot = 0;\n int failed = 0;\n int success = 0;\n int skipped = 0;\n for(int i=0;i<testResults.size();++i) {\n StringBuffer res = new StringBuffer();\n \n TestStatus status = (TestStatus)testResults.elementAt(i);\n String url = status.getScriptName();\n \n res.append(\"Script=\").append(url);\n String r;\n switch (status.getStatus()) {\n case TestStatus.SUCCESS:\n r = \"SUCCESS\";\n success++;\n break;\n case TestStatus.FAILURE:\n r = \"FAILURE\";\n failed++;\n // Record that we had an error\n errorCode = -1;\n break;\n case TestStatus.SKIPPED:\n r = \"SKIPPED\";\n skipped++;\n break;\n default:\n r = \"UNDEFINED\";\n break;\n }\n \n res.append(\" Result=\").append(r);\n String detailedError = status.getDetailedError();\n tot++;\n if (detailedError != null) {\n res.append(\" Error=\").append(detailedError);\n }\n Log.info(TAG_LOG, res.toString());\n }\n Log.info(TAG_LOG, \"---------------------------------------\");\n Log.info(TAG_LOG, \"Total number of tests: \" + tot);\n Log.info(TAG_LOG, \"Total number of success: \" + success);\n Log.info(TAG_LOG, \"Total number of failures: \" + failed);\n Log.info(TAG_LOG, \"Total number of skipped: \" + skipped);\n long secs = (endTime - startTime) / 1000;\n Log.info(TAG_LOG, \"Total execution time: \" + secs);\n } else {\n Log.info(TAG_LOG, \"No tests performed\");\n }\n Log.info(TAG_LOG, \"***************************************\");\n }", "public static void recordAuditEventStartToEnd(String eventId, String rule, Instant startTime, Instant endTime,\n String policyVersion) {\n\n if (startTime == null || endTime == null) {\n return;\n }\n if (eventId != null && !eventId.isEmpty()) {\n MDC.put(MDC_KEY_REQUEST_ID, eventId);\n }\n\n seTimeStamps(startTime, endTime);\n\n MDC.put(RESPONSE_CODE, \"N/A\");\n MDC.put(RESPONSE_DESCRIPTION, \"N/A\");\n\n long ns = Duration.between(startTime, endTime).toMillis();\n\n auditLogger.info(MessageCodes.RULE_AUDIT_START_END_INFO, MDC.get(MDC_SERVICE_NAME), rule, startTime.toString(),\n endTime.toString(), Long.toString(ns), policyVersion);\n\n // --- remove the record from the concurrentHashMap\n if (eventTracker != null && eventTracker.getEventDataByRequestId(eventId) != null) {\n\n eventTracker.remove(eventId);\n debugLogger.info(\"eventTracker.remove({})\", eventId);\n\n }\n }", "private void handleTracking(int oldLastId, int newLastId) {\n List<TerritoryLog> logs = this.territoryLogRepository.findAllInRange(oldLastId, newLastId);\n\n if (logs == null) {\n this.logger.log(0, \"Territory tracker: failed to retrieve last log list. \" +\n \"Not sending tracking this time. old id (exclusive): \" + oldLastId + \", new id (inclusive): \" + newLastId);\n return;\n }\n\n if (logs.isEmpty()) {\n return;\n }\n\n Map<Integer, String> serverNames = this.getCorrespondingWarNames(\n logs.stream().map(TerritoryLog::getId).collect(Collectors.toList()));\n\n List<TrackChannel> allTerritoryTracks = this.trackChannelRepository.findAllOfType(TrackType.TERRITORY_ALL);\n if (allTerritoryTracks == null) {\n this.logger.log(0, \"Territory tracker: failed to retrieve tracking channels list. \" +\n \"Not sending tracking this time. old id (exclusive): \" + oldLastId + \", new id (inclusive): \" + newLastId);\n return;\n }\n\n for (TerritoryLog log : logs) {\n Set<TrackChannel> channelsToSend = new HashSet<>(allTerritoryTracks);\n\n List<TrackChannel> specificTracksOld = this.trackChannelRepository\n .findAllOfGuildNameAndType(log.getOldGuildName(), TrackType.TERRITORY_SPECIFIC);\n List<TrackChannel> specificTracksNew = this.trackChannelRepository\n .findAllOfGuildNameAndType(log.getNewGuildName(), TrackType.TERRITORY_SPECIFIC);\n if (specificTracksOld == null || specificTracksNew == null) {\n return;\n }\n channelsToSend.addAll(specificTracksOld);\n channelsToSend.addAll(specificTracksNew);\n\n String messageBase = formatBase(log, serverNames.get(log.getId()));\n channelsToSend.forEach(ch -> {\n TextChannel channel = this.manager.getTextChannelById(ch.getChannelId());\n if (channel == null) return;\n channel.sendMessage(messageBase + formatAcquiredTime(log, ch)).queue();\n });\n }\n }", "public void add(long invocationTime, long now) {\n maxInvocationTime = Math.max(invocationTime, maxInvocationTime);\n if (maxInvocationTime == invocationTime) {\n maxInvocationDate = now;\n }\n minInvocationTime = Math.min(invocationTime, minInvocationTime);\n if (minInvocationTime==invocationTime) {\n minInvocationDate = now;\n }\n nrOfInvocations++;\n totalInvocationTime+=invocationTime;\n lastInvocation = now;\n }", "protected final void addToAverageClientProcessingTime(final long time) {\n averageClientProcessing.addNewStat(time);\n }", "@Override\n public void onResult(String startTime, String endTime)\n {\n TextView useTime = (TextView)itemView.findViewById(R.id.comfire_item_time);\n useTime.setText(\"预订时间:\" + startTime + \"-\" + endTime);\n addResourceIdPrice(info.getServId());\n mHotelAdapter.notifyDataSetChanged();\n }", "void addDeviceInfo(DeviceIdentifier deviceId, DeviceInfo deviceInfo) throws DeviceDetailsMgtException;", "public synchronized void onRequestSucceeded(long startTimeInNanos) {\r\n\t\tlong micros = (System.nanoTime() - startTimeInNanos) / 1000;\r\n\t\tallRequestsTracker.onRequestSucceeded(micros);\r\n\t\trecentRequestsTracker.onRequestSucceeded(micros);\r\n\t\tmeter.mark();\r\n\t}", "public void testPopulateLogDetailsParam2() {\n LogAnalyzerProcessor logAnalyzerProcessor = mock(LogAnalyzerProcessor.class, Mockito.CALLS_REAL_METHODS);\n LogDetailsEntity logDetailsEntity = logAnalyzerProcessor.populateLogDetailsParam(\"scsmbstgra\", LogAnalyzerJunitHelper.getDummyJsonRecordStarted(), 8L);\n Assert.assertEquals(\"12345\", logDetailsEntity.getHost());\n }", "private void processLog(File log) {\n BufferedReader in = null;\r\n ArrayList<String> list = new ArrayList<String>();\r\n String lastFrom = \"\";\r\n try {\r\n in = new BufferedReader(new FileReader(log));\r\n String line;\r\n while((line = in.readLine()) != null) {\r\n // lineNum++;\r\n if(line.contains(\"FROM\")) {\r\n // Start over at each FROM, leaving the last one and what\r\n // follows\r\n list.clear();\r\n list.add(line);\r\n lastFrom = line;\r\n } else if(line.contains(\"TO\")) {\r\n list.add(line);\r\n }\r\n }\r\n in.close();\r\n Data data = new Data(log.getName(), lastFrom);\r\n results.add(data);\r\n System.out.printf(\"%s\\n\", log.getName());\r\n for(String item : list) {\r\n System.out.printf(\" %s\\n\", item);\r\n }\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "@Override\n public String toString() {\n return packageName + \" \" + launchingTime;\n }", "public void logElapsedTime() {\r\n\r\n NumberFormat nf = NumberFormat.getInstance();\r\n\r\n nf.setMaximumFractionDigits(2);\r\n nf.setMinimumFractionDigits(2);\r\n\r\n historyString = new String(\"Elapsed Time = \" + nf.format(getElapsedTime()) + \" sec.\\n\");\r\n writeLog();\r\n }", "@Override\r\n\tpublic void onEndCall(CallEndAPI data) throws AudiumException {\r\n\t\t// The EndCallInterface defines a single method onEndCall which acts as the execution method for the on call end class.\r\n\t\t// This onEndCall method receives a single argument, an instance of CallEndAPI. \r\n\t\t// This CallEndAPI class belongs to the Session API and is used to access information about the visit to the application that just ended \r\n\t\t// (such as how the call ended or the result of the call\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd-HH\"); //import from java.text\r\n\t\tDate currDate = new Date(); //import from java.util\r\n\t\tString strCurrDate = sdf.format(currDate);\r\n\t\tString fileName = \"D:\\\\CVP\\\\CVP-Java\\\\debug\\\\\"+ data.getApplicationName() + \".\"+ strCurrDate +\".log\";\t\t\r\n\r\n\t\tdata.addToLog(\"EndCallJava Append to file\",fileName);\r\n\r\n\t\tStringBuilder logstring = new StringBuilder();\r\n\r\n\t\tFileOutputStream fileOut = null; //import from java.io\r\n\t\tFile f = null; //import from java.io\r\n\r\n\t\ttry {\r\n\t\t\tlogstring.append(\"startdate: \"+data.getStartDate()) ;\r\n\t\t\tlogstring.append(\",ani:\" + data.getAni());\r\n\t\t\tlogstring.append(\",dnis:\" + data.getDnis());\r\n\t\t\tlogstring.append(\",callid:\" + data.getSessionData(\"callid\")); logstring.append(\",sessionID:\" + data.getSessionId());\r\n\t\t\tlogstring.append(\",result:\" + data.getCallResult());\r\n\t\t\tlogstring.append(\",howend:\" + data.getHowCallEnded());\r\n\t\t\tlogstring.append(\"\\r\\n\");\r\n\r\n\t\t\t// ****** DO YOUR LAB HERE *****\r\n\r\n\t\t\tString elementName, exitName;\r\n\t\t\tReadOnlyList elementHistory = data.getElementHistory(); //import from com.audium.server.session\r\n\t\t\tReadOnlyList exitHistory = data.getExitStateHistory();\r\n\r\n\t\t\tString lastExcCode = (String) data.getSessionData(\"lastException.code\");\r\n\t\t\tif (lastExcCode != null) {\r\n\t\t\t\tdata.addToLog(\"LAST EXC NOT NULL\", lastExcCode); // this will be writing to the activity log\r\n\t\t\t}\telse {\r\n\t\t\t\tdata.addToLog(\"LAST EXC IS NULL\", lastExcCode); // this will be writing to the activity log \r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (data.getCallResult().equalsIgnoreCase(\"error\")) {\r\n\t\t\t\tString badElement = elementHistory.lastElement();\r\n\t\t\t\tlogstring.append(\",BadElement:\" + badElement);\r\n\t\t\t\t\r\n\t\t\t\t// This file, only gets generated, every 1 hour\r\n\t\t\t\t// If you only want to send an email, no more than 1 per hour:\r\n\t\t\t\tf=new File(fileName);\r\n\t\t\t\tif (!f.exists()) {\r\n\t\t\t\t\t// sendEmail(data,logstring.toString());\r\n\t\t\t\t\tlogstring.append(\", sent email\");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tlogstring.append(\"Elements---Exit States\\r\\n\");\r\n\t\t\tfor (int i=0; i< exitHistory.size(); i++ ) {\r\n\t\t\t\t//get each element name and each exit state name\r\n\t\t\t\telementName = elementHistory.get(i);\r\n\t\t\t\texitName = exitHistory.get(i);\r\n\t\t\t\tlogstring.append( i + \":\" + elementName + \"---\" + exitName + \"\\r\\n\");\r\n\r\n\t\t\t\t//optional Challenge goes here\r\n\t\t\t\tHashMap<String, String> allElementData = data.getAllElementData(elementName); //Quick-Fix: import HashMap from java.util\r\n\t\t\t\tif (allElementData.size()>0) {\r\n\t\t\t\t\tlogstring.append(\"\\tElementData:\\r\\n\");\r\n\t\t\t\t\tfor ( Entry<String, String> entry : allElementData.entrySet() ) {//import java.util.Map.Entry\r\n\t\t\t\t\t\tlogstring.append(\"\\t\"+ entry.getKey() + \"=\" + entry.getValue() + \"\\r\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tf = new File(fileName);\r\n\t\t\tfileOut = new FileOutputStream(f, true); //this creates the file if necessary; true=append\r\n\t\t\tfileOut.write(logstring.toString().getBytes());\r\n\t\t\tfileOut.flush();\r\n\t\t} catch (Exception e) {\r\n\t\t\tdata.logWarning(\"End Call Class Problem\" + e);\r\n\t\t} finally {\r\n\t\t\tif (fileOut!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfileOut.close();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t}//try - catch\r\n\t\t\t}//if\r\n\t\t}//finally\r\n\r\n\t}", "public static void m2532a(Context context) {\n try {\n if (StatisticsManager.m2541g(context)) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(new SimpleDateFormat(\"yyyyMMdd HHmmss\").format(new Date()));\n stringBuffer.append(\" \");\n stringBuffer.append(UUID.randomUUID().toString());\n stringBuffer.append(\" \");\n if (stringBuffer.length() == 53) {\n byte[] a = Utils.m2515a(stringBuffer.toString());\n byte[] b = StatisticsManager.m2536b(context);\n byte[] bArr = new byte[(a.length + b.length)];\n System.arraycopy(a, 0, bArr, 0, a.length);\n System.arraycopy(b, 0, bArr, a.length, b.length);\n BaseNetManager.m2800a().mo9415b(new LogUpdateRequest(Utils.m2520c(bArr), \"2\"));\n }\n }\n } catch (AMapCoreException e) {\n BasicLogHandler.m2542a(e, \"StatisticsManager\", \"updateStaticsData\");\n } catch (Throwable e2) {\n BasicLogHandler.m2542a(e2, \"StatisticsManager\", \"updateStaticsData\");\n }\n }", "public ServerLogger(ExtendedTS3Api api) {\r\n\t\tthis.api = api;\r\n\t\tArrayList<Client> allClientsWhileStartingtoLogg = new ArrayList<Client>();\r\n\t\tallClientsWhileStartingtoLogg = (ArrayList<Client>) api.getClients();\r\n\t\tint numberOfPeopleOnTheServer = allClientsWhileStartingtoLogg.size();\r\n\t\t\r\n\t\tfor (int i = 0; i < allClientsWhileStartingtoLogg.size(); i++) {\r\n\t\t\tUserLoggedInEntity userAlreadyOnline = new UserLoggedInEntity();\r\n\r\n\t\t\tuserAlreadyOnline.setId(allClientsWhileStartingtoLogg.get(i).getId());\r\n\t\t\tuserAlreadyOnline.setNickname(allClientsWhileStartingtoLogg.get(i).getNickname());\r\n\t\t\tuserAlreadyOnline.setuId(allClientsWhileStartingtoLogg.get(i).getUniqueIdentifier());\r\n\t\t\tuserAlreadyOnline.logUser(LoggedServerEvents.STARTED_LOG, numberOfPeopleOnTheServer);\r\n\t\t\tuserAlreadyOnline.setTimeUserJoinedTheServer(LocalDateTime.now());\r\n\r\n\t\t\tusersLoggedIn.add(userAlreadyOnline);\r\n\t\t}\r\n\t}", "public static void test(Context context)\n {\n TrackingService trackingService = TrackingService.getSingletonInstance(context);\n Log.i(LOG_TAG, \"Parsed File Contents:\");\n trackingService.logAll();\n\n try\n {\n // 5 mins either side of 05/07/2018 1:05:00 PM\n // PRE: make sure tracking_data.txt contains valid matches\n // PRE: make sure device locale matches provided DateFormat (you can change either device settings or String param)\n DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM);\n String searchDate = \"05/07/2018 1:05:00 PM\";\n int searchWindow = 5; // +/- 5 mins\n Date date = dateFormat.parse(searchDate);\n List<TrackingService.TrackingInfo> matched = trackingService\n .getTrackingInfoForTimeRange(date, searchWindow, 0);\n Log.i(LOG_TAG, String.format(\"Matched Query: %s, +/-%d mins\", searchDate, searchWindow));\n trackingService.log(matched);\n }\n catch (ParseException e)\n {\n e.printStackTrace();\n }\n }", "public void setStartTime(String startTime) {\n this.startTime = startTime;\n }" ]
[ "0.59181273", "0.50854796", "0.48793337", "0.4705923", "0.46559805", "0.46343008", "0.46139795", "0.45628718", "0.45349428", "0.4514152", "0.45084253", "0.44571915", "0.4444413", "0.44366482", "0.44312087", "0.43774405", "0.43758172", "0.437357", "0.43700758", "0.43309584", "0.43194535", "0.4311452", "0.42858198", "0.4281861", "0.42710158", "0.42696565", "0.4268955", "0.4239234", "0.42201957", "0.42178643", "0.42134702", "0.42070144", "0.41972825", "0.41893363", "0.41573104", "0.4156761", "0.41540366", "0.4151575", "0.41421804", "0.4139857", "0.4136335", "0.41211915", "0.41204306", "0.4111607", "0.40939188", "0.40899026", "0.40857652", "0.40779388", "0.40697396", "0.406266", "0.40476832", "0.40454957", "0.4032924", "0.4019839", "0.40134358", "0.40104285", "0.40052378", "0.40050355", "0.4002335", "0.39970398", "0.39967063", "0.39723578", "0.39687115", "0.3966393", "0.39633074", "0.39627677", "0.39612588", "0.3958161", "0.39512524", "0.3949416", "0.3945049", "0.39445037", "0.39439958", "0.39424378", "0.3941858", "0.3938762", "0.39328685", "0.39322674", "0.39308947", "0.3929698", "0.39198542", "0.39050865", "0.3895185", "0.3890184", "0.38882837", "0.38867384", "0.38814598", "0.38694203", "0.38691676", "0.38690445", "0.38681486", "0.38652194", "0.38629398", "0.38604188", "0.385588", "0.38556305", "0.38502437", "0.38460177", "0.38349256", "0.38339344" ]
0.8073479
0
Loads Group and Config.
public Group getGroupFull(Long groupKey) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void importGroup ()\n {\n if (_chooser.showOpenDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n group.load(_chooser.getSelectedFile());\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }", "public void loadConfig() {\n\t}", "public void importConfigs ()\n {\n if (_chooser.showOpenDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n group.load(_chooser.getSelectedFile(), true);\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }", "public static void reload() {\n\t\tif (getConfigManager() != null) {\n\t\t\tgetConfigManager().reload();\n\t\t}\n\t\tfor (Iterator i = getInstance().configGroups.keySet().iterator(); i.hasNext(); ) {\n\t\t\tString group = (String) i.next();\n\t\t\tif (getConfigManager(group) != null) {\n\t\t\t\tgetConfigManager(group).reload();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void loadConfig(){\n \t\tFile configDir = this.getDataFolder();\n \t\tif (!configDir.exists())\n \t\t\tconfigDir.mkdir();\n \n \t\t// Check for existance of config file\n \t\tFile configFile = new File(this.getDataFolder().toString() + \"/config.yml\");\n \t\tconfig = YamlConfiguration.loadConfiguration(configFile);\n \t\t\n \t\t// Adding Variables\n \t\tif(!config.contains(\"Debug\"))\n \t\t{\n \t\t\tconfig.addDefault(\"Debug\", false);\n \t \n \t config.addDefault(\"Worlds\", \"ExampleWorld1, ExampleWorld2\");\n \t\n\t config.addDefault(\"Regions.Residence\", \"ExampleWorld.ExampleResRegion1, ExampleWorld.ExampleResRegion2\");\n \t \n\t config.addDefault(\"Regions.WorldGuard\", \"ExampleWorld.ExampleWGRegion1, ExampleWorld.ExampleWGRegion2\"); \n \t\t}\n \n // Loading the variables from config\n \tdebug = (Boolean) config.get(\"Debug\");\n \tpchestWorlds = (String) config.get(\"Worlds\");\n \tpchestResRegions = (String) config.get(\"Regions.Residence\");\n \tpchestWGRegions = (String) config.get(\"Regions.WorldGuard\");\n \n if(pchestWorlds != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Chests Worlds: \" + pchestWorlds);\n }\n \n if(pchestResRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Residence Regions: \" + pchestResRegions);\n }\n \n if(pchestWGRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All World Guard Regions: \" + pchestWGRegions);\n }\n \n config.options().copyDefaults(true);\n try {\n config.save(configFile);\n } catch (IOException ex) {\n Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, \"Could not save config to \" + configFile, ex);\n }\n }", "public void config(Group[] group) {\n\n }", "LoadGroup createLoadGroup();", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "public static void load() {\r\n\r\n log.info(\"Config : loading Listener info\"); //$NON-NLS-1$\r\n\r\n Collection children = Collections.EMPTY_LIST;\r\n\r\n try {\r\n\r\n Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);\r\n Content configNode = startPage.getContent(\"IPConfig\");\r\n children = configNode.getChildren(ItemType.CONTENTNODE); //$NON-NLS-1$\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"Config : Failed to load Listener info\"); //$NON-NLS-1$\r\n log.error(re.getMessage(), re);\r\n }\r\n\r\n Listener.cachedContent.clear();\r\n Listener.cacheContent(children);\r\n log.info(\"Config : Listener info loaded\"); //$NON-NLS-1$\r\n }", "public void loadConfigs() {\n\t configYML = new ConfigYML();\n\t configYML.setup();\n }", "public void load() throws Exception\n {\n String id = request.getParameter(\"config\");\n if (id != null && id.length() > 0)\n {\n List<DDVConfig> configs = this.getConfigs();\n for (DDVConfig c:configs)\n {\n if (c.getId().equals(id))\n {\n this.config = c;\n return;\n }\n }\n }\n }", "public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }", "private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "public static void loadGameConfiguration() {\n File configFile = new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME);\n manageGameConfigFile(configFile);\n }", "private void loadGroup(IMemento group)\n\t{\n\t\tRegistersGroupData groupData = new RegistersGroupData();\n\n\t\t// get group name\n\t\tString groupName = group.getString(FIELD_NAME);\n\t\tif (groupName == null)\n\t\t\treturn;\n\n\t\t// get group size\n\t\tIMemento mem = group.getChild(ELEMENT_TOTAL);\n\t\tif (mem == null)\n\t\t\treturn;\n\n\t\tInteger tempInt = mem.getInteger(FIELD_SIZE);\n\t\tif (tempInt == null)\n\t\t\treturn;\n\n\t\tgroupData.totalSize = tempInt.intValue();\n\n\t\t// check add total field\n\t\tgroupData.addTotalField = true;\n\t\tString tempStr = mem.getString(FIELD_ADD_TOTAL);\n\t\tif (tempStr != null && tempStr.equalsIgnoreCase(\"false\"))\n\t\t\tgroupData.addTotalField = false;\n\n\t\t// get sub-division\n\t\tIMemento[] mems = group.getChildren(ELEMENT_SUB);\n\t\tgroupData.indicies = new int[mems.length];\n\t\tgroupData.sizes = new int[mems.length];\n\t\tgroupData.names = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t{\n\t\t\ttempInt = mems[ind].getInteger(FIELD_INDEX);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.indicies[ind] = tempInt.intValue();\n\n\t\t\ttempInt = mems[ind].getInteger(FIELD_SIZE);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.sizes[ind] = tempInt.intValue();\n\n\t\t\tgroupData.names[ind] = mems[ind].getString(FIELD_NAME);\n\t\t\tif (groupData.names[ind] == null)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// add group data\n\t\tmapper.addGroup(groupName/*, groupData*/);\n\n\t\tmems = group.getChildren(ELEMENT_REGISTER);\n\t\tString[] register = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t\tregister[ind] = mems[ind].getString(FIELD_NAME);\n\n\t\t// add registers\n\t\tmapper.addRegisters(groupName, register);\n\t}", "public static void initLoaderType() {\r\n boolean autoaddBoolean = GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(\"loader.autoadd.typesAttributes\", true);\r\n\r\n if (!autoaddBoolean) {\r\n return;\r\n }\r\n\r\n GrouperSession grouperSession = null;\r\n\r\n try {\r\n\r\n grouperSession = GrouperSession.startRootSession(false);\r\n\r\n GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n\r\n public Object callback(GrouperSession grouperSession)\r\n throws GrouperSessionException {\r\n try {\r\n \r\n GroupType loaderType = GroupType.createType(grouperSession, \"grouperLoader\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderType\", false);\r\n \r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDbName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderScheduleType\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuery\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuartzCron\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderIntervalSeconds\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderPriority\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderAndGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupTypes\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupsLike\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupQuery\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncBaseFolderName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncLevels\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncType\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeUse\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxGroupPercentRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentGroupsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentMembershipsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupSize\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinManagedGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeSendEmail\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupNumberOfMembers\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinOverallNumberOfMembers\", false);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n return null;\r\n }\r\n\r\n });\r\n\r\n //register the hook if not already\r\n GroupTypeTupleIncludeExcludeHook.registerHookIfNecessary(true);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Problem adding loader type/attributes\", e);\r\n }\r\n\r\n }", "public abstract void loaded() throws ConfigurationException;", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "private void parseExternalResources() {\n // Ensure that this is called only once.\n if (externalGroupsMap != null && externalGroupsMap.size() > 0) {\n log().info(\"parseExternalResources: external data collection groups are already parsed\");\n return;\n }\n \n // Check configuration files repository\n File folder = new File(configDirectory);\n if (!folder.exists() || !folder.isDirectory()) {\n log().info(\"parseExternalResources: directory \" + folder + \" does not exist or is not a folder.\");\n return;\n }\n \n // Get external configuration files\n File[] listOfFiles = folder.listFiles(new FilenameFilter() {\n public boolean accept(File file, String name) {\n return name.endsWith(\".xml\");\n }\n });\n \n // Parse configuration files (populate external groups map)\n final CountDownLatch latch = new CountDownLatch(listOfFiles.length);\n int i = 0;\n for (final File file : listOfFiles) {\n Thread thread = new Thread(\"DataCollectionConfigParser-Thread-\" + i++) {\n public void run() {\n try {\n log().debug(\"parseExternalResources: parsing \" + file);\n DatacollectionGroup group = JaxbUtils.unmarshal(DatacollectionGroup.class, new FileSystemResource(file));\n // Synchronize around the map that holds the results\n synchronized(externalGroupsMap) {\n externalGroupsMap.put(group.getName(), group);\n }\n } catch (Throwable e) {\n throwException(\"Can't parse XML file \" + file + \"; nested exception: \" + e.getMessage(), e);\n } finally {\n latch.countDown();\n }\n }\n };\n thread.start();\n }\n\n try {\n latch.await();\n } catch (InterruptedException e) {\n throwException(\"Exception while waiting for XML parsing threads to complete: \" + e.getMessage(), e);\n }\n }", "private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void loadFromConfig(ConfigurationSection s) {\n\t\t\n\t}", "private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } else {\r\n LOG.error(\"Can't load default Scope config from: \" + DEFAULT_CONFIG_NAME);\r\n }\r\n }", "public static void load() {\n }", "private void loadConfig() throws IOException {\n File bStatsFolder = new File(plugin.getDataFolder().getParentFile(), \"bStats\");\n File configFile = new File(bStatsFolder, \"config.yml\");\n Config config = new Config(configFile);\n \n // Check if the config file exists\n if (!config.exists(\"serverUuid\")) {\n // Add default values\n config.set(\"enabled\", true);\n // Every server gets it's unique random id.\n config.set(\"serverUuid\", UUID.randomUUID().toString());\n // Should failed request be logged?\n config.set(\"logFailedRequests\", false);\n // Should the sent data be logged?\n config.set(\"logSentData\", false);\n // Should the response text be logged?\n config.set(\"logResponseStatusText\", false);\n \n DumperOptions dumperOptions = new DumperOptions();\n dumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);\n writeFile(configFile,\n \"# bStats collects some data for plugin authors like how many servers are using their plugins.\",\n \"# To honor their work, you should not disable it.\",\n \"# This has nearly no effect on the server performance!\",\n \"# Check out https://bStats.org/ to learn more :)\",\n new Yaml(dumperOptions).dump(config.getRootSection()));\n }\n \n // Load the data\n enabled = config.getBoolean(\"enabled\", true);\n serverUUID = config.getString(\"serverUuid\");\n logFailedRequests = config.getBoolean(\"logFailedRequests\", false);\n logSentData = config.getBoolean(\"logSentData\", false);\n logResponseStatusText = config.getBoolean(\"logResponseStatusText\", false);\n }", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "private void loadGroups(){\n ArrayAdapter<String> groupAdaptor = new ArrayAdapter<>(getApplicationContext(),\n android.R.layout.simple_spinner_item, groupsCurrent);\n // Drop down layout style - list view with radio button\n groupAdaptor.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinnerGroups.setAdapter(groupAdaptor);\n }", "@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "public final void rule__ExternalLoad__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7568:1: ( rule__ExternalLoad__Group__1__Impl rule__ExternalLoad__Group__2 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7569:2: rule__ExternalLoad__Group__1__Impl rule__ExternalLoad__Group__2\n {\n pushFollow(FOLLOW_rule__ExternalLoad__Group__1__Impl_in_rule__ExternalLoad__Group__115229);\n rule__ExternalLoad__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ExternalLoad__Group__2_in_rule__ExternalLoad__Group__115232);\n rule__ExternalLoad__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }", "@Override\n void loadData() {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n // Attempt to read the config in the config file.\n langConfig = YamlConfiguration.loadConfiguration(langConfigFile);\n // If the config file is null (due to the config file being invalid or not there) create a new one.\n // If the file doesnt exist, populate it from the template.\n if (!langConfigFile.exists()) {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n langConfig = YamlConfiguration.loadConfiguration(new InputStreamReader(plugin.getResource(\"messages.yml\")));\n saveData();\n }\n }", "private void loadAggregationModules() {\n\t\tthis.aggregationModules = new ModuleLoader<IAggregate>(\"/Aggregation_Modules\", IAggregate.class).loadClasses();\n\t}", "private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }", "public final void rule__ExternalLoad__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7580:1: ( ( 'load' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7581:1: ( 'load' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7581:1: ( 'load' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7582:1: 'load'\n {\n before(grammarAccess.getExternalLoadAccess().getLoadKeyword_1()); \n match(input,71,FOLLOW_71_in_rule__ExternalLoad__Group__1__Impl15260); \n after(grammarAccess.getExternalLoadAccess().getLoadKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}", "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 void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "public void load() throws FileNotFoundException {\n loadConfig();\n initRepos();\n }", "public void loadAssociations() {\n\n\t\tinitListSettingNames();\n\n\t\taddDefaultAssociations();\n\t}", "private void loadConfig()\n {\n File config = new File(\"config.ini\");\n\n if (config.exists())\n {\n try\n {\n BufferedReader in = new BufferedReader(new FileReader(config));\n\n configLine = Integer.parseInt(in.readLine());\n configString = in.readLine();\n socketSelect = (in.readLine()).split(\",\");\n in.close();\n }\n catch (Exception e)\n {\n System.exit(1);\n }\n }\n else\n {\n System.exit(1);\n }\n }", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public void load() {\n handleLoad(false, false);\n }", "void initSharedConfiguration(boolean loadSharedConfigFromDir) throws IOException {\n status.set(SharedConfigurationStatus.STARTED);\n Region<String, Configuration> configRegion = getConfigurationRegion();\n lockSharedConfiguration();\n try {\n removeInvalidXmlConfigurations(configRegion);\n if (loadSharedConfigFromDir) {\n logger.info(\"Reading cluster configuration from '{}' directory\",\n InternalConfigurationPersistenceService.CLUSTER_CONFIG_ARTIFACTS_DIR_NAME);\n loadSharedConfigurationFromDir(configDirPath.toFile());\n } else {\n persistSecuritySettings(configRegion);\n // for those groups that have jar files, need to download the jars from other locators\n // if it doesn't exist yet\n for (Entry<String, Configuration> stringConfigurationEntry : configRegion.entrySet()) {\n Configuration config = stringConfigurationEntry.getValue();\n for (String jar : config.getJarNames()) {\n if (!getPathToJarOnThisLocator(stringConfigurationEntry.getKey(), jar).toFile()\n .exists()) {\n downloadJarFromOtherLocators(stringConfigurationEntry.getKey(), jar);\n }\n }\n }\n }\n } finally {\n unlockSharedConfiguration();\n }\n\n status.set(SharedConfigurationStatus.RUNNING);\n }", "public void reload() {\n try {\n this.configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void load() throws Exception {\n LocalizationContext[] searchContext = pm\n .getLocalSearchHierarchy(LocalizationType.COMMON_STATIC);\n Map<String, LocalizationFile> statConfs = new HashMap<String, LocalizationFile>();\n String[] extensions = new String[] { \".xml\" };\n\n // grab all stats from contexts, allowing overwrite by name\n for (LocalizationContext ctx : searchContext) {\n LocalizationFile[] localizationFiles = pm.listFiles(ctx, STATS_DIR,\n extensions, false, true);\n for (LocalizationFile lf : localizationFiles) {\n String name = lf.getName();\n if (!statConfs.containsKey(name)) {\n statConfs.put(name, lf);\n }\n }\n }\n\n if (!statConfs.isEmpty()) {\n List<StatisticsConfig> myConfigurations = new ArrayList<StatisticsConfig>(\n statConfs.size());\n Map<String, StatisticsEventConfig> myEvents = new HashMap<String, StatisticsEventConfig>();\n\n for (LocalizationFile lf : statConfs.values()) {\n try {\n StatisticsConfig config = lf.jaxbUnmarshal(\n StatisticsConfig.class, jaxbManager);\n if (config != null) {\n validate(myEvents, config);\n if (!config.getEvents().isEmpty()) {\n myConfigurations.add(config);\n }\n }\n } catch (LocalizationException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to open file [\" + lf.getName() + \"]\", e);\n }\n }\n\n configurations = myConfigurations;\n classToEventMap = myEvents;\n }\n }", "@Override\n\tpublic void load() throws RemoteException {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "public static void load() {\n\n\t\ttry {\n\t\t\tnew Thread() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObjectDef.loadConfig();\n\t\t\t\t\t\tObjectConstants.declare();\n\t\t\t\t\t\tMapLoading.load();\n\t\t\t\t\t\tRegion.sort();\n\t\t\t\t\t\tObjectManager.declare();\n\t\t\t\t\t\tGameDefinitionLoader.loadNpcSpawns();\n\t\t\t\t\t\tNpc.spawnBosses();\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}.start();\n\n\t\t\tGlobalItemHandler.spawn();\n\t\t\tTriviaBot.start();\n\t\t\tAchievements.declare();\n\n\t\t\tGameDefinitionLoader.loadItemValues();\n\t\t\tGameDefinitionLoader.loadNpcDefinitions();\n\t\t\tGameDefinitionLoader.loadItemDefinitions();\n\t\t\tGameDefinitionLoader.loadEquipmentDefinitions();\n\t\t\tGameDefinitionLoader.loadShopDefinitions();\n\t\t\tGameDefinitionLoader.setRequirements();\n\t\t\tGameDefinitionLoader.loadWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedStrengthDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadCombatSpellDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadNpcCombatDefinitions();\n\t\t\tGameDefinitionLoader.loadItemBonusDefinitions();\n\n\t\t\tNPCDrops.parseDrops().load();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\r\n\tpublic void testLoad() {\n\t\tDalConfigure configure = null;\r\n\t\ttry {\r\n\t\t\tconfigure = DalConfigureFactory.load();\r\n\t\t\tassertNotNull(configure);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\r\n\t\tDatabaseSet databaseSet = configure.getDatabaseSet(\"clusterName1\");\r\n\t\tassertTrue(databaseSet instanceof ClusterDatabaseSet);\r\n\t\tassertEquals(\"clusterName1\".toLowerCase(), ((ClusterDatabaseSet) databaseSet).getCluster().getClusterName());\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"clusterName1\".toLowerCase());\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"clusterName2\");\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdatabaseSet = configure.getDatabaseSet(\"DbSetName\");\r\n\t\tassertTrue(databaseSet instanceof ClusterDatabaseSet);\r\n\t\tassertEquals(\"clusterName2\".toLowerCase(), ((ClusterDatabaseSet) databaseSet).getCluster().getClusterName());\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"DbSetName\".toLowerCase());\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }", "private static Config loadConfig(String name) {\n\n\t\tString path;\n\t\tif (name == null) {\n\t\t\tpath = \"application.json\";\n\t\t} else {\n\t\t\tpath = \"src/\"+extensionsPackage+\"/\" + name + \"/config.json\";\n\t\t}\n\n\t\tGson gson = new Gson();\n\t\tConfig config = null;\n\n\t\ttry {\n\t\t\tconfig = gson.fromJson(new FileReader(path), Config.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn config;\n\t}", "protected abstract void onLoad() throws IOException, ConfigInvalidException;", "public static void load() {\n load(false);\n }", "static void loadConfiguration() throws Exception {\n cleanConfiguration();\n\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"test_conf/stress/logging.xml\");\n cm.add(\"test_conf/stress/dbconnectionfactory.xml\");\n cm.add(\"test_conf/stress/simplecache.xml\");\n cm.add(\"test_conf/stress/profiletypes.xml\");\n cm.add(\"test_conf/stress/daofactory.xml\");\n cm.add(\"test_conf/stress/dao.xml\");\n }", "public void populateGroups() {\n new PopulateGroupsTask(this.adapter, this).execute();\n }", "public void loadSavedConfigsMap() {\n\t\tfinal File folder = new File(serializePath);\n\t\tlistFilesForFolder(folder);\n\t}", "private void reloadGroupAppData(JsonEvents events) {\n\n\t\tAuthzManager.getPerunPrincipal(new JsonEvents() {\n\t\t\t@Override\n\t\t\tpublic void onFinished(JavaScriptObject result) {\n\t\t\t\tlocalPP = result.cast();\n\n\t\t\t\t// since this is a group initi form we know that vo and group are not null.\n\t\t\t\tRegistrarManager.initializeRegistrar(registrar.getVo().getShortName(), registrar.getGroup().getName(), new JsonEvents() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFinished(JavaScriptObject result) {\n\t\t\t\t\t\tRegistrarObject ro = result.cast();\n\t\t\t\t\t\tregistrar.setGroupFormInitial(ro.getGroupFormInitial());\n\t\t\t\t\t\tregistrar.setGroupFormInitialException(ro.getGroupFormInitialException());\n\t\t\t\t\t\t// continue with the step\n\t\t\t\t\t\tevents.onFinished(null);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onError(PerunException error) {\n\t\t\t\t\t\t// ignore and continue with the step\n\t\t\t\t\t\tevents.onFinished(null);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLoadingStart() {\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(PerunException error) {\n\t\t\t\t// ignore it and continue with default form init processing\n\t\t\t\tevents.onFinished(null);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onLoadingStart() {\n\t\t\t}\n\t\t});\n\n\n\t}", "public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n if (load(basedir, false) == null) {\n throw new ConfiguratorException(\n \"configurator.cannot.bootstrap\");\n }\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "public static void loadConfig() throws Exception {\n unloadConfig();\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(new File(\"test_files/stresstest/\" + CONFIG_FILE).getAbsolutePath());\n }", "@Override\n\tpublic void loadExtraConfigs(Configuration config)\n\t{\n\n\t}", "private static void load(){\n }", "public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "public final void rule__ExternalLoad__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7599:1: ( rule__ExternalLoad__Group__2__Impl rule__ExternalLoad__Group__3 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7600:2: rule__ExternalLoad__Group__2__Impl rule__ExternalLoad__Group__3\n {\n pushFollow(FOLLOW_rule__ExternalLoad__Group__2__Impl_in_rule__ExternalLoad__Group__215291);\n rule__ExternalLoad__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ExternalLoad__Group__3_in_rule__ExternalLoad__Group__215294);\n rule__ExternalLoad__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private SettingsGroupManager() {}", "private void cargarConfiguracionBBDD()\r\n\t{\r\n\t\tjava.io.InputStream IO = null;\r\n\r\n\t\ttry {\r\n\t\t\tIO = getClass().getClassLoader().getResourceAsStream(\"configuracion.properties\");\r\n\r\n\t\t // load a properties file\r\n\t\t prop.load(IO);\r\n\t\t \r\n\t\t \r\n\t\t host=prop.getProperty(\"host\");\r\n\t\t database=prop.getProperty(\"database\");\r\n\t\t username=prop.getProperty(\"username\");\r\n\t\t password=prop.getProperty(\"password\");\r\n\t\t \r\n\t\t System.out.println(host);\r\n\r\n\t\t \r\n\t\t \r\n\t\t} catch (IOException ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t} finally {\r\n\t\t if (IO != null) {\r\n\t\t try {\r\n\t\t IO.close();\r\n\t\t } catch (IOException e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void loadConfig(){\n String filename = ConfigManager.getConfig().getString(LANG_FILE_KEY);\n String langFileName = Language.LANG_FOLDER_NAME + '/' + filename;\n config.setConfigFile(langFileName);\n\n File file = config.getConfigFile();\n if(file.exists()){\n config.loadConfig();\n }else{\n Logger.warn(\"Lang file \\\"\" + filename + \"\\\" doesn't exist\", false);\n Logger.warn(\"Using English language to avoid errors\", false);\n config.clearConfig();\n try{\n config.getBukkitConfig().load(plugin.getResource(Language.EN.getLangFileName()));\n }catch(Exception ex){\n Logger.err(\"An error occurred while loading English language:\", false);\n Logger.err(ex, false);\n }\n }\n//</editor-fold>\n }", "private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public static ConfigManager getConfigManager(String group) {\n\t\tif (group == null || group.equals(\"\")) {\n\t\t\treturn getInstance().defaultGroup;\n\t\t} else {\n\t\t\treturn (ConfigManager) getInstance().configGroups.get(group);\n\t\t}\n\t}", "public void assignGroups(Player pl) {\n\t\tif (!Settings.Groups.ENABLED)\n\t\t\treturn;\n\t\t\n\t\tif (groups == null || Settings.Groups.ALWAYS_CHECK_UPDATES) {\n\t\t\tCommon.Debug(\"&bLoading group for &f\" + pl.getName() + \"&b ...\");\n\t\t\tgroups = Group.loadFor(pl);\n\t\t}\n\t}", "public void loadMapsModule(){\n Element rootElement = FileOperator.fileReader(MAPS_FILE_PATH);\n if(rootElement!=null){\n Iterator i = rootElement.elementIterator();\n while (i.hasNext()) {\n Element element = (Element) i.next();\n GridMap map =new GridMap();\n map.decode(element);\n mapsList.add(map);\n }\n }\n }", "private void loadConfiguration() {\n // TODO Get schema key value from model and set to text field\n /*\n\t\t * if (!StringUtils.isBlank(schemaKey.getKeyValue())) {\n\t\t * schemaKeyTextField.setText(schemaKey.getKeyValue()); }\n\t\t */\n }", "public static void addConfigManager(String group, Object[] configFiles) {\n\t\tgetInstance().configGroups.put(group, new ConfigManager(group, configFiles));\n\t\tgetInstance().configGroupsMap.put(group, getConfigManager(group).getAsMap());\n\t}", "private Map<String, Group> getGroupsByConfiguration(Configuration groupConfig) {\n if (!groupConfig.contains(ConnectionBalancer.defaultGroupName)) {\n\n Configuration defaultGroupConfig = new Configuration();\n defaultGroupConfig.set(\"strategy\", \"balance\");\n defaultGroupConfig.set(\"can-reconnect\", true);\n defaultGroupConfig.set(\"restricted\", false);\n groupConfig.set(ConnectionBalancer.defaultGroupName, defaultGroupConfig);\n }\n\n // Reset groups maps\n Map<String, Group> groups = new HashMap<>(groupConfig.getKeys().size());\n\n // Now lets add configured groups\n for (String key : groupConfig.getKeys()) {\n groups.put(key, new Group(\n key,\n groupConfig.getString(key + \".strategy\"),\n groupConfig.getBoolean(key + \".restricted\"),\n groupConfig.getBoolean(key + \".can_reconnect\")\n ));\n }\n\n return groups;\n }", "public void loadConfig(XMLElement xml) {\r\n\r\n }", "private void loadCustomConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CUSTOM_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n LOG.info(\"Load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n } else {\r\n LOG.warn(\"Can't load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n }\r\n }", "@Override\n public void loadDefaultConfig() {\n currentConfigFileName = defaultConfigFileName;\n mesoCfgXML = (SCANConfigMesoXML) readDefaultConfig();\n createAttributeMap(getAttributes());\n }", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public void load() {\n\t}", "public T loadConfig(File file) throws IOException;", "private void loadData() {\n //load general data\n Settings.loadSettings();\n\n this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000);\n this.spRetryPolicy.setValue(Settings.RETRY_POLICY);\n this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000);\n this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000);\n }", "@PostConstruct\n\tprivate void InitGroups() {\n\t\tList<Group> groups = identityService.createGroupQuery().groupIdIn(\"READER\", \"BETAREADER\").list();\n\n\t\tif (groups.isEmpty()) {\n\n\t\t\tGroup reader = identityService.newGroup(\"READER\");\n\t\t\tidentityService.saveGroup(reader);\n\n\t\t\tGroup betaReader = identityService.newGroup(\"BETAREADER\");\n\t\t\tidentityService.saveGroup(betaReader);\n\t\t}\n\n\t\tRoles newRole1 = new Roles(\"READER\");\n\t\troleRepository.save(newRole1);\n\t\tRoles newRole2 = new Roles(\"BETAREADER\");\n\t\troleRepository.save(newRole2);\n\t\tRoles newRole3 = new Roles(\"WRITER\");\n\t\troleRepository.save(newRole3);\n\t\tRoles newRole4 = new Roles(\"COMMISSION\");\n\t\troleRepository.save(newRole4);\n\n\t\tBCryptPasswordEncoder encoder = new BCryptPasswordEncoder();\n\n\t\tList<Roles> roles = new ArrayList<Roles>();\n\t\troles.add(newRole4);\n\n\t\tcom.example.app.models.User user1 = new com.example.app.models.User(\"Dejan\", \"Jovanovic\", \"dejan\",\n\t\t\t\tencoder.encode(\"123\").toString(), false, true, roles, \"[email protected]\", \"as2d1as4d5a6s4da6\");\n\t\tuserRepository.save(user1);\n\n\t\tcom.example.app.models.User user2 = new com.example.app.models.User(\"Jovan\", \"Popovic\", \"jovan\",\n\t\t\t\tencoder.encode(\"123\").toString(), false, true, roles, \"[email protected]\", \"as2d1as4d5a6s4da6\");\n\t\tuserRepository.save(user2);\n\t}", "public void initialize() {\n if (!BungeeBan.getInstance().getDataFolder().exists()) {\n BungeeBan.getInstance().getDataFolder().mkdirs();\n }\n File file = this.getConfigurationFile();\n if (!file.exists()) {\n try {\n file.createNewFile();\n if (this.defaultConfig != null) {\n try (InputStream is = BungeeBan.getInstance().getResourceAsStream(this.defaultConfig);\n OutputStream os = new FileOutputStream(file)) {\n ByteStreams.copy(is, os);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n this.reload();\n }", "public static ConfigManager getConfigManager() {\n\t\treturn getInstance().defaultGroup;\n\t}", "public void loadObject() {\n\n obj = new Properties();\n try {\n obj.load(new FileInputStream(\"./src/test/resources/config.properties\"));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public void load() {\n }", "private void initConfigVar() {\n\t\tConfigUtils configUtils = new ConfigUtils();\n\t\tmenuColor = configUtils.readConfig(\"MENU_COLOR\");\n\t\taboutTitle = configUtils.readConfig(\"ABOUT_TITLE\");\n\t\taboutHeader = configUtils.readConfig(\"ABOUT_HEADER\");\n\t\taboutDetails = configUtils.readConfig(\"ABOUT_DETAILS\");\n\t\tgsTitle = configUtils.readConfig(\"GS_TITLE\");\n\t\tgsHeader = configUtils.readConfig(\"GS_HEADER\");\n\t\tgsDetailsFiles = configUtils.readConfig(\"GS_DETAILS_FILES\");\n\t\tgsDetailsCases = configUtils.readConfig(\"GS_DETAILS_CASES\");\n\t}", "private void loadAllGroups() {\n ParseUser user = ParseUser.getCurrentUser();\n List<Group> groups = user.getList(\"groups\");\n groupList.clear();\n if (groups != null) {\n for (int i = 0; i < groups.size(); i++) {\n try {\n Group group = groups.get(i).fetchIfNeeded();\n groupList.add(group);\n groupAdapter.notifyItemInserted(groupList.size() - 1);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n }\n }", "public static void load()\n throws IOException, ClassNotFoundException {\n FileInputStream f_in = new\n FileInputStream (settingsFile);\n ObjectInputStream o_in = new\n ObjectInputStream(f_in);\n SettingsSaver loaded = (SettingsSaver) o_in.readObject();\n advModeUnlocked = loaded.set[0];\n LIM_NOTESPERLINE = loaded.set[1];\n LIM_96_MEASURES = loaded.set[2];\n LIM_VOLUME_LINE = loaded.set[3];\n LIM_LOWA = loaded.set[4];\n LIM_HIGHD = loaded.set[5];\n LOW_A_ON = loaded.set[6];\n NEG_TEMPO_FUN = loaded.set[7];\n LIM_TEMPO_GAPS = loaded.set[8];\n RESIZE_WIN = loaded.set[9];\n ADV_MODE = loaded.set[10];\n o_in.close();\n f_in.close();\n }", "public static void initializeGroupMember(Group group){\n\t\tHibernate.initialize(group.getGroupMembers());\n\t}", "private void loadContact() {\n groupSpinnerItems.clear();\n for (GroupSummary groupSummary: new Contacts(getActivity()).getGroupSummary()) {\n GroupSpinnerEntry item = new GroupSpinnerEntry();\n item.groupId = groupSummary.getId();\n item.title = groupSummary.getTitle();\n groupSpinnerItems.add(item);\n }\n\n getLoaderManager().initLoader(0, null, new LoaderManager.LoaderCallbacks<Contact>() {\n @Override\n public Loader<Contact> onCreateLoader(int id, Bundle args) {\n return new ContactLoader(getActivity(), mContactLookupUri);\n }\n\n @Override\n public void onLoadFinished(Loader<Contact> loader, Contact data) {\n List<DataItem> dataItems = contact.getData();\n dataItems.clear();\n dataItems.addAll(data.getData());\n// contact.setData(data.getData());\n contact.setId(data.getId());\n contact.setRawContactId(data.getRawContactId());\n contact.setName(data.getName());\n originName = data.getName();\n contact.setPhotoUri(data.getPhotoUri());\n ((ContactEditorAdapter)adapter).refreshData();\n }\n\n @Override\n public void onLoaderReset(Loader<Contact> loader) {\n\n }\n });\n }", "@Override\r\n\tpublic void load() {\n\t}", "public void load()\n\t{\n\t\ttry {\n\t\t\tIFile file = project.getFile(PLAM_FILENAME);\n\t\t if (file.exists()) {\n\t\t\t\tInputStream stream= null;\n\t\t\t\ttry {\n\t\t\t\t\tstream = new BufferedInputStream(file.getContents(true));\n\t\t\t\t SAXReader reader = new SAXReader();\n\t\t\t\t Document document = reader.read(stream);\n\t\t\t\t \n\t\t\t\t Element root = document.getRootElement();\n\n\t\t\t\t String url = root.elementTextTrim(\"server-url\");\n\t\t\t\t setServerURL((url != null) ? new URL(url) : null);\n\t\t\t\t \n\t\t\t\t setUserName(root.elementTextTrim(\"username\"));\n\t\t\t\t setPassword(root.elementTextTrim(\"password\"));\n\t\t\t\t setProductlineId(root.elementTextTrim(\"pl-id\"));\n \n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t if (stream != null)\n\t\t\t\t stream.close();\n\t\t\t\t}\n\t\t }\n\t\t} catch (DocumentException e) {\n\t\t\tlogger.info(\"Error while parsing PLAM config.\", e);\n\t\t} catch (IOException e) {\n\t\t}\n\t}", "@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }" ]
[ "0.69813436", "0.65622455", "0.6561756", "0.64794874", "0.63367176", "0.6239785", "0.60924184", "0.6058148", "0.59510446", "0.59098595", "0.5906659", "0.5892708", "0.5867105", "0.58241343", "0.5804132", "0.5752918", "0.57303166", "0.56947744", "0.5684789", "0.56010187", "0.5515189", "0.55144185", "0.551046", "0.5502667", "0.5489232", "0.54798156", "0.5466174", "0.54610723", "0.546081", "0.5457857", "0.5457822", "0.5445955", "0.54098773", "0.54083526", "0.5405637", "0.540252", "0.5401643", "0.5380254", "0.53698885", "0.5344596", "0.53374517", "0.53338003", "0.53240716", "0.5314004", "0.53038645", "0.5270607", "0.52659816", "0.5262435", "0.5257638", "0.525308", "0.52480084", "0.52433085", "0.52409124", "0.52375424", "0.52344173", "0.5222882", "0.520887", "0.518971", "0.5180731", "0.5171306", "0.5160849", "0.51553434", "0.51507103", "0.51483124", "0.5139601", "0.5138723", "0.51340157", "0.51335835", "0.5130282", "0.5130282", "0.51258284", "0.51230705", "0.51228064", "0.51080227", "0.5103871", "0.5095787", "0.5093135", "0.50880903", "0.5079024", "0.5073466", "0.50731665", "0.5072576", "0.5068015", "0.5061703", "0.5057641", "0.50568694", "0.50492793", "0.5044059", "0.5042174", "0.5039141", "0.50359714", "0.5031929", "0.5031248", "0.5030789", "0.5024048", "0.5022452", "0.50122327", "0.5012042", "0.50103647", "0.50082815", "0.500574" ]
0.0
-1
Loads Group, Config and Domain.
public Group getGroupFullWithDomain(Long groupKey) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadConfig() {\n\t}", "public void loadConfig(){\n \t\tFile configDir = this.getDataFolder();\n \t\tif (!configDir.exists())\n \t\t\tconfigDir.mkdir();\n \n \t\t// Check for existance of config file\n \t\tFile configFile = new File(this.getDataFolder().toString() + \"/config.yml\");\n \t\tconfig = YamlConfiguration.loadConfiguration(configFile);\n \t\t\n \t\t// Adding Variables\n \t\tif(!config.contains(\"Debug\"))\n \t\t{\n \t\t\tconfig.addDefault(\"Debug\", false);\n \t \n \t config.addDefault(\"Worlds\", \"ExampleWorld1, ExampleWorld2\");\n \t\n\t config.addDefault(\"Regions.Residence\", \"ExampleWorld.ExampleResRegion1, ExampleWorld.ExampleResRegion2\");\n \t \n\t config.addDefault(\"Regions.WorldGuard\", \"ExampleWorld.ExampleWGRegion1, ExampleWorld.ExampleWGRegion2\"); \n \t\t}\n \n // Loading the variables from config\n \tdebug = (Boolean) config.get(\"Debug\");\n \tpchestWorlds = (String) config.get(\"Worlds\");\n \tpchestResRegions = (String) config.get(\"Regions.Residence\");\n \tpchestWGRegions = (String) config.get(\"Regions.WorldGuard\");\n \n if(pchestWorlds != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Chests Worlds: \" + pchestWorlds);\n }\n \n if(pchestResRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Residence Regions: \" + pchestResRegions);\n }\n \n if(pchestWGRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All World Guard Regions: \" + pchestWGRegions);\n }\n \n config.options().copyDefaults(true);\n try {\n config.save(configFile);\n } catch (IOException ex) {\n Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, \"Could not save config to \" + configFile, ex);\n }\n }", "public static void load() {\r\n\r\n log.info(\"Config : loading Listener info\"); //$NON-NLS-1$\r\n\r\n Collection children = Collections.EMPTY_LIST;\r\n\r\n try {\r\n\r\n Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);\r\n Content configNode = startPage.getContent(\"IPConfig\");\r\n children = configNode.getChildren(ItemType.CONTENTNODE); //$NON-NLS-1$\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"Config : Failed to load Listener info\"); //$NON-NLS-1$\r\n log.error(re.getMessage(), re);\r\n }\r\n\r\n Listener.cachedContent.clear();\r\n Listener.cacheContent(children);\r\n log.info(\"Config : Listener info loaded\"); //$NON-NLS-1$\r\n }", "private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }", "public static void reload() {\n\t\tif (getConfigManager() != null) {\n\t\t\tgetConfigManager().reload();\n\t\t}\n\t\tfor (Iterator i = getInstance().configGroups.keySet().iterator(); i.hasNext(); ) {\n\t\t\tString group = (String) i.next();\n\t\t\tif (getConfigManager(group) != null) {\n\t\t\t\tgetConfigManager(group).reload();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void load() throws Exception\n {\n String id = request.getParameter(\"config\");\n if (id != null && id.length() > 0)\n {\n List<DDVConfig> configs = this.getConfigs();\n for (DDVConfig c:configs)\n {\n if (c.getId().equals(id))\n {\n this.config = c;\n return;\n }\n }\n }\n }", "private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}", "public void load()\n\t{\n\t\tfor(String s : playerData.getConfig().getKeys(false))\n\t\t{\n\t\t\tPlayerData pd = new PlayerData(playerData, s);\n\t\t\tpd.load();\n\t\t\tdataMap.put(s, pd);\n\t\t}\n\t}", "public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}", "private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static void load() {\n }", "public static void load() {\n\n\t\ttry {\n\t\t\tnew Thread() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObjectDef.loadConfig();\n\t\t\t\t\t\tObjectConstants.declare();\n\t\t\t\t\t\tMapLoading.load();\n\t\t\t\t\t\tRegion.sort();\n\t\t\t\t\t\tObjectManager.declare();\n\t\t\t\t\t\tGameDefinitionLoader.loadNpcSpawns();\n\t\t\t\t\t\tNpc.spawnBosses();\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}.start();\n\n\t\t\tGlobalItemHandler.spawn();\n\t\t\tTriviaBot.start();\n\t\t\tAchievements.declare();\n\n\t\t\tGameDefinitionLoader.loadItemValues();\n\t\t\tGameDefinitionLoader.loadNpcDefinitions();\n\t\t\tGameDefinitionLoader.loadItemDefinitions();\n\t\t\tGameDefinitionLoader.loadEquipmentDefinitions();\n\t\t\tGameDefinitionLoader.loadShopDefinitions();\n\t\t\tGameDefinitionLoader.setRequirements();\n\t\t\tGameDefinitionLoader.loadWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedStrengthDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadCombatSpellDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadNpcCombatDefinitions();\n\t\t\tGameDefinitionLoader.loadItemBonusDefinitions();\n\n\t\t\tNPCDrops.parseDrops().load();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadData() {\n //load general data\n Settings.loadSettings();\n\n this.spCrawlTimeout.setValue(Settings.CRAWL_TIMEOUT / 1000);\n this.spRetryPolicy.setValue(Settings.RETRY_POLICY);\n this.spRecrawlInterval.setValue(Settings.RECRAWL_TIME / 3600000);\n this.spRecrawlCheckTime.setValue(Settings.RECRAWL_CHECK_TIME / 60000);\n }", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "public void importGroup ()\n {\n if (_chooser.showOpenDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n group.load(_chooser.getSelectedFile());\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }", "public abstract void loaded() throws ConfigurationException;", "public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }", "public void loadAssociations() {\n\n\t\tinitListSettingNames();\n\n\t\taddDefaultAssociations();\n\t}", "LoadGroup createLoadGroup();", "protected void loadAll() {\n\t\ttry {\n\t\t\tloadGroups(this.folder, this.cls, this.cachedOnes);\n\t\t\t/*\n\t\t\t * we have to initialize the components\n\t\t\t */\n\t\t\tfor (Object obj : this.cachedOnes.values()) {\n\t\t\t\t((Component) obj).getReady();\n\t\t\t}\n\t\t\tTracer.trace(this.cachedOnes.size() + \" \" + this + \" loaded.\");\n\t\t} catch (Exception e) {\n\t\t\tthis.cachedOnes.clear();\n\t\t\tTracer.trace(\n\t\t\t\t\te,\n\t\t\t\t\tthis\n\t\t\t\t\t\t\t+ \" pre-loading failed. No component of this type is available till we successfully pre-load them again.\");\n\t\t}\n\t}", "@Override\n\tpublic void load() {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "private void cargarConfiguracionBBDD()\r\n\t{\r\n\t\tjava.io.InputStream IO = null;\r\n\r\n\t\ttry {\r\n\t\t\tIO = getClass().getClassLoader().getResourceAsStream(\"configuracion.properties\");\r\n\r\n\t\t // load a properties file\r\n\t\t prop.load(IO);\r\n\t\t \r\n\t\t \r\n\t\t host=prop.getProperty(\"host\");\r\n\t\t database=prop.getProperty(\"database\");\r\n\t\t username=prop.getProperty(\"username\");\r\n\t\t password=prop.getProperty(\"password\");\r\n\t\t \r\n\t\t System.out.println(host);\r\n\r\n\t\t \r\n\t\t \r\n\t\t} catch (IOException ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t} finally {\r\n\t\t if (IO != null) {\r\n\t\t try {\r\n\t\t IO.close();\r\n\t\t } catch (IOException e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public void load() throws Exception {\n LocalizationContext[] searchContext = pm\n .getLocalSearchHierarchy(LocalizationType.COMMON_STATIC);\n Map<String, LocalizationFile> statConfs = new HashMap<String, LocalizationFile>();\n String[] extensions = new String[] { \".xml\" };\n\n // grab all stats from contexts, allowing overwrite by name\n for (LocalizationContext ctx : searchContext) {\n LocalizationFile[] localizationFiles = pm.listFiles(ctx, STATS_DIR,\n extensions, false, true);\n for (LocalizationFile lf : localizationFiles) {\n String name = lf.getName();\n if (!statConfs.containsKey(name)) {\n statConfs.put(name, lf);\n }\n }\n }\n\n if (!statConfs.isEmpty()) {\n List<StatisticsConfig> myConfigurations = new ArrayList<StatisticsConfig>(\n statConfs.size());\n Map<String, StatisticsEventConfig> myEvents = new HashMap<String, StatisticsEventConfig>();\n\n for (LocalizationFile lf : statConfs.values()) {\n try {\n StatisticsConfig config = lf.jaxbUnmarshal(\n StatisticsConfig.class, jaxbManager);\n if (config != null) {\n validate(myEvents, config);\n if (!config.getEvents().isEmpty()) {\n myConfigurations.add(config);\n }\n }\n } catch (LocalizationException e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Unable to open file [\" + lf.getName() + \"]\", e);\n }\n }\n\n configurations = myConfigurations;\n classToEventMap = myEvents;\n }\n }", "public void load() throws FileNotFoundException {\n loadConfig();\n initRepos();\n }", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "public void load() {\n handleLoad(false, false);\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "public static void initLoaderType() {\r\n boolean autoaddBoolean = GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(\"loader.autoadd.typesAttributes\", true);\r\n\r\n if (!autoaddBoolean) {\r\n return;\r\n }\r\n\r\n GrouperSession grouperSession = null;\r\n\r\n try {\r\n\r\n grouperSession = GrouperSession.startRootSession(false);\r\n\r\n GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n\r\n public Object callback(GrouperSession grouperSession)\r\n throws GrouperSessionException {\r\n try {\r\n \r\n GroupType loaderType = GroupType.createType(grouperSession, \"grouperLoader\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderType\", false);\r\n \r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDbName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderScheduleType\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuery\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderQuartzCron\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderIntervalSeconds\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderPriority\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderAndGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupTypes\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupsLike\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderGroupQuery\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncBaseFolderName\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncLevels\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderDisplayNameSyncType\", false);\r\n\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeUse\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxGroupPercentRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentGroupsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMaxOverallPercentMembershipsRemove\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupSize\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinManagedGroups\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderFailsafeSendEmail\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinGroupNumberOfMembers\", false);\r\n loaderType.addAttribute(grouperSession,\"grouperLoaderMinOverallNumberOfMembers\", false);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n return null;\r\n }\r\n\r\n });\r\n\r\n //register the hook if not already\r\n GroupTypeTupleIncludeExcludeHook.registerHookIfNecessary(true);\r\n \r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Problem adding loader type/attributes\", e);\r\n }\r\n\r\n }", "private void reloadGroupAppData(JsonEvents events) {\n\n\t\tAuthzManager.getPerunPrincipal(new JsonEvents() {\n\t\t\t@Override\n\t\t\tpublic void onFinished(JavaScriptObject result) {\n\t\t\t\tlocalPP = result.cast();\n\n\t\t\t\t// since this is a group initi form we know that vo and group are not null.\n\t\t\t\tRegistrarManager.initializeRegistrar(registrar.getVo().getShortName(), registrar.getGroup().getName(), new JsonEvents() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFinished(JavaScriptObject result) {\n\t\t\t\t\t\tRegistrarObject ro = result.cast();\n\t\t\t\t\t\tregistrar.setGroupFormInitial(ro.getGroupFormInitial());\n\t\t\t\t\t\tregistrar.setGroupFormInitialException(ro.getGroupFormInitialException());\n\t\t\t\t\t\t// continue with the step\n\t\t\t\t\t\tevents.onFinished(null);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onError(PerunException error) {\n\t\t\t\t\t\t// ignore and continue with the step\n\t\t\t\t\t\tevents.onFinished(null);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLoadingStart() {\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(PerunException error) {\n\t\t\t\t// ignore it and continue with default form init processing\n\t\t\t\tevents.onFinished(null);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onLoadingStart() {\n\t\t\t}\n\t\t});\n\n\n\t}", "public void loadConfigs() {\n\t configYML = new ConfigYML();\n\t configYML.setup();\n }", "public void initFromClasspath() throws IOException {\n \t\tcontactNames = loadFromClassPath(\"contactNames\");\n \t\tgroupNames = loadFromClassPath(\"groupNames\");\n \t\tmessageWords = loadFromClassPath(\"messageWords\");\n \t}", "@Override\n\tpublic void load() throws RemoteException {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}", "private static void load(){\n }", "public void load() {\n loadDisabledWorlds();\n chunks.clear();\n for (World world : ObsidianDestroyer.getInstance().getServer().getWorlds()) {\n for (Chunk chunk : world.getLoadedChunks()) {\n loadChunk(chunk);\n }\n }\n }", "public void importConfigs ()\n {\n if (_chooser.showOpenDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n group.load(_chooser.getSelectedFile(), true);\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "public static void load() {\n for (DataSourceSwapper each : ServiceLoader.load(DataSourceSwapper.class)) {\n loadOneSwapper(each);\n }\n }", "private void parseExternalResources() {\n // Ensure that this is called only once.\n if (externalGroupsMap != null && externalGroupsMap.size() > 0) {\n log().info(\"parseExternalResources: external data collection groups are already parsed\");\n return;\n }\n \n // Check configuration files repository\n File folder = new File(configDirectory);\n if (!folder.exists() || !folder.isDirectory()) {\n log().info(\"parseExternalResources: directory \" + folder + \" does not exist or is not a folder.\");\n return;\n }\n \n // Get external configuration files\n File[] listOfFiles = folder.listFiles(new FilenameFilter() {\n public boolean accept(File file, String name) {\n return name.endsWith(\".xml\");\n }\n });\n \n // Parse configuration files (populate external groups map)\n final CountDownLatch latch = new CountDownLatch(listOfFiles.length);\n int i = 0;\n for (final File file : listOfFiles) {\n Thread thread = new Thread(\"DataCollectionConfigParser-Thread-\" + i++) {\n public void run() {\n try {\n log().debug(\"parseExternalResources: parsing \" + file);\n DatacollectionGroup group = JaxbUtils.unmarshal(DatacollectionGroup.class, new FileSystemResource(file));\n // Synchronize around the map that holds the results\n synchronized(externalGroupsMap) {\n externalGroupsMap.put(group.getName(), group);\n }\n } catch (Throwable e) {\n throwException(\"Can't parse XML file \" + file + \"; nested exception: \" + e.getMessage(), e);\n } finally {\n latch.countDown();\n }\n }\n };\n thread.start();\n }\n\n try {\n latch.await();\n } catch (InterruptedException e) {\n throwException(\"Exception while waiting for XML parsing threads to complete: \" + e.getMessage(), e);\n }\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 void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }", "public void load() {\n\t}", "public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n load(basedir);\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }", "public void loadGraph() {\n\t\tJSONArray data = null;\n\n\t\tswitch (mApp.getCurrentGroupBy()) {\n\t\tcase DATE:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByDateInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase MAX:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByMaxInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase NONE:\n\t\t\tdata = DataBaseUtil.fetchEntriesInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\t\t}\n\t\tloadGraph(data);\n\t}", "public static void load() {\n load(false);\n }", "public void load() {\n }", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "@Override\r\n\tpublic void load() {\n\t}", "private void loadData()\n {\n try\n {\n //Reads in the data from default file\n System.out.println(\"ATTEMPTING TO LOAD\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups.dat\");\n System.out.println(\"LOADED\");\n loadSuccessful = true;\n \n //If read is successful, save backup file in case of corruption\n try\n {\n System.out.println(\"SAVING BACKUP\");\n serial.Serialize(allGroups, \"All-Groups-backup.dat\");\n System.out.println(\"BACKUP SAVED\");\n } catch (IOException e)\n {\n System.out.println(\"FAILED TO WRITE BACKUP DATA\");\n }\n } catch (IOException e)\n {\n //If loading from default file fails, first try loading from backup file\n System.out.println(\"READING FROM DEFAULT FAILED\");\n try\n {\n System.out.println(\"ATTEMPTING TO READ FROM BACKUP\");\n allGroups = (ArrayList<CharacterGroup>)serial.Deserialize(\"All-Groups-backup\");\n System.out.println(\"READING FROM BACKUP SUCCESSFUL\");\n loadSuccessful = true;\n } catch (IOException ex)\n {\n //If reading from backup fails aswell generate default data\n System.out.println(\"READING FROM BACKUP FAILED\");\n allGroups = new ArrayList();\n } catch (ClassNotFoundException ex){}\n } catch (ClassNotFoundException e){}\n }", "protected abstract void onLoad() throws IOException, ConfigInvalidException;", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public final void rule__ExternalLoad__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7580:1: ( ( 'load' ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7581:1: ( 'load' )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7581:1: ( 'load' )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7582:1: 'load'\n {\n before(grammarAccess.getExternalLoadAccess().getLoadKeyword_1()); \n match(input,71,FOLLOW_71_in_rule__ExternalLoad__Group__1__Impl15260); \n after(grammarAccess.getExternalLoadAccess().getLoadKeyword_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "protected void loadData()\n {\n }", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "protected abstract void loadData();", "public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n if (load(basedir, false) == null) {\n throw new ConfiguratorException(\n \"configurator.cannot.bootstrap\");\n }\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "@Override\n void loadData() {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n // Attempt to read the config in the config file.\n langConfig = YamlConfiguration.loadConfiguration(langConfigFile);\n // If the config file is null (due to the config file being invalid or not there) create a new one.\n // If the file doesnt exist, populate it from the template.\n if (!langConfigFile.exists()) {\n langConfigFile = new File(plugin.getDataFolder() + \"/messages.yml\");\n langConfig = YamlConfiguration.loadConfiguration(new InputStreamReader(plugin.getResource(\"messages.yml\")));\n saveData();\n }\n }", "@Override\n public void load() {\n }", "public void loadAndWait()\n {\n injector.addConfigurationInstances(this.configClassInstances);\n\n // load all @Services from @Configuration classes\n injector.activateFailOnNullInstance();\n injector.load();\n\n // detect duplicates and crash on matches\n injector.crashOnDuplicates();\n\n // branch out the dependencies, such that Service A, with dependency B, is\n // aware of all dependencies of B.\n injector.branchOutDependencyTree();\n\n // sort the services, based on dependency requirements\n injector.sortByDependencies();\n\n // instantiate services/clients and crash if any nil instances are detected\n injector.instantiateComponents();\n injector.crashOnNullInstances();\n\n // add the component instances to the ServiceContext\n injector.installServices(ctx);\n\n // instantiate clients\n //injector.instantiateClients();\n\n // invoke DepWire methods with required services & clients\n injector.findDepWireMethodsAndPopulate();\n }", "private void loadAggregationModules() {\n\t\tthis.aggregationModules = new ModuleLoader<IAggregate>(\"/Aggregation_Modules\", IAggregate.class).loadClasses();\n\t}", "@Override\n public void load() {\n }", "@Test\r\n\tpublic void testLoad() {\n\t\tDalConfigure configure = null;\r\n\t\ttry {\r\n\t\t\tconfigure = DalConfigureFactory.load();\r\n\t\t\tassertNotNull(configure);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\r\n\t\tDatabaseSet databaseSet = configure.getDatabaseSet(\"clusterName1\");\r\n\t\tassertTrue(databaseSet instanceof ClusterDatabaseSet);\r\n\t\tassertEquals(\"clusterName1\".toLowerCase(), ((ClusterDatabaseSet) databaseSet).getCluster().getClusterName());\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"clusterName1\".toLowerCase());\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"clusterName2\");\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdatabaseSet = configure.getDatabaseSet(\"DbSetName\");\r\n\t\tassertTrue(databaseSet instanceof ClusterDatabaseSet);\r\n\t\tassertEquals(\"clusterName2\".toLowerCase(), ((ClusterDatabaseSet) databaseSet).getCluster().getClusterName());\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"DbSetName\".toLowerCase());\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}", "private void loadPersistedData() {\n IntegerRange storedAutoStartOnDisconnectDelayRange =\n AUTOSTART_ON_DISCONNECT_DELAY_RANGE_SETTING.load(mDeviceDict);\n if (storedAutoStartOnDisconnectDelayRange != null) {\n mPilotingItf.getAutoStartOnDisconnectDelay().updateBounds(storedAutoStartOnDisconnectDelayRange);\n }\n\n DoubleRange endingHoveringAltitudeRange = ENDING_HOVERING_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (endingHoveringAltitudeRange != null) {\n mPilotingItf.getEndingHoveringAltitude().updateBounds(endingHoveringAltitudeRange);\n }\n\n DoubleRange minAltitudeRange = MIN_ALTITUDE_RANGE_SETTING.load(mDeviceDict);\n if (minAltitudeRange != null) {\n mPilotingItf.getMinAltitude().updateBounds(minAltitudeRange);\n }\n\n applyPresets();\n }", "private void initDataLoader() {\n\t}", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "public void load()\n\t{\n\t\ttry {\n\t\t\tIFile file = project.getFile(PLAM_FILENAME);\n\t\t if (file.exists()) {\n\t\t\t\tInputStream stream= null;\n\t\t\t\ttry {\n\t\t\t\t\tstream = new BufferedInputStream(file.getContents(true));\n\t\t\t\t SAXReader reader = new SAXReader();\n\t\t\t\t Document document = reader.read(stream);\n\t\t\t\t \n\t\t\t\t Element root = document.getRootElement();\n\n\t\t\t\t String url = root.elementTextTrim(\"server-url\");\n\t\t\t\t setServerURL((url != null) ? new URL(url) : null);\n\t\t\t\t \n\t\t\t\t setUserName(root.elementTextTrim(\"username\"));\n\t\t\t\t setPassword(root.elementTextTrim(\"password\"));\n\t\t\t\t setProductlineId(root.elementTextTrim(\"pl-id\"));\n \n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t if (stream != null)\n\t\t\t\t stream.close();\n\t\t\t\t}\n\t\t }\n\t\t} catch (DocumentException e) {\n\t\t\tlogger.info(\"Error while parsing PLAM config.\", e);\n\t\t} catch (IOException e) {\n\t\t}\n\t}", "private void loadContact() {\n groupSpinnerItems.clear();\n for (GroupSummary groupSummary: new Contacts(getActivity()).getGroupSummary()) {\n GroupSpinnerEntry item = new GroupSpinnerEntry();\n item.groupId = groupSummary.getId();\n item.title = groupSummary.getTitle();\n groupSpinnerItems.add(item);\n }\n\n getLoaderManager().initLoader(0, null, new LoaderManager.LoaderCallbacks<Contact>() {\n @Override\n public Loader<Contact> onCreateLoader(int id, Bundle args) {\n return new ContactLoader(getActivity(), mContactLookupUri);\n }\n\n @Override\n public void onLoadFinished(Loader<Contact> loader, Contact data) {\n List<DataItem> dataItems = contact.getData();\n dataItems.clear();\n dataItems.addAll(data.getData());\n// contact.setData(data.getData());\n contact.setId(data.getId());\n contact.setRawContactId(data.getRawContactId());\n contact.setName(data.getName());\n originName = data.getName();\n contact.setPhotoUri(data.getPhotoUri());\n ((ContactEditorAdapter)adapter).refreshData();\n }\n\n @Override\n public void onLoaderReset(Loader<Contact> loader) {\n\n }\n });\n }", "public LoadBasedDivision() {\n }", "protected JSON loadDomain(HttpServletRequest request) throws WebOSBOException {\r\n\t try {\r\n List<JSON> jsons = new ArrayList<JSON>();\r\n JSONObject json = null;\r\n \r\n if(this.category.equals(DOMAIN)) {\r\n List<LdapMailDomain> domains = this.domainManager.findActiveDomain();\r\n \r\n // there is no active domain\r\n if(domains == null) return SUCCESS_JSON;\r\n // create the list to contain JSON object\r\n for(LdapMailDomain domain : domains) {\r\n json = new JSONObject();\r\n json.accumulate(IContactInfoService.DOMAIN_NAME, domain.getDomainName())\r\n .accumulate(IContactInfoService.DOMAIN_DESC, StringService.hasLength(domain.getDescription())?domain.getDescription(): \" \");\r\n jsons.add(json);\r\n }\r\n }else if(this.category.equals(GROUP)) {\r\n List<LdapGroup> groups = this.groupManager.findAllRealGroups(getDomain());\r\n \r\n // there is no active domain\r\n if(groups == null) return SUCCESS_JSON;\r\n // create the list to contain JSON object\r\n for(LdapGroup group : groups) {\r\n json = new JSONObject();\r\n json.accumulate(IContactInfoService.DOMAIN_NAME, group.getName())\r\n .accumulate(IContactInfoService.DOMAIN_DESC, \r\n StringService.hasLength(group.getDescription())\r\n ?group.getDescription(): \" \");\r\n jsons.add(json);\r\n }\r\n }\r\n \r\n // convert to JSON array\r\n return JSONService.toJSONArray(jsons); \r\n } catch (LotusException ex) {\r\n logger.error(\"ERROR while load domain\", ex);\r\n return FAILURE_JSON;\r\n }\r\n\t}", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }", "public final void rule__ExternalLoad__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7568:1: ( rule__ExternalLoad__Group__1__Impl rule__ExternalLoad__Group__2 )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:7569:2: rule__ExternalLoad__Group__1__Impl rule__ExternalLoad__Group__2\n {\n pushFollow(FOLLOW_rule__ExternalLoad__Group__1__Impl_in_rule__ExternalLoad__Group__115229);\n rule__ExternalLoad__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__ExternalLoad__Group__2_in_rule__ExternalLoad__Group__115232);\n rule__ExternalLoad__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } else {\r\n LOG.error(\"Can't load default Scope config from: \" + DEFAULT_CONFIG_NAME);\r\n }\r\n }", "@Override\n public synchronized void load(Map<String, Object> parameters) {\n // fill properly the \"forGroups\" and \"forProjects\" fields\n processTargetGroupsAndProjects();\n\n if (!hasPlugin()) {\n LOGGER.log(Level.SEVERE, \"Configured plugin \\\"{0}\\\" has not been loaded into JVM (missing file?). \"\n + \"This can cause the authorization to fail always.\",\n getName());\n setFailed();\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n return;\n }\n\n setCurrentSetup(new TreeMap<>());\n getCurrentSetup().putAll(parameters);\n getCurrentSetup().putAll(getSetup());\n\n try {\n plugin.load(getCurrentSetup());\n setWorking();\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while loading with exception:\", ex);\n setFailed();\n }\n\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n }", "@Override\r\n\tpublic void load() {\n\r\n\t}", "public void loadPersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tif (file.length() == 0) { // no persistent data to use\n\t\t\treturn;\n\t\t}\n\t\tdeserializeFile(file);\n\t\tloadPersistentSettings();\n\t}", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public void config(Group[] group) {\n\n }", "private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }", "public void load()\n {\n //<!-- Private Data Storage -->\n //addProvider(\"query\", \"jabber:iq:private\",\n // org.jivesoftware.smackx.PrivateDataManager.PrivateDataIQProvider.class);\n\n //<!-- Time -->\n //addProvider(\"query\", \"jabber:iq:time\",\n // org.jivesoftware.smackx.packet.Time.class);\n\n //<!-- Roster Exchange -->\n addExtProvider(\"x\", \"jabber:x:roster\",\n RosterExchangeProvider.class);\n //<!-- Message Events -->\n addExtProvider(\"x\", \"jabber:x:event\",\n MessageEventProvider.class);\n\n //<!-- Chat State -->\n addExtProvider(\n \"active\",\n \"http://jabber.org/protocol/chatstates\",\n ChatStateExtension.Provider.class);\n addExtProvider(\n \"composing\",\n \"http://jabber.org/protocol/chatstates\",\n ChatStateExtension.Provider.class);\n addExtProvider(\n \"paused\",\n \"http://jabber.org/protocol/chatstates\",\n ChatStateExtension.Provider.class);\n addExtProvider(\n \"inactive\",\n \"http://jabber.org/protocol/chatstates\",\n ChatStateExtension.Provider.class);\n addExtProvider(\n \"gone\",\n \"http://jabber.org/protocol/chatstates\",\n ChatStateExtension.Provider.class);\n\n\n //<!-- XHTML -->\n addExtProvider(\"html\", \"http://jabber.org/protocol/xhtml-im\",\n XHTMLExtensionProvider.class);\n\n //<!-- Group Chat Invitations -->\n addExtProvider(\"x\", \"jabber:x:conference\",\n GroupChatInvitation.Provider.class);\n\n //<!-- Service Discovery # Items -->\n addProvider(\"query\", \"http://jabber.org/protocol/disco#items\",\n DiscoverItemsProvider.class);\n //<!-- Service Discovery # Info -->\n addProvider(\"query\", \"http://jabber.org/protocol/disco#info\",\n DiscoverInfoProvider.class);\n\n //<!-- Data Forms-->\n addExtProvider(\"x\", \"jabber:x:data\",\n org.jivesoftware.smackx.provider.DataFormProvider.class);\n\n //<!-- MUC User -->\n addExtProvider(\"x\", \"http://jabber.org/protocol/muc#user\",\n MUCUserProvider.class);\n //<!-- MUC Admin -->\n addProvider(\"query\", \"http://jabber.org/protocol/muc#admin\",\n MUCAdminProvider.class);\n //<!-- MUC Owner -->\n addProvider(\"query\", \"http://jabber.org/protocol/muc#owner\",\n MUCOwnerProvider.class);\n\n //<!-- Delayed Delivery -->\n addExtProvider(\"x\", \"jabber:x:delay\",\n DelayInformationProvider.class);\n addExtProvider(\"delay\", \"urn:xmpp:delay\",\n DelayInfoProvider.class);\n\n //<!-- Version -->\n addProvider(\"query\", \"jabber:iq:version\",\n Version.class);\n\n //<!-- VCard -->\n addProvider(\"vCard\", \"vcard-temp\",\n VCardProvider.class);\n\n //<!-- Offline Message Requests -->\n addProvider(\"offline\", \"http://jabber.org/protocol/offline\",\n OfflineMessageRequest.Provider.class);\n\n //<!-- Offline Message Indicator -->\n addExtProvider(\"offline\", \"http://jabber.org/protocol/offline\",\n OfflineMessageInfo.Provider.class);\n\n //<!-- Last Activity -->\n addProvider(\"query\", \"jabber:iq:last\",\n LastActivity.class);\n\n //<!-- User Search -->\n addProvider(\"query\", \"jabber:iq:search\",UserSearchProvider.class);\n\n //<!-- SharedGroupsInfo -->\n //addProvider(\"sharedgroup\", \"http://www.jivesoftware.org/protocol/sharedgroup\",\n // org.jivesoftware.smackx.packet.SharedGroupsInfo.Provider.class);\n\n\n //<!-- JEP-33: Extended Stanza Addressing -->\n //addProvider(\"addresses\", \"http://jabber.org/protocol/address\",\n // org.jivesoftware.smackx.provider.MultipleAddressesProvider.class);\n\n //<!-- FileTransfer -->\n addProvider(\"si\", \"http://jabber.org/protocol/si\",\n StreamInitiationProvider.class);\n addProvider(\"query\", \"http://jabber.org/protocol/bytestreams\",\n org.jivesoftware.smackx.bytestreams.socks5.provider.BytestreamsProvider.class);\n addProvider(\"open\", \"http://jabber.org/protocol/ibb\",\n OpenIQProvider.class);\n addProvider(\"data\", \"http://jabber.org/protocol/ibb\",\n DataPacketProvider.class);\n addProvider(\"close\", \"http://jabber.org/protocol/ibb\",\n CloseIQProvider.class);\n addExtProvider(\"data\", \"http://jabber.org/protocol/ibb\",\n DataPacketProvider.class);\n\n\n //<!-- Privacy -->\n //addProvider(\"query\", \"jabber:iq:privacy\",\n // org.jivesoftware.smack.provider.PrivacyProvider.class);\n\n //<!-- Ad-Hoc Command -->\n //addProvider(\"command\", \"http://jabber.org/protocol/commands\",\n // org.jivesoftware.smackx.provider.AdHocCommandDataProvider.class);\n\n //addExtProvider(\"bad-action\", \"http://jabber.org/protocol/commands\",\n // org.jivesoftware.smackx.provider.AdHocCommandDataProvider.BadActionError.class);\n\n //addExtProvider(\"malformed-actionn\", \"http://jabber.org/protocol/commands\",\n // org.jivesoftware.smackx.provider.AdHocCommandDataProvider.MalformedActionError.class);\n\n //addExtProvider(\"bad-locale\", \"http://jabber.org/protocol/commands\",\n // org.jivesoftware.smackx.provider.AdHocCommandDataProvider.BadLocaleError.class);\n\n //addExtProvider(\"bad-payload\", \"http://jabber.org/protocol/commands\",\n // org.jivesoftware.smackx.provider.AdHocCommandDataProvider.BadPayloadError.class);\n\n //addExtProvider(\"bad-sessionid\", \"http://jabber.org/protocol/commands\",\n // org.jivesoftware.smackx.provider.AdHocCommandDataProvider.BadSessionIDError.class);\n\n //addExtProvider(\"session-expired\", \"http://jabber.org/protocol/commands\",\n // org.jivesoftware.smackx.provider.AdHocCommandDataProvider.SessionExpiredError.class);\n\n\n //<!-- Fastpath providers -->\n //addProvider(\"offer\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.OfferRequestProvider.class);\n\n //addProvider(\"offer-revoke\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.OfferRevokeProvider.class);\n\n //addProvider(\"agent-status-request\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.AgentStatusRequest.Provider.class);\n\n //addProvider(\"transcripts\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.TranscriptsProvider.class);\n\n //addProvider(\"transcript\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.TranscriptProvider.class);\n\n //addProvider(\"workgroups\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.AgentWorkgroups.Provider.class);\n\n //addProvider(\"agent-info\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.AgentInfo.Provider.class);\n\n //addProvider(\"transcript-search\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.TranscriptSearch.Provider.class);\n\n //addProvider(\"occupants-info\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.OccupantsInfo.Provider.class);\n\n //addProvider(\"chat-settings\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.settings.ChatSettings.InternalProvider.class);\n\n //addProvider(\"chat-notes\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.ext.notes.ChatNotes.Provider.class);\n\n //addProvider(\"chat-sessions\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.ext.history.AgentChatHistory.InternalProvider.class);\n\n //addProvider(\"offline-settings\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.settings.OfflineSettings.InternalProvider.class);\n\n //addProvider(\"sound-settings\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.settings.SoundSettings.InternalProvider.class);\n\n //addProvider(\"workgroup-properties\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.settings.WorkgroupProperties.InternalProvider.class);\n\n\n //addProvider(\"search-settings\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.settings.SearchSettings.InternalProvider.class);\n\n //addProvider(\"workgroup-form\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.ext.forms.WorkgroupForm.InternalProvider.class);\n\n //addProvider(\"macros\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.ext.macros.Macros.InternalProvider.class);\n\n //addProvider(\"chat-metadata\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.ext.history.ChatMetadata.Provider.class);\n\n //<!--\n //org.jivesoftware.smackx.workgroup.site is missing ...\n\n //addProvider(\"site-user\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.site.SiteUser.Provider.class);\n\n //addProvider(\"site-invite\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.site.SiteInvitation.Provider.class);\n\n //addProvider(\"site-user-history\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.site.SiteUserHistory.Provider.class);\n //-->\n //addProvider(\"generic-metadata\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.settings.GenericSettings.InternalProvider.class);\n\n //addProvider(\"monitor\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.MonitorPacket.InternalProvider.class);\n\n //<!-- Packet Extension Providers -->\n //addExtProvider(\"queue-status\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.QueueUpdate.Provider.class);\n\n //addExtProvider(\"workgroup\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.WorkgroupInformation.Provider.class);\n\n //addExtProvider(\"metadata\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.MetaDataProvider.class);\n\n //addExtProvider(\"session\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.SessionID.Provider.class);\n\n //addExtProvider(\"user\", \"http://jivesoftware.com/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.UserID.Provider.class);\n\n //addExtProvider(\"agent-status\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.AgentStatus.Provider.class);\n\n //addExtProvider(\"notify-queue-details\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.QueueDetails.Provider.class);\n\n //addExtProvider(\"notify-queue\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.QueueOverview.Provider.class);\n\n //addExtProvider(\"invite\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.RoomInvitation.Provider.class);\n\n //addExtProvider(\"transfer\", \"http://jabber.org/protocol/workgroup\",\n // org.jivesoftware.smackx.workgroup.packet.RoomTransfer.Provider.class);\n\n //<!-- SHIM -->\n //addExtProvider(\"headers\", \"http://jabber.org/protocol/shim\",\n // org.jivesoftware.smackx.provider.HeadersProvider.class);\n\n //addExtProvider(\"header\", \"http://jabber.org/protocol/shim\",\n // org.jivesoftware.smackx.provider.HeaderProvider.class);\n\n //<!-- XEP-0060 pubsub -->\n //addProvider(\"pubsub\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.PubSubProvider.class);\n\n //addExtProvider(\"create\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.SimpleNodeProvider.class);\n\n //addExtProvider(\"items\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.ItemsProvider.class);\n\n //addExtProvider(\"item\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.ItemProvider.class);\n\n //addExtProvider(\"subscriptions\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.SubscriptionsProvider.class);\n\n //addExtProvider(\"subscription\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.SubscriptionProvider.class);\n\n //addExtProvider(\"affiliations\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.AffiliationsProvider.class);\n\n //addExtProvider(\"affiliation\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.AffiliationProvider.class);\n\n //addExtProvider(\"options\", \"http://jabber.org/protocol/pubsub\",\n // org.jivesoftware.smackx.pubsub.provider.FormNodeProvider.class);\n\n //<!-- XEP-0060 pubsub#owner -->\n //addProvider(\"pubsub\", \"http://jabber.org/protocol/pubsub#owner\",\n // org.jivesoftware.smackx.pubsub.provider.PubSubProvider.class);\n\n //addExtProvider(\"configure\", \"http://jabber.org/protocol/pubsub#owner\",\n // org.jivesoftware.smackx.pubsub.provider.FormNodeProvider.class);\n\n //addExtProvider(\"default\", \"http://jabber.org/protocol/pubsub#owner\",\n // org.jivesoftware.smackx.pubsub.provider.FormNodeProvider.class);\n\n //<!-- XEP-0060 pubsub#event -->\n //addExtProvider(\"event\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.EventProvider.class);\n\n //addExtProvider(\"configuration\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.ConfigEventProvider.class);\n\n //addExtProvider(\"delete\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.SimpleNodeProvider.class);\n\n //addExtProvider(\"options\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.FormNodeProvider.class);\n\n //addExtProvider(\"items\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.ItemsProvider.class);\n\n //addExtProvider(\"item\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.ItemProvider.class);\n\n //addExtProvider(\"retract\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.RetractEventProvider.class);\n\n //addExtProvider(\"purge\", \"http://jabber.org/protocol/pubsub#event\",\n // org.jivesoftware.smackx.pubsub.provider.SimpleNodeProvider.class);\n\n //<!-- Nick Exchange -->\n //addExtProvider(\"nick\", \"http://jabber.org/protocol/nick\",\n // org.jivesoftware.smackx.packet.Nick.Provider.class);\n\n //<!-- Attention -->\n //addExtProvider(\"attention\", \"urn:xmpp:attention:0\",\n // org.jivesoftware.smackx.packet.AttentionExtension.Provider.class);\n }", "public static void loadGameConfiguration() {\n File configFile = new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME);\n manageGameConfigFile(configFile);\n }", "public void load();", "public void load();", "public LoadBasedDivision(Host host) {\n super(host);\n }", "public void initClassLoader() {\n FileClassLoadingService classLoader = new FileClassLoadingService();\n\n // init from preferences...\n Domain classLoaderDomain = getPreferenceDomain().getSubdomain(\n FileClassLoadingService.class);\n\n Collection details = classLoaderDomain.getPreferences();\n if (details.size() > 0) {\n\n // transform preference to file...\n Transformer transformer = new Transformer() {\n\n public Object transform(Object object) {\n DomainPreference pref = (DomainPreference) object;\n return new File(pref.getKey());\n }\n };\n\n classLoader.setPathFiles(CollectionUtils.collect(details, transformer));\n }\n\n this.modelerClassLoader = classLoader;\n }", "public void loadSettings(Properties properties) {\r\n mSettings = new TvBrowserDataServiceSettings(properties);\r\n\r\n String[] levelIds=mSettings.getLevelIds();\r\n ArrayList<TvDataLevel> levelList=new ArrayList<TvDataLevel>();\r\n for (int i=0;i<DayProgramFile.getLevels().length;i++) {\r\n if (DayProgramFile.getLevels()[i].isRequired()) {\r\n levelList.add(DayProgramFile.getLevels()[i]);\r\n }\r\n else{\r\n for (String levelId : levelIds) {\r\n if (levelId.equals(DayProgramFile.getLevels()[i].getId())) {\r\n levelList.add(DayProgramFile.getLevels()[i]);\r\n }\r\n }\r\n }\r\n }\r\n\r\n setTvDataLevel(levelList.toArray(new TvDataLevel[levelList.size()]));\r\n\r\n\r\n /* load channel groups settings */\r\n refreshAvailableChannelGroups();\r\n\r\n setWorkingDirectory(mDataDir);\r\n }", "public void load() ;", "public void load() throws ClassNotFoundException, IOException;", "public void loadMapsModule(){\n Element rootElement = FileOperator.fileReader(MAPS_FILE_PATH);\n if(rootElement!=null){\n Iterator i = rootElement.elementIterator();\n while (i.hasNext()) {\n Element element = (Element) i.next();\n GridMap map =new GridMap();\n map.decode(element);\n mapsList.add(map);\n }\n }\n }", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "public abstract void load();", "@SuppressWarnings(\"unchecked\")\n\tprotected void parseConfig() {\n\t\t_nameservers = new ArrayList<String>();\n\t\t_nameserverPorts = new ArrayList<String>();\n\n\t\t_props = new Hashtable<String,String>();\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\n\t\t// Cache Size\n\t\t_cacheSize = Integer.parseInt(_root.getChild(\"pdbi\", ns).getChild(\n\t\t\t\t\"CacheSize\", ns).getTextTrim());\n\n\t\t// get the location of the scripts and web pages\n\t\tscriptLocationSci1 = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectorySci1\",ns).getTextTrim();\n\t\tscriptLocationSci2 = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectorySci2\",ns).getTextTrim();\n\t\tscriptLocationFT = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectoryFT\",ns).getTextTrim();\n\t\tgradeWeb = _root.getChild(\"pdbi\",ns).getChild(\"webDirectory\",ns).getTextTrim();\n\t\t// Load Properties\n\t\tList propElements = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"properties\", ns)\n\t\t\t\t\t\t\t\t .getChildren(\"prop\", ns);\n\t\tIterator i = propElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_props.put(current.getAttributeValue(\"key\"),\n\t\t\t current.getAttributeValue(\"value\"));\n\t\t}\n\n\t\t// Load Starting NameComponent\n\t\tString start = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"NameComponent\", ns)\n\t\t\t\t\t\t\t.getAttributeValue(\"start\");\n\t\tif (start.equals(\"1\") || start.equals(\"true\")) {\n\t\t\t_nameComponentIDs = new ArrayList<String>();\n\t\t\t_nameComponentKinds = new ArrayList<String>();\n\t\t\tList ncElements = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"NameComponent\", ns)\n\t\t\t\t\t\t\t\t .getChildren(\"item\", ns);\n\t\t\ti = ncElements.iterator();\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tElement current = (Element)i.next();\n\t\t\t\tString id = current.getAttributeValue(\"id\");\n\t\t\t\tString kind = current.getAttributeValue(\"kind\");\n\t\t\t\t_nameComponentIDs.add(id);\n\t\t\t\t_nameComponentKinds.add(kind);\n\t\t\t}\n\t\t} else {\n\t\t\t_nameComponentIDs = null;\n\t\t\t_nameComponentKinds = null;\n\t\t}\n\t\t\t\n\n\t\t// Load NameServers\n\t\tList nameServerElements = _root.getChild(\"pdbi\", ns)\n\t\t\t.getChild(\"nameServers\", ns)\n\t\t\t.getChildren(\"nameServer\", ns);\n\t\ti = nameServerElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_nameservers.add(current.getChild(\"identifier\", ns)\n\t\t\t\t\t.getTextTrim());\n\t\t}\n\n\t\t// Load NameServer Ports\n\t\tList nameServerPortElements = _root.getChild(\"pdbi\", ns)\n\t\t\t.getChild(\"nameServerPorts\", ns)\n\t\t\t.getChildren(\"nameServerPort\", ns);\n\t\ti = nameServerPortElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_nameserverPorts.add(current.getChild(\"pidentifier\", ns)\n\t\t\t\t\t.getTextTrim());\n\t\t}\n\t}", "private void loadConfiguration() {\n // TODO Get schema key value from model and set to text field\n /*\n\t\t * if (!StringUtils.isBlank(schemaKey.getKeyValue())) {\n\t\t * schemaKeyTextField.setText(schemaKey.getKeyValue()); }\n\t\t */\n }", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "protected void initialize() {\n // Attribute Load\n this.attributeMap.clear();\n this.attributeMap.putAll(this.loadAttribute());\n // RuleUnique Load\n this.unique = this.loadRule();\n // Marker Load\n this.marker = this.loadMarker();\n // Reference Load\n this.reference = this.loadReference();\n }", "private void loadGroup(IMemento group)\n\t{\n\t\tRegistersGroupData groupData = new RegistersGroupData();\n\n\t\t// get group name\n\t\tString groupName = group.getString(FIELD_NAME);\n\t\tif (groupName == null)\n\t\t\treturn;\n\n\t\t// get group size\n\t\tIMemento mem = group.getChild(ELEMENT_TOTAL);\n\t\tif (mem == null)\n\t\t\treturn;\n\n\t\tInteger tempInt = mem.getInteger(FIELD_SIZE);\n\t\tif (tempInt == null)\n\t\t\treturn;\n\n\t\tgroupData.totalSize = tempInt.intValue();\n\n\t\t// check add total field\n\t\tgroupData.addTotalField = true;\n\t\tString tempStr = mem.getString(FIELD_ADD_TOTAL);\n\t\tif (tempStr != null && tempStr.equalsIgnoreCase(\"false\"))\n\t\t\tgroupData.addTotalField = false;\n\n\t\t// get sub-division\n\t\tIMemento[] mems = group.getChildren(ELEMENT_SUB);\n\t\tgroupData.indicies = new int[mems.length];\n\t\tgroupData.sizes = new int[mems.length];\n\t\tgroupData.names = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t{\n\t\t\ttempInt = mems[ind].getInteger(FIELD_INDEX);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.indicies[ind] = tempInt.intValue();\n\n\t\t\ttempInt = mems[ind].getInteger(FIELD_SIZE);\n\t\t\tif (tempInt == null)\n\t\t\t\treturn;\n\t\t\tgroupData.sizes[ind] = tempInt.intValue();\n\n\t\t\tgroupData.names[ind] = mems[ind].getString(FIELD_NAME);\n\t\t\tif (groupData.names[ind] == null)\n\t\t\t\treturn;\n\t\t}\n\n\t\t// add group data\n\t\tmapper.addGroup(groupName/*, groupData*/);\n\n\t\tmems = group.getChildren(ELEMENT_REGISTER);\n\t\tString[] register = new String[mems.length];\n\n\t\tfor (int ind=0; ind < mems.length; ind++)\n\t\t\tregister[ind] = mems[ind].getString(FIELD_NAME);\n\n\t\t// add registers\n\t\tmapper.addRegisters(groupName, register);\n\t}" ]
[ "0.61347985", "0.6060982", "0.60443336", "0.593952", "0.5907454", "0.59008104", "0.58965784", "0.5882911", "0.5877027", "0.57947004", "0.57817787", "0.5781178", "0.5769639", "0.575397", "0.57143736", "0.57061857", "0.5681062", "0.56758875", "0.5623914", "0.56206435", "0.56149095", "0.5559152", "0.55514", "0.554543", "0.55453765", "0.55050546", "0.54999906", "0.5493255", "0.548887", "0.5484034", "0.5466414", "0.54650575", "0.546367", "0.5452124", "0.5446931", "0.5444824", "0.5444824", "0.5438043", "0.5418173", "0.5396433", "0.5395355", "0.539209", "0.5361946", "0.5342176", "0.53241634", "0.53216237", "0.53176343", "0.53149444", "0.5312608", "0.53087306", "0.5307456", "0.53006744", "0.53001106", "0.52957225", "0.52957225", "0.52957225", "0.5263791", "0.5253951", "0.5243314", "0.5238175", "0.52306217", "0.52290726", "0.52278864", "0.52215785", "0.5218899", "0.5217561", "0.5208684", "0.52055323", "0.51790774", "0.5178587", "0.51721954", "0.5154364", "0.5150645", "0.51503026", "0.5147374", "0.5144978", "0.514023", "0.5139114", "0.5130947", "0.5121638", "0.5121147", "0.5119344", "0.5110285", "0.50998527", "0.509597", "0.5094927", "0.50944555", "0.50944555", "0.5086186", "0.50840986", "0.5083622", "0.50776434", "0.50349253", "0.5026618", "0.5016203", "0.5015238", "0.50143135", "0.5008083", "0.49997225", "0.49750093", "0.49653447" ]
0.0
-1
Loads Usergroup, Pbxuser and User.
public List<Usergroup> getUsersInGroup(Long groupKey) throws DAOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadUser() {\n File dataFile = new File(getFilesDir().getPath() + \"/\" + DATA_FILE);\n\n if(dataFile.exists()) {\n loadData();\n } else { // First time CigCount is launched\n user = new User();\n }\n }", "private void loadUserData() {\n\t\tuserData = new UserData();\n }", "@Override\n public UserInfo loadUserInfo() {\n // load the user directly from the database. the instance returned from currentUser() might not\n // be with the latest changes\n return userGroupService.findUser(userGroupService.currentUser().getUsername());\n }", "private void loadUserPrivileges() {\n\t\t// Get the UserPrivilege details after a successful log in.\n\t\tuserPrivilege = new UserPrivilegeImpl(this.session);\n\n\t\t// End problems here\n\t\tif ( userPrivilege == null ) throw new IllegalArgumentException(\"User Privileges given.\"); \t\t\n\t}", "private final void loadDefaultUsers() throws Exception {\r\n // Get the default User definitions from the XML defaults file. \r\n File defaultsFile = findDefaultsFile();\r\n // Add these users to the database if we've found a default file. \r\n if (defaultsFile.exists()) {\r\n server.getLogger().info(\"Loading User defaults from \" + defaultsFile.getPath()); \r\n Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();\r\n Users users = (Users) unmarshaller.unmarshal(defaultsFile);\r\n for (User user : users.getUser()) {\r\n user.setLastMod(Tstamp.makeTimestamp());\r\n this.dbManager.storeUser(user, this.makeUser(user), this.makeUserRefString(user));\r\n }\r\n }\r\n }", "private void initUser() {\n\t}", "static void loadUser() {\n\t\tScanner inputStream = null; // create object variable\n\n\t\ttry { // create Scanner object & assign to variable\n\t\t\tinputStream = new Scanner(new File(\"user.txt\"));\n\t\t\tinputStream.useDelimiter(\",\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"No User Infomation was Loaded\");\n\t\t\t// System.exit(0);\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\twhile (inputStream.hasNext()) {\n\n\t\t\t\tString instanceOf = inputStream.next();\n\n\t\t\t\tString readUserName = inputStream.next();\n\t\t\t\tString readPassword = inputStream.next();\n\t\t\t\tString readEmployeeNumber = inputStream.next();\n\t\t\t\tString readName = inputStream.next();\n\t\t\t\tString readPhone = inputStream.next();\n\t\t\t\tString readEmail = inputStream.next();\n\t\t\t\tif (instanceOf.contains(\"*AD*\")) {\n\t\t\t\t\tAdmin a1 = new Admin(readUserName, readPassword, readEmployeeNumber, readName, readPhone,\n\t\t\t\t\t\t\treadEmail);\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an Admin User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword() + \" \"+ a1.getEmployeeNum());\n\t\t\t\t} else if (instanceOf.contains(\"*CC*\")) {\n\t\t\t\t\tCourseCoordinator a1 = new CourseCoordinator(readUserName, readPassword, readEmployeeNumber,\n\t\t\t\t\t\t\treadName, readPhone, readEmail);\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an CC User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword() + \" \"+ a1.getEmployeeNum());\n\t\t\t\t} else if (instanceOf.contains(\"*AP*\")) {\n\t\t\t\t\tApproval a1 = new Approval(readUserName, readPassword, readEmployeeNumber, readName, readPhone,\n\t\t\t\t\t\t\treadEmail);\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an Approval User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword()+ \" \" + a1.getEmployeeNum());\n\t\t\t\t} else if (instanceOf.contains(\"*CA*\")) {\n\t\t\t\t\tCasual a1 = new Casual(readUserName, readPassword, readEmployeeNumber, readName, readPhone,\n\t\t\t\t\t\t\treadEmail);\n\t\t\t\t\ta1.setHrly_rate(inputStream.nextInt());\n\t\t\t\t\tuserInfoArray.add(a1);\n\t\t\t\t\t//System.out.println(\"Read an Casual User: \" + ((User) a1).getUserName() + \" \" + a1.getPassword()+ \" \" + a1.getEmployeeNum());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tSystem.err.println(\"Could not read from the file\");\n\t\t} catch (InputMismatchException e) {\n\t\t\tSystem.err.println(\"Something wrong happened while reading the file\");\n\t\t}\n\t\tinputStream.close();\n\t}", "private void loadUserInformation() {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if (user != null) {\n if (user.getPhotoUrl() != null) {\n Glide.with(this).load(user.getPhotoUrl().toString()).into(profilePic);\n }\n if (user.getDisplayName() != null) {\n name.setText(user.getDisplayName());\n }\n\n }\n\n }", "public static User loadUser(String path){\r\n if (path == null)\r\n throw new IllegalArgumentException(\"Path may not be null\");\r\n\r\n File userDir = new File(path);\r\n try{\r\n if (!userDir.exists())\r\n throw new FileNotFoundException(userDir.toString());\r\n if (!userDir.isDirectory())\r\n throw new IOException(\"Path must be a directory\");\r\n\r\n File parent = new File(userDir.getParent());\r\n String serverID = parent.getName();\r\n\r\n Server server = getServer(serverID);\r\n if (server == null){\r\n JOptionPane.showMessageDialog(mainFrame, \"Unable to load user file from:\\n\"+userDir+\r\n \"\\nBecause \"+serverID+\" is not a known server\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return null;\r\n }\r\n\r\n File settingsFile = new File(userDir, \"settings\");\r\n InputStream propsIn = new BufferedInputStream(new FileInputStream(settingsFile));\r\n Properties props = new Properties();\r\n props.load(propsIn);\r\n propsIn.close();\r\n\r\n Hashtable userFiles = new Hashtable();\r\n File userFilesFile = new File(userDir, \"files\"); \r\n if (userFilesFile.exists()){\r\n DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(userFilesFile)));\r\n ByteArrayOutputStream buf = new ByteArrayOutputStream();\r\n int filesCount = in.readInt();\r\n for (int i = 0; i < filesCount; i++){\r\n String filename = in.readUTF();\r\n int filesize = in.readInt();\r\n if (IOUtilities.pump(in, buf, filesize) != filesize)\r\n throw new EOFException(\"EOF while reading user-file: \"+filename);\r\n byte [] data = buf.toByteArray();\r\n buf.reset();\r\n MemoryFile memFile = new MemoryFile(data);\r\n userFiles.put(filename, memFile);\r\n }\r\n in.close();\r\n }\r\n\r\n User user = server.createUser(props, userFiles);\r\n\r\n userDirs.put(user, userDir);\r\n\r\n return user;\r\n } catch (IOException e){\r\n e.printStackTrace();\r\n JOptionPane.showMessageDialog(mainFrame, \"Unable to load user file from:\\n\"+userDir, \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return null;\r\n }\r\n }", "@PostConstruct\n\tprotected void handleLoad() {\n\t\tString _id = contextMB.getUser().getId();\n\t\tsetUser(userBC.load(Long.valueOf(_id)));\n\t}", "private void loadUserData() {\n\t\t// Load and update all profile views\n\n\t\t// Load profile photo from internal storage\n\t\ttry {\n\t\t\t// open the file using a file input stream\n\t\t\tFileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n\t\t\t// the file's data will be read into a bytearray output stream\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\t\t// inputstream -> buffer -> outputstream\n\t\t\tbyte[] buffer = new byte[5 * 1024];\n\t\t\tint n;\n\t\t\t// read data in a while loop\n\t\t\twhile ((n = fis.read(buffer)) > -1) {\n\t\t\t\tbos.write(buffer, 0, n); // Don't allow any extra bytes to creep\n\t\t\t\t// in, final write\n\t\t\t}\n\t\t\tfis.close();\n\t\t\t// get the byte array from the ByteArrayOutputStream\n\t\t\tbytePhoto = bos.toByteArray();\n\t\t\tbos.close();\n\t\t} catch (IOException e) {\n\t\t}\n\n\t\t// load the byte array to the image view\n\t\tloadImage();\n\n\t\t// Get the shared preferences - create or retrieve the activity\n\t\t// preference object.\n\t\tString mKey = getString(R.string.preference_name);\n\t\tSharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n\t\t// Load name\n\t\tmKey = getString(R.string.name_field);\n\t\tString mValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editName)).setText(mValue);\n\n\t\t// Load class info\n\t\tmKey = getString(R.string.class_field);\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editClass)).setText(mValue);\n\n\t\t// Load Major\n\t\tmKey = getString(R.string.major_field);\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editMajor)).setText(mValue);\n\n\t\t// Load course information\n\t\t// Course 1 name\n\t\tmKey = \"Course #1 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse1name)).setText(mValue);\n\n\t\t// Course 1 Time\n\t\tmKey = Globals.COURSE1_TIME_KEY;\n\t\tSpinner mSpinnerSelection = (Spinner) findViewById(R.id.course1TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #1 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse1loc)).setText(mValue);\n\n\t\t// Course 2\n\t\tmKey = \"Course #2 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2name)).setText(mValue);\n\n\t\t// Course 2 Time\n\t\tmKey = Globals.COURSE2_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course2TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #2 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2loc)).setText(mValue);\n\n\t\t// Course 3\n\t\tmKey = \"Course #3 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2name)).setText(mValue);\n\n\t\t// Course 3 Time\n\t\tmKey = Globals.COURSE3_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course3TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #3 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse3loc)).setText(mValue);\n\n\t\t// Course 4\n\t\tmKey = \"Course #4 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse4name)).setText(mValue);\n\n\t\t// Course 4 Time\n\t\tmKey = Globals.COURSE4_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course4TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #4 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse4loc)).setText(mValue);\n\t}", "public void loadUsers() {\n CustomUser userOne = new CustomUser();\n userOne.setUsername(SpringJPABootstrap.MWESTON);\n userOne.setPassword(SpringJPABootstrap.PASSWORD);\n\n CustomUser userTwo = new CustomUser();\n userTwo.setUsername(SpringJPABootstrap.TEST_ACCOUNT_USER_NAME);\n userTwo.setPassword(SpringJPABootstrap.TEST_ACCOUNT_PASSWORD);\n\n String firstUserName = userOne.getUsername();\n\n /*\n * for now I am not checking for a second user because there is no delete method being\n * used so if the first user is created the second user is expected to be created. this\n * could cause a bug later on but I will add in more logic if that is the case in a\n * future build.\n */\n if(userService.isUserNameTaken(firstUserName)) {\n log.debug(firstUserName + \" is already taken\");\n return ;\n }\n userService.save(userOne);\n userService.save(userTwo);\n\n log.debug(\"Test user accounts have been loaded!\");\n }", "private void populateUser() {\n // After user is authenticated, grab their data from the net\n // TODO This will ping the net on every resume (which is probably frequent).\n userListener = saplynService.viewUser();\n\n userListener.subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n\n // We got a valid user from the web. Populate our local object and spawn\n // the dashboard.\n user -> {\n this.user = user;\n FragmentTransaction ft = fm.beginTransaction();\n ft.add(R.id.main_fragment_container_home, new DashboardFragment());\n ft.commit();\n },\n throwable -> {\n if(throwable instanceof HttpException) {\n ResponseBody body = ((HttpException) throwable).response().errorBody();\n Log.e(TAG, \"onErrorFromPopulateUser: \"\n + body.toString());\n }\n }\n );\n }", "public static User load(Context context){\n User user = null;\n try {\n\n File file = new File(context.getFilesDir(),\"UserData.dat\");\n if(!file.exists()) {\n file.createNewFile();\n }\n FileInputStream FIS = context.openFileInput(\"UserData.dat\");\n if(FIS.available()==0){\n user = new User(\"phone\");\n return user;\n }\n ObjectInputStream objectInputStream = new ObjectInputStream(FIS);\n user = (User) objectInputStream.readObject();\n objectInputStream.close();\n FIS.close();\n }\n catch(Exception e) {\n \t\te.printStackTrace();\n //System.out.println(\"There was an error deserializing the data\");\n }\n return user;\n }", "private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }", "public static StandardUserModel loaduser(Context context) throws InvalidKeyException, NoSuchAlgorithmException, UnsupportedEncodingException {\n\t\tconstructGson();\n\t\tStandardUserModel user = new StandardUserModel(context);\n\t\tfilename = userprofile;\n\t\tFileInputStream FileOpen;\n\t\ttry {\n\t\t\tFileOpen = context.getApplicationContext().openFileInput(filename);\n\t\t\tInputStreamReader FileReader = new InputStreamReader(FileOpen);\n\t\t\tBufferedReader buffer = new BufferedReader(FileReader);\n\n\t\t\tString input;\n\t\t\twhile ((input = buffer.readLine()) != null) {\n\t\t\t\t\tuser = gson.fromJson(input,StandardUserModel.class);\t\t\t\t\t\n\t\t\t}\n\t\t\tStandardUserModel.setInstance(user);\n\t\t\treturn user;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tStandardUserModel.setInstance(user);\n\n\t\treturn user;\n\t}", "private void loadUsers() throws IOException {\n File accounts = new File(\"accounts.txt\");\n if (!accounts.exists()) {\n accounts.createNewFile();\n }\n\n FileInputStream fileInputStream = new FileInputStream(accounts);\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileInputStream));\n\n for (String line = bufferedReader.readLine(); line != null; line = bufferedReader.readLine()) {\n String[] pair = line.split(\":\");\n userAccounts.put(pair[0], pair[1]);\n }\n }", "public void loadDataFromDB() {\n if(user == null) {\n return;\n }\n decodeImage(user.getProfilePic(), imageView);\n usernameTV.setText(user.getUserID());\n emailTV.setText(user.getEmail());\n followingTV.setText(Integer.toString(user.getFollowingList().size()));\n followerTV.setText(Integer.toString(user.getNumFollwers()));\n list.clear();\n for (int i = 0; i < user.getNotification().size(); i++) {\n list.add(user.getNotification().get(i).getString());\n }\n\n getUsers();\n }", "private void startLoading() {\n\t\tJSONObject obj = new JSONObject();\r\n\t\tobj.put(\"userId\", new JSONString(User.id));\r\n\t\tobj.put(\"userSID\", new JSONString(User.SID));\r\n\t\tapi.execute(RequestType.GetUserInfo, obj, this);\r\n\t}", "public void loadAllUserData(){\n\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "private void loadUserDetails(DBUser user) {\n userDetailsLoginText.setText(user.getUserLogin());\n userDetailsNameText.setText(user.getUserName());\n userDetailsLevelSpinner.setValue(user.getUserLevel());\n }", "public static PrivateUser loadUser() {\n SharedPreferences preferences = getSharedPrefs();\n String jsonUser = preferences.getString(USER_PREF, null);\n PrivateUser user = null;\n\n if (jsonUser != null) {\n user = new Gson().fromJson(jsonUser, PrivateUser.class);\n }\n\n return user;\n }", "private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }", "public static User LoadUser(String username) {\n //if user is open it will just return it\n for (User user: openUsers)\n if (user.getUsername().equals(username))\n return user;\n File dir = FileHandler.loadFile(\"users.directory\");\n\n if (dir != null) {\n try {\n File userFile = new File(dir.getPath() + \"/\" + username + \"/user.data\");\n if (!userFile.exists())\n return null;\n Reader reader = new FileReader(userFile.getPath());\n User user = GsonHandler.getGson().fromJson(reader, User.class);\n reader.close();\n openUsers.add(user);\n return user;\n } catch (IOException fileNotFoundException) {\n fileNotFoundException.printStackTrace();\n logger.error(\"couldn't load User\" + username + \" File!\");\n }\n }\n else {\n logger.fatal(\"users Dir doesnt exist!\");\n }\n return null;\n }", "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "public void adminLoad() {\n try {\n File file = new File(adminPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n String data = scanner.nextLine();\n String[]userData = data.split(separator);\n AdminAccounts adminAccounts = new AdminAccounts();\n adminAccounts.setUsername(userData[0]);\n adminAccounts.setPassword(userData[1]);\n users.add(adminAccounts);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void loadData() {\r\n\t\t// Get Session\r\n\r\n\t\tSession ses = HibernateUtil.getSession();\r\n\r\n\t\tQuery query = ses.createQuery(\"FROM User\");\r\n\r\n\t\tList<User> list = null;\r\n\t\tSet<PhoneNumber> phone = null;\r\n\t\tlist = query.list();\r\n\t\tfor (User u : list) {\r\n\t\t\tSystem.out.println(\"Users are \" + u);\r\n\t\t\t// Getting phones for for a particular user Id\r\n\t\t\tphone = u.getPhone();\r\n\t\t\tfor (PhoneNumber ph : phone) {\r\n\t\t\t\tSystem.out.println(\"Phones \" + ph);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testLoad() {\n List<User> result = userStore.load();\n\n assertEquals(3, result.size());\n\n assertEquals(\"Claire\", result.get(0).getUserId());\n assertEquals(\"Claire55\", result.get(0).getPassword());\n\n assertEquals(\"Todd\", result.get(1).getUserId());\n assertEquals(\"Todd34\", result.get(1).getPassword());\n }", "private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<CasUserOrg> load() {\n\t\tString sql = \"select * from cas_user_org\";\n\t\treturn this.entityManager.createNativeQuery(sql, CasUser.class)\n .getResultList();\n\t}", "private void getUser(){\n user = new User();\n SharedPreferences preferences = getSharedPreferences(\"account\", MODE_PRIVATE);\n user.setId(preferences.getInt(\"id\", 0));\n user.setPhone(preferences.getString(\"phone\", \"\"));\n user.setType(preferences.getInt(\"type\",0));\n }", "public users() {\n initComponents();\n connect();\n autoID();\n loaduser();\n \n \n }", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "private static ArrayList<User> loadInitialData(){\n\t\tArrayList<User> users = new ArrayList<User>();\n\t\t// From the users list get all the user names\n\t\tfor (String username:Utils.FileUtils.getFileLines(Global.Constants.LIST_OF_USERS)){ // refers \"users\" file\n\t\t\tArrayList<Directory> directories = new ArrayList<Directory>();\n\t\t\t// For a user name, read the names of directories registered\n\t\t\t// Note: All directory names are provided in the file bearing user name\n\t\t\tif (Utils.FileUtils.exists(Global.Constants.DIRECTORY_LOCATION + username)) { // refers to a specific user file \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // that has directories\n\t\t\t\tfor (String dir:Utils.FileUtils.getFileLines(Global.Constants.DIRECTORY_LOCATION + username)) {\n\t\t\t\t\tArrayList<String> documents = new ArrayList<String>();\n\t\t\t\t\t// For each directory, read names of files saved\n\t\t\t\t\t// Note: All file names are provided in the file bearing username$dirname\n\t\t\t\t\tif (Utils.FileUtils.exists(Global.Constants.DIRECTORY_LOCATION, username + \"$\" + dir)) {\n\t\t\t\t\t\tfor (String doc:Utils.FileUtils.getFileLines(Global.Constants.DIRECTORY_LOCATION + username + \"$\" + dir)) {\n\t\t\t\t\t\t\tdocuments.add(doc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdirectories.add(new Directory(dir, documents));\n\t\t\t\t}\n\t\t\t}\n\t\t\tusers.add(new User(username, directories));\n\t\t}\n\t\treturn users;\n\t}", "public static Superuser load() throws IOException, ClassNotFoundException {\n\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(storeDir + File.separator + storeFile));\n\t\tSuperuser userList = (Superuser) ois.readObject();\n\t\tois.close();\n\t\treturn userList;\n\t\t\n\t}", "private void loadUserName() {\n\t\tAsyncTaskHelper.create(new AsyncMethods<String>() {\n\n\t\t\t@Override\n\t\t\tpublic String doInBackground() {\n\t\t\t\tUser user = new User();\n\t\t\t\tuser.setId(savedGoal.getGoal().getUserId());\n\t\t\t\treturn ClientUserManagement.getUsernameByUserId(user);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onDone(String value, long ms) {\n\t\t\t\tmGoalOwner.setText(value);\n\t\t\t}\n\t\t});\n\n\t}", "public void load(){\n\t\n\t\ttry {\n\t\t\t\n\t\t\t// Open Streams\n\t\t\tFileInputStream inFile = new FileInputStream(\"user.ser\");\n\t\t\tObjectInputStream objIn = new ObjectInputStream(inFile);\n\t\t\t\n\t\t\t// Load the existing UserList at the head\n\t\t\tthis.head = (User)objIn.readObject();\n\t\t\t\n\t\t\t// Close Streams\n\t\t\tobjIn.close();\n\t\t\tinFile.close();\n\t\t}\n\n\t\tcatch(Exception d) {\n\t\t System.out.println(\"Error loading\");\n\t\t}\n\n\t}", "User loadUser( String username ) throws UserNotFoundException;", "private void loadUserList()\n\t{\n\t\tfinal ProgressDialog dia = ProgressDialog.show(this, null,\n\t\t\t\tgetString(R.string.alert_loading));\n\t\tParseUser.getQuery().whereNotEqualTo(\"username\", user.getUsername())\n\t\t\t\t.findInBackground(new FindCallback<ParseUser>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void done(List<ParseUser> li, ParseException e) {\n\t\t\t\t\t\tdia.dismiss();\n\t\t\t\t\t\tif (li != null) {\n\t\t\t\t\t\t\tif (li.size() == 0)\n\t\t\t\t\t\t\t\tToast.makeText(UserList.this,\n\t\t\t\t\t\t\t\t\t\tR.string.msg_no_user_found,\n\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\tuList = new ArrayList<ParseUser>(li);\n\t\t\t\t\t\t\tListView list = (ListView) findViewById(R.id.list);\n\t\t\t\t\t\t\tlist.setAdapter(new UserAdapter());\n\t\t\t\t\t\t\tlist.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> arg0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tView arg1, int pos, long arg3) {\n\t\t\t\t\t\t\t\t\tstartActivity(new Intent(UserList.this,\n\t\t\t\t\t\t\t\t\t\t\tChat.class).putExtra(\n\t\t\t\t\t\t\t\t\t\t\tConst.EXTRA_DATA, uList.get(pos)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getUsername()));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tUtils.showDialog(\n\t\t\t\t\t\t\t\t\tUserList.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.err_users) + \" \"\n\t\t\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "private void fetchParseData() {\n // Look for group containing current user\n ParseQuery<ParseObject> query = new ParseQuery<ParseObject>(ParseConstants.CLASS_GROUPS);\n query.whereEqualTo(ParseConstants.KEY_GROUP_MEMBER_IDS, mCurrentUser.getObjectId());\n query.getFirstInBackground(new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject group, ParseException e) {\n handleParseData(group);\n }\n });\n }", "@Override\n public void initializeUsersForImportation() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeUsersForImportation\");\n }\n clearAddPanels();\n setRenderImportUserPanel(true);\n\n List<User> users;\n\n usersForImportation = new ArrayList<Pair<Boolean, User>>();\n\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager()) {\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n users = User.listUsersForCompany(choosenInstitutionForAdmin);\n } else {\n users = User.listAllUsers();\n }\n } else {\n users = User.listUsersForCompany(Institution.getLoggedInInstitution());\n }\n boolean emailAlreadyExists;\n for (User user : users) {\n emailAlreadyExists = false;\n\n for (ConnectathonParticipant cp : connectathonParticipantsDataModel().getAllItems(FacesContext.getCurrentInstance())) {\n\n if (user.getEmail().equals(cp.getEmail())) {\n emailAlreadyExists = true;\n }\n }\n\n if (!emailAlreadyExists) {\n usersForImportation.add(new Pair<Boolean, User>(false, user));\n }\n }\n }", "private void populateUserControlls() {\n\t\tif (mIsApplicationUser) {\n\t\t\tmContainerUserCurrency.setOnClickListener(this);\n\t\t\tmContainerUserDownloads.setOnClickListener(this);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Initializes the image fetcher.\n\t\t */\n\t\t\n//\t\t// calculates the cache.\n//\t\tmImageUserThumbnail.measure(0, 0);\n//\t\tint thumbSize = mImageUserThumbnail.getMeasuredHeight();\n//\t\t\n//\t\tImageCache.ImageCacheParams cacheParams =\n// new ImageCache.ImageCacheParams(getActivity(), DataManager.FOLDER_THUMBNAILS_CACHE);\n// cacheParams.setMemCacheSizePercent(getActivity(), 0.10f);\n// cacheParams.compressFormat = CompressFormat.PNG;\n// \n//\t\tmImageFetcher = new ImageFetcher(getActivity(), thumbSize);\n//\t\tmImageFetcher.setLoadingImage(R.color.white);\n//\t\tmImageFetcher.addImageCache(getChildFragmentManager(), cacheParams);\n//\t\t// WARNING: Do Not set this boolean to true\n// mImageFetcher.setImageFadeIn(false);\n \n // populates the user bar.\n populdateUserBar();\n\n \t// populates the badges section.\n populateBadgesSection();\n \t\n \t// populates the leader board section.\n populdateLeaderboardSection();\n \n // populates the user's playlists if is the application's user.\n if (mIsApplicationUser) {\n \tpopulateUserPlaylitstsSection();\n \t\n } else {\n \tmContainerMyPlaylists.setVisibility(View.GONE);\n }\n \t\n populateFavoritesSections();\n \n populateUserDiscoveriesSection();\n \n //populdateLevelBar();\n populdateLevelBarNew();\n\t}", "public void initializeUserControls(View rootView) {\n\t\t\n\t\t// the user bar.\n\t\tmContainerUserBar = (RelativeLayout) rootView.findViewById(R.id.profile_user_bar);\n\t\tmImageUserThumbnail = (ImageView) mContainerUserBar.findViewById(R.id.profile_user_bar_user_thumbnail);\n\t\tmTextUserName = (TextView) mContainerUserBar.findViewById(R.id.profile_user_bar_text_user_name);\n\t\tmContainerUserCurrency = (RelativeLayout) mContainerUserBar.findViewById(R.id.profile_user_bar_currency);\n\t\tmTextUserCurrencyValue = (TextView) mContainerUserBar.findViewById(R.id.profile_user_bar_currency_text_value);\n\t\tmContainerUserDownloads = (RelativeLayout) mContainerUserBar.findViewById(R.id.profile_user_bar_download);\n\t\tmTextUserDownloadsValue = (TextView) mContainerUserBar.findViewById(R.id.profile_user_bar_download_text_value);\n\t\tmTextUserCurrentLevel = (TextView) rootView.findViewById(R.id.social_profile_user_bar_text_current_level);\n\t\t\n\t\tmMyCollectionText = (TextView) rootView.findViewById(R.id.profile_user_my_collection_text);\n\t\tmRedeemText = (TextView) rootView.findViewById(R.id.profile_user_redeem_text);\n\t\t\n\t\t// Level Bar.\n\t\tmContainerLevelBar = (RelativeLayout) rootView.findViewById(R.id.social_profile_user_bar_level_bar);\n\t\tmProgressLevelBar = (ProgressBar) mContainerLevelBar.findViewById(R.id.social_profile_user_bar_level);\n\t\tmTextLevelZero = (TextView) mContainerLevelBar.findViewById(R.id.social_profile_user_bar_level_bar_level1);\n\t\tmContainerLevels = (LinearLayout) mContainerLevelBar.findViewById(R.id.social_profile_user_bar_level_bar_level_container);\n\t\t\n\t\tmTextLevelZero.setVisibility(View.INVISIBLE);\n\t\t\n\t\t// Badges section.\n\t\tmContainerBadges = (LinearLayout) rootView.findViewById(R.id.social_profile_section_badges);\n\t\tmHeaderBadges = (LinearLayout) mContainerBadges.findViewById(R.id.social_profile_section_badges_header);\n\t\tmTextBadgesValue = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_header_value);\n\t\tmImageBadge1 = (ImageView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item1_image);\n\t\tmTextBadge1 = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item1_text);\n\t\tmImageBadge2 = (ImageView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item2_image);\n\t\tmTextBadge2 = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item2_text);\n\t\tmImageBadge3 = (ImageView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item3_image);\n\t\tmTextBadge3 = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item3_text);\n\t\t\n\t\t// leaderboard section.\n\t\tmContainerLeaderboard = (RelativeLayout) rootView.findViewById(R.id.social_profile_section_leaderboard);\n\t\tmHeaderLeaderboard = (LinearLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_header);\n\t\tmTextLeaderboardValue = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_header_value);\n\t\t\n\t\tmContainerLeaderboardUser1 = (RelativeLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1);\n\t\tmContainerLeaderboardUser2 = (RelativeLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2);\n\t\tmContainerLeaderboardUser3 = (RelativeLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3);\n\t\t\n\t\tmTextLeaderboardUser1Rank = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1_rank);\n\t\tmTextLeaderboardUser1Name = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1_user_name);\n\t\tmTextLeaderboardUser1TotalPoints = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1_total_points);\n\t\tmTextLeaderboardUser2Rank = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2_rank);\n\t\tmTextLeaderboardUser2Name = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2_user_name);\n\t\tmTextLeaderboardUser2TotalPoints = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2_total_points);\n\t\tmTextLeaderboardUser3Rank = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3_rank);\n\t\tmTextLeaderboardUser3Name = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3_user_name);\n\t\tmTextLeaderboardUser3TotalPoints = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3_total_points);\n\t\t\n\t\t// my playlists section.\n\t\tmContainerMyPlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_my_playlists);\n\t\tmHeaderMyPlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_my_playlists_header);\n\t\tmTextMyPlaylistsValue = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_header_value);\n\t\tmTextMyPlaylist1Name = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_item1);\n\t\tmTextMyPlaylist2Name = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_item2);\n\t\tmTextMyPlaylist3Name = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_item3);\n\t\tmImageMoreIndicator = (ImageView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_more_indicator);\n\t\tmTextMyPlaylistEmpty = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_empty);\n\t\t\n\t\t// favorite albums.\n\t\tmContainerFavoriteAlbums = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_albums);\n\t\tmHeaderFavoriteAlbums = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_albums_header);\n\t\tmTextFavoriteFavoriteAlbumsValue = (TextView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albums_header_value);\n\t\tmTextFavoriteFavoriteAlbum1 = (ImageView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albumes_item1_image);\n\t\tmTextFavoriteFavoriteAlbum2 = (ImageView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albumes_item2_image);\n\t\tmTextFavoriteFavoriteAlbum3 = (ImageView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albumes_item3_image);\n\t\t\n\t\t// favorite songs.\n\t\tmContainerFavoriteSongs = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_songs);\n\t\tmHeaderFavoriteSongs = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_songs_header);\n\t\tmTextFavoriteSongsValue = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_header_value);\n\t\tmTextFavoriteSong1Name = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_item1);\n\t\tmTextFavoriteSong2Name = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_item2);\n\t\tmTextFavoriteSong3Name = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_item3);\n\t\t\n\t\t// favorite playlists.\n\t\tmContainerFavoritePlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_playlists);\n\t\tmHeaderFavoritePlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_playlists_header);\n\t\tmTextFavoritePlaylistValue = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_header_value);\n\t\tmTextFavoritePlaylist1Name = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_item1);\n\t\tmTextFavoritePlaylist2Name = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_item2);\n\t\tmTextFavoritePlaylist3Name = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_item3);\n\t\t\n\t\t// favorite videos.\n\t\tmContainerFavoriteVideos = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_videos);\n\t\tmHeaderFavoriteVideos = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_videos_header);\n\t\tmTextFavoriteVideosValue = (TextView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_header_value);\n\t\tmTextFavoriteVideo1 = (ImageView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_item1_image);\n\t\tmTextFavoriteVideo2 = (ImageView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_item2_image);\n\t\tmTextFavoriteVideo3 = (ImageView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_item3_image);\n\t\t\n\t\t// favorite discoveries.\n\t\tmContainerDiscoveries = (LinearLayout) rootView.findViewById(R.id.social_profile_section_discoveries);\n\t\tmHeaderFavoriteDiscoveries = (LinearLayout) rootView.findViewById(R.id.social_profile_section_discoveries_header);\n\t\tmTextDiscoveriesValue = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_header_value);\n\t\tmTextDiscoveriesItem1Name = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_item1);\n\t\tmTextDiscoveriesItem2Name = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_item2);\n\t\tmTextDiscoveriesItem3Name = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_item3);\n\t}", "@Override\n public void loadProfileUserData() {\n mProfilePresenter.loadProfileUserData();\n }", "private void populateUserProfile() {\n setProfilePic();\n mDisplayNameTextView.setText(user.getName());\n mUsernameTextView.setText(String.format(\"@%s\", user.getUsername()));\n mBioTextView.setText(user.getBio());\n setAdapterForUserStories();\n\n new Thread(new Runnable() {\n public void run(){\n setFollowingCount();\n setFollowersCount();\n setStoriesCount();\n queryStoriesFromUser();\n }\n }).start();\n }", "public void initUsers() {\n User user1 = new User(\"Alicja\", \"Grzyb\", \"111111\", \"grzyb\");\n User user2 = new User(\"Krzysztof\", \"Kowalski\", \"222222\", \"kowalski\");\n User user3 = new User(\"Karolina\", \"Nowak\", \"333333\", \"nowak\");\n User user4 = new User(\"Zbigniew\", \"Stonoga \", \"444444\", \"stonoga\");\n User user5 = new User(\"Olek\", \"Michnik\", \"555555\", \"michnik\");\n users.add(user1);\n users.add(user2);\n users.add(user3);\n users.add(user4);\n users.add(user5);\n }", "private UserFormData loadForCache(final UserFormData formData) {\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tLOG.debug(new StringBuilder().append(\"Load User with Id :\").append(formData.getUserId().getValue())\n\t\t\t\t\t.append(\" and email : \").append(formData.getEmail().getValue()).append(\" (login : \")\n\t\t\t\t\t.append(formData.getLogin().getValue()).append(\")\").toString());\n\t\t}\n\n\t\tfinal Long currentSelectedUserId = formData.getUserId().getValue();\n\n\t\tSQL.selectInto(SQLs.USER_SELECT + SQLs.USER_SELECT_FILTER_ID + SQLs.USER_SELECT_INTO, formData,\n\t\t\t\tnew NVPair(\"currentUser\", currentSelectedUserId));\n\n\t\tthis.loadRoles(formData, currentSelectedUserId);\n\t\tthis.loadCurrentSubscription(formData, currentSelectedUserId);\n\t\tthis.loadSubscriptionsDetails(formData, currentSelectedUserId);\n\n\t\tformData.setActiveSubscriptionValid(this.isActiveSubscriptionValid(currentSelectedUserId, Boolean.FALSE));\n\n\t\treturn formData;\n\t}", "public void readUsers() {\n try {\n FileInputStream fileIn = new FileInputStream(\"temp/users.ser\");\n ObjectInputStream in = new ObjectInputStream(fileIn);\n users = (HashMap<String, User>) in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException e) {\n users = new HashMap<>();\n } catch (ClassNotFoundException c) {\n System.out.println(\"Class HashMap not found\");\n c.printStackTrace();\n return;\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static void readUserFile() {\n\t\ttry {\n\t\t\tObjectInputStream readFile = new ObjectInputStream(new FileInputStream(userFile));\n\t\t\tVerify.userList = (ArrayList<User>) readFile.readObject();\n\t\t\treadFile.close();\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} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//add contents of file to separate lists\n\t\tfor (int i=0; i<Verify.userList.size(); i++) {\n\t\t\tVerify.userIds.add(Verify.userList.get(i).getUserId());\n\t\t\tVerify.usernames.add(Verify.userList.get(i).getUsername());\n\t\t\tif (Verify.userList.get(i).getAccounts() != null) {\n\t\t\t\tVerify.accountList.addAll(Verify.userList.get(i).getAccounts());\n\t\t\t}\n\t\t\tif (Verify.userList.get(i).getRequests() != null) {\n\t\t\t\tVerify.requestList.addAll(Verify.userList.get(i).getRequests());\t\n\t\t\t}\n\t\t}\n\t\tfor (Account account: Verify.accountList) {\n\t\t\tVerify.accountIds.add(account.getAccountId());\n\t\t}\n\t}", "public boolean loadUser(int userID, Shell shell, MApplication application) {\r\n\t\tUser u = DBManipulator.getUser(shell, userID);\r\n\t\tif (u != null) {\r\n\t\t\tname.setText(u.getName());\r\n\t\t\tbalance.setText(u.getBalance() + \"\");\r\n\t\t\tcreated.setText(u.getCreated().toString());\r\n\t\t\tcontainer.layout();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tapplication.getContext().remove(\"user\");\r\n\t\treturn false;\r\n\t}", "@Override\n public void onLoadFinished(Loader<ResourceLoaderResult<UserContainer>> loader, ResourceLoaderResult<UserContainer> data) {\n super.onLoadFinished(loader, data);\n if (data.isSuccessful()) {\n bindProfileInfo(data.getResult().getUser());\n }\n }", "public User loadUser(final String userName) throws DataSourceException {\n\n\t\tEphemeralUserController ephemeralUserController = new EphemeralUserController(userName);\n\n\t\tFile userFile = new File(PATH, userName + FILE_EXTENSION);\n\n\t\tif (userFile.exists()) {\n\t\t\ttry {\n\t\t\t\tUserPO userPO = objectMapper.readValue(new FileInputStream(userFile), UserPO.class);\n\n\t\t\t\tfor (GroupPO groupPO : userPO.getGroups()) {\n\t\t\t\t\tephemeralUserController.createGroup(groupPO.getName());\n ephemeralUserController.setVisible(groupPO.getName(), groupPO.isVisible());\n\n\t\t\t\t\tfor (WorkerPO workerPO : groupPO.getWorkers()) {\n\t\t\t\t\t\tephemeralUserController.addWorker(workerPO.getGooglePlusID(), groupPO.getName());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new DataSourceException(\"Could not load user.\");\n\t\t\t} catch (ModifyUserException e) {\n\t\t\t\tthrow new DataSourceException(\"Could not create restore user. Userfile may be corrupt. Reason: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\n\t\treturn ephemeralUserController.getUser();\n\t}", "private void loadCurrentUser() {\n\n // Confirm the user is logged in\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n\n if (user == null) {\n finish();\n return;\n }\n\n mUserListener = new ModelChangeListener<Author>(AUTHOR, user.getUid()) {\n @Override\n public void onModelReady(Author model) {\n mUser = model;\n }\n\n @Override\n public void onModelChanged() {\n\n // Update the Adapter with the changes in the logged in user\n removeExistingFromResults(mResultList, mUser.getFriends());\n\n if (mSearchType == FOLLOW) {\n removeExistingFromResults(mResultList, mUser.getFollowing());\n } else {\n removeExistingFromResults(mResultList, mUser.getSentRequests());\n }\n\n mAdapter.setFriendList(mResultList);\n }\n };\n\n mService.registerModelChangeListener(mUserListener);\n }", "private void loadCurrentUserInformation() {\n if(currentUser!=null){\n currentUserUid=currentUser.getUid();\n databaseReference.child(\"Users Data\").child(\"Sign Up Info\").child(\"UID \"+currentUserUid).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n currentUserName=(String) dataSnapshot.child(\"Name\").getValue();\n currentUserPassword=(String)dataSnapshot.child(\"Password\").getValue();\n currentUserCity=(String)dataSnapshot.child(\"City\").getValue();\n currentProfileImage=(String)dataSnapshot.child(\"Profile Image Url\").getValue();\n displayUserProfile();\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }\n }", "private void loadUserInformation(){\n FirebaseUser user = mAuth.getCurrentUser();\n\n String displayEmail = user.getEmail();\n email.setText(\"Velkommenn \" + displayEmail+\"!\");\n }", "public void getUserData() {\r\n User user = serverView.getUserInfo(username.getText());\r\n username.setText(\"\");\r\n if (user == null) {\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.setTitle(\"Error\");\r\n alert.setHeaderText(\"no User with this username\");\r\n alert.showAndWait();\r\n } else {\r\n\r\n try {\r\n userContent.getChildren().clear();\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"UserInfoView.fxml\"));\r\n fxmlLoader.setController(new UserInfoController(user));\r\n Pane pane = fxmlLoader.load();\r\n userContent.getChildren().add(pane);\r\n\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }", "private void populateUserView()\n\t{\n\t\t/* create dummy user properties, throw away later */\n\t\tPlayerViewModel userViewModel = new PlayerViewModel(currentUser.getString(\"facebookId\"), \n\t\t\t\t\t\t\t\t\t\tcurrentUser.getString(\"profilePicUrl\")+\"?type=large\", \n\t\t\t\t\t\t\t\t\t\tlocalCountMap.get(currentUser.getString(\"facebookId\")), \n\t\t\t\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\t\t\t\tfalse);\n\t\t\n\t\t/* create adapter for user view */\n\t\tuserCheeseTextView = (TextView) findViewById(R.id.cheeseCountTextView);\n\t\t//userProfileImageView = (ImageView) findViewById(R.id.userProfileImageView);\n\t\tuserProfileImageView = (CircularImageView) findViewById(R.id.userProfileImageView);\n\t\tuserViewAdapter = new UserViewAdapter(this, userCheeseTextView, userProfileImageView);\n\t\t\n\t\t/* set display values via adapter */\n\t\tuserViewAdapter.setUser(userViewModel);\t\t\n\t}", "public List<User> loadAllUserDetails()throws Exception;", "@Override\n\tpublic UserBaseInfo loadById(Integer id) {\n\t\treturn userBaseInfoMapper.loadById(id);\n\t}", "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void initData(Users user){\n \n this.selectedUser = user;\n String idValue = String.valueOf(selectedUser.getId());\n String expiresValue = String.valueOf(selectedUser.getExpires_at());\n String enabledValue = String.valueOf(selectedUser.getEnabled());\n String lastLoginValue = String.valueOf(selectedUser.getLast_login());\n email.setText(selectedUser.getEmail());\n password.setText(selectedUser.getPassword());\n role.setText(selectedUser.getRoles());\n idField.setText(idValue);\n expiresField.setText(expiresValue);\n enabledField.setText(enabledValue);\n lockedTextField.setText(lastLoginValue);\n lastLoginTextField.setText(idValue);\n System.out.println(user.toString());\n }", "public static void populateUsers() throws Exception {\n FrameworkUtil.setKeyStoreProperties();\n if (executionEnvironment.equals(Platforms.product.name())) {\n productGroupName = InitialContextPublisher.getContext().getPlatformContext().\n getFirstProductGroup().getGroupName();\n List<Instance> instanceList = InitialContextPublisher.getContext().getPlatformContext().\n getFirstProductGroup().getAllStandaloneInstances();\n for (Instance instance : instanceList) {\n instanceName = instance.getName();\n sessionCookie = InitialContextPublisher.\n getAdminUserSessionCookie(productGroupName, instanceName);\n backendURL = InitialContextPublisher.\n getSuperTenantEnvironmentContext(productGroupName, instanceName).\n getEnvironmentConfigurations().getBackEndUrl();\n userPopulator = new UserPopulator(sessionCookie, backendURL, multiTenantEnabled);\n log.info(\"Populating users for \" + productGroupName + \" product group: \" +\n instanceName + \" instance\");\n userPopulator.populateUsers(productGroupName, instanceName);\n }\n }\n //here we go through every product group and populate users for those\n else if (executionEnvironment.equals(Platforms.platform.name())) {\n List<ProductGroup> productGroupList = InitialContextPublisher.getContext().\n getPlatformContext().getAllProductGroups();\n for (ProductGroup productGroup : productGroupList) {\n productGroupName = productGroup.getGroupName();\n if (! productGroup.isClusteringEnabled()) {\n instanceName = productGroup.getAllStandaloneInstances().get(0).getName();\n } else {\n if (productGroup.getAllLBWorkerManagerInstances().size() > 0) {\n LBWorkerManagerInstance lbWorkerManagerInstance = productGroup.\n getAllLBWorkerManagerInstances().get(0);\n lbWorkerManagerInstance.setHost(lbWorkerManagerInstance.getManagerHost());\n instanceName = lbWorkerManagerInstance.getName();\n } else if (productGroup.getAllLBManagerInstances().size() > 0) {\n instanceName = productGroup.getAllLBManagerInstances().get(0).getName();\n } else if (productGroup.getAllManagerInstances().size() > 0) {\n instanceName = productGroup.getAllManagerInstances().get(0).getName();\n }\n }\n sessionCookie = InitialContextPublisher.\n getAdminUserSessionCookie(productGroupName, instanceName);\n backendURL = InitialContextPublisher.\n getSuperTenantEnvironmentContext(productGroupName, instanceName).\n getEnvironmentConfigurations().getBackEndUrl();\n userPopulator = new UserPopulator(sessionCookie, backendURL, multiTenantEnabled);\n log.info(\"Populating users for \" + productGroupName + \" product group: \" +\n instanceName + \" instance\");\n userPopulator.populateUsers(productGroupName, instanceName);\n }\n }\n }", "@PostConstruct\n\tprivate void InitGroups() {\n\t\tList<Group> groups = identityService.createGroupQuery().groupIdIn(\"READER\", \"BETAREADER\").list();\n\n\t\tif (groups.isEmpty()) {\n\n\t\t\tGroup reader = identityService.newGroup(\"READER\");\n\t\t\tidentityService.saveGroup(reader);\n\n\t\t\tGroup betaReader = identityService.newGroup(\"BETAREADER\");\n\t\t\tidentityService.saveGroup(betaReader);\n\t\t}\n\n\t\tRoles newRole1 = new Roles(\"READER\");\n\t\troleRepository.save(newRole1);\n\t\tRoles newRole2 = new Roles(\"BETAREADER\");\n\t\troleRepository.save(newRole2);\n\t\tRoles newRole3 = new Roles(\"WRITER\");\n\t\troleRepository.save(newRole3);\n\t\tRoles newRole4 = new Roles(\"COMMISSION\");\n\t\troleRepository.save(newRole4);\n\n\t\tBCryptPasswordEncoder encoder = new BCryptPasswordEncoder();\n\n\t\tList<Roles> roles = new ArrayList<Roles>();\n\t\troles.add(newRole4);\n\n\t\tcom.example.app.models.User user1 = new com.example.app.models.User(\"Dejan\", \"Jovanovic\", \"dejan\",\n\t\t\t\tencoder.encode(\"123\").toString(), false, true, roles, \"[email protected]\", \"as2d1as4d5a6s4da6\");\n\t\tuserRepository.save(user1);\n\n\t\tcom.example.app.models.User user2 = new com.example.app.models.User(\"Jovan\", \"Popovic\", \"jovan\",\n\t\t\t\tencoder.encode(\"123\").toString(), false, true, roles, \"[email protected]\", \"as2d1as4d5a6s4da6\");\n\t\tuserRepository.save(user2);\n\t}", "public bean_user_information loadUser(String userId) {\n Session session = HibernateUtil.getSession();\n bean_user_information user = (bean_user_information)session.get(bean_user_information.class, userId);\n return user;\n }", "private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "public void initUser(LfwSessionBean sbean)\n/* */ throws PortalServiceException\n/* */ {\n/* 307 */ IPtPageQryService qry = PortalServiceUtil.getPageQryService();\n/* 308 */ PtSessionBean sb = (PtSessionBean)sbean;\n/* 309 */ IUserVO user = sb.getUser();\n/* */ \n/* 311 */ String origPkorg = user.getPk_org();\n/* 312 */ CpUserVO uservo = (CpUserVO)user.getUser();\n/* */ \n/* */ \n/* */ \n/* 316 */ if ((LfwUserShareUtil.isNeedShareUser) && (StringUtils.isNotEmpty(sbean.getPk_unit())) && (StringUtils.isNotEmpty(user.getPk_group())) && (!sbean.getPk_unit().equals(user.getPk_group()))) {\n/* 317 */ uservo.setPk_org(sbean.getPk_unit());\n/* */ }\n/* 319 */ PtPageVO[] pageVOs = qry.getPagesByUser(user);\n/* 320 */ uservo.setPk_org(origPkorg);\n/* */ \n/* 322 */ if ((pageVOs == null) || (pageVOs.length == 0))\n/* 323 */ throw new PortalServerRuntimeException(LfwResBundle.getInstance().getStrByID(\"pserver\", \"PortalLoginHandler-000024\"));\n/* 324 */ pageVOs = PortalPageDataWrap.filterPagesByUserType(pageVOs, sb.getUser_type());\n/* 325 */ if ((pageVOs == null) || (pageVOs.length == 0))\n/* 326 */ throw new PortalServerRuntimeException(LfwResBundle.getInstance().getStrByID(\"pserver\", \"PortalLoginHandler-000025\"));\n/* 327 */ List<Page> pageList = PortalPageDataWrap.praseUserPages(pageVOs);\n/* 328 */ if (pageList.isEmpty())\n/* 329 */ throw new PortalServerRuntimeException(LfwResBundle.getInstance().getStrByID(\"pserver\", \"PortalLoginHandler-000026\"));\n/* 330 */ Map<String, Page> pagesCache = PortalPageDataWrap.praseUserPages((Page[])pageList.toArray(new Page[0]));\n/* 331 */ PortalCacheManager.getUserPageCache().clear();\n/* 332 */ PortalCacheManager.getUserPageCache().putAll(pagesCache);\n/* */ }", "public User loadUserDetails(String id)throws Exception;", "private UserPrefernce(){\r\n\t\t\r\n\t}", "public void setupUser() {\n }", "private Collection<User> loadUsers(InputStream is) throws IOException{\r\n\t\t\r\n\t\t//wrap input stream with a buffered reader to allow reading the file line by line\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder jsonFileContent = new StringBuilder();\r\n\t\t//read line by line from file\r\n\t\tString nextLine = null;\r\n\t\twhile ((nextLine = br.readLine()) != null){\r\n\t\t\tjsonFileContent.append(nextLine);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\t//this is a require type definition by the Gson utility so Gson will \r\n\t\t//understand what kind of object representation should the json file match\r\n\t\tType type = new TypeToken<Collection<User>>(){}.getType();\r\n\t\tCollection<User> users = gson.fromJson(jsonFileContent.toString(), type);\r\n\t\t//close\r\n\t\tbr.close();\t\r\n\t\treturn users;\r\n\r\n\t}", "@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}", "public void load() {\n setRemoteUser(\"\");\n setAuthCode(AuthSource.DENIED); \n \n if(pageContext==null) {\n return;\n }\n \n session=(HttpSession)getPageContext().getSession();\n setRemoteUser(Utilities.nvl((String)session.getAttribute(\"remoteUser\"), \"\"));\n setAuthCode(Utilities.nvl((String)session.getAttribute(\"authCode\"), AuthSource.DENIED));\n }", "boolean loadUserData(LoginCredentials loginCredentials)\n throws NonExistentUserException, InvalidDataException;", "private void loadAllGroups() {\n ParseUser user = ParseUser.getCurrentUser();\n List<Group> groups = user.getList(\"groups\");\n groupList.clear();\n if (groups != null) {\n for (int i = 0; i < groups.size(); i++) {\n try {\n Group group = groups.get(i).fetchIfNeeded();\n groupList.add(group);\n groupAdapter.notifyItemInserted(groupList.size() - 1);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n }\n }", "private void setUsersIntoComboBox() {\n if (mainModel.getUserList() != null) {\n try {\n mainModel.loadUsers();\n cboUsers.getItems().clear();\n cboUsers.getItems().addAll(mainModel.getUserList());\n } catch (ModelException ex) {\n alertManager.showAlert(\"Could not get the users.\", \"An error occured: \" + ex.getMessage());\n }\n }\n }", "User loadUserByUserName(String userName);", "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 }", "private final void initializeCache() {\r\n try {\r\n UserIndex index = makeUserIndex(this.dbManager.getUserIndex());\r\n for (UserRef ref : index.getUserRef()) {\r\n String email = ref.getEmail();\r\n String userString = this.dbManager.getUser(email);\r\n User user = makeUser(userString);\r\n this.updateCache(user);\r\n }\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to initialize users \" + StackTrace.toString(e));\r\n }\r\n }", "private void populateProfile() {\n mPassword_input_layout.getEditText().setText(mSharedPreferences.getPassWord());\n mEmail_input_layout.getEditText().setText(mSharedPreferences.getEmail());\n mEdit_name_layout.getEditText().setText(mSharedPreferences.getName());\n ((RadioButton) mRadioGender.getChildAt(mSharedPreferences.getGender())).setChecked(true);\n mPhone_input_layout.getEditText().setText(mSharedPreferences.getPhone());\n mMajor_input_layout.getEditText().setText(mSharedPreferences.getMajor());\n mClass_input_layout.getEditText().setText(mSharedPreferences.getYearGroup());\n\n // Load profile photo from internal storage\n try {\n FileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n Bitmap bmap = BitmapFactory.decodeStream(fis);\n mImageView.setImageBitmap(bmap);\n fis.close();\n } catch (IOException e) {\n // Default profile\n }\n }", "public void loadUser(User user) {\n setIdUsuario(user.getIdUsuario());\n setNombreUsuario(user.getNombreUsuario());\n setNombres(user.getNombres());\n setContrasenia(user.getContrasenia());\n setApellidos(user.getApellidos());\n setEstadoUsuario(user.getEstadoUsuario());\n setEsDocente(user.getEsDocente());\n setNivel(user.getNivel().getId());\n \n }", "List<User> loadAll();", "@Override\n public void loadUserProfile(final String name) {\n try {\n // Load the actual user\n this.recognizer.loadUserProfile(name);\n } catch (final IOException e1) {\n ViewUtilities.showNotificationPopup(\"User Dataset not found\", \"Regenerating it\", Duration.MEDIUM, // NOPMD\n NotificationType.ERROR, t -> e1.printStackTrace());\n } catch (final JsonSyntaxException e2) {\n ViewUtilities.showNotificationPopup(\"Json file changed by human!\", \"Please click to se exception\",\n Duration.MEDIUM, // NOPMD\n NotificationType.ERROR, t -> e2.printStackTrace());\n }\n // Set User name in scroll bar\n ((Label) this.userScrollPane.getBottomBar().getChildren().get(0)).setText(name);\n // Load user gestures\n ViewUtilities.showSnackBar((Pane) this.recorderPane.getCenter(), \"Database loaded and Gesture updated!\",\n Duration.MEDIUM, DimDialogs.SMALL, null);\n // Create the gesture tree representation.\n this.createGestureTreeView(this.recognizer.getUserName());\n // Initialize the gesture length.\n this.gestureLength = this.recognizer.getUserGestureLength();\n // Initialize Charts\n this.setChart(this.gestureLength.getFrameNumber(), this.gestureLength.getFrameNumber());\n this.startButton.setDisable(false);\n }", "public void populateUserDetails() {\n\n this.enterprise = system.getOpRegionDirectory().getOperationalRegionList()\n .stream().filter(op -> op.getRegionId() == user.getNetworkId())\n .findFirst()\n .get()\n .getBuDir()\n .getBusinessUnitList()\n .stream()\n .filter(bu -> bu.getUnitType() == BusinessUnitType.CHEMICAL)\n .map(unit -> (ChemicalManufacturingBusiness) unit)\n .filter(chemBusiness -> chemBusiness.getEnterpriseId() == user.getEnterpriseId())\n .findFirst()\n .get();\n\n this.organization = (ChemicalManufacturer) enterprise\n .getOrganizationList().stream()\n .filter(o -> o.getOrgId() == user.getOrganizationId())\n .findFirst()\n .get();\n\n }", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "public ApplicationUser load(Long applicationUserId, Long loggedInUserId) throws ApplicationUserLoadException, AuthorisationException, InvalidUserIDException\n {\n \tApplicationUser applicationUser = null;\n \t\n if (Authorisation.isAuthorisedView(\"ApplicationUser\", loggedInUserId, applicationUserId) == false)\n {\n \tthrow new AuthorisationException();\n }\n \t\n\n if (applicationUserId != null)\n {\n \ttry\n \t{\n\t\t\t\tapplicationUser = (ApplicationUser)this.getApplicationUserDao().load(applicationUserId, loggedInUserId);\n \t}\n\t\t\tcatch (Exception ex)\n\t\t\t{\n\t\t\t throw new ApplicationUserLoadException(\"ApplicationUserDaoImpl::load\", ex);\n\t\t\t}\t\t\n \t\t\n // Load all related singular objects\n \n }\n \t\n return applicationUser;\n }", "protected void loadUser(String id) {\n\t\tIntent intent = new Intent();\n\t\tintent.setClass(activity, ShowUserInfo.class);\n\t\tintent.putExtra(\"username\", id);\n\t\tintent.putExtra(\"owner\", username);\n\t\t\n\t\tstartActivity(intent);\n//\t\tthis.finish();\n\t}", "private void readXML() {\n\t\tSAXParserFactory factory = SAXParserFactory.newInstance();\n\t\tXMLReader handler = new XMLReader();\n\t\tSAXParser parser;\n\t\t\n\t\t//Parsing xml file\n\t\ttry {\n\t\t\tparser = factory.newSAXParser();\n\t\t\tparser.parse(\"src/data/users.xml\", handler);\n\t\t\tgroupsList = handler.getGroupNames();\n\t\t} catch(SAXException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t};\n\t}", "private static void populateDB(){\r\n try {\r\n\r\n Connection con = DBConnection.getConnection();\r\n Statement st=con.createStatement();\r\n DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n\r\n Document document = docBuilder.parse (UserPopulateDB.class.getResource(\"../configurations/users.xml\").getPath());\r\n document.getDocumentElement().normalize();\r\n System.out.println (\"Initial element within document is \" + document.getDocumentElement().getNodeName());\r\n NodeList listOfUsers = document.getElementsByTagName(\"user\");\r\n for(int s=0; s<listOfUsers.getLength(); s++){\r\n Node firstUserNode = listOfUsers.item(s);\r\n\r\n if(firstUserNode.getNodeType() == Node.ELEMENT_NODE){\r\n Element firstUserElement = (Element)firstUserNode;\r\n NodeList usernameList = firstUserElement.getElementsByTagName(\"username\");\r\n Element usernameElement =(Element)usernameList.item(0);\r\n\r\n NodeList textFNList = usernameElement.getChildNodes();\r\n String username=((Node)textFNList.item(0)).getNodeValue().trim();\r\n\r\n NodeList emailList = firstUserElement.getElementsByTagName(\"email\");\r\n Element emailElement =(Element)emailList.item(0);\r\n\r\n NodeList textLNList = emailElement.getChildNodes();\r\n String email= ((Node)textLNList.item(0)).getNodeValue().trim();\r\n\r\n NodeList passwordList = firstUserElement.getElementsByTagName(\"password\");\r\n Element passwordElement =(Element)passwordList.item(0);\r\n\r\n NodeList textPNList = passwordElement.getChildNodes();\r\n String password= ((Node)textPNList.item(0)).getNodeValue().trim();\r\n\r\n int i=st.executeUpdate(\"insert into users(username,email,password) values('\"+username+\"','\"+email+\"','\"+password+\"')\");\r\n }\r\n }\r\n System.out.println(\"Data is successfully inserted!\");\r\n }catch (Exception err) {\r\n System.out.println(\"User Data can't be loaded into DB: \" + err.getMessage ());\r\n }\r\n }", "public static User getUser(Context context){\n SharedPreferences preferences=getSharedPreferences(context);\n User user=new User();\n user.setUsername(preferences.getString(USERNAME,null));\n user.setPassword(preferences.getString(PASSWORD,null));\n user.setGender(preferences.getString(GENDER,null));\n user.setAddress(preferences.getString(ADDRESS,null));\n return user;\n }", "private static void initUsers() {\n\t\tusers = new ArrayList<User>();\n\n\t\tusers.add(new User(\"Majo\", \"abc\", true));\n\t\tusers.add(new User(\"Alvaro\", \"def\", false));\n\t\tusers.add(new User(\"Luis\", \"ghi\", true));\n\t\tusers.add(new User(\"David\", \"jkl\", false));\n\t\tusers.add(new User(\"Juan\", \"mno\", true));\n\t\tusers.add(new User(\"Javi\", \"pqr\", false));\n\t}", "public void initUser(ActiveSession user) {\n this.user = user;\n }", "private void readObject ( ObjectInputStream in ) throws IOException, ClassNotFoundException {\n ObjectInputStream.GetField fields = in.readFields();\n _user = (CTEUser) fields.get(\"_user\", null);\n }", "protected static Map<String, User> createUsers( Element elem )\n throws XMLParsingException {\n Map<String, User> users = new HashMap<String, User>();\n List<Element> list = XMLTools.getElements( elem, StringTools.concat( 100, \"./\", dotPrefix, \"User\" ), cnxt );\n for ( Element child : list ) {\n String username = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"UserName\" ), cnxt );\n String password = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"Password\" ), cnxt );\n String firstName = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"FirstName\" ), cnxt );\n String lastName = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"LastName\" ), cnxt );\n String email = XMLTools.getRequiredNodeAsString( child,\n StringTools.concat( 100, \"./\", dotPrefix, \"Email\" ), cnxt );\n String rolesValue = XMLTools.getRequiredNodeAsString( child, StringTools.concat( 100, \"./\", dotPrefix,\n \"Roles\" ), cnxt );\n List<String> roles = Arrays.asList( rolesValue.split( \",\" ) );\n User user = new User( username, password, firstName, lastName, email, roles );\n users.put( username, user );\n }\n return users;\n }", "private ArrayList<User> loadUsers(InputStream is) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder jsonFileContent = new StringBuilder();\r\n\t\t//read line by line from file\r\n\t\tString nextLine = null;\r\n\t\twhile ((nextLine = br.readLine()) != null){\r\n\t\t\tjsonFileContent.append(nextLine);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\t//this is a require type definition by the Gson utility so Gson will \r\n\t\t//understand what kind of object representation should the json file match\r\n\t\tType type = new TypeToken<ArrayList<User>>(){}.getType();\r\n\t\tArrayList<User> users = gson.fromJson(jsonFileContent.toString(), type);\r\n\t\t//close\r\n\t\tbr.close();\t\r\n\t\treturn users;\r\n\t}", "public User getPrefsUser() {\n Gson gson = new Gson();\n String json = prefs.getString(USER_PREFS, \"\");\n return gson.fromJson(json, User.class);\n }", "private void loadpreferences() {\n\t\t\tSharedPreferences mySharedPreferences = context.getSharedPreferences(MYPREFS,mode);\n\t\t\tlogin_id = mySharedPreferences.getInt(\"login_id\", 0);\n\t\t\t\n\t\t\tLog.d(\"Asynctask\", \"\" + login_id);\n\t\t\tsubId = mySharedPreferences.getString(\"SubcriptionID\", \"\");\n\t\t\tLog.d(\"SubcriptionID inASYNTASK******************\", \"\" + subId);\n\n\t\t}", "public User parseUser(InputStream in) throws DataParseException;", "private void initUserInstance(User user){\n Fridge fridge = DatabaseHelper.getDatabaseInstance().takeFridgeOfUser(user);\n //print the printable\n Log.i(\"login_fridge\", fridge.toString());\n //assign fridge to user\n user.setFridge(fridge);\n\n //populate Instance class with current user\n Instance.getSingletonInstance().setCurrentUser(user);\n }" ]
[ "0.6794627", "0.64940923", "0.6354315", "0.62923074", "0.6290734", "0.6183", "0.615929", "0.61261845", "0.61177325", "0.6099452", "0.60609084", "0.59291905", "0.5922677", "0.59209013", "0.5918365", "0.59039754", "0.5898345", "0.5887437", "0.5876644", "0.58261377", "0.581085", "0.577309", "0.57522625", "0.57505727", "0.5725342", "0.5719022", "0.5691643", "0.5676543", "0.56699944", "0.5634118", "0.5630863", "0.5604484", "0.5590266", "0.55840975", "0.5578774", "0.55775577", "0.5577499", "0.55692166", "0.5557337", "0.5539654", "0.55361694", "0.55093485", "0.5477419", "0.54454315", "0.5444519", "0.54304475", "0.5422787", "0.5405007", "0.53843296", "0.538183", "0.5381189", "0.53744966", "0.5368737", "0.5362871", "0.5356322", "0.53547525", "0.53271455", "0.53256863", "0.53238386", "0.530499", "0.5295348", "0.5287645", "0.52838343", "0.5268861", "0.52541316", "0.5251622", "0.5251229", "0.52446264", "0.52409536", "0.5235476", "0.52196634", "0.52186", "0.52172476", "0.5212147", "0.5210272", "0.52100664", "0.5203733", "0.5184018", "0.51682216", "0.51680976", "0.51659834", "0.51647586", "0.5159863", "0.515602", "0.5155874", "0.51478136", "0.5143964", "0.5143897", "0.5143381", "0.5135627", "0.5134125", "0.5133904", "0.51289815", "0.5128057", "0.5124985", "0.51194423", "0.5119031", "0.5111232", "0.51087874", "0.51040274", "0.5098316" ]
0.0
-1
This method is called by ProductsConnectThread.
void loadingFinished(ProductModel pm) { // System.out.println("--- Loading finished: " + pm.getId()); synchronized (loadedDbProducts) { loadedDbProducts.add(pm); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\t\tpublic void run() {\n\t\t\t\t\tGetProductItem();\r\n\t\t\t\t}", "public void onLevelProductChange() {\n targetWSList.clear();\n targetPROCList.clear();\n sourceWSList.clear();\n sourcePROCList.clear();\n sourcePropertyWSList.clear();\n targetPropertyWSList.clear();\n templatePlanLevel = null;\n templatePlanLevel = productToolOperation.findProductTemplateLevel(planConfigBehavior.getTemplatePlanLevelSet(), selectLevel.getValue());\n if (templatePlanLevel != null) {\n numColumnLevel = templatePlanLevel.getNumColumn();\n communicationType = CommunicationType.valueOf(templatePlanLevel.getCommunicationType()).getLabel();\n productToolOperation.loadConfigCommunicationBridge(templatePlanLevel, targetWSList, targetPROCList);\n }\n\n productToolOperation.loadCommunicationList(communicationBridgeMap, sourceWSList, sourcePROCList, targetWSList, targetPROCList);\n\n communicationBridgeWs = new DualListModel<>(sourceWSList, targetWSList);\n communicationBridgeProc = new DualListModel<>(sourcePROCList, targetPROCList);\n }", "@Override\r\n protected void onConnected() {\n \r\n }", "protected void onConnect() {}", "@Override\r\n public void connectSuccess() {\n super.connectSuccess();\r\n }", "private void initProductDisplay() {\n\t\tif (isScannednAddingFinished()) {\n\t\t\tarticleInqList = new ArrayList<ArticleInq>();\n\t\t\tarticleImageList = new ArrayList<ArticleImage>();\n\t\t}\n\t\tif (isBasketAddingFinished()\n\t\t\t\t&& (CommonBasketValues.getInstance().Basket == null || CommonBasketValues\n\t\t\t\t\t\t.getInstance().Basket.OrderNo == 0)) {\n\t\t\tdisplayArticleList = new ArrayList<ArticleInq>();\n\n\t\t}\n\n\t\tlastScanTime = 0;\n\t\tlastEan = \"\";\n\t\tcurrentEan = \"\";\n\t\tif (light_on) {\n//\t\t\tCameraManager.get().turn_onFlash();\n\t\t\tgetCameraManager().setTorch(true);\n\t\t}\n\t\tif (calledFromCreate) {\n//\t\t\tCameraManager.get().requestAutoFocus(handler, R.id.auto_focus);\n\t\t\tcalledFromCreate = false;\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\n private void fetchProductInformation() {\n // Query the App Store for product information if the user is is allowed\n // to make purchases.\n // Display an alert, otherwise.\n if (SKPaymentQueue.canMakePayments()) {\n // Load the product identifiers fron ProductIds.plist\n String filePath = NSBundle.getMainBundle().findResourcePath(\"ProductIds\", \"plist\");\n NSArray<NSString> productIds = (NSArray<NSString>) NSArray.read(new File(filePath));\n\n StoreManager.getInstance().fetchProductInformationForIds(productIds.asStringList());\n } else {\n // Warn the user that they are not allowed to make purchases.\n alert(\"Warning\", \"Purchases are disabled on this device.\");\n }\n }", "public static ArrayList<Product> selectProducts() {\n \n ArrayList<Product> products = new ArrayList<>();\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n PreparedStatement ps2 = null;\n ResultSet rs = null;\n ResultSet rs2 = null;\n int count = 0;\n\n String query = \"SELECT * FROM product ORDER BY catalogCategory, productName ASC \";\n \n String query2 = \"SELECT * FROM product\"; \n \n try {\n ps = connection.prepareStatement(query);\n ps2 = connection.prepareStatement(query2);\n rs = ps.executeQuery();\n rs2 = ps2.executeQuery();\n ResultSetMetaData mD = rs.getMetaData();\n int colCount = mD.getColumnCount();\n Product p = null;\n System.out.println(\"DBSetup@line448 \" + colCount);\n \n while( rs2.next() ) {\n ++count;\n } \n ///////For test purposes // System.out.println(\"DBSetup @ line 363 \" + count); \n for (int i = 0; i < count; i++) {\n if (rs.next()) {\n p = new Product();\n p.setProductCode(rs.getString(\"productCode\"));\n p.setProductName(rs.getString(\"productName\"));\n p.setCatalogCategory(rs.getString(\"catalogCategory\"));\n p.setDescription(rs.getString(\"description\"));\n p.setPrice(Float.parseFloat(rs.getString(\"price\")));\n p.setImageURL(rs.getString(\"imageURL\"));\n System.out.println(\"DBSetup @ line 461 \" + p.getProductCode());\n products.add(p);\n }\n }\n return products;\n } catch (SQLException e) {\n System.out.println(e);\n return null;\n } finally {\n DBUtil.closeResultSet(rs);\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n }", "@Override\n public void updateProductCounter() {\n\n }", "public void getProducts(String eId){\n // invoke getProductsById from ProductDatabse and assign products, productIds and productNames\n products = myDb.getProductsById(eId);\n productIds = new ArrayList<Integer>();\n ArrayList<String> productNames = new ArrayList<String>();\n for(Product product: products){\n productIds.add(Integer.parseInt(product.getProductId()));\n productNames.add(product.getProductName());\n }\n //if products exists in database then its displayed as a list else no products message is displayed\n if(products.size() > 0){\n productsadded.setVisibility(View.VISIBLE);\n noproducts.setVisibility(View.GONE);\n }else{\n productsadded.setVisibility(View.GONE);\n noproducts.setVisibility(View.VISIBLE);\n }\n otherProductAdapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_expandable_list_item_1, productNames);\n otherProductsList.setAdapter(otherProductAdapter);\n if(productNames.size() > 0){\n //invoked on click of the product\n otherProductsList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(OtherEventsProductsActivity.this, PurchaseProductActivity.class);\n intent.putExtra(\"eventId\", eventId);\n intent.putExtra(\"productId\", \"\"+productIds.get(position));\n intent.putExtra(\"status\", \"view\");\n startActivity(intent);\n }\n });\n }\n }", "private void getAllProducts() {\n }", "public void getProduct() {\n\t\tUtil.debug(\"getProduct\",this);\n\t\ttry {\n\t\t\tinputStream.skip(inputStream.available());\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\toutputStream.write(new byte[] { 'x', 13 });\n\t\t} catch (IOException e) {\n\t\t\tUtil.log(e.getStackTrace().toString(),this);\n\t\t\treturn;\n\t\t}\n\n\t\t// wait for reply\n\t\tUtil.delay(RESPONSE_DELAY);\n\t}", "private void fetchProducts() {\n\t\t// Showing progress dialog before making request\n\n\t\tpDialog.setMessage(\"Fetching products...\");\n\n\t\tshowpDialog();\n\n\t\t// Making json object request\n\t\tJsonObjectRequest jsonObjReq = new JsonObjectRequest(Method.GET,\n\t\t\t\tConfig.URL_PRODUCTS, null, new Response.Listener<JSONObject>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\t\t\tLog.d(TAG, response.toString());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONArray products = response\n\t\t\t\t\t\t\t\t\t.getJSONArray(\"products\");\n\n\t\t\t\t\t\t\t// looping through all product nodes and storing\n\t\t\t\t\t\t\t// them in array list\n\t\t\t\t\t\t\tfor (int i = 0; i < products.length(); i++) {\n\n\t\t\t\t\t\t\t\tJSONObject product = (JSONObject) products\n\t\t\t\t\t\t\t\t\t\t.get(i);\n\n\t\t\t\t\t\t\t\tString id = product.getString(\"id\");\n\t\t\t\t\t\t\t\tString name = product.getString(\"name\");\n\t\t\t\t\t\t\t\tString description = product\n\t\t\t\t\t\t\t\t\t\t.getString(\"description\");\n\t\t\t\t\t\t\t\tString image = product.getString(\"image\");\n\t\t\t\t\t\t\t\tBigDecimal price = new BigDecimal(product\n\t\t\t\t\t\t\t\t\t\t.getString(\"price\"));\n\t\t\t\t\t\t\t\tString sku = product.getString(\"sku\");\n\n\t\t\t\t\t\t\t\tProduct p = new Product(id, name, description,\n\t\t\t\t\t\t\t\t\t\timage, price, sku);\n\n\t\t\t\t\t\t\t\tproductsList.add(p);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// notifying adapter about data changes, so that the\n\t\t\t\t\t\t\t// list renders with new data\n\t\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\"Error: \" + e.getMessage(),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// hiding the progress dialog\n\t\t\t\t\t\thidepDialog();\n\t\t\t\t\t}\n\t\t\t\t}, new Response.ErrorListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\tVolleyLog.d(TAG, \"Error: \" + error.getMessage());\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\terror.getMessage(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t// hide the progress dialog\n\t\t\t\t\t\thidepDialog();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// Adding request to request queue\n\t\tAppController.getInstance().addToRequestQueue(jsonObjReq);\n\t}", "@Override\n public void onConnected(Bundle bundle) {\n if (CommanMethod.isInternetOn(StoreActivity.this)) {\n store_item = new ArrayList<>();\n store_img_item = new ArrayList<>();\n new Store_Location().execute();\n } else {\n comman_dialog.Show_alert(Comman_message.Dont_internet);\n }\n }", "@Override\n\tprotected void onSuccessRequestProducts(final List<Product> products) {\n\t\tmTxtStatus.setText(\"requestProducts onSuccess: received \"+products.size() + \" products\");\n\t}", "@Deprecated\n private void initProductConfig() {\n if (getConfig().isAnalyticsOnly()) {\n getConfig().getLogger()\n .debug(getConfig().getAccountId(), \"Product Config is not enabled for this instance\");\n return;\n }\n if (getControllerManager().getCTProductConfigController() == null) {\n getConfig().getLogger().verbose(config.getAccountId() + \":async_deviceID\",\n \"Initializing Product Config with device Id = \" + getDeviceInfo().getDeviceID());\n CTProductConfigController ctProductConfigController = CTProductConfigFactory\n .getInstance(context, getDeviceInfo(),\n getConfig(), analyticsManager, coreMetaData, callbackManager);\n getControllerManager().setCTProductConfigController(ctProductConfigController);\n }\n }", "protected void connectionEstablished() {}", "@Override\n public void onConnect() {\n connected.complete(null);\n }", "private void loadInitialProducts(){\n final Intent intent = new Intent(this, MainActivity.class);\n\n ProductServiceProvider.getInstance().setServiceListener(new ProductServiceProvider.ServiceListener() {\n @Override\n public void onResultsSuccess(Response<SearchResult> response) {\n if(response.body().getResults() != null){\n AppDataModel.getAppDataModel().setInitialData(response.body().getResults());\n intent.putExtra(EXTRA_INITIAL_PRODUCTS, true);\n }\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n startActivity(intent);\n finish();\n }\n }, 1000);\n }\n\n @Override\n public void onProductsSuccess(Response<Products> response) {\n\n }\n\n @Override\n public void onFailure(String message) {\n intent.putExtra(EXTRA_INITIAL_PRODUCTS, false);\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n startActivity(intent);\n finish();\n }\n }, 1000);\n }\n });\n\n ProductServiceProvider.getInstance().searchProducts(\"\");\n }", "private DataConnection() {\n \tperformConnection();\n }", "@Override\n\tpublic void connectionReady() {\n\t}", "private void updateProductsList() {\n this.productsList = demonstrationApplicationController.getProductsList();\n this.jListProduct.setModel(new ModelListSelectable(this.productsList));\n }", "private void printAllProducts()\n {\n manager.printAllProducts();\n }", "@Override\n\tpublic void connect() {\n\t\t\n\t}", "@Override\n\tpublic void connect() {\n\t\t\n\t}", "protected void beforeDisconnect() {\n // Empty implementation.\n }", "@Override\n\tprotected void selectedProductChanged()\n\t{\n\t\tgetController().selectedProductChanged();\n\t}", "@Override\n public void loadCartProductsData() {\n mCartPresenter.loadCartProductsData();\n }", "private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n protected void startConnection() throws CoreException {\n }", "public void linkProduct() {\n Product result;\n String supplierID = getToken(\"Enter supplier ID: \");\n if (warehouse.searchSupplier(supplierID) == null) {\n System.out.println(\"No such supplier!\");\n return;\n }\n do {\n String productID = getToken(\"Enter product ID: \");\n result = warehouse.linkProduct(supplierID, productID);\n if (result != null) {\n System.out.println(\"Product [\" + productID + \"] assigned to supplier: [\" + supplierID + \"]\");\n }\n else {\n System.out.println(\"Product could not be assigned\");\n }\n if (!yesOrNo(\"Assign more products to supplier: [\" + supplierID + \"]\")) {\n break;\n }\n } while (true);\n }", "private void offer() {\n\t\t\t\n\t\t}", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tp = c.getProduct();\n\t\t\t\t\t\t\tSystem.out.println(\"消费产品\"+p);\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}", "@Override\n\tpublic void receiveProduct(Product product) {\n\t\t\n\t}", "@Override\n public void Connected() {\n if (strClientSerial != null) {\n LoginInfo_Req();\n }\n }", "private void onCamelCatalogReady() {\n // Force to reload the catalog\n this.kamelets = null;\n }", "@Override\n public void loadAdd2CartProductData() {\n mAdd2CartPresenter.loadAdd2CartProductData();\n }", "protected void enableButtons()\n\t{\n\t\tm_M_Product_ID = -1;\n\t\tm_ProductName = null;\n\t\tm_Price = null;\n\t\tint row = m_table.getSelectedRow();\n\t\tboolean enabled = row != -1;\n\t\tif (enabled)\n\t\t{\n\t\t\tInteger ID = m_table.getSelectedRowKey();\n\t\t\tif (ID != null)\n\t\t\t{\n\t\t\t\tm_M_Product_ID = ID.intValue();\n\t\t\t\tm_ProductName = (String)m_table.getValueAt(row, 2);\n\t\t\t\tm_Price = (BigDecimal)m_table.getValueAt(row, 7);\n\t\t\t}\n\t\t}\n\t\tlog.fine(\"M_Product_ID=\" + m_M_Product_ID + \" - \" + m_ProductName + \" - \" + m_Price); \n\t}", "protected abstract void onConnect();", "private void uploadProductImage() {\n Activity activity = getActivity();\n if (activity == null) {\n return;\n }\n final String imagePath = PhotoUtil.getPhotoPathCache(gtin, activity);\n Runnable uploadProductImage = new Runnable() {\n @Override\n public void run() {\n // TODO limit file size\n ImageService.uploadProductImage(sequentialClient, gtin, imagePath, new\n PLYCompletion<ProductImage>() {\n @Override\n public void onSuccess(ProductImage result) {\n Log.d(\"UploadPImageCallback\", \"New image for product with GTIN \" + gtin + \" \" +\n \"uploaded\");\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded_more_info,\n Snackbar.LENGTH_LONG).show();\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded, Snackbar\n .LENGTH_LONG).show();\n }\n DataChangeListener.imageCreate(result);\n }\n\n @Override\n public void onPostSuccess(ProductImage result) {\n loadProductImage(imagePath, productImage);\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"UploadPImageCallback\", error.getMessage());\n LoadingIndicator.hide();\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar\n .LENGTH_LONG).show();\n }\n });\n }\n };\n if (dbProduct == null) {\n createEmptyOrGetProduct(gtin, language, true, true, uploadProductImage);\n } else {\n uploadProductImage.run();\n }\n }", "public UpdateProduct() {\n\t\tsuper();\t\t\n\t}", "public void consulterCatalog() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile(true) {\n\t\t\t\t\t\tProduct p = new Product(id, \"product\"+id++);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\tc.addProduct(p);\n\t\t\t\t\t\t\tSystem.out.println(\"成产好了一个产品\");\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "private ProductCatalog() {\n catalogPresenter = new CatalogPresenter(new CatalogRepositoryDb(), this);\n initComponents();\n fillComboBoxes();\n pagesTextField.setText(String.valueOf(currentPage));\n previousPageButton.setEnabled(false);\n setupTable();\n disableButons();\n catalogPresenter.getCategoriesFromDb();\n addRowSelectionListener();\n setupSearchTextFields();\n lockLowerDate();\n }", "@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}", "private Offce_item() {\n\n initComponents();\n con = MysqlConnect.getDbCon();\n }", "private void displayProductDetails() {\n //loading picture offline\n Picasso.get().load(pImage).networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.warning).into(productImage, new Callback() {\n @Override\n public void onSuccess() {\n\n }\n\n @Override\n public void onError(Exception e) {\n Picasso.get().load(pImage)\n .placeholder(R.drawable.warning).into(productImage);\n }\n });\n productName.setText(pName);\n productPrize.setText(pPrice);\n\n try{\n if (pCategory.equalsIgnoreCase(\"Bulk Purchase\")){\n quantity.setText(pLimitedQty);\n }\n } catch (Exception ex){\n Log.i(\"error\", ex.getMessage());\n catchErrors.setErrors(ex.getMessage(), dateAndTime.getDate(), dateAndTime.getTime(),\n \"OrderProductActivity\", \"displayProductDetails\");\n }\n }", "private void loadCatalog() {\n try {\n log.info(\"Attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint + \"...\");\n ThreadUtil.getApplicationThreadPool().execute(createThread());\n } catch (Exception e) {\n log.error(\"Error attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint, e);\n retry();\n }\n }", "private void sendUpdateConnectionInfo() {\n\n }", "protected void afterDisconnect() {\n // Empty implementation.\n }", "@Override\n\tprotected void onConnect() {\n\t\tLogUtil.debug(\"server connect\");\n\n\t}", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "private void pageProduct(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, SQLException {\n\t\tloadProduct(request, response);\n\t\t\n\t}", "@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}", "@Override\n public void onRefresh() {\n fetchShopAsync(0);\n }", "private synchronized void refreshProductModel(ProductModel pm)\r\n {\r\n int idx = products_listmodel.indexOf(pm);\r\n if (idx >= 0) {\r\n DocmaSession docmaSess = mainWin.getDocmaSession();\r\n // Create new model object to force GUI update\r\n ProductModel pm_updated = new ProductModel(docmaSess, pm.getId(), false);\r\n products_listmodel.set(idx, pm_updated);\r\n boolean pending = pm_updated.isLoadPending();\r\n if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) {\r\n setListRefresh(true);\r\n if (pending) startDbConnectThread();\r\n }\r\n } else {\r\n Log.warning(\"ProductModel not contained in list: \" + pm.getId());\r\n }\r\n }", "int reInitializeCommunities();", "@Override\n public void loadPaymentProducts() {\n mPaymentPresenter.loadPaymentProducts();\n }", "@Override\n protected void postConnect() {\n super.postConnect();\n //creates arrays list for buildings, roads and refuges of the world model\n \n buildingIDs = new ArrayList<EntityID>();\n roadIDs = new ArrayList<EntityID>();\n refugeIDs = new ArrayList<EntityID>();\n \n \n //assign values to buildings, roads and refuges according to model\n for (StandardEntity next : model) {\n if (next instanceof Building) {\n buildingIDs.add(next.getID());\n }\n if (next instanceof Road) {\n roadIDs.add(next.getID());\n }\n if (next instanceof Refuge) {\n refugeIDs.add(next.getID());\n }\n \n }\n \n /**\n * sets communication via radio\n */\n boolean speakComm = config.getValue(Constants.COMMUNICATION_MODEL_KEY).equals(ChannelCommunicationModel.class.getName());\n\n int numChannels = this.config.getIntValue(\"comms.channels.count\");\n \n if((speakComm) && (numChannels > 1)){\n \tthis.channelComm = true;\n }else{\n \tthis.channelComm = false;\n }\n \n /*\n * Instantiate a new SampleSearch\n * Sample Search creates a graph for the world model\n * and implements a bread first search for use as well.\n */\n search = new SampleSearch(model);\n\n neighbours = search.getGraph();\n useSpeak = config.getValue(Constants.COMMUNICATION_MODEL_KEY).equals(SPEAK_COMMUNICATION_MODEL);\n Logger.debug(\"Modelo de Comunicação: \" + config.getValue(Constants.COMMUNICATION_MODEL_KEY));\n Logger.debug(useSpeak ? \"Usando modelo SPEAK\" : \"Usando modelo SAY\");\n }", "private synchronized void refreshProductModel(String pm_id)\r\n {\r\n DocmaSession docmaSess = mainWin.getDocmaSession();\r\n for (int i=0; i < products_listmodel.size(); i++) {\r\n ProductModel pm = (ProductModel) products_listmodel.get(i);\r\n if (pm.getId().equals(pm_id)) {\r\n ProductModel pm_updated = new ProductModel(docmaSess, pm_id, false);\r\n products_listmodel.set(i, pm_updated);\r\n boolean pending = pm_updated.isLoadPending();\r\n if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) {\r\n setListRefresh(true);\r\n if (pending) startDbConnectThread();\r\n }\r\n break;\r\n }\r\n }\r\n }", "private void saveProduct() {\n Product product;\n String name = productName.getText().toString();\n if (name.isEmpty()) {\n productName.setError(getResources().getText(R.string.product_name_error));\n return;\n }\n String brandStr = brand.getText().toString();\n String brandOwnerStr = brandOwner.getText().toString();\n if (dbProduct == null) {\n product = new Product();\n product.setGtin(gtin);\n product.setLanguage(language);\n } else {\n product = dbProduct;\n }\n if (!name.isEmpty()) {\n product.setName(name);\n }\n if (!brandStr.isEmpty()) {\n product.setBrand(brandStr);\n }\n if (!brandOwnerStr.isEmpty()) {\n product.setBrandOwner(brandOwnerStr);\n }\n product.setCategory(selectedCategoryKey);\n LoadingIndicator.show();\n // TODO enable/disable save button\n PLYCompletion<Product> completion = new PLYCompletion<Product>() {\n @Override\n public void onSuccess(Product result) {\n Log.d(\"SavePDetailsCallback\", \"Product details saved\");\n dbProduct = result;\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_saved, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productCreate(result);\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_edited, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productUpdate(result);\n }\n }\n\n @Override\n public void onPostSuccess(Product result) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"SavePDetailsCallback\", error.getMessage());\n if (isNewProduct || !error.isHttpStatusError() || !error.hasInternalErrorCode\n (PLYStatusCodes.OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar.LENGTH_LONG)\n .show();\n }\n LoadingIndicator.hide();\n }\n\n @Override\n public void onPostError(PLYAndroid.QueryError error) {\n if (!isNewProduct && error.isHttpStatusError() && error.hasInternalErrorCode(PLYStatusCodes\n .OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n }\n };\n if (dbProduct == null) {\n ProductService.createProduct(sequentialClient, product, completion);\n } else {\n ProductService.updateProduct(sequentialClient, product, completion);\n }\n }", "private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() )\n\t\t{\n\t\t\tfor ( String s : products.keySet() )\n\t\t\t{\n\t\t\t\tif ( products.get(s).getName().equals(p.getName()) )\n\t\t\t\t{\n\t\t\t\t\t// Modify product to write to file\n\t\t\t\t\tqtyRequested = shoppingCart.getProducts().get(p);\n\t\t\t\t\tqtyAvailable = products.get(s).getQtyAvailable();\n\n\t\t\t\t\tif ( qtyAvailable < qtyRequested )\n\t\t\t\t\t\tunavailableProds.put(p, new ArrayList <>(Arrays.asList(qtyRequested, qtyAvailable)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Show warning\n\t\tif ( !unavailableProds.isEmpty() )\n\t\t{\n\t\t\tprodMsg = \"The cart products were not available anymore in the requested quantity, only the available quantity has been bought:\\n\\n\";\n\n\t\t\tfor ( Product p : unavailableProds.keySet() )\n\t\t\t{\n\t\t\t\tprodMsg += p.getName() + \": requested: \" + unavailableProds.get(p).get(0) + \", available: \"\n\t\t\t\t\t\t+ unavailableProds.get(p).get(1) + \"\\n\";\n\n\t\t\t\tif ( unavailableProds.get(p).get(1) == 0 )\n\t\t\t\t\tshoppingCart.removeProduct(p);\n\t\t\t\telse\n\t\t\t\t\tshoppingCart.getProducts().replace(p, unavailableProds.get(p).get(1));\n\t\t\t}\n\n\t\t\tif ( shoppingCart.getProducts().size() == 0 )\n\t\t\t{\n\t\t\t\tcartIsEmpty = true;\n\t\t\t\tprodMsg = \"All of your products were not available anymore for purchase: payment cancelled.\\nPlease select some new products.\";\n\t\t\t}\n\t\t}\n\t}", "public void FillInfoFromDB() throws IOException {\n\t\tHashMap<String, String> msgServer = new HashMap<String, String>();\n\t\t// ArrayList<Product> list = new ArrayList<Product>();\n\t\tif(list.isEmpty()==true){\n\t\tmsgServer.put(\"msgType\", \"select\");\n\t\tmsgServer.put(\"query\", \"Select ProductID, Name, Type, Color, Price,SalePrice from product\");\n\t\tMain.client.sendMessageToServer(msgServer);\n\t\tsynchronized (Main.client) {\n\t\t\ttry {\n\t\t\t\tMain.client.wait();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tArrayList<String> Deatils = (ArrayList<String>) Main.client.getMessage();\n\t\tProduct proudct;\n\t\tint j=0;\n\t\tfor (int i = 0; i < (Deatils.size()); i += 6) {\n\t\t\tproudct = new Product(Deatils.get(i), Deatils.get(i + 1), Deatils.get(i + 2), Deatils.get(i + 3),\n\t\t\t\t\tDeatils.get(i + 4));\n\t\t\t// System.out.println(product.toString());\n\t\t\tproudct.setSale(Double.parseDouble(Deatils.get(i + 5)));\n\t\t\tFile imagefile = new File(\"C:\\\\Zrlefiles\\\\ProudctsImages\\\\image\" +proudct.getProductID() + \".jpg\");\n\t\t\tImage image = new Image(imagefile.toURI().toString());\n\t\t\tproudct.setImg(image);\n\t\t\tlist.add(proudct);\n\t\t\t//list.get(Integer.parseInt(proudct.getProductID())).setImg(image);\n\t\t\t//j++;\n\t\t}\n\t}\n\t\t/*\n\t\tfor (int i = 0; i < Main.proudctList.size(); i++) {\n\t\t\tint proudctID = Integer.parseInt(Main.proudctList.get(i).getProductID());\n\t\t\t//if (i == proudctID) {\n\t\t\t\tFile imagefile = new File(\"C:\\\\Zrlefiles\\\\ProudctsImages\\\\image\" + i + \".jpg\");\n\t\t\t\tImage image = new Image(imagefile.toURI().toString());\n\t\t\t\tlist.get(i).setImg(image);\n\t\t\t//}\n\t\t\t// System.out.println(product.toString());\n\t\t}\n\t\t*/\n\t}", "@Override\r\n public void onCompleted() {\n Log.i(TAG, \"subscribed to buyable items\");\r\n }", "public void processProduct() {\n Product product = self.getCurrentProduct();\n ServiceManager sm = self.getServiceManager();\n boolean failure = false;\n\n if (product != null) {\n //update the product's location\n product.setLocation(self.getLocation());\n env.updateProduct(product);\n\n //process product if the current service equals the needed service and is available,\n //otherwise, just forward the product to the output-buffer without further action.\n if (sm.checkProcessingAllowed(product.getCurrentStepId())) {\n int processingSteps = sm.getCapability().getProcessingTime() * env.getStepTimeScaler();\n for (int i = 1; i <= processingSteps; i++) {\n if (i % env.getStepTimeScaler() == 0) {\n self.increaseWorkload();\n syncUpdateWithCheck(false);\n } else {\n waitStepWithCheck();\n }\n }\n failure = sm.checkFailure(getRandom());\n }\n\n //block until enough space on output-buffer\n while (!self.getOutputBuffer().tryPutProduct(product) && !getResetFlag()) {\n waitStepWithCheck();\n }\n // update product, no sync – does not change pf\n product.finishCurrentStep();\n product.setLocation(self.getOutputLocation());\n env.updateProduct(product);\n // move product to output-buffer + break a service (optional)\n self.setCurrentProduct(null);\n self.increaseFinishCount();\n syncUpdateWithCheck(failure);\n }\n }", "@Override\n public void onConnected(Bundle bundle) {\n\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Subscribe(Integer busLineID, final ConfigurationActivity configurationActivity) { // subscribe se ena buslineID\n Socket requestSocket = null;\n ObjectOutputStream out = null; // Gets and sends streams\n ObjectInputStream in = null;\n\n try {\n Client client = new Client();\n client.brokers = Subscriber.this.brokers;\n\n subscribedLists.add(busLineID);\n subscribedThreads.put(busLineID, client);\n\n int hash = HashTopic(busLineID);\n\n int no = FindBroker(hash);\n\n requestSocket = connectWithTimeout(no, TIMEOUT);\n\n subscribedSockets.put(busLineID, requestSocket);\n\n out = new ObjectOutputStream(requestSocket.getOutputStream());\n in = new ObjectInputStream(requestSocket.getInputStream());\n\n String s = in.readUTF();\n\n out.writeUTF(\"subscriber\");\n\n out.flush();\n\n s = in.readUTF();\n\n out.writeUTF(\"subscribe\");\n\n out.flush();\n\n String msg = String.valueOf(busLineID);\n out.writeUTF(msg);\n out.flush();\n\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 4;\n MapsActivity.mainHandler.sendMessage(message);\n\n configurationActivity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n configurationActivity.updateGUI();\n }\n });\n\n\n while (true) {\n s = in.readUTF();\n visualizeData(s);\n\n message = MapsActivity.mainHandler.obtainMessage();\n message.what = 5;\n message.obj = s;\n\n MapsActivity.mainHandler.sendMessage(message);\n }\n } catch (SocketTimeoutException ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 8;\n message.obj = busLineID;\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n subscribedLists.remove(busLineID);\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n } catch (Exception ex) {\n Message message = MapsActivity.mainHandler.obtainMessage();\n message.what = 7;\n message.obj = ex.toString();\n MapsActivity.mainHandler.sendMessage(message);\n ex.printStackTrace();\n\n if (requestSocket != null) {\n disconnect(requestSocket, out, in);\n }\n }\n }", "@Override\n\t@Transactional\n\tpublic List<UploadProducts> getProductInfoForDeviceTracking(UploadProducts productDetails) {\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- Start\");\n\t\tList<UploadProducts> productlist=new ArrayList<UploadProducts>();\n\t\ttry {\n\t\t\tproductlist=uploadProductDAO.getProductInfoForDeviceTracking(productDetails);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}finally{\n\n\t\t}\n\t\tlogger.info(\"getProductInfoForDeviceTracking() method in UploadProductServiceImpl Class :- End\");\n\t\treturn productlist;\n\t}", "@Override\n\tpublic void reconnect() {\n\n\t}", "@Override\n public void BeforeReConnect() {\n nCurrentDownloadNum = 0;\n nCurrentUpload = 0;\n mapDownload.clear();\n }", "private void subscribeUi(LiveData<List<ProductEntity>> liveData) {\n liveData.observe(getViewLifecycleOwner(), myProducts -> {\n if (myProducts != null) {\n mBinding.setIsLoading(false);\n mProductAdapter.setProductList(myProducts);\n } else {\n mBinding.setIsLoading(true);\n }\n // espresso does not know how to wait for data binding's loop so we execute changes\n // sync.\n mBinding.executePendingBindings();\n });\n }", "@Override\n public void initialize() {\n this.product = new Product(this.productId,this.productName,this.productPrice,this.productInv,this.productMin,this.productMax);\n productTitleLabel.setText(\"Modify Product\");\n }", "private void loadProduct(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException {\n\t\tCookie[] theCookieLoop=request.getCookies();//tạo một cái mảng cookie có \n\t\tString manufacturer=null;\n\n\t\t\t\t\t\t\t//có tên là theCookieloop sau đó lấy ra các đối tượng trong mảng Cookie\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop)//dùng để duyệt qu các mảng cookie \n\t\t\t\t\t{\n\t\t\t\t\tif(\"tagProduct\".equals(tempCookie.getName())) {\n\t\t\t\t\t\tmanufacturer=tempCookie.getValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tObservableList<Products> list_products = FXCollections.observableArrayList();\n\t\tString idManufacture= daoPageAdmin.getIdManufacturerWithName(manufacturer);\n\t\tlist_products = daoPageAdmin.getAllProducts(idManufacture);\n\t\trequest.getSession().setAttribute(\"LIST_PRODUCTS\", list_products);\n\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/viewProduct.jsp\");\n\t}", "public importProduct() {\n initComponents();\n Sql s = new Sql();\n\n s.Select_MaterialItem(Materials_combox);\n s.loadcombo(item_combox);\n s.Select_BigItem(Bigitem_combox);\n }", "public void requestAccessToPcc()\n {\n \tstate = State.CONNECTING;\n\t releaseHandle = AntPlusBikePowerPcc.requestAccess(this.context, deviceNumber, 0, this, this);\n }", "public ViewProducts(Customer loggedInCustomer) {\n currentCustomer = loggedInCustomer;\n \n DBManager db = new DBManager();\n products = db.loadProducts();\n \n initComponents();\n \n //check if current customer is logged in or just browsing\n if(currentCustomer.getIsRegistered()){\n //if they are let them place an order\n currentOrder = currentCustomer.findLatestOrder();\n }\n else{\n //if they are not registered disable viewbasket\n view_btn.setVisible(false);\n } \n }", "@Override\n public void run() {\n ImageService.uploadProductImage(sequentialClient, gtin, imagePath, new\n PLYCompletion<ProductImage>() {\n @Override\n public void onSuccess(ProductImage result) {\n Log.d(\"UploadPImageCallback\", \"New image for product with GTIN \" + gtin + \" \" +\n \"uploaded\");\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded_more_info,\n Snackbar.LENGTH_LONG).show();\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded, Snackbar\n .LENGTH_LONG).show();\n }\n DataChangeListener.imageCreate(result);\n }\n\n @Override\n public void onPostSuccess(ProductImage result) {\n loadProductImage(imagePath, productImage);\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"UploadPImageCallback\", error.getMessage());\n LoadingIndicator.hide();\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar\n .LENGTH_LONG).show();\n }\n });\n }", "@Override\r\n\tpublic void onChannelSuccess() {\n\t\t\r\n\t}", "void onConnectDeviceComplete();", "private void doRefreshConnection()\r\n\t{\r\n\t\t/* Refresh the connection to S3. */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tservice = new RestS3Service(new AWSCredentials(accessKey, secretKey));\r\n\t\t}\r\n\t\tcatch (S3ServiceException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void resume() {\n noxItemCatalog.addObserver(catalogObserver);\n noxItemCatalog.resume();\n }", "public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tif(dbHelper.InsertItem(listResult))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tSharedPreferences sharedPrefer = getSharedPreferences(getResources().getString(R.string.information_string), Context.MODE_PRIVATE);\r\n\t\t\t\t\t\t \tSharedPreferences.Editor sharedEditor = sharedPrefer.edit();\r\n\t\t\t\t\t\t \tsharedEditor.putString(getResources().getString(R.string.masterversion), Common.serverTime);\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t \tsharedEditor.commit();\r\n\t\t\t\t\t\t \t\r\n\t\t\t\t\t\t\t\tMessage msg = Message.obtain();\r\n\t\t\t\t\t\t\t\tmsg.obj = \"ProductItemSave\";\r\n\t\t\t\t\t\t\t\thandler.sendMessage(msg);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "@Override\n public void connectionStarted()\n {\n setChildrenEnabled(layoutLogin, false);\n }", "private void initialize() {\nproductCatalog.add(new ProductStockPair(new Product(100.0, \"SYSC2004\", 0), 76));\nproductCatalog.add(new ProductStockPair(new Product(55.0, \"SYSC4906\", 1), 0));\nproductCatalog.add(new ProductStockPair(new Product(45.0, \"SYSC2006\", 2), 32));\nproductCatalog.add(new ProductStockPair(new Product(35.0, \"MUSI1001\", 3), 3));\nproductCatalog.add(new ProductStockPair(new Product(0.01, \"CRCJ1000\", 4), 12));\nproductCatalog.add(new ProductStockPair(new Product(25.0, \"ELEC4705\", 5), 132));\nproductCatalog.add(new ProductStockPair(new Product(145.0, \"SYSC4907\", 6), 322));\n}", "@Override\n public void onClick(View v) {\n AsyncCallGetProducts task = new AsyncCallGetProducts(MainActivity.this);\n task.execute();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.product();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override protected void onResume() {\n super.onResume();\n locationClient.connect();\n }", "@Override\r\n public void onDeviceConnecting(GenericDevice mDeviceHolder,\r\n PDeviceHolder innerDevice) {\n\r\n }", "@Override\n public void endOperations() {\n product.add(String.format(\"Motorcycle model is :%s\",this.brandName));\n }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}", "private void receiveData()\n {\n Intent i = getIntent();\n productSelected = Paper.book().read(Prevalent.currentProductKey);\n vendorID = i.getStringExtra(\"vendorID\");\n if (productSelected != null) {\n\n productName = i.getStringExtra(\"productName\");\n productImage = i.getStringExtra(\"imageUrl\");\n productLongDescription = i.getStringExtra(\"productLongDescription\");\n productCategory = i.getStringExtra(\"productCategory\");\n productPrice = i.getStringExtra(\"productPrice\");\n productSizesSmall = i.getStringExtra(\"productSizesSmall\");\n productSizesMedium = i.getStringExtra(\"productSizesMedium\");\n productSizesLarge = i.getStringExtra(\"productSizesLarge\");\n productSizesXL = i.getStringExtra(\"productSizesXL\");\n productSizesXXL = i.getStringExtra(\"productSizesXXL\");\n productSizesXXXL = i.getStringExtra(\"productSizesXXXL\");\n productQuantity = i.getStringExtra(\"productQuantity\");\n }\n }", "protected void onPostExecute(String args) {\n // dismiss the dialog after getting all products\n pDialog.dismiss();\n }", "@Override\n public void connectionLost() {\n }" ]
[ "0.6212643", "0.61975276", "0.60383135", "0.5941412", "0.59323424", "0.58719134", "0.58332604", "0.58088285", "0.5790195", "0.57875866", "0.57804877", "0.57553697", "0.5751546", "0.57214713", "0.57031804", "0.57006705", "0.5691708", "0.5686951", "0.5685401", "0.5662095", "0.56361204", "0.56357396", "0.5629349", "0.56154037", "0.56154037", "0.5597286", "0.5588273", "0.5585252", "0.5568458", "0.55639213", "0.55538446", "0.55532044", "0.551777", "0.55163765", "0.54970026", "0.54966277", "0.54781467", "0.5471326", "0.54620016", "0.54493994", "0.544403", "0.5442554", "0.54344517", "0.5428325", "0.5428214", "0.5420027", "0.54109126", "0.54088306", "0.5407197", "0.54019946", "0.5397868", "0.5393452", "0.53867733", "0.5366771", "0.53662074", "0.53524214", "0.53518224", "0.53502864", "0.53494537", "0.53421235", "0.53305227", "0.5320088", "0.5319701", "0.53194386", "0.53146493", "0.5295511", "0.5292346", "0.52920693", "0.5289955", "0.52841985", "0.52804273", "0.5270939", "0.52659935", "0.52517956", "0.5249626", "0.5246827", "0.5243597", "0.52377164", "0.52297175", "0.522918", "0.5228713", "0.52224916", "0.5216388", "0.5208522", "0.52034193", "0.5201152", "0.5198596", "0.5193539", "0.5192501", "0.51919836", "0.5191573", "0.5191573", "0.5189104", "0.51866907", "0.51743716", "0.51723987", "0.5170083", "0.51644284", "0.5158365", "0.5155796" ]
0.557341
28
Replace the existing product model by a newly created product model (reread all product model data from the persistence layer) and render the new product model.
private synchronized void refreshProductModel(String pm_id) { DocmaSession docmaSess = mainWin.getDocmaSession(); for (int i=0; i < products_listmodel.size(); i++) { ProductModel pm = (ProductModel) products_listmodel.get(i); if (pm.getId().equals(pm_id)) { ProductModel pm_updated = new ProductModel(docmaSess, pm_id, false); products_listmodel.set(i, pm_updated); boolean pending = pm_updated.isLoadPending(); if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) { setListRefresh(true); if (pending) startDbConnectThread(); } break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "@RequestMapping(value = { \"/newproduct\" }, method = RequestMethod.GET)\r\n\tpublic String newProduct(ModelMap model) {\r\n\t\tProduct product = new Product();\r\n\t\tmodel.addAttribute(\"product\", product);\r\n\t\tmodel.addAttribute(\"productTypes\", productTypeService.findAllProductTypes());\r\n\t\tmodel.addAttribute(\"brands\", brandService.findAllBrands());\r\n\t\tmodel.addAttribute(\"edit\", false);\r\n\t\treturn \"newproduct\";\r\n\t}", "public void replaceModel(Model oldModel, Model newModel, OpenSimContext newContext) {\n OpenSimContext swap=null;\n if(oldModel!=null) {\n removeModel(oldModel);\n }\n if(newModel!=null) {\n try {\n addModel(newModel, newContext);\n } catch (IOException ex) {\n ErrorDialog.displayExceptionDialog(ex);\n }\n //mapModelsToContexts.put(newModel, newContext);\n /*\n SingleModelVisuals rep = ViewDB.getInstance().getModelVisuals(newModel);\n if(offset!=null) {\n ViewDB.getInstance().setModelVisualsTransform(rep, offset);\n ViewDB.getInstance().setObjectOpacity(newModel, opacity);\n }*/\n }\n }", "Product editProduct(Product product);", "public JavaproductModel putproduct(JavaproductModel oJavaproductModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Update the existing product of the database*/\n hibernateSession.update(oJavaproductModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaproductModel;\n }", "@RequestMapping(value = {\"/product_detail/{id}\"}, method = RequestMethod.POST)\n public String updateProduct(Model model, @PathVariable(\"id\") long id, HttpServletRequest request) {\n updateProductByRest(id, request);\n Product product = getProduct(id, request);\n model.addAttribute(\"product\", product);\n return \"product_detail\";\n }", "@Override\r\n\tpublic Product updateProduct(Product s) {\n\t\treturn null;\r\n\t}", "public void saveNewProduct(Product product) throws BackendException;", "public void updateProduct() throws ApplicationException {\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n\n try {\n session.beginTransaction();\n Menu updateProduct = (Menu) session.get(Menu.class, menuFxObjectPropertyEdit.getValue().getIdProduct());\n\n updateProduct.setName(menuFxObjectPropertyEdit.getValue().getName());\n updateProduct.setPrice(menuFxObjectPropertyEdit.getValue().getPrice());\n\n session.update(updateProduct);\n session.getTransaction().commit();\n } catch (RuntimeException e) {\n session.getTransaction().rollback();\n SQLException sqlException = getCauseOfClass(e, SQLException.class);\n throw new ApplicationException(sqlException.getMessage());\n }\n\n initMenuList();\n }", "@RequestMapping(value = { \"/newproduct\" }, method = RequestMethod.POST)\r\n\tpublic String saveProduct(@Valid Product product, BindingResult result,\r\n\t\t\tModelMap model) {\r\n\r\n//\t\tif (result.hasErrors()) {\r\n//\t\t\treturn \"productslist\";\r\n//\t\t}\r\n\t\t\r\n\t\tmodel.addAttribute(\"productTypes\", productTypeService.findAllProductTypes());\r\n\t\tmodel.addAttribute(\"brand\", brandService.findAllBrands());\r\n\t\tmodel.addAttribute(\"edit\", true);\r\n\t\tproductService.saveProduct(product);\r\n\r\n\t\treturn \"newproduct\";\r\n\t}", "@Override\n\tpublic Product update(Product entity) {\n\t\treturn null;\n\t}", "@ModelAttribute(\"product\")\n public Product productToAdd() {\n return new Product();\n }", "ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;", "public UpdateProduct() {\n\t\tsuper();\t\t\n\t}", "Product updateProductInStore(Product product);", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(true);\n productController.setProductToModify(getProductToModify());\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Products\");\n stage.setScene(new Scene(root));\n stage.show();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to modify from the product table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@GetMapping(\"/updateProduct\")\n\tpublic String updateProduct(@RequestParam(\"productId\") int productId , Model theModel) {\n\t\tProduct product = productDAO.getProduct(productId);\n\n\t\t// add the users to the model\n\t\ttheModel.addAttribute(\"product\", product);\n\t\t \n\t\treturn \"update-product\";\n\t}", "public void Editproduct(Product objproduct) {\n\t\t\n\t}", "@Override\n\tpublic Product getModel() {\n\t\treturn product;\n\t}", "Product addNewProductInStore(Product newProduct);", "ProductView addProduct(ProductBinding productToAdd) throws ProductException;", "@GetMapping(\"/sysadmin/product/view/{id}\")\n public String showProductPage(@PathVariable(value = \"id\") Integer id, ModelMap model) {\n Product product = productService.findById(id);\n if (product == null) {\n return \"redirect:/admin/product\";\n }\n\n ProductUpdateDTO productDTO = new ProductUpdateDTO();\n productDTO.setProductCode(product.getProductCode());\n productDTO.setCategory(product.getCategory());\n productDTO.setDescription(product.getDescription());\n productDTO.setPrice(product.getPrice());\n productDTO.setTitle(product.getTitle());\n productDTO.setType(product.getType());\n productDTO.setPublished(product.isPublish());\n\n List<CodeValue> lstCode = codeValueService.getByType(\"product_category\");\n for(int i = 0; i < lstCode.size(); i++){\n CodeValue code = lstCode.get(i);\n if(code.getCode() == productDTO.getCategory()){\n productDTO.setCategoryDescription(code.getDescription());\n break;\n }\n }\n model.addAttribute(\"product\", productDTO);\n model.addAttribute(\"productCategory\", codeValueService.getByType(\"product_category\"));\n\n return \"admin/sysadm/productFormView\";\n }", "private void updateContent() {\n if (product != null) {\n etProductName.setText(product.getName());\n etPrice.setText(product.getPrice().toString());\n }\n }", "public void updateProducts()\n {\n ObservableList<Product> inventoryProducts = this.inventory.getAllProducts();\n\n // Configure product table and bind with inventory products\n productIDColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"id\"));\n productNameColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"name\"));\n productInventoryColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"stock\"));\n productPriceColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"price\"));\n\n productTable.setItems(inventoryProducts);\n // Unselect parts in table after part is updated\n productTable.getSelectionModel().clearSelection();\n productTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n }", "public JavaproductModel postproduct(JavaproductModel oJavaproductModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Insert the new product to database*/\n int productId = (Integer) hibernateSession.save(oJavaproductModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n\n /* Return the JavaproductModel with updated productId*/\n oJavaproductModel.setproductId(productId);\n return oJavaproductModel;\n }", "public void setProduct(Product selectedProduct) {\n\t\t\n\t\tthis.modifiedProduct = selectedProduct;\n\n\t\tidField.setText(Integer.toString(modifiedProduct.getId()));\n\t\tproductNameField.setText(modifiedProduct.getName());\n\t\tpriceField.setText(Double.toString(modifiedProduct.getPrice()));\n\t\tinvField.setText(Integer.toString(modifiedProduct.getStock()));\n\t\tmaxField.setText(Integer.toString(modifiedProduct.getMax()));\n\t\tminField.setText(Integer.toString(modifiedProduct.getMin()));\n\t\t\t\t\n\t\tdummyList = modifiedProduct.getAllAssociatedParts();\n\t\tpartListProductTable.setItems(dummyList);\n\t}", "private synchronized void refreshProductModel(ProductModel pm)\r\n {\r\n int idx = products_listmodel.indexOf(pm);\r\n if (idx >= 0) {\r\n DocmaSession docmaSess = mainWin.getDocmaSession();\r\n // Create new model object to force GUI update\r\n ProductModel pm_updated = new ProductModel(docmaSess, pm.getId(), false);\r\n products_listmodel.set(idx, pm_updated);\r\n boolean pending = pm_updated.isLoadPending();\r\n if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) {\r\n setListRefresh(true);\r\n if (pending) startDbConnectThread();\r\n }\r\n } else {\r\n Log.warning(\"ProductModel not contained in list: \" + pm.getId());\r\n }\r\n }", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "@RequestMapping(value = \"/show/{id}/product\")\r\n\tpublic ModelAndView showingSingleProduct(@PathVariable(\"id\") int id) throws ProductNotFound {\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tProduct product = productDAO.get(id);\r\n\t\tif (product == null){\r\n\t\t\tthrow new ProductNotFound();\t\r\n\t\t}\r\n\t\t\t\r\n\t\tproduct.setViews(product.getViews() + 1);\r\n\t\tproductDAO.update(product);\r\n\t\tmv.addObject(\"title\", product.getName());\r\n\t\tmv.addObject(\"product\", product);\r\n\t\tmv.addObject(\"onClickShowProduct\", true);\r\n\t\treturn mv;\r\n\r\n\t}", "@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }", "@Override protected void populateViewHolder(ViewHolderProduct viewHolder, Product model,\n int position) {\n viewHolder.initProduct(model, getContext());\n }", "public String editProduct() {\n ConversationContext<Product> ctx = ProductController.newEditContext(products.getSelectedRow());\n ctx.setLabelWithKey(\"part_products\");\n ctx.setCallBack(editProductCallBack);\n getCurrentConversation().setNextContextSub(ctx);\n return ctx.view();\n }", "public void retrieveProduct(Product product) {\n // Place string values in TextFields.\n productIdField.setPromptText(String.valueOf(product.getId()));\n productNameField.setText(product.getName());\n productInvField.setText(String.valueOf(product.getStock()));\n productPriceField.setText(String.valueOf(product.getPrice()));\n productMaxField.setText(String.valueOf(product.getMax()));\n productMinField.setText(String.valueOf(product.getMin()));\n // load the TableViews after copying necessary values to instance.\n associatedPartsCopyMachine(product);\n this.product.setId(product.getId());\n super.initialize();\n }", "@Test\n public void saveProduct_should_update_product_with_new_product_fields() {\n final Product product = productStorage.saveProduct(new Product(1, \"Oranges\", 150, 3));\n\n //get product with id = 1\n final Product updatedProduct = productStorage.getProduct(1);\n\n assertThat(product, sameInstance(updatedProduct));\n }", "public void updateProduct(int index, Product newProduct) {\n Product product = allProducts.get(index);\n product.setId(newProduct.getId());\n product.setName(newProduct.getName());\n product.setMin(newProduct.getMin());\n product.setMax(newProduct.getMax());\n product.setPrice(newProduct.getPrice());\n product.setStock(newProduct.getStock());\n }", "public void updateProduct(Product catalog) throws BackendException;", "private void updateProductsList() {\n this.productsList = demonstrationApplicationController.getProductsList();\n this.jListProduct.setModel(new ModelListSelectable(this.productsList));\n }", "private void saveProduct() {\n Product product;\n String name = productName.getText().toString();\n if (name.isEmpty()) {\n productName.setError(getResources().getText(R.string.product_name_error));\n return;\n }\n String brandStr = brand.getText().toString();\n String brandOwnerStr = brandOwner.getText().toString();\n if (dbProduct == null) {\n product = new Product();\n product.setGtin(gtin);\n product.setLanguage(language);\n } else {\n product = dbProduct;\n }\n if (!name.isEmpty()) {\n product.setName(name);\n }\n if (!brandStr.isEmpty()) {\n product.setBrand(brandStr);\n }\n if (!brandOwnerStr.isEmpty()) {\n product.setBrandOwner(brandOwnerStr);\n }\n product.setCategory(selectedCategoryKey);\n LoadingIndicator.show();\n // TODO enable/disable save button\n PLYCompletion<Product> completion = new PLYCompletion<Product>() {\n @Override\n public void onSuccess(Product result) {\n Log.d(\"SavePDetailsCallback\", \"Product details saved\");\n dbProduct = result;\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_saved, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productCreate(result);\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_edited, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productUpdate(result);\n }\n }\n\n @Override\n public void onPostSuccess(Product result) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"SavePDetailsCallback\", error.getMessage());\n if (isNewProduct || !error.isHttpStatusError() || !error.hasInternalErrorCode\n (PLYStatusCodes.OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar.LENGTH_LONG)\n .show();\n }\n LoadingIndicator.hide();\n }\n\n @Override\n public void onPostError(PLYAndroid.QueryError error) {\n if (!isNewProduct && error.isHttpStatusError() && error.hasInternalErrorCode(PLYStatusCodes\n .OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n }\n };\n if (dbProduct == null) {\n ProductService.createProduct(sequentialClient, product, completion);\n } else {\n ProductService.updateProduct(sequentialClient, product, completion);\n }\n }", "public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}", "private void saveProduct() {\n //Delegating to the Presenter to trigger focus loss on listener registered Views,\n //in order to persist their data\n mPresenter.triggerFocusLost();\n\n //Retrieving the data from the views and the adapter\n String productName = mEditTextProductName.getText().toString().trim();\n String productSku = mEditTextProductSku.getText().toString().trim();\n String productDescription = mEditTextProductDescription.getText().toString().trim();\n ArrayList<ProductAttribute> productAttributes = mProductAttributesAdapter.getProductAttributes();\n mCategoryOtherText = mEditTextProductCategoryOther.getText().toString().trim();\n\n //Delegating to the Presenter to initiate the Save process\n mPresenter.onSave(productName,\n productSku,\n productDescription,\n mCategoryLastSelected,\n mCategoryOtherText,\n productAttributes\n );\n }", "void updateModelFromView();", "public void update(Product product) {\n\n\t}", "@GetMapping(Mappings.ADD_PRODUCT)\n public ModelAndView add_product(){\n Product product = new Product();\n ModelAndView mv = new ModelAndView(ViewNames.ADD_PRODUCT);\n mv.addObject(\"product\", product);\n return mv;\n }", "@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}", "private void updateProduct(boolean rebuild) {\n\n // Save the product.\n PshUtil.savePshData(pshData);\n\n // Build report and display.\n if (rebuild) {\n previewProduct = PshUtil.buildPshReport(pshData);\n previewText.setText(previewProduct);\n }\n }", "@FXML\n void saveModifyProductButton(ActionEvent event) throws IOException {\n\n try {\n int id = selectedProduct.getId();\n String name = productNameText.getText();\n Double price = Double.parseDouble(productPriceText.getText());\n int stock = Integer.parseInt(productInventoryText.getText());\n int min = Integer.parseInt(productMinText.getText());\n int max = Integer.parseInt(productMaxText.getText());\n\n if (name.isEmpty()) {\n AlartMessage.displayAlertAdd(5);\n } else {\n if (minValid(min, max) && inventoryValid(min, max, stock)) {\n\n Product newProduct = new Product(id, name, price, stock, min, max);\n\n assocParts.forEach((part) -> {\n newProduct.addAssociatedPart(part);\n });\n\n Inventory.addProduct(newProduct);\n Inventory.deleteProduct(selectedProduct);\n mainScreen(event);\n }\n }\n } catch (IOException | NumberFormatException e){\n AlartMessage.displayAlertAdd(1);\n }\n }", "public void regenerateEntity() {\n boolean isStopRepaint = parent.getStopRepaint();\n parent.setStopRepaint(true);\n\n entityName.setText(component.getName());\n innerRegenerate();\n\n if (!isStopRepaint) parent.goRepaint();\n\n updateHeight();\n }", "@Override\n\tpublic String updateProduct() throws AdminException {\n\t\treturn null;\n\t}", "private void editProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id -\");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id -\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter new Quantity of Product\");\n\t\t\tint quantity = getValidInteger(\"Enter new Quantity of Product\");\n\t\t\tCartController.getInstance().editProductFromCart(productId,\n\t\t\t\t\tquantity);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "protected void rerender() {\n\t\tthis.layout.render(inventory);\n\t}", "public void saveProduct(Product product);", "public void updateProduct(SiteProduct product) {\n dataProvider.save(product);\n }", "@Override\n\tpublic void saveProduct(Product product) {\n\t\t productRepository.save(product);\n\t\t\n\t}", "@Override\r\n\tpublic void saveProduct(Product product) throws Exception {\n\r\n\t}", "@Override\n\tpublic void update(ExportProduct exportProduct) {\n\t\t\n\t}", "public void setProduct(Product product) {\n this.product = product;\n }", "@Override\n\tpublic boolean updateProduct(Product p) {\n\t\treturn false;\n\t}", "void saveProduct(Product product);", "private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}", "@RequestMapping(value = {\"/add_product\"}, method = RequestMethod.POST)\n public String createProduct(Model model, HttpServletRequest request) {\n boolean isSuccess = addProductByRest(request);\n if (isSuccess) {\n ProductController controller = new ProductController();\n List<Product> productList = controller.getProductList(request, \"products\");\n model.addAttribute(\"products\", productList);\n return \"product_list\";\n } else {\n return \"product_detail_new\";\n }\n }", "@Override\r\n\tpublic ResponseData addProduct(ProductModel productModel) {\n\t\tProduct product = (Product) productConverter.convert(productModel);\r\n\t\tlong i = productRepositoryImpl.addProduct(product).getId();\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ResponseData(product.getId(), true, \"Save Data Success full\");\r\n\t\t} else {\r\n\t\t\treturn new ResponseData(0, false, \"Failed\");\r\n\t\t}\r\n\r\n\t}", "Product updateProductById(Long id);", "public void editProduct(String newProductId) {\n fill(\"#productId\").with(newProductId);\n fill(\"#name\").with(newProductId);\n fill(\"#description\").with(\"A nice product\");\n submit(\"#update\");\n }", "@RequestMapping(value = { \"/edit-product-{id}\" }, method = RequestMethod.POST)\r\n\tpublic String updateProduct(@Valid Product product, BindingResult result,\r\n\t\t\tModelMap model, @PathVariable int id) {\r\n\r\n\t\tif (result.hasErrors()) {\r\n\t\t\treturn \"registration\";\r\n\t\t}\r\n\r\n\t\tproductService.updateProduct(product);\r\n\r\n\t\tmodel.addAttribute(\"success\", \"Product \" + product.getName() + \" \"+ product.getId() + \" updated successfully\");\r\n\t\treturn \"registrationsuccess\";\r\n\t}", "@PutMapping(\"/update\")\r\n\tpublic ProductDetails updateProduct(@RequestBody @Valid UpdateProduct request) {\r\n\t\r\n\t\tProduct product = productService.searchProduct(request.getProduct_Id());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\tproduct.setProduct_Price(request.getProduct_Price());\r\n\t\tproduct.setProduct_Quantity(request.getProduct_Quantity());\r\n\t\tproduct.setProduct_Availability(request.isProduct_Availability());\r\n\t\treturn productUtil.toProductDetails(productService.updateProduct(product));\r\n\t}", "public void associateProductTemplate() {\n productToolOperation.addChildProductTree(selectProductNode, selectTemplateNode, planConfigBehavior);\n }", "public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ProductModel getProduct()\n\t{\n\t\treturn product;\n\t}", "void updateViewFromModel();", "void saveOrUpdate(Product product);", "public boolean update(Product product);", "@Override\n\tpublic void updateProduct(ProductVO vo) {\n\n\t}", "public void editProduct(int index, String description, String category, int quantity, int weight, int price, int stocknumber) {\t\t\n\t}", "public void testUpdateProduct() {\n\t\tProduct product=productDao.selectProducts(33);\n\t\tproduct.setPrice(100.0);\n\t\tproduct.setQuantity(1);\n\t\tproductDao.updateProduct(product);//product has updated price and update quantity\n\t\tassertTrue(product.getPrice()==100.0);\n\t\tassertTrue(product.getQuantity()==1);\n\t}", "@RequestMapping(\"/productlist/Productdetails/{id}\")\n\n public String Productdetails(@PathVariable String id, Model model) throws IOException{\n\n Product bike = productDao.getProductById(id);\n model.addAttribute(bike);\n\n\n return \"productdetails\";\n }", "public void updateDb(View view) {\n String productName = getIntent().getStringExtra(\"product\");\n Product p = db.getProductByName(productName);\n p.setName(name.getText().toString());\n p.setAvail(availSpinner.getSelectedItem().toString());\n p.setDescription(desc.getText().toString());\n p.setPrice(new BigDecimal(price.getText().toString()));\n p.setWeight(Double.parseDouble(weight.getText().toString()));\n db.updateProduct(p);\n finish();\n }", "@Override\n\tpublic ProductDto saveProduct(ProductDto product) {\n\t\treturn null;\n\t}", "@FXML\n\t private void populateProducts (ObservableList<Product> prodData) throws ClassNotFoundException {\n\t //Set items to the productTable\n\t \tproductTable.setItems(prodData);\n\t }", "@RequestMapping(value=\"/addproduct\",method=RequestMethod.POST)\n\tpublic ModelAndView gotNewProduct(@ModelAttribute(\"addpro\") Product pob,HttpServletRequest request,BindingResult result)\n\t{\n\t\tint res = 0;\n\t\tServletContext context=request.getServletContext();\n\t\tString path=context.getRealPath(\"./resources/\"+pob.getId()+\".jpg\");\n\t\tSystem.out.println(\"Path = \"+path);\n\t\t//System.out.println(\"File name = \"+pob.getImage().getOriginalFilename());\n\t\tFile f=new File(path);\n\t\tif(!pob.getImage().isEmpty()) {\n\t\t\ttry {\n\t\t\t\t//filename=p.getImage().getOriginalFilename(); byte[] bytes=p.getImage().getBytes(); BufferedOutputStream bs=new BufferedOutputStream(new FileOutputStream(f)); bs.write(bytes); bs.close(); System.out.println(\"Image uploaded\");\n\t\t\tres=sc.addNewProduct(pob);\n\t\t\tSystem.out.println(\"Data Inserted\");\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tres=0;\n\t\t\t}\n\t\t\tif(res>0)\n\t\t\t{\n\t\t\t//List<Product> products = ps.getAllProduct();\n\t\t\t//model.addAttribute(\"products\", products );\n\t\t\treturn new ModelAndView(\"index\",\"\", null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\treturn new ModelAndView(\"error\",\"\",null);\n\t\t\t}\n\t\t\n\t}", "@Override\n\tpublic void modifypro(ProductBean p) {\n\t\tsession.update(namespace+\".modifypro\", p);\n\t}", "public static com.glority.qualityserver.model.Product convertToSeverModel(\n com.glority.quality.model.ProductInfo productInfo) {\n com.glority.qualityserver.model.Product sProduct = new com.glority.qualityserver.model.Product();\n\n if (productInfo != null) {\n sProduct.setName(productInfo.getProductName());\n sProduct.setDisplayName(productInfo.getProductName());\n sProduct.setGroup(productInfo.getBusinessUnit());\n // sProduct.setSvnUrl(productInfo.getSvnUrl());\n // sProduct.setSvnRevision(productInfo.getSvnRevision());\n }\n\n return sProduct;\n }", "@Override\n\tpublic void updateProcuctModel(CollectionOfModel collectionOfModel) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tProductModel entity = procuctModelDAO.findById(Integer.parseInt(collectionOfModel.getProductId()));\n\t\t\n\t\tif(entity != null) {\n\t\t\tentity.setCompanyId(Integer.parseInt(collectionOfModel.getCompany_id()));\n\t\t\tentity.setScreenSizeId(Integer.parseInt(collectionOfModel.getModell_size_id()));\n\t\t\tentity.setProcuctInfo(collectionOfModel.getModell_info());\n\t\t\tentity.setModellTypeId(Integer.parseInt(collectionOfModel.getModell_type_id()));\n\t\t\tentity.setProcuctName(collectionOfModel.getModellName());\n\t\t\tentity.setProductPris(Integer.parseInt(collectionOfModel.getModellPris()));\n\t\t\tentity.setIsViseble(Integer.parseInt(collectionOfModel.getIsVisible()));\n\t\t\t\n\t\t}\n\t}", "@Override\n public void onChanged(@Nullable final List<Product> product) {\n adapter.setProductEntities(product);\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "@PostMapping(\"/save\")\r\n\tpublic String save(@ModelAttribute Product product,Model model) \r\n\t{\r\n\t\tservice.saveProduct(product);\r\n\t\tmodel.addAttribute(\"info\", \"Product '\"+product.getProdId()+\"' saved!\");\r\n\t\treturn \"ProductRegister\";\r\n\t}", "protected abstract Product modifyProduct(ProductApi api,\n Product modifyReq) throws RestApiException;", "@RequestMapping(value={\"/admin/Product\"}, method=RequestMethod.POST)\n\tpublic ModelAndView addProduct(@ModelAttribute(\"product\") @Valid Product prod, BindingResult result,Model model,HttpServletRequest request)\n\t{\n\t\tSystem.out.println(prod.getName());\n\t\t if(result.hasErrors())\n\t\t {\n\t\t\t System.out.println(result.getFieldError().getField());\n\t\t\t return new ModelAndView(\"/admin/Product\");\n\t\t }\n\t\t else\n\t\t {\n\t\t\t if(prod.getFile()==null)\n\t\t\t System.out.println(\"file is empty\");\n\t\t\t String filenm= prod.getFile().getOriginalFilename();\n\t\t\t prod.setImagepath(filenm);\n\t\t\t productDAO.storeFile(prod, request);\n\t\t\t boolean saved= productDAO.save(prod);\n\t\t\t if(saved)\n\t\t\t {\n\t\t\t\t model.addAttribute(\"msg\",\"Product Updated Sucessfully\");\n\t\t\t }\n\t\t\t ModelAndView mv=new ModelAndView(\"/admin/Product\");\n\t\t\t mv.addObject(\"product\",new Product());\n\t\t\t setData();\t\t\t\n\t\t\t return mv;\n\t\t }\n\t }", "@Override\n public Model newModel(CatalogItem item) {\n return null;\n }", "private void saveProduct() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String nameString = mNameEditText.getText().toString().trim();\n String InfoString = mDescriptionEditText.getText().toString().trim();\n String PriceString = mPriceEditText.getText().toString().trim();\n String quantityString = mQuantityEditText.getText().toString().trim();\n\n // Check if this is supposed to be a new Product\n // and check if all the fields in the editor are blank\n if (mCurrentProductUri == null &&\n TextUtils.isEmpty(nameString) && TextUtils.isEmpty(InfoString) &&\n TextUtils.isEmpty(PriceString) && TextUtils.isEmpty(quantityString)) {\n // Since no fields were modified, we can return early without creating a new Product.\n // No need to create ContentValues and no need to do any ContentProvider operations.\n return;\n }\n\n // Create a ContentValues object where column names are the keys,\n // and Product attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(ProductContract.productEntry.COLUMN_product_NAME, nameString);\n values.put(ProductContract.productEntry.COLUMN_Product_description, InfoString);\n\n int price = 0;\n if (!TextUtils.isEmpty(PriceString)) {\n price = Integer.parseInt(PriceString);\n }\n values.put(ProductContract.productEntry.COLUMN_product_price, price);\n int quantity = 0;\n if (!TextUtils.isEmpty(quantityString)) {\n quantity = Integer.parseInt(quantityString);\n }\n values.put(productEntry.COLUMN_product_Quantity, quantity);\n\n // image\n Bitmap icLanucher = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);\n Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap();\n if (!equals(icLanucher, bitmap) && mImageURI != null) {\n values.put(ProductContract.productEntry.COLUMN_product_image, mImageURI.toString());\n }\n // validate all the required information\n if (TextUtils.isEmpty(nameString) || (quantityString.equalsIgnoreCase(\"0\")) || TextUtils.isEmpty(PriceString)) {\n Toast.makeText(this, getString(R.string.insert_Product_failed), Toast.LENGTH_SHORT).show();\n } else {\n // Determine if this is a new or existing Product by checking if mCurrentProductUri is null or not\n if (mCurrentProductUri == null) {\n // This is a NEW Product, so insert a new pet into the provider,\n // returning the content URI for the new Product.\n Uri newUri = getContentResolver().insert(ProductContract.productEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_Product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_Product_successful),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n // Otherwise this is an EXISTING Product, so update the Product with content URI: mCurrentProductUri\n // and pass in the new ContentValues. Pass in null for the selection and selection args\n // because mCurrentProductUri will already identify the correct row in the database that\n // we want to modify.\n int rowsAffected = getContentResolver().update(mCurrentProductUri, values, null, null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_Product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_update_Product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "@GetMapping(\"/edit\")\r\n\tpublic String showEdit(@RequestParam Integer id,Model model)\r\n\t{\r\n\t\tProduct p=service.getOneProduct(id);\r\n\t\tmodel.addAttribute(\"product\", p);\r\n\t\treturn \"ProductEdit\";\r\n\t}", "private void saveChanges() {\n product.setName(productName);\n product.setPrice(price);\n\n viewModel.updateProduct(product, new OnAsyncEventListener() {\n @Override\n public void onSuccess() {\n Log.d(TAG, \"updateProduct: success\");\n Intent intent = new Intent(EditProductActivity.this, MainActivity.class);\n startActivity(intent);\n }\n\n @Override\n public void onFailure(Exception e) {\n Log.d(TAG, \"updateProduct: failure\", e);\n final androidx.appcompat.app.AlertDialog alertDialog = new androidx.appcompat.app.AlertDialog.Builder(EditProductActivity.this).create();\n alertDialog.setTitle(\"Can not save\");\n alertDialog.setCancelable(true);\n alertDialog.setMessage(\"Cannot edit this product\");\n alertDialog.setButton(androidx.appcompat.app.AlertDialog.BUTTON_NEGATIVE, \"ok\", (dialog, which) -> alertDialog.dismiss());\n alertDialog.show();\n }\n });\n }", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "@Override\n\tpublic void updateProduct(Product p) {\n\t\tProduct product = productRepository.getOne(p.getId());\n\t\tproduct.setName(p.getName());\n\t\tproduct.setPrice(150000);\n\t\tproductRepository.save(product);\n\t}", "public void setProduct(Product product) {\n binder.setBean(product);\n }", "public void update(Product prod) {\n\t\tentities.put(prod.getName(), prod);\n\t\tif (prod.quantity==0) {\n\t\t\tavailableProducts.remove(prod.getName());\n\t\t}\n\t}", "@PutMapping(\"/products\")\r\n\t@ApiOperation(value=\"Change a product details.\")\r\n\tpublic Product changeProduct(@RequestBody Product product) {\r\n\t\treturn productRepository.save(product);\r\n\t}", "public void save() {\n ProductData.saveData(tree);\n }" ]
[ "0.6764772", "0.6465927", "0.6314493", "0.6092781", "0.60866374", "0.60213715", "0.5992197", "0.59607023", "0.5951659", "0.59465265", "0.59218955", "0.5894846", "0.58866906", "0.5886089", "0.5876355", "0.58663434", "0.58461046", "0.58252215", "0.5803139", "0.57948387", "0.5791026", "0.57875663", "0.57592326", "0.5742425", "0.5706487", "0.5705809", "0.56933", "0.568789", "0.5675734", "0.56687975", "0.5663484", "0.56568944", "0.5650511", "0.5649521", "0.5649104", "0.56391746", "0.5626028", "0.56159395", "0.5604814", "0.56016773", "0.5599078", "0.5594251", "0.5581466", "0.55627966", "0.55571634", "0.55365795", "0.55212134", "0.5518818", "0.55186135", "0.5516401", "0.5508987", "0.550478", "0.54895127", "0.547493", "0.54718965", "0.54506344", "0.54499865", "0.5441593", "0.5436539", "0.5431215", "0.54254186", "0.54157525", "0.5412482", "0.5402234", "0.5388706", "0.5381802", "0.5373261", "0.53625566", "0.53585315", "0.53581786", "0.53551656", "0.53533095", "0.5337203", "0.5335182", "0.53271997", "0.5319603", "0.5312884", "0.53126186", "0.5307902", "0.5305479", "0.53024006", "0.52988285", "0.5297654", "0.5296904", "0.52967846", "0.52800786", "0.52771926", "0.5266844", "0.524926", "0.5245296", "0.5243933", "0.5238733", "0.5231265", "0.5227691", "0.52249956", "0.5224741", "0.5223666", "0.5223065", "0.5217536", "0.5216149" ]
0.52350736
92
Replace the existing product model by a newly created product model (reread all product model data from the persistence layer) and render the new product model.
private synchronized void refreshProductModel(ProductModel pm) { int idx = products_listmodel.indexOf(pm); if (idx >= 0) { DocmaSession docmaSess = mainWin.getDocmaSession(); // Create new model object to force GUI update ProductModel pm_updated = new ProductModel(docmaSess, pm.getId(), false); products_listmodel.set(idx, pm_updated); boolean pending = pm_updated.isLoadPending(); if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) { setListRefresh(true); if (pending) startDbConnectThread(); } } else { Log.warning("ProductModel not contained in list: " + pm.getId()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "@RequestMapping(value = { \"/newproduct\" }, method = RequestMethod.GET)\r\n\tpublic String newProduct(ModelMap model) {\r\n\t\tProduct product = new Product();\r\n\t\tmodel.addAttribute(\"product\", product);\r\n\t\tmodel.addAttribute(\"productTypes\", productTypeService.findAllProductTypes());\r\n\t\tmodel.addAttribute(\"brands\", brandService.findAllBrands());\r\n\t\tmodel.addAttribute(\"edit\", false);\r\n\t\treturn \"newproduct\";\r\n\t}", "public void replaceModel(Model oldModel, Model newModel, OpenSimContext newContext) {\n OpenSimContext swap=null;\n if(oldModel!=null) {\n removeModel(oldModel);\n }\n if(newModel!=null) {\n try {\n addModel(newModel, newContext);\n } catch (IOException ex) {\n ErrorDialog.displayExceptionDialog(ex);\n }\n //mapModelsToContexts.put(newModel, newContext);\n /*\n SingleModelVisuals rep = ViewDB.getInstance().getModelVisuals(newModel);\n if(offset!=null) {\n ViewDB.getInstance().setModelVisualsTransform(rep, offset);\n ViewDB.getInstance().setObjectOpacity(newModel, opacity);\n }*/\n }\n }", "Product editProduct(Product product);", "public JavaproductModel putproduct(JavaproductModel oJavaproductModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Update the existing product of the database*/\n hibernateSession.update(oJavaproductModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaproductModel;\n }", "@RequestMapping(value = {\"/product_detail/{id}\"}, method = RequestMethod.POST)\n public String updateProduct(Model model, @PathVariable(\"id\") long id, HttpServletRequest request) {\n updateProductByRest(id, request);\n Product product = getProduct(id, request);\n model.addAttribute(\"product\", product);\n return \"product_detail\";\n }", "@Override\r\n\tpublic Product updateProduct(Product s) {\n\t\treturn null;\r\n\t}", "public void saveNewProduct(Product product) throws BackendException;", "public void updateProduct() throws ApplicationException {\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n\n try {\n session.beginTransaction();\n Menu updateProduct = (Menu) session.get(Menu.class, menuFxObjectPropertyEdit.getValue().getIdProduct());\n\n updateProduct.setName(menuFxObjectPropertyEdit.getValue().getName());\n updateProduct.setPrice(menuFxObjectPropertyEdit.getValue().getPrice());\n\n session.update(updateProduct);\n session.getTransaction().commit();\n } catch (RuntimeException e) {\n session.getTransaction().rollback();\n SQLException sqlException = getCauseOfClass(e, SQLException.class);\n throw new ApplicationException(sqlException.getMessage());\n }\n\n initMenuList();\n }", "@RequestMapping(value = { \"/newproduct\" }, method = RequestMethod.POST)\r\n\tpublic String saveProduct(@Valid Product product, BindingResult result,\r\n\t\t\tModelMap model) {\r\n\r\n//\t\tif (result.hasErrors()) {\r\n//\t\t\treturn \"productslist\";\r\n//\t\t}\r\n\t\t\r\n\t\tmodel.addAttribute(\"productTypes\", productTypeService.findAllProductTypes());\r\n\t\tmodel.addAttribute(\"brand\", brandService.findAllBrands());\r\n\t\tmodel.addAttribute(\"edit\", true);\r\n\t\tproductService.saveProduct(product);\r\n\r\n\t\treturn \"newproduct\";\r\n\t}", "@Override\n\tpublic Product update(Product entity) {\n\t\treturn null;\n\t}", "@ModelAttribute(\"product\")\n public Product productToAdd() {\n return new Product();\n }", "ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;", "public UpdateProduct() {\n\t\tsuper();\t\t\n\t}", "Product updateProductInStore(Product product);", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(true);\n productController.setProductToModify(getProductToModify());\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Products\");\n stage.setScene(new Scene(root));\n stage.show();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to modify from the product table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@GetMapping(\"/updateProduct\")\n\tpublic String updateProduct(@RequestParam(\"productId\") int productId , Model theModel) {\n\t\tProduct product = productDAO.getProduct(productId);\n\n\t\t// add the users to the model\n\t\ttheModel.addAttribute(\"product\", product);\n\t\t \n\t\treturn \"update-product\";\n\t}", "public void Editproduct(Product objproduct) {\n\t\t\n\t}", "@Override\n\tpublic Product getModel() {\n\t\treturn product;\n\t}", "Product addNewProductInStore(Product newProduct);", "ProductView addProduct(ProductBinding productToAdd) throws ProductException;", "@GetMapping(\"/sysadmin/product/view/{id}\")\n public String showProductPage(@PathVariable(value = \"id\") Integer id, ModelMap model) {\n Product product = productService.findById(id);\n if (product == null) {\n return \"redirect:/admin/product\";\n }\n\n ProductUpdateDTO productDTO = new ProductUpdateDTO();\n productDTO.setProductCode(product.getProductCode());\n productDTO.setCategory(product.getCategory());\n productDTO.setDescription(product.getDescription());\n productDTO.setPrice(product.getPrice());\n productDTO.setTitle(product.getTitle());\n productDTO.setType(product.getType());\n productDTO.setPublished(product.isPublish());\n\n List<CodeValue> lstCode = codeValueService.getByType(\"product_category\");\n for(int i = 0; i < lstCode.size(); i++){\n CodeValue code = lstCode.get(i);\n if(code.getCode() == productDTO.getCategory()){\n productDTO.setCategoryDescription(code.getDescription());\n break;\n }\n }\n model.addAttribute(\"product\", productDTO);\n model.addAttribute(\"productCategory\", codeValueService.getByType(\"product_category\"));\n\n return \"admin/sysadm/productFormView\";\n }", "private void updateContent() {\n if (product != null) {\n etProductName.setText(product.getName());\n etPrice.setText(product.getPrice().toString());\n }\n }", "public JavaproductModel postproduct(JavaproductModel oJavaproductModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Insert the new product to database*/\n int productId = (Integer) hibernateSession.save(oJavaproductModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n\n /* Return the JavaproductModel with updated productId*/\n oJavaproductModel.setproductId(productId);\n return oJavaproductModel;\n }", "public void updateProducts()\n {\n ObservableList<Product> inventoryProducts = this.inventory.getAllProducts();\n\n // Configure product table and bind with inventory products\n productIDColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"id\"));\n productNameColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"name\"));\n productInventoryColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"stock\"));\n productPriceColumn.setCellValueFactory(new PropertyValueFactory<Product, String>(\"price\"));\n\n productTable.setItems(inventoryProducts);\n // Unselect parts in table after part is updated\n productTable.getSelectionModel().clearSelection();\n productTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n }", "public void setProduct(Product selectedProduct) {\n\t\t\n\t\tthis.modifiedProduct = selectedProduct;\n\n\t\tidField.setText(Integer.toString(modifiedProduct.getId()));\n\t\tproductNameField.setText(modifiedProduct.getName());\n\t\tpriceField.setText(Double.toString(modifiedProduct.getPrice()));\n\t\tinvField.setText(Integer.toString(modifiedProduct.getStock()));\n\t\tmaxField.setText(Integer.toString(modifiedProduct.getMax()));\n\t\tminField.setText(Integer.toString(modifiedProduct.getMin()));\n\t\t\t\t\n\t\tdummyList = modifiedProduct.getAllAssociatedParts();\n\t\tpartListProductTable.setItems(dummyList);\n\t}", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "@RequestMapping(value = \"/show/{id}/product\")\r\n\tpublic ModelAndView showingSingleProduct(@PathVariable(\"id\") int id) throws ProductNotFound {\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tProduct product = productDAO.get(id);\r\n\t\tif (product == null){\r\n\t\t\tthrow new ProductNotFound();\t\r\n\t\t}\r\n\t\t\t\r\n\t\tproduct.setViews(product.getViews() + 1);\r\n\t\tproductDAO.update(product);\r\n\t\tmv.addObject(\"title\", product.getName());\r\n\t\tmv.addObject(\"product\", product);\r\n\t\tmv.addObject(\"onClickShowProduct\", true);\r\n\t\treturn mv;\r\n\r\n\t}", "@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }", "@Override protected void populateViewHolder(ViewHolderProduct viewHolder, Product model,\n int position) {\n viewHolder.initProduct(model, getContext());\n }", "public String editProduct() {\n ConversationContext<Product> ctx = ProductController.newEditContext(products.getSelectedRow());\n ctx.setLabelWithKey(\"part_products\");\n ctx.setCallBack(editProductCallBack);\n getCurrentConversation().setNextContextSub(ctx);\n return ctx.view();\n }", "public void retrieveProduct(Product product) {\n // Place string values in TextFields.\n productIdField.setPromptText(String.valueOf(product.getId()));\n productNameField.setText(product.getName());\n productInvField.setText(String.valueOf(product.getStock()));\n productPriceField.setText(String.valueOf(product.getPrice()));\n productMaxField.setText(String.valueOf(product.getMax()));\n productMinField.setText(String.valueOf(product.getMin()));\n // load the TableViews after copying necessary values to instance.\n associatedPartsCopyMachine(product);\n this.product.setId(product.getId());\n super.initialize();\n }", "@Test\n public void saveProduct_should_update_product_with_new_product_fields() {\n final Product product = productStorage.saveProduct(new Product(1, \"Oranges\", 150, 3));\n\n //get product with id = 1\n final Product updatedProduct = productStorage.getProduct(1);\n\n assertThat(product, sameInstance(updatedProduct));\n }", "public void updateProduct(int index, Product newProduct) {\n Product product = allProducts.get(index);\n product.setId(newProduct.getId());\n product.setName(newProduct.getName());\n product.setMin(newProduct.getMin());\n product.setMax(newProduct.getMax());\n product.setPrice(newProduct.getPrice());\n product.setStock(newProduct.getStock());\n }", "public void updateProduct(Product catalog) throws BackendException;", "private void updateProductsList() {\n this.productsList = demonstrationApplicationController.getProductsList();\n this.jListProduct.setModel(new ModelListSelectable(this.productsList));\n }", "private void saveProduct() {\n Product product;\n String name = productName.getText().toString();\n if (name.isEmpty()) {\n productName.setError(getResources().getText(R.string.product_name_error));\n return;\n }\n String brandStr = brand.getText().toString();\n String brandOwnerStr = brandOwner.getText().toString();\n if (dbProduct == null) {\n product = new Product();\n product.setGtin(gtin);\n product.setLanguage(language);\n } else {\n product = dbProduct;\n }\n if (!name.isEmpty()) {\n product.setName(name);\n }\n if (!brandStr.isEmpty()) {\n product.setBrand(brandStr);\n }\n if (!brandOwnerStr.isEmpty()) {\n product.setBrandOwner(brandOwnerStr);\n }\n product.setCategory(selectedCategoryKey);\n LoadingIndicator.show();\n // TODO enable/disable save button\n PLYCompletion<Product> completion = new PLYCompletion<Product>() {\n @Override\n public void onSuccess(Product result) {\n Log.d(\"SavePDetailsCallback\", \"Product details saved\");\n dbProduct = result;\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_saved, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productCreate(result);\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_edited, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productUpdate(result);\n }\n }\n\n @Override\n public void onPostSuccess(Product result) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"SavePDetailsCallback\", error.getMessage());\n if (isNewProduct || !error.isHttpStatusError() || !error.hasInternalErrorCode\n (PLYStatusCodes.OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar.LENGTH_LONG)\n .show();\n }\n LoadingIndicator.hide();\n }\n\n @Override\n public void onPostError(PLYAndroid.QueryError error) {\n if (!isNewProduct && error.isHttpStatusError() && error.hasInternalErrorCode(PLYStatusCodes\n .OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n }\n };\n if (dbProduct == null) {\n ProductService.createProduct(sequentialClient, product, completion);\n } else {\n ProductService.updateProduct(sequentialClient, product, completion);\n }\n }", "public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}", "private void saveProduct() {\n //Delegating to the Presenter to trigger focus loss on listener registered Views,\n //in order to persist their data\n mPresenter.triggerFocusLost();\n\n //Retrieving the data from the views and the adapter\n String productName = mEditTextProductName.getText().toString().trim();\n String productSku = mEditTextProductSku.getText().toString().trim();\n String productDescription = mEditTextProductDescription.getText().toString().trim();\n ArrayList<ProductAttribute> productAttributes = mProductAttributesAdapter.getProductAttributes();\n mCategoryOtherText = mEditTextProductCategoryOther.getText().toString().trim();\n\n //Delegating to the Presenter to initiate the Save process\n mPresenter.onSave(productName,\n productSku,\n productDescription,\n mCategoryLastSelected,\n mCategoryOtherText,\n productAttributes\n );\n }", "void updateModelFromView();", "public void update(Product product) {\n\n\t}", "@GetMapping(Mappings.ADD_PRODUCT)\n public ModelAndView add_product(){\n Product product = new Product();\n ModelAndView mv = new ModelAndView(ViewNames.ADD_PRODUCT);\n mv.addObject(\"product\", product);\n return mv;\n }", "@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}", "private void updateProduct(boolean rebuild) {\n\n // Save the product.\n PshUtil.savePshData(pshData);\n\n // Build report and display.\n if (rebuild) {\n previewProduct = PshUtil.buildPshReport(pshData);\n previewText.setText(previewProduct);\n }\n }", "@FXML\n void saveModifyProductButton(ActionEvent event) throws IOException {\n\n try {\n int id = selectedProduct.getId();\n String name = productNameText.getText();\n Double price = Double.parseDouble(productPriceText.getText());\n int stock = Integer.parseInt(productInventoryText.getText());\n int min = Integer.parseInt(productMinText.getText());\n int max = Integer.parseInt(productMaxText.getText());\n\n if (name.isEmpty()) {\n AlartMessage.displayAlertAdd(5);\n } else {\n if (minValid(min, max) && inventoryValid(min, max, stock)) {\n\n Product newProduct = new Product(id, name, price, stock, min, max);\n\n assocParts.forEach((part) -> {\n newProduct.addAssociatedPart(part);\n });\n\n Inventory.addProduct(newProduct);\n Inventory.deleteProduct(selectedProduct);\n mainScreen(event);\n }\n }\n } catch (IOException | NumberFormatException e){\n AlartMessage.displayAlertAdd(1);\n }\n }", "public void regenerateEntity() {\n boolean isStopRepaint = parent.getStopRepaint();\n parent.setStopRepaint(true);\n\n entityName.setText(component.getName());\n innerRegenerate();\n\n if (!isStopRepaint) parent.goRepaint();\n\n updateHeight();\n }", "@Override\n\tpublic String updateProduct() throws AdminException {\n\t\treturn null;\n\t}", "private void editProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id -\");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id -\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter new Quantity of Product\");\n\t\t\tint quantity = getValidInteger(\"Enter new Quantity of Product\");\n\t\t\tCartController.getInstance().editProductFromCart(productId,\n\t\t\t\t\tquantity);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "protected void rerender() {\n\t\tthis.layout.render(inventory);\n\t}", "public void saveProduct(Product product);", "public void updateProduct(SiteProduct product) {\n dataProvider.save(product);\n }", "@Override\n\tpublic void saveProduct(Product product) {\n\t\t productRepository.save(product);\n\t\t\n\t}", "@Override\r\n\tpublic void saveProduct(Product product) throws Exception {\n\r\n\t}", "@Override\n\tpublic void update(ExportProduct exportProduct) {\n\t\t\n\t}", "public void setProduct(Product product) {\n this.product = product;\n }", "@Override\n\tpublic boolean updateProduct(Product p) {\n\t\treturn false;\n\t}", "void saveProduct(Product product);", "private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}", "@RequestMapping(value = {\"/add_product\"}, method = RequestMethod.POST)\n public String createProduct(Model model, HttpServletRequest request) {\n boolean isSuccess = addProductByRest(request);\n if (isSuccess) {\n ProductController controller = new ProductController();\n List<Product> productList = controller.getProductList(request, \"products\");\n model.addAttribute(\"products\", productList);\n return \"product_list\";\n } else {\n return \"product_detail_new\";\n }\n }", "@Override\r\n\tpublic ResponseData addProduct(ProductModel productModel) {\n\t\tProduct product = (Product) productConverter.convert(productModel);\r\n\t\tlong i = productRepositoryImpl.addProduct(product).getId();\r\n\t\tif (i > 0) {\r\n\t\t\treturn new ResponseData(product.getId(), true, \"Save Data Success full\");\r\n\t\t} else {\r\n\t\t\treturn new ResponseData(0, false, \"Failed\");\r\n\t\t}\r\n\r\n\t}", "Product updateProductById(Long id);", "public void editProduct(String newProductId) {\n fill(\"#productId\").with(newProductId);\n fill(\"#name\").with(newProductId);\n fill(\"#description\").with(\"A nice product\");\n submit(\"#update\");\n }", "@RequestMapping(value = { \"/edit-product-{id}\" }, method = RequestMethod.POST)\r\n\tpublic String updateProduct(@Valid Product product, BindingResult result,\r\n\t\t\tModelMap model, @PathVariable int id) {\r\n\r\n\t\tif (result.hasErrors()) {\r\n\t\t\treturn \"registration\";\r\n\t\t}\r\n\r\n\t\tproductService.updateProduct(product);\r\n\r\n\t\tmodel.addAttribute(\"success\", \"Product \" + product.getName() + \" \"+ product.getId() + \" updated successfully\");\r\n\t\treturn \"registrationsuccess\";\r\n\t}", "@PutMapping(\"/update\")\r\n\tpublic ProductDetails updateProduct(@RequestBody @Valid UpdateProduct request) {\r\n\t\r\n\t\tProduct product = productService.searchProduct(request.getProduct_Id());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\tproduct.setProduct_Price(request.getProduct_Price());\r\n\t\tproduct.setProduct_Quantity(request.getProduct_Quantity());\r\n\t\tproduct.setProduct_Availability(request.isProduct_Availability());\r\n\t\treturn productUtil.toProductDetails(productService.updateProduct(product));\r\n\t}", "public void associateProductTemplate() {\n productToolOperation.addChildProductTree(selectProductNode, selectTemplateNode, planConfigBehavior);\n }", "public void handleAddProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(false);\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Add Products\");\n stage.setScene(new Scene(root));\n stage.show();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public ProductModel getProduct()\n\t{\n\t\treturn product;\n\t}", "void updateViewFromModel();", "void saveOrUpdate(Product product);", "public boolean update(Product product);", "@Override\n\tpublic void updateProduct(ProductVO vo) {\n\n\t}", "public void editProduct(int index, String description, String category, int quantity, int weight, int price, int stocknumber) {\t\t\n\t}", "public void testUpdateProduct() {\n\t\tProduct product=productDao.selectProducts(33);\n\t\tproduct.setPrice(100.0);\n\t\tproduct.setQuantity(1);\n\t\tproductDao.updateProduct(product);//product has updated price and update quantity\n\t\tassertTrue(product.getPrice()==100.0);\n\t\tassertTrue(product.getQuantity()==1);\n\t}", "@RequestMapping(\"/productlist/Productdetails/{id}\")\n\n public String Productdetails(@PathVariable String id, Model model) throws IOException{\n\n Product bike = productDao.getProductById(id);\n model.addAttribute(bike);\n\n\n return \"productdetails\";\n }", "public void updateDb(View view) {\n String productName = getIntent().getStringExtra(\"product\");\n Product p = db.getProductByName(productName);\n p.setName(name.getText().toString());\n p.setAvail(availSpinner.getSelectedItem().toString());\n p.setDescription(desc.getText().toString());\n p.setPrice(new BigDecimal(price.getText().toString()));\n p.setWeight(Double.parseDouble(weight.getText().toString()));\n db.updateProduct(p);\n finish();\n }", "@Override\n\tpublic ProductDto saveProduct(ProductDto product) {\n\t\treturn null;\n\t}", "@FXML\n\t private void populateProducts (ObservableList<Product> prodData) throws ClassNotFoundException {\n\t //Set items to the productTable\n\t \tproductTable.setItems(prodData);\n\t }", "@RequestMapping(value=\"/addproduct\",method=RequestMethod.POST)\n\tpublic ModelAndView gotNewProduct(@ModelAttribute(\"addpro\") Product pob,HttpServletRequest request,BindingResult result)\n\t{\n\t\tint res = 0;\n\t\tServletContext context=request.getServletContext();\n\t\tString path=context.getRealPath(\"./resources/\"+pob.getId()+\".jpg\");\n\t\tSystem.out.println(\"Path = \"+path);\n\t\t//System.out.println(\"File name = \"+pob.getImage().getOriginalFilename());\n\t\tFile f=new File(path);\n\t\tif(!pob.getImage().isEmpty()) {\n\t\t\ttry {\n\t\t\t\t//filename=p.getImage().getOriginalFilename(); byte[] bytes=p.getImage().getBytes(); BufferedOutputStream bs=new BufferedOutputStream(new FileOutputStream(f)); bs.write(bytes); bs.close(); System.out.println(\"Image uploaded\");\n\t\t\tres=sc.addNewProduct(pob);\n\t\t\tSystem.out.println(\"Data Inserted\");\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tres=0;\n\t\t\t}\n\t\t\tif(res>0)\n\t\t\t{\n\t\t\t//List<Product> products = ps.getAllProduct();\n\t\t\t//model.addAttribute(\"products\", products );\n\t\t\treturn new ModelAndView(\"index\",\"\", null);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\treturn new ModelAndView(\"error\",\"\",null);\n\t\t\t}\n\t\t\n\t}", "@Override\n\tpublic void modifypro(ProductBean p) {\n\t\tsession.update(namespace+\".modifypro\", p);\n\t}", "@Override\n\tpublic void updateProcuctModel(CollectionOfModel collectionOfModel) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tProductModel entity = procuctModelDAO.findById(Integer.parseInt(collectionOfModel.getProductId()));\n\t\t\n\t\tif(entity != null) {\n\t\t\tentity.setCompanyId(Integer.parseInt(collectionOfModel.getCompany_id()));\n\t\t\tentity.setScreenSizeId(Integer.parseInt(collectionOfModel.getModell_size_id()));\n\t\t\tentity.setProcuctInfo(collectionOfModel.getModell_info());\n\t\t\tentity.setModellTypeId(Integer.parseInt(collectionOfModel.getModell_type_id()));\n\t\t\tentity.setProcuctName(collectionOfModel.getModellName());\n\t\t\tentity.setProductPris(Integer.parseInt(collectionOfModel.getModellPris()));\n\t\t\tentity.setIsViseble(Integer.parseInt(collectionOfModel.getIsVisible()));\n\t\t\t\n\t\t}\n\t}", "public static com.glority.qualityserver.model.Product convertToSeverModel(\n com.glority.quality.model.ProductInfo productInfo) {\n com.glority.qualityserver.model.Product sProduct = new com.glority.qualityserver.model.Product();\n\n if (productInfo != null) {\n sProduct.setName(productInfo.getProductName());\n sProduct.setDisplayName(productInfo.getProductName());\n sProduct.setGroup(productInfo.getBusinessUnit());\n // sProduct.setSvnUrl(productInfo.getSvnUrl());\n // sProduct.setSvnRevision(productInfo.getSvnRevision());\n }\n\n return sProduct;\n }", "@Override\n public void onChanged(@Nullable final List<Product> product) {\n adapter.setProductEntities(product);\n }", "private void createNewDynamicModel(){\n\t\tDynamicModel dModel = new DynamicModel(currentView.getViewModel().getName());\r\n\r\n\t\t// Add the new graph to the view\r\n\t\tint modelWidth = DynamicModelView.minimumWidth; \r\n\t\tint modelHeight = DynamicModelView.minimumHeight; \r\n\t\tint viewHeight = currentView.getHeight();\r\n\t\tint pad = 8;\r\n\t\tcurrentView.addModelView(new DynamicModelView(new EntityViewConfig(pad, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t viewHeight - (modelHeight + pad), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelWidth, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t modelHeight, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t EntityViewConfig.Type.DYNAMIC_MODEL), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\tdModel, this, currentView));\r\n\t\tcurrentView.repaint();\r\n\t}", "@PostMapping(\"/save\")\r\n\tpublic String save(@ModelAttribute Product product,Model model) \r\n\t{\r\n\t\tservice.saveProduct(product);\r\n\t\tmodel.addAttribute(\"info\", \"Product '\"+product.getProdId()+\"' saved!\");\r\n\t\treturn \"ProductRegister\";\r\n\t}", "protected abstract Product modifyProduct(ProductApi api,\n Product modifyReq) throws RestApiException;", "@RequestMapping(value={\"/admin/Product\"}, method=RequestMethod.POST)\n\tpublic ModelAndView addProduct(@ModelAttribute(\"product\") @Valid Product prod, BindingResult result,Model model,HttpServletRequest request)\n\t{\n\t\tSystem.out.println(prod.getName());\n\t\t if(result.hasErrors())\n\t\t {\n\t\t\t System.out.println(result.getFieldError().getField());\n\t\t\t return new ModelAndView(\"/admin/Product\");\n\t\t }\n\t\t else\n\t\t {\n\t\t\t if(prod.getFile()==null)\n\t\t\t System.out.println(\"file is empty\");\n\t\t\t String filenm= prod.getFile().getOriginalFilename();\n\t\t\t prod.setImagepath(filenm);\n\t\t\t productDAO.storeFile(prod, request);\n\t\t\t boolean saved= productDAO.save(prod);\n\t\t\t if(saved)\n\t\t\t {\n\t\t\t\t model.addAttribute(\"msg\",\"Product Updated Sucessfully\");\n\t\t\t }\n\t\t\t ModelAndView mv=new ModelAndView(\"/admin/Product\");\n\t\t\t mv.addObject(\"product\",new Product());\n\t\t\t setData();\t\t\t\n\t\t\t return mv;\n\t\t }\n\t }", "@Override\n public Model newModel(CatalogItem item) {\n return null;\n }", "private void saveProduct() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String nameString = mNameEditText.getText().toString().trim();\n String InfoString = mDescriptionEditText.getText().toString().trim();\n String PriceString = mPriceEditText.getText().toString().trim();\n String quantityString = mQuantityEditText.getText().toString().trim();\n\n // Check if this is supposed to be a new Product\n // and check if all the fields in the editor are blank\n if (mCurrentProductUri == null &&\n TextUtils.isEmpty(nameString) && TextUtils.isEmpty(InfoString) &&\n TextUtils.isEmpty(PriceString) && TextUtils.isEmpty(quantityString)) {\n // Since no fields were modified, we can return early without creating a new Product.\n // No need to create ContentValues and no need to do any ContentProvider operations.\n return;\n }\n\n // Create a ContentValues object where column names are the keys,\n // and Product attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(ProductContract.productEntry.COLUMN_product_NAME, nameString);\n values.put(ProductContract.productEntry.COLUMN_Product_description, InfoString);\n\n int price = 0;\n if (!TextUtils.isEmpty(PriceString)) {\n price = Integer.parseInt(PriceString);\n }\n values.put(ProductContract.productEntry.COLUMN_product_price, price);\n int quantity = 0;\n if (!TextUtils.isEmpty(quantityString)) {\n quantity = Integer.parseInt(quantityString);\n }\n values.put(productEntry.COLUMN_product_Quantity, quantity);\n\n // image\n Bitmap icLanucher = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);\n Bitmap bitmap = ((BitmapDrawable) mImageView.getDrawable()).getBitmap();\n if (!equals(icLanucher, bitmap) && mImageURI != null) {\n values.put(ProductContract.productEntry.COLUMN_product_image, mImageURI.toString());\n }\n // validate all the required information\n if (TextUtils.isEmpty(nameString) || (quantityString.equalsIgnoreCase(\"0\")) || TextUtils.isEmpty(PriceString)) {\n Toast.makeText(this, getString(R.string.insert_Product_failed), Toast.LENGTH_SHORT).show();\n } else {\n // Determine if this is a new or existing Product by checking if mCurrentProductUri is null or not\n if (mCurrentProductUri == null) {\n // This is a NEW Product, so insert a new pet into the provider,\n // returning the content URI for the new Product.\n Uri newUri = getContentResolver().insert(ProductContract.productEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_Product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_Product_successful),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n // Otherwise this is an EXISTING Product, so update the Product with content URI: mCurrentProductUri\n // and pass in the new ContentValues. Pass in null for the selection and selection args\n // because mCurrentProductUri will already identify the correct row in the database that\n // we want to modify.\n int rowsAffected = getContentResolver().update(mCurrentProductUri, values, null, null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_Product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_update_Product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}", "private synchronized void refreshProductModel(String pm_id)\r\n {\r\n DocmaSession docmaSess = mainWin.getDocmaSession();\r\n for (int i=0; i < products_listmodel.size(); i++) {\r\n ProductModel pm = (ProductModel) products_listmodel.get(i);\r\n if (pm.getId().equals(pm_id)) {\r\n ProductModel pm_updated = new ProductModel(docmaSess, pm_id, false);\r\n products_listmodel.set(i, pm_updated);\r\n boolean pending = pm_updated.isLoadPending();\r\n if (pending || (pm_updated.hasActivity() && !pm_updated.isActivityFinished())) {\r\n setListRefresh(true);\r\n if (pending) startDbConnectThread();\r\n }\r\n break;\r\n }\r\n }\r\n }", "@GetMapping(\"/edit\")\r\n\tpublic String showEdit(@RequestParam Integer id,Model model)\r\n\t{\r\n\t\tProduct p=service.getOneProduct(id);\r\n\t\tmodel.addAttribute(\"product\", p);\r\n\t\treturn \"ProductEdit\";\r\n\t}", "private void saveChanges() {\n product.setName(productName);\n product.setPrice(price);\n\n viewModel.updateProduct(product, new OnAsyncEventListener() {\n @Override\n public void onSuccess() {\n Log.d(TAG, \"updateProduct: success\");\n Intent intent = new Intent(EditProductActivity.this, MainActivity.class);\n startActivity(intent);\n }\n\n @Override\n public void onFailure(Exception e) {\n Log.d(TAG, \"updateProduct: failure\", e);\n final androidx.appcompat.app.AlertDialog alertDialog = new androidx.appcompat.app.AlertDialog.Builder(EditProductActivity.this).create();\n alertDialog.setTitle(\"Can not save\");\n alertDialog.setCancelable(true);\n alertDialog.setMessage(\"Cannot edit this product\");\n alertDialog.setButton(androidx.appcompat.app.AlertDialog.BUTTON_NEGATIVE, \"ok\", (dialog, which) -> alertDialog.dismiss());\n alertDialog.show();\n }\n });\n }", "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "@Override\n\tpublic void updateProduct(Product p) {\n\t\tProduct product = productRepository.getOne(p.getId());\n\t\tproduct.setName(p.getName());\n\t\tproduct.setPrice(150000);\n\t\tproductRepository.save(product);\n\t}", "public void setProduct(Product product) {\n binder.setBean(product);\n }", "public void update(Product prod) {\n\t\tentities.put(prod.getName(), prod);\n\t\tif (prod.quantity==0) {\n\t\t\tavailableProducts.remove(prod.getName());\n\t\t}\n\t}", "@PutMapping(\"/products\")\r\n\t@ApiOperation(value=\"Change a product details.\")\r\n\tpublic Product changeProduct(@RequestBody Product product) {\r\n\t\treturn productRepository.save(product);\r\n\t}", "public void save() {\n ProductData.saveData(tree);\n }" ]
[ "0.67655134", "0.6466283", "0.63127565", "0.60931605", "0.6086685", "0.6021825", "0.5992577", "0.5960742", "0.59519434", "0.59466296", "0.5922202", "0.58951145", "0.5886867", "0.58865565", "0.5876372", "0.5867626", "0.5846863", "0.5825094", "0.5803516", "0.5794405", "0.5791237", "0.57886773", "0.57599187", "0.5742735", "0.5706113", "0.5705956", "0.5692574", "0.5675755", "0.5669102", "0.5664843", "0.5657622", "0.56516945", "0.56495273", "0.5648614", "0.5637698", "0.5626349", "0.5615595", "0.560552", "0.5602036", "0.5598026", "0.5594609", "0.5580943", "0.55626225", "0.5557485", "0.55366683", "0.5521291", "0.55200136", "0.5519528", "0.55173945", "0.5509981", "0.5506215", "0.54895175", "0.5474192", "0.54716957", "0.54506934", "0.54491454", "0.5441259", "0.54365116", "0.5431336", "0.5425395", "0.54165727", "0.5412731", "0.54021436", "0.53885293", "0.5381955", "0.5372998", "0.53638375", "0.5359667", "0.5357762", "0.535498", "0.5353102", "0.5337007", "0.5335427", "0.5327361", "0.5319261", "0.53131634", "0.53119767", "0.5307687", "0.5305608", "0.5302943", "0.52988064", "0.52970034", "0.5296652", "0.52959406", "0.52791744", "0.5277545", "0.5267027", "0.5249772", "0.52452105", "0.52445245", "0.5237947", "0.52340895", "0.52316487", "0.5227319", "0.52261543", "0.52242017", "0.52226895", "0.5222655", "0.5216772", "0.52160853" ]
0.5686872
27
Creates a new HTTP server at the given port.
public StaticServer(final int port) throws ConcordiaException { // Start the server. InetSocketAddress addr = new InetSocketAddress(port); try { server = HttpServer.create(addr, 0); } catch(IOException e) { throw new ConcordiaException( "There was an error starting the server.", e); } // Create the handler and attach to the root of the domain. handler = new RequestHandler(); server.createContext("/", handler); // Set the thread pool. server.setExecutor(Executors.newCachedThreadPool()); // Start the server. server.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static HttpsServer createServer(String address, int port) throws Exception {\n KeyManagerFactory kmf = KeyStoreHelper.getKeyManagerFactory();\n\n SSLContext sslcontext = SSLContext.getInstance(\"SSLv3\");\n sslcontext.init(kmf.getKeyManagers(), null, null);\n\n InetSocketAddress addr = new InetSocketAddress(address, port);\n HttpsServer server = HttpsServer.create(addr, CONNECTIONS);\n server.setHttpsConfigurator(new HttpsConfigurator(sslcontext) {\n @Override\n public void configure(HttpsParameters params) {\n try {\n // initialise the SSL context\n SSLContext context = getSSLContext();\n SSLEngine engine = context.createSSLEngine();\n params.setNeedClientAuth(false);\n params.setCipherSuites(engine.getEnabledCipherSuites());\n params.setProtocols(engine.getEnabledProtocols());\n\n // Set the SSL parameters\n SSLParameters sslParameters = context.getSupportedSSLParameters();\n params.setSSLParameters(sslParameters);\n\n } catch (Exception e) {\n LOG.error(\"Failed to create HTTPS configuration!\", e);\n }\n }\n });\n return server;\n }", "public static ServerBuilder<?> forPort(int port) {\n return ServerProvider.provider().builderForPort(port);\n }", "public WebServer(int port) {\n\t\ttry {\n\t\t\tthis.listen_port = new ServerSocket(port);\n\t\t\tthis.pool = Executors.newFixedThreadPool(40);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static RoMServer createServer(int serverPort) throws IOException, Exception {\r\n \t\treturn RoMServer.createServer(InetAddress.getLocalHost(), serverPort);\r\n \t}", "public WebServer(int port, Context context) throws IOException {\n this.server = HttpServer.create(new InetSocketAddress(port), 0);\n \n // handle concurrent requests with multiple threads\n server.setExecutor(Executors.newCachedThreadPool());\n \n List<Filter> logging = List.of(new ExceptionsFilter(), new LogFilter());\n\n StaticFileHandler.create(server, \"/static/\", \"static/\", \"invalid\");\n HttpContext eval = server.createContext(\"/eval/\", exchange -> handleEval(exchange, context));\n eval.getFilters().addAll(logging);\n }", "public static ServerSocket createServerSocket(String hostName, int port) throws IOException {\n\t\tServerSocket serverSocket = new ServerSocket();\n\t\tInetSocketAddress endpoint = new InetSocketAddress(hostName, port);\n\t\tserverSocket.bind(endpoint);\n\t\treturn serverSocket;\n\t}", "public Server(int port)\r\n\t\t{\r\n log(\"Initialising port \" + port);\r\n\r\n\t\t// Set the port\r\n\t\tthis.port = port;\r\n\r\n // Create the server socket\r\n createServerSocket();\r\n \t}", "public static EmbeddedTestServer createAndStartServerWithPort(Context context, int port) {\n Assert.assertNotEquals(\"EmbeddedTestServer should not be created on UiThread, \"\n + \"the instantiation will hang forever waiting for tasks to post to UI thread\",\n Looper.getMainLooper(), Looper.myLooper());\n EmbeddedTestServer server = new EmbeddedTestServer();\n return initializeAndStartServer(server, context, port);\n }", "public WebServer (int port)\t\t\t\t\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = DEF_HOST; \t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = port; \t\t\t\t\t\t\t\t\t\t\r\n\t}", "public ServerMain( int port )\r\n\t{\r\n\t\tthis.port = port;\r\n\t\tserver = new Server( this.port );\r\n\t}", "void startServer(int port) throws Exception;", "public EnvironmentServerSocket createServerSocket(int port) throws IOException {\n return new EnvironmentServerSocketImpl(new ServerSocket(port), this);\n }", "public Server(int port) {\n this.port = port;\n try {\n sock = new ServerSocket(port);\n clientSock = sock.accept();\n\n //Connection established, do some fancy stuff here\n processReq();\n } catch (IOException e) {\n System.err.println(\"ERROR: Sth failed while creating server socket :( \");\n }\n }", "public SecureWebServer(int port)\n {\n this(port, null);\n }", "public static EmbeddedTestServer createAndStartHTTPSServerWithPort(\n Context context, @ServerCertificate int serverCertificate, int port) {\n Assert.assertNotEquals(\"EmbeddedTestServer should not be created on UiThread, \"\n + \"the instantiation will hang forever waiting for tasks\"\n + \" to post to UI thread\",\n Looper.getMainLooper(), Looper.myLooper());\n EmbeddedTestServer server = new EmbeddedTestServer();\n return initializeAndStartHTTPSServer(server, context, serverCertificate, port);\n }", "private static void openServerSocket(int port) {\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(port);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Server Error\");\n\t\t}\n\t}", "public void start(int port, Handler<AsyncResult<HttpServer>> handler) {\n init();\n logger.info(\"Starting REST HTTP server on port {}\", port);\n httpServer = vertx.createHttpServer()\n .requestHandler(router)\n .listen(port, handler);\n }", "public Server(int port) throws IOException{\n\t\tsuper();\n\t\tthis.serversocket= new java.net.ServerSocket(port);\n\t\t\n\t\tif (DEBUG){\n\t\t\tSystem.out.println(\"Server socket created:\" + this.serversocket.getLocalPort());\n\t\t\tclient_list.add(String.valueOf(this.serversocket.getLocalPort()));\n\t\t}\n\t}", "public static ServerBuilder<?> newServerBuilderForPort(int port, ServerCredentials creds) {\n return ServerRegistry.getDefaultRegistry().newServerBuilderForPort(port, creds);\n }", "Builder port(int port);", "public static <T extends EmbeddedTestServer> T initializeAndStartServer(\n T server, Context context, int port) {\n server.initializeNative(context, ServerHTTPSSetting.USE_HTTP);\n server.addDefaultHandlers(\"\");\n if (!server.start(port)) {\n throw new EmbeddedTestServerFailure(\"Failed to start serving using default handlers.\");\n }\n return server;\n }", "private void createServerSocket()\r\n {\r\n\t\tDebug.assert(port != 0, \"(Server/105)\");\r\n try {\r\n serverSocket = new ServerSocket(port);\r\n serverSocket.setSoTimeout(TIMEOUT);\r\n\t }\r\n\t catch (IOException e)\r\n\t \t{\r\n log(\"Could not create ServerSocket on port \" + port);\r\n\t \tDebug.printStackTrace(e);\r\n System.exit(-1);\r\n\t }\r\n }", "public DefaultTCPServer(int port) throws Exception {\r\n\t\tserverSocket = new ServerSocket(port);\t}", "public HttpProxy(int port)\n {\n thisPort = port;\n }", "public WebServer (String sHost, int port)\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = sHost; \t\t\t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = port; \t\t\t\t\t\t\t\t\t\t\r\n\t}", "private void startServer(String ip, int port, String contentFolder) throws IOException{\n HttpServer server = HttpServer.create(new InetSocketAddress(ip, port), 0);\n \n //Making / the root directory of the webserver\n server.createContext(\"/\", new Handler(contentFolder));\n //Making /log a dynamic page that uses LogHandler\n server.createContext(\"/log\", new LogHandler());\n //Making /online a dynamic page that uses OnlineUsersHandler\n server.createContext(\"/online\", new OnlineUsersHandler());\n server.setExecutor(null);\n server.start();\n \n //Needing loggin info here!\n }", "private static ServerSocket startServer(int port) {\n if (port != 0) {\n ServerSocket serverSocket;\n try {\n serverSocket = new ServerSocket(port);\n System.out.println(\"Server listening, port: \" + port + \".\");\n System.out.println(\"Waiting for connection... \");\n return serverSocket;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "public FileServer(int port) throws IOException {\n serverThread = new Thread(new RunningService(port));\n }", "public Server(int port){\n\t\ttry {\n\t\t\tdatagramSocket = new DatagramSocket(port);\n\t\t\trequest = new byte[280];\n\t\t} catch (SocketException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t}", "public GameServer(int portNum)\n\t{\n\t\tport = portNum;\n\t}", "public static ServerSocket createServerSocket() {\n \t\n try {\n listener = new ServerSocket(PORT,1, InetAddress.getByName(hostname));\n } catch (IOException e) {\n e.printStackTrace();\n }\n return listener;\n }", "Builder setPort(String port);", "public Server(int port) {\n this.port = port;\n try {\n socket = new DatagramSocket(port);\n } catch (SocketException e) {\n e.printStackTrace();\n }\n run = new Thread(this, \"Server\");\n run.start();\n }", "public ServerSocket createSocket (int port)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;", "public Server(){\n\t\ttry {\n\t\t\t// initialize the server socket with the specified port\n\t\t\tsetServerSocket(new ServerSocket(PORT));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO Exception while creating a server\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Server() throws IOException\n {\n socket = new ServerSocket(port);\n }", "public ServerGame(int port)\r\n\t{\r\n\t\tsuper(NetworkMode.SERVER);\r\n\t\tserver = new Server(port, getWorld());\r\n\t}", "public ServerProxy(String host, int port) {\n\t\tthis.setHost(host);\n\t\tthis.setPort(port);\n\t\tthis.cookieManager = new java.net.CookieManager();\n\t}", "public TCPServer(int portNumber){\r\n\t\t// Abro el socket en el puerto dado y obtengo los stream\r\n\t\ttry {\r\n\t\t\tmServerSocket = new ServerSocket(portNumber);\r\n\t\t} catch (IOException e) { e.printStackTrace(); }\r\n\t}", "public static AsyncHttpServer helloWorldServer(NioEventloop primaryEventloop, int port) {\n\t\tAsyncHttpServer httpServer = new AsyncHttpServer(primaryEventloop, new AsyncHttpServlet() {\n\t\t\t@Override\n\t\t\tpublic void serveAsync(HttpRequest request, ResultCallback<HttpResponse> callback) {\n\t\t\t\tString s = HELLO + decodeAscii(request.getBody());\n\t\t\t\tHttpResponse content = HttpResponse.create().body(encodeAscii(s));\n\t\t\t\tcallback.onResult(content);\n\t\t\t}\n\t\t});\n\t\treturn httpServer.setListenPort(port);\n\t}", "public static RoMServer createServer() throws IOException, Exception {\r\n \t\t// Ip and Port out of config\r\n \t\tIConfig cfg = ConfigurationFactory.getConfig();\r\n \r\n \t\treturn RoMServer.createServer(cfg.getIp(), cfg.getPort());\r\n \t}", "public void start(int port);", "public TestHttpServer (HttpCallback cb, int threads, int cperthread, int port)\n throws IOException {\n schan = ServerSocketChannel.open ();\n InetSocketAddress addr = new InetSocketAddress (port);\n schan.socket().bind (addr);\n this.threads = threads;\n this.cb = cb;\n this.cperthread = cperthread;\n servers = new Server [threads];\n for (int i=0; i<threads; i++) {\n servers[i] = new Server (cb, schan, cperthread);\n servers[i].start();\n }\n }", "public Server() {\n\t\t\n\t\ttry {\n\t\t\tss= new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace(); // Default\n\t\t}\n\t}", "public static void runServer(int port) throws IOException {\n\t\tserver = new CEMSServer(port);\n\t\tuiController.setServer(server);\n\t\tserver.listen(); // Start listening for connections\n\t}", "public void newConnection(String hostname, int port) throws Exception;", "public static EmbeddedTestServer createAndStartServer(Context context) {\n return createAndStartServerWithPort(context, 0);\n }", "public TCPServer(int port) throws IOException {\n\tthis.socket = new ServerSocket(port);\n\tthis.clients = new ArrayList();\n\n\tSystem.out.println(\"SERVER: Started\");\n }", "public WebServer(Music music, int port) throws IOException {\n this.music = music;\n this.server = HttpServer.create(new InetSocketAddress(port), 0);\n \n // handle concurrent requests with multiple threads\n server.setExecutor(Executors.newCachedThreadPool());\n server.start();\n String hostName = LOCALHOST;\n for (NetworkInterface iface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n for (InetAddress address: Collections.list(iface.getInetAddresses())) {\n if (address instanceof Inet4Address) { \n if (!address.getHostName().equals(LOCALHOST)) {\n System.out.println(\"Address: \" + address.getHostName());\n hostName = address.getHostName();\n }\n }\n }\n }\n \n for (String voice : music.getVoices()) {\n //handle requests for paths that start with /look/\n System.out.println(\" In your web browser, navigate to\\n\" + hostName + \":\" + port + \"/\" + voice + \"/\" + \"\\n to access the lyrics stream for this voice.\"); \n server.createContext(\"/\" + voice + \"/\", exchange -> {\n try {\n handleClient(exchange);\n } catch (MidiUnavailableException e) {\n throw new RuntimeException(\"Midi Unavailable\");\n } catch (InvalidMidiDataException e) {\n throw new RuntimeException(\"Invalid Midi Data\");\n } catch (InterruptedException e) {\n throw new RuntimeException(\"Interrupted\");\n }\n });\n }\n checkRep();\n }", "public WOHTTPConnection(java.lang.String aHost, int portNumber){\n //TODO codavaj!!\n }", "public ServerSocket createSocket (int port, int backlog)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;", "public static HttpServer startServer() {\n // create a resource config that scans for JAX-RS resources and providers\n // in com.example.rest package\n final ResourceConfig rc = new ResourceConfig().packages(\"com.assignment.backend\");\n rc.register(org.glassfish.jersey.moxy.json.MoxyJsonFeature.class);\n rc.register(getAbstractBinder());\n rc.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n rc.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n }", "public EnvironmentSocket createNewSocket(String host, int port) throws IOException {\n Socket socket = new Socket(host, port);\n return wrapperSocket(socket);\n }", "public void startServerSocket(Integer port) throws IOException {\n this.port = port;\n startMEthod();\n }", "@Parameter(optional=true, description=\"Port number for the embedded Jetty HTTP server, default: \\\\\\\"\" + ServletEngine.DEFAULT_PORT + \"\\\\\\\". \"\n\t\t\t+ \"If the port is set to 0, the jetty server uses a free tcp port, and the metric `serverPort` delivers the actual value.\")\n\tpublic void setPort(int port) {}", "public SecureWebServer(int port, InetAddress addr)\n {\n super(port, addr);\n }", "public SocketHandler createSocketHandler (String host, int port) {\r\n\t\t\t\t\t\t\t\r\n\t\tSocketHandler socketHandler = null;\r\n\r\n\t\ttry {\r\n\t\t\t\t\t\t \t\r\n\t\t\tsocketHandler = new SocketHandler(host, port);\r\n\t\t\t\t\t\t\t\t\r\n\t\t} catch (SecurityException | IOException e) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\t\t\t\t \r\n\t\treturn socketHandler;\r\n\t}", "private ServerSocket setUpServer(){\n ServerSocket serverSocket = null;\n try{\n serverSocket = new ServerSocket(SERVER_PORT);\n\n }\n catch (IOException ioe){\n throw new RuntimeException(ioe.getMessage());\n }\n return serverSocket;\n }", "public MemcachedServerSocket(int port) throws IOException {\n this(port, 0);\n }", "public Server(int port) {\r\n \r\n this.m_Port = port;\r\n this.m_Clients = new TeilnehmerListe();\r\n }", "public IndexServer(int port, File fname) throws IOException {\n super(port, fname);\n }", "public void listen(final int port, final String host) {\n server = Undertow.builder()\n .addHttpListener(port, host)\n .setHandler(new Listener(this)).build();\n server.start();\n }", "public WebServer()\n {\n if (!Variables.exists(\"w_DebugLog\"))\n Variables.setVariable(\"w_DebugLog\", true);\n\n if (!Variables.exists(\"w_Port\"))\n Variables.setVariable(\"w_Port\", 80);\n\n if (!Variables.exists(\"w_NetworkBufferSize\"))\n Variables.setVariable(\"w_NetworkBufferSize\", 2048);\n\n PORT = Variables.getInt(\"w_Port\");\n DEBUG = Variables.getBoolean(\"w_DebugLog\");\n BUFFER_SIZE = Variables.getInt(\"w_NetworkBufferSize\");\n }", "public static RoMServer createServer(InetAddress serverIpAddress, int serverPort) throws IOException, Exception {\r\n \t\tLogger.logMessage(\"Starting Server...\");\r\n \t\tRoMServer server = new RoMServer(serverIpAddress, serverPort);\r\n \r\n \t\tserver.initServer();\r\n \t\tserver.beginAcceptClients();\r\n \r\n \t\treturn server;\r\n \t}", "public static <T extends EmbeddedTestServer> T initializeAndStartHTTPSServer(\n T server, Context context, @ServerCertificate int serverCertificate, int port) {\n server.initializeNative(context, ServerHTTPSSetting.USE_HTTPS);\n server.addDefaultHandlers(\"\");\n server.setSSLConfig(serverCertificate);\n if (!server.start(port)) {\n throw new EmbeddedTestServerFailure(\"Failed to start serving using default handlers.\");\n }\n return server;\n }", "public void setPort(int port);", "public void setPort(int port);", "public static Handler<RoutingContext> serve(String spaDir, int port) {\n return serve(spaDir, port, \"npm\", \"start\", \"--\");\n }", "public MultiThreadedServer(final String host, final int port) {\n this.host = host;\n try {\n if (port > 65536) {\n this.port = DEFAULT_PORT;\n throw new PortUnreachableException(\"Port higher than 65536\");\n }\n this.port = port;\n logger.log(\"Listening on port \" + this.actualPort(), Level.INFO);\n } catch (PortUnreachableException e) {\n logger.log(e.getMessage(), Level.ERROR);\n }\n }", "public PingServer(int port, int noOfClients) {\n\t\tthis.port = port;\n\t\tthis.noOfClients = noOfClients;\n\t}", "public CertAuthHost setPort(int port)\n\t\t{\n\t\t\tif (this.started)\n\t\t\t\tthrow new IllegalStateException(\"Server already started!\");\n\t\t\tthis.port = port;\n\t\t\treturn this;\n\t\t}", "public static SSLServerSocket createSSLServerSocket(String hostName, int port, KeyManager[] keyManagers)\n\t\t\tthrows IOException, KeyManagementException, NoSuchAlgorithmException {\n\n\t\tSSLContext sc = SSLContext.getInstance(\"TLS\");\n\t\tsc.init(keyManagers, null, null);\n\t\tSSLServerSocketFactory ssf = sc.getServerSocketFactory();\n\t\tSSLServerSocket serverSocket = (SSLServerSocket) ssf.createServerSocket();\n\n\t\tInetSocketAddress endpoint = new InetSocketAddress(hostName, port);\n\t\tserverSocket.bind(endpoint);\n\t\treturn serverSocket;\n\t}", "public void setHttpPort(Integer port) {\n\t\tif (myNode != null) {\n\t\t\tthrow new IllegalStateException(\"change of port only before startup!\");\n\t\t}\n\t\tif (port == null || port < 1) {\n\t\t\thttpPort = 0;\n\t\t} else {\n\t\t\thttpPort = port;\n\t\t}\n\t}", "Port createPort();", "Port createPort();", "public void listen(final int port) {\n listen(port, \"localhost\");\n }", "public GrpcServer(ServerBuilder<?> serverBuilder, int port) {\n this.port = port;\n server = serverBuilder.addService(new GrpcServerService())\n .build();\n }", "public NanoHTTPDSingleFile(String hostname, int port) {\n\t\tthis.hostname = hostname;\n\t\tthis.myPort = port;\n\t\tsetTempFileManagerFactory(new DefaultTempFileManagerFactory());\n\t\tsetAsyncRunner(new DefaultAsyncRunner());\n\t}", "public void setServer(int port) {\n this.server = port;\n }", "public Socket createSocket(InetAddress host, int port) throws IOException {\n return new Socket(host, port);\n }", "public Socket createSocket( final InetAddress address, final int port )\n throws IOException\n {\n return new Socket( address, port );\n }", "public Webserver(int listen_port) {\n port = listen_port;\n ip = getIP();\n //this makes a new thread, as mentioned before,it's to keep gui in\n //one thread, server in another. You may argue that this is totally\n //unnecessary, but we are gonna have this on the web so it needs to\n //be a bit macho! Another thing is that real pro webservers handles\n //each request in a new thread. This server dosen't, it handles each\n //request one after another in the same thread. This can be a good\n //assignment!! To redo this code so that each request to the server\n //is handled in its own thread. The way it is now it blocks while\n //one client access the server, ex if it transferres a big file the\n //client have to wait real long before it gets any response.\n this.start();\n }", "protected ClassServer(int aPort) throws IOException{\n this(aPort, null);\n }", "public MockServerClient(String host, int port) {\n this(host, port, \"\");\n }", "public Socket createSocket(String host, int port) throws IOException, UnknownHostException {\n return getSSLContext().getSocketFactory().createSocket( host, port );\n }", "public void openServer() {\n try {\n this.serverSocket = new ServerSocket(this.portNumber);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "private void initServerSock(int port) throws IOException {\n\tserver = new ServerSocket(port);\n\tserver.setReuseAddress(true);\n }", "public WebServer ()\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t{\r\n\t\tthis.shost = DEF_HOST; \t\t\t\t\t\t\t\t\r\n\t\tthis.sPort = DEF_PORT; \t\t\t\t\t\t\t\t\r\n\t}", "public TestRouter( final int port ) throws IOException {\n super( port );\n addDefaultRoutes();\n }", "public OOXXServer(){\n\t\ttry\n\t\t{\n\t\t\tserver = new ServerSocket(port);\n\t\t\t\n\t\t}\n\t\tcatch(java.io.IOException e)\n\t\t{\n\t\t}\n\t}", "public Server(String map, int port, boolean runningLocal)\n\t{\n\t\tthis.port = port;\n\t\tthis.mapName = map;\n\t\tthis.runningLocal = runningLocal;\n\t}", "private HttpProxy createHttpServerConnection() {\n\n final HttpProxy httpProxy = httpConnectionFactory.create();\n\n // TODO: add configurable number of attempts, instead of looping forever\n boolean connected = false;\n while (!connected) {\n LOGGER.debug(\"Attempting connection to HTTP server...\");\n connected = httpProxy.connect();\n }\n\n LOGGER.debug(\"Connected to HTTP server\");\n\n return httpProxy;\n }", "public ChatRoomServer(int portNumber){\n this.ClientPort = portNumber;\n }", "public void start(int port)\n\t{\n\t\t// Initialize and start the server sockets. 08/10/2014, Bing Li\n\t\tthis.port = port;\n\t\ttry\n\t\t{\n\t\t\tthis.socket = new ServerSocket(this.port);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Initialize a disposer which collects the server listener. 08/10/2014, Bing Li\n\t\tMyServerListenerDisposer disposer = new MyServerListenerDisposer();\n\t\t// Initialize the runner list. 11/25/2014, Bing Li\n\t\tthis.listenerRunnerList = new ArrayList<Runner<MyServerListener, MyServerListenerDisposer>>();\n\t\t\n\t\t// Start up the threads to listen to connecting from clients which send requests as well as receive notifications. 08/10/2014, Bing Li\n\t\tRunner<MyServerListener, MyServerListenerDisposer> runner;\n\t\tfor (int i = 0; i < ServerConfig.LISTENING_THREAD_COUNT; i++)\n\t\t{\n\t\t\trunner = new Runner<MyServerListener, MyServerListenerDisposer>(new MyServerListener(this.socket, ServerConfig.LISTENER_THREAD_POOL_SIZE, ServerConfig.LISTENER_THREAD_ALIVE_TIME), disposer, true);\n\t\t\tthis.listenerRunnerList.add(runner);\n\t\t\trunner.start();\n\t\t}\n\n\t\t// Initialize the server IO registry. 11/07/2014, Bing Li\n\t\tMyServerIORegistry.REGISTRY().init();\n\t\t// Initialize a client pool, which is used by the server to connect to the remote end. 09/17/2014, Bing Li\n\t\tClientPool.SERVER().init();\n\t}", "int serverPort ();", "@Singleton\n\t@Provides\n\tServer provideServer(final Injector injector, final ExecutorService execService) {\n\t\tfinal Server server = new Server(port);\n\t\tServletContextHandler sch = new ServletContextHandler(server, \"/jfunk\");\n\t\tsch.addEventListener(new JFunkServletContextListener(injector));\n\t\tsch.addFilter(GuiceFilter.class, \"/*\", null);\n\t\tsch.addServlet(DefaultServlet.class, \"/\");\n\n\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\texecService.shutdown();\n\t\t\t\t\texecService.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);\n\t\t\t\t} catch (InterruptedException ex) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\tlog.error(ex.getMessage(), ex);\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tserver.stop();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Error stopping Jetty.\", ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\treturn server;\n\t}", "public HttpClient setPort(Env env, NumberValue port) {\n client.setPort(port.toInt());\n return this;\n }", "public Socket createSocket(String host, int port) throws IOException {\n\n SSLSocketFactory factory =\n (SSLSocketFactory)SSLSocketFactory.getDefault();\n SSLSocket socket = (SSLSocket)factory.createSocket(host, port);\n\n return socket;\n }", "public NanoHTTPDSingleFile(int port) {\n\t\tthis(null, port);\n\t}", "public Server(int port, int listeningIntervalMS, IServerStrategy strategy) {\n this.port = port;\n this.listeningIntervalMS = listeningIntervalMS;\n this.strategy = strategy;\n this.threadPoolExecutor = (ThreadPoolExecutor) Executors.newCachedThreadPool();\n this.configurations = Configurations.getInstance();\n\n }" ]
[ "0.745459", "0.7120764", "0.70297366", "0.70170045", "0.6945716", "0.68827623", "0.68383807", "0.6760816", "0.6751002", "0.66966534", "0.6688041", "0.66812116", "0.66184455", "0.6613971", "0.65672386", "0.6566095", "0.6554936", "0.6484767", "0.64617825", "0.6455339", "0.6442289", "0.6418851", "0.64166796", "0.6408484", "0.640423", "0.6392062", "0.6317116", "0.6309523", "0.6297709", "0.6291715", "0.6291091", "0.6255891", "0.6234925", "0.622918", "0.6179474", "0.61663157", "0.6139691", "0.61250097", "0.61134094", "0.6074282", "0.60598683", "0.60506755", "0.60410005", "0.6004363", "0.60013175", "0.59783745", "0.596967", "0.59659714", "0.5963203", "0.5952183", "0.5941838", "0.5935294", "0.5929305", "0.5919381", "0.591845", "0.59103876", "0.5904914", "0.5904313", "0.5881251", "0.5879104", "0.5872651", "0.58560425", "0.5849908", "0.5838521", "0.5838108", "0.5834385", "0.5834385", "0.5818037", "0.58174163", "0.58164454", "0.58127993", "0.581099", "0.58089024", "0.5807317", "0.5807317", "0.5804613", "0.57972634", "0.5785227", "0.57841873", "0.5771436", "0.5757733", "0.5754278", "0.5724282", "0.5714413", "0.57047313", "0.5704077", "0.56879145", "0.56754136", "0.56649494", "0.56509525", "0.56504774", "0.5640709", "0.56391484", "0.5635875", "0.5630976", "0.5628104", "0.56274116", "0.5625686", "0.56192964", "0.56178063" ]
0.7110906
2
Properly shut down the server.
public void shutdown() { server.stop(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void shutdown() {\n server.stop();\n }", "void shutDownServer() throws Exception;", "public void shutDownServer() throws IOException {\r\n \t\tthis.shutDownServer(true);\r\n \t}", "public void ShutDown()\n {\n bRunning = false;\n \n LaunchLog.Log(COMMS, LOG_NAME, \"Shut down instruction received...\");\n\n for(LaunchServerSession session : Sessions.values())\n {\n LaunchLog.Log(COMMS, LOG_NAME, \"Closing session...\");\n session.Close();\n }\n \n LaunchLog.Log(COMMS, LOG_NAME, \"...All sessions are closed.\");\n }", "private void stopServer() {\n\t\ttry {\n//\t\t\tserver.shutdown();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}", "public void shutdown() {\n try {\n \t\n \tserverSocket.close();\n \t\n } catch (Exception e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }", "public void stop() {\n if (server != null) {\n server.shutdown();\n }\n }", "public void stop () {\n if (server != null)\n server.shutDown ();\n server = null;\n }", "public void stopServer() {\n stop();\n }", "public synchronized void shutDown() {\n\t state.shutDown();\n\t}", "public void shutDown()\n {\n stunStack.removeSocket(serverAddress);\n messageSequence.removeAllElements();\n localSocket.close();\n }", "public void stop() {\n while (currentState.get() == ServerConstants.SERVER_STATUS_STARTING) {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n // Ignore.\r\n }\r\n }\r\n\r\n if (currentState.compareAndSet(ServerConstants.SERVER_STATUS_STARTED, ServerConstants.SERVER_STATUS_OFF)) {\r\n try {\r\n bossGroup.shutdownGracefully();\r\n workerGroup.shutdownGracefully();\r\n connectionPool.shutdownAll();\r\n\r\n failedTimes.set(0);\r\n\r\n logger.info(\"Netty server stopped\");\r\n } catch (Exception ex) {\r\n logger.warn(\"Failed to stop netty server (port={}), exception:\", port, ex);\r\n }\r\n }\r\n }", "public void shutdown() {\r\n System.exit(0);\r\n }", "public void shutDown ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"shutDown\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n shutDown ( );\n } finally {\n _releaseReply ($in);\n }\n }", "public void stop() {\n System.err.println(\"Server will stop\");\n server.stop(0);\n }", "public void shutDown();", "public void shutdown() {\n try {\n infoServer.stop();\n } catch (Exception e) {\n }\n this.shouldRun = false;\n ((DataXceiveServer) this.dataXceiveServer.getRunnable()).kill();\n try {\n this.storage.closeAll();\n } catch (IOException ie) {\n }\n }", "public static void shutdown() {\n\t}", "void shutDown();", "public void stop() {\n server.stop();\n }", "public void shutdown() {\n shutdown(false);\n }", "public void stop() {\n System.err.println(\"Server will stop\");\n server.stop(0);\n }", "public static void stopServer() {\n try {\n clientListener.stopListener();\n server.close();\n connectionList.clear();\n } catch (IOException ex) {\n System.err.println(\"Error closing server: \\\"\" + ex.getMessage() + \"\\\"\");\n }\n System.out.println(\"SERVER SHUT DOWN\");\n }", "public void shutdown() {\n mGameHandler.shutdown();\n mTerminalNetwork.terminate();\n }", "public void shutDown() {\n StunStack.shutDown();\n stunStack = null;\n stunProvider = null;\n requestSender = null;\n\n this.started = false;\n\n }", "private void shutdown() {\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tgame.handleExit(this);\n\t\t\tstopped = true;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "private void shutdown()\n\t\t{\n\t\tif (myChannelGroup != null)\n\t\t\t{\n\t\t\tmyChannelGroup.close();\n\t\t\t}\n\t\tif (myHttpServer != null)\n\t\t\t{\n\t\t\ttry { myHttpServer.close(); } catch (IOException exc) {}\n\t\t\t}\n\t\tmyLog.log (\"Stopped\");\n\t\t}", "public void shutdown();", "public void shutdown();", "public void shutdown();", "public void shutdown();", "private void shutdown() {\n clientTUI.showMessage(\"Closing the connection...\");\n try {\n in.close();\n out.close();\n serverSock.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void shutdown() {\n // Shutting down a 'null' transport is invalid. Also, shutting down a server for multiple times is invalid.\n ensureServerState(true);\n try {\n transport.close();\n } catch (final Exception e) {\n throw new RuntimeException(e);\n } finally {\n isShutdown = true;\n }\n }", "public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }", "public void shutdown()\n {\n // todo\n }", "public void stopServer() {\r\n\t\tserverRunning = false;\r\n\t}", "public void shutDownServer(boolean countdown) throws IOException {\r\n \t\tthis.isAlive = false;\r\n \r\n \t\tif (countdown) {\r\n \t\t\ttry {\r\n \t\t\t\tint totalSecondsToWait = 10000;\r\n \t\t\t\tint decrease = 1000;\r\n \r\n \t\t\t\twhile (totalSecondsToWait > 0) {\r\n \t\t\t\t\tthis.serverSendMessageToAllUsers(\"Server will be shut down in \" + totalSecondsToWait / 1000 + \" seconds...\");\r\n \t\t\t\t\tThread.sleep(decrease);\r\n \t\t\t\t\ttotalSecondsToWait -= decrease;\r\n \t\t\t\t}\r\n \t\t\t} catch (Exception ex) {\r\n \r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// Close streams and connections to all clients\r\n \t\tfor (RoMClient client : this.clients.getClients()) {\r\n \t\t\tclient.getOutputStream().close();\r\n \t\t\tclient.getInputStream().close();\r\n \t\t\tclient.getSocket().close();\r\n \t\t}\r\n \r\n \t\t// Close server socket\r\n \t\tthis.serverSocket.close();\r\n \t}", "public void shutDown()\n {\n // Runtime.getRuntime().removeShutdownHook(shutdownListener);\n //shutdownListener.run();\n }", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "void shutdown();", "public void stopAndDestroyServer() {\n synchronized (mImplMonitor) {\n // ResettersForTesting call can cause this to be called multiple times.\n if (mImpl == null) {\n return;\n }\n try {\n if (!mImpl.shutdownAndWaitUntilComplete()) {\n throw new EmbeddedTestServerFailure(\"Failed to stop server.\");\n }\n mImpl.destroy();\n mImpl = null;\n } catch (RemoteException e) {\n throw new EmbeddedTestServerFailure(\"Failed to shut down.\", e);\n } finally {\n mContext.unbindService(mConn);\n }\n }\n }", "public void shutdown() {\n _udpServer.stop();\n _registrationTimer.cancel();\n _registrationTimer.purge();\n }", "public void shutDown() {\n if(client != null) {\n client.shutdownClient();\n }\n }", "public void kill() {\n this.server.stop();\n }", "public void shutdown() {\n }", "public void shutdown(){\n \tSystem.out.println(\"SHUTTING DOWN..\");\n \tSystem.exit(0);\n }", "public synchronized void shutServer() {\n \tmainDepartureTerminalEntrance.terminated = mainDepartureTerminalEntrance.terminated + 1;\n }", "public void shutdown() {\n\t\t\n\t}", "public void shutdown() {\n // For now, do nothing\n }", "public void exitServer()\n\t{\n\t\tSystem.exit(1);\n\t}", "public void shutdown() {\n for (TServer server : thriftServers) {\n server.stop();\n }\n try {\n zookeeper.shutdown();\n discovery.close();\n } catch (IOException ex) {\n //don't care\n }\n }", "synchronized public boolean stop() {\n if (standalone && zkServerMain != null) {\n zkServerMain.doShutdown();\n }\n if (!standalone && quorumPeer != null) {\n quorumPeer.doShutdown();\n }\n boolean ret = waitForServerDown(\"0.0.0.0\", config.getClientPortAddress()\n .getPort(), 5000);\n quorumPeer = null;\n zkServerMain = null;\n return ret;\n }", "public static void closeServer() {\n\t\trun = false;\n\t}", "public void stop() {\n\t\ttry {\n\t\t\tif (serverSocket != null)\n\t\t\t\tserverSocket.close();\n\t\t} catch (IOException ioe) {\n\t\t\t// shouldn't happen\n\t\t}\n\t}", "public final void exit() {\n if (this.serverSocket instanceof ServerSocket) {\n try {\n this.serverSocket.close();\n } catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\n public void shutDown() {\n }", "public void shutdown() {\n // no-op\n }", "public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }", "public void shutDown()\n\t{\n\t\tthis.threadPool.shutdown();\n\t}", "public void shutDown () {\n sparkService.stop();\n }", "public void stop() {\n \n // first interrupt the server engine thread\n if (m_runner != null) {\n m_runner.interrupt();\n }\n\n // close server socket\n if (m_serverSocket != null) {\n try {\n m_serverSocket.close();\n }\n catch(IOException ex){\n }\n m_serverSocket = null;\n } \n \n // release server resources\n if (m_ftpConfig != null) {\n m_ftpConfig.dispose();\n m_ftpConfig = null;\n }\n\n // wait for the runner thread to terminate\n if( (m_runner != null) && m_runner.isAlive() ) {\n try {\n m_runner.join();\n }\n catch(InterruptedException ex) {\n }\n m_runner = null;\n }\n }", "private void shutDown() {\r\n\t\t\r\n\t\t// send shutdown to children\r\n\t\tlogger.debug(\"BagCheck \"+ this.lineNumber+\" has sent an EndOfDay message to it's Security.\");\r\n\t\tthis.securityActor.tell(new EndOfDay(1));\r\n\r\n\t\t// clear all references\r\n\t\tthis.securityActor = null;\r\n\t}", "@Override\n public void shutdown() {\n log.debug(\"Shutting down Ebean ..\");\n\n // TODO: Verificar si es necesario des-registrar el driver\n this.ebeanServer.shutdown(true, false);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n\t\t\t\tHelloServer.this.stop();\n\t\t\t\tSystem.err.println(\"*** server shut down\");\n\t\t\t}", "public void shutdown() {\n fsManager.getOpenFileSystems().forEach(JGitFileSystem::close);\n shutdownSSH();\n forceStopDaemon();\n fsManager.clear();\n }", "public void shutdown()\n {\n // nothing to do here\n }", "public void stop() {\n tcpServer.stopServer();\n ThreadExecutor.shutdownClient(this.getClass().getName());\n }", "private static void shutdown( String path )\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tStandardizerServerSettings.initializeSettings();\r\n\r\n\t\t\tStandardizerServerConfig.read( path );\r\n\r\n\t\t\tStandardizerServerLogger.initialize\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString( \"Servershuttingdown\" )\r\n\t\t\t);\r\n\r\n\t\t\tString uri =\r\n\t\t\t\t\"//localhost:\" +\r\n\t\t\t\tStandardizerServerConfig.getRmiRegistryPort() +\r\n\t\t\t\t\"/SpellingStandardizer\";\r\n\r\n\t\t\tStandardizerServerBootstrap bootstrap =\r\n\t\t\t\t(StandardizerServerBootstrap)Naming.lookup( uri );\r\n\r\n\t\t\tbootstrap.shutdown( uri );\r\n\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Standardizerserverstopped\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\tcatch ( NotBoundException e )\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Thestandardizerserverwasnotrunning\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\tStandardizerServerLogger.log(\r\n\t\t\t\tStandardizerServerLogger.ERROR ,\r\n\t\t\t\tStandardizerServerSettings.getString( \"Shutdown\" ) ,\r\n\t\t\t\te );\r\n\r\n\t\t\tStandardizerServerLogger.terminate();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n\t\t\t\tNoteServer.this.stop();\n\t\t\t\tSystem.err.println(\"*** server shut down\");\n\t\t\t}", "public static void TerminateServer() {\n System.out.println(\"Killing server...\");\n ProcessBuilder builder = new ProcessBuilder();\n builder.command(\"bash\", \"-c\", \"sudo shutdown -h now\");\n\n try {\n // Start the process and get the output\n Process process = builder.start();\n StringBuilder output = new StringBuilder();\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(process.getInputStream()));\n\n // Read the output line by line\n String line;\n while ((line = reader.readLine()) != null) {\n output.append(line + \"\\n\");\n }\n\n // Wait for the process to end, respond accordingly\n int exitVal = process.waitFor();\n if (exitVal == 0) {\n System.out.println(\"Success!\");\n System.out.println(output);\n System.exit(0);\n }\n else {\n System.out.println(\"Failed to kill server\");\n }\n }\n catch (IOException | InterruptedException e) {\n System.out.println(\"Failed to kill server\");\n }\n }", "public void shutdown() {\n YbkService.stop(ErrorDialog.this);\r\n System.runFinalizersOnExit(true);\r\n // schedule actual shutdown request on a background thread to give the service a chance to stop on the\r\n // foreground thread\r\n new Thread(new Runnable() {\r\n\r\n public void run() {\r\n try {\r\n Thread.sleep(500);\r\n } catch (InterruptedException e) {\r\n }\r\n System.exit(-1);\r\n }\r\n }).start();\r\n }", "@Override\n public void run() {\n System.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n try {\n GrpcServer.this.stop();\n } catch (InterruptedException e) {\n e.printStackTrace(System.err);\n }\n System.err.println(\"*** server shut down\");\n }", "public static void shutdown() {\n\t\t// Ignore\n\t}", "protected abstract void shutdown();", "public void cleanShutDown () {\n shutdown = true;\n }", "protected void stopAndReleaseGrpcServer() {\n final Server localServer = this.server;\n if (localServer != null) {\n localServer.shutdown();\n this.server = null;\n log.info(\"gRPC server shutdown.\");\n }\n }", "public void abnormalShutDown() {\n\t}", "@Override\n public void run() {\n System.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n HelloWorldServer.this.stop();\n System.err.println(\"*** server shut down\");\n }", "void shutdown() throws Exception;", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public abstract void shutdown();", "public void shutdown() throws IOException, AutomationException {\n /*\n * The SOE should release its reference on the Server Object Helper.\n */\n this.serverLog.addMessage(3, 200, \"Shutting down \" + this.getClass().getName() + \" SOI.\");\n this.serverLog = null;\n }", "public void shutdown() {\n this.isShutdown = true;\n }" ]
[ "0.83596414", "0.8256749", "0.79590136", "0.78244454", "0.7809891", "0.7737295", "0.77049303", "0.76551676", "0.76239544", "0.7618181", "0.7610268", "0.75553477", "0.7542833", "0.753783", "0.7529899", "0.75116324", "0.7505963", "0.74895585", "0.7481671", "0.74701846", "0.7468766", "0.74467856", "0.7441956", "0.74339545", "0.7417617", "0.74108887", "0.7366146", "0.7361832", "0.7361832", "0.7361832", "0.7361832", "0.73532027", "0.73327816", "0.729404", "0.72719985", "0.7264318", "0.72543824", "0.72493804", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7244089", "0.7222585", "0.72113854", "0.7190688", "0.7188291", "0.7170488", "0.714811", "0.7137217", "0.71363235", "0.71285486", "0.71031153", "0.7066816", "0.7060026", "0.7054567", "0.7030236", "0.7017078", "0.6970313", "0.69678223", "0.6961169", "0.69482553", "0.6947017", "0.6940701", "0.69299954", "0.69130504", "0.69044703", "0.69022137", "0.6883539", "0.68827426", "0.68823534", "0.6868041", "0.68624943", "0.68439144", "0.68365014", "0.6833964", "0.6831183", "0.68273187", "0.68249106", "0.682135", "0.6813787", "0.68076676", "0.6803264", "0.6803264", "0.6803264", "0.6803264", "0.67845017", "0.6771876" ]
0.8433105
0
Sets the desired response code.
public void setResponseCode(final int responseCode) { handler.responseCode = responseCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setResponseCode(java.lang.CharSequence value) {\n this.ResponseCode = value;\n }", "public void setResponseCode(int responseCode) {\n this.responseCode = responseCode;\n }", "public sparqles.avro.discovery.DGETInfo.Builder setResponseCode(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.ResponseCode = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public void setResponseCode(java.lang.String responseCode) {\n this.responseCode = responseCode;\n }", "public void setHttpStatusCode(int value) {\n this.httpStatusCode = value;\n }", "public RestResponseAsserter statusCode(Consumer<AbstractIntegerAssert> responseCode) {\n responseCode.accept(assertThat(response.code()));\n return this;\n }", "public void setResultCode(int value) {\n this.resultCode = value;\n }", "public void setStatusCode(Integer statusCode) {\n this.statusCode = statusCode;\n }", "public void setStatusCode(Integer statusCode) {\n this.statusCode = statusCode ;\n }", "public RestResponseAsserter statusCode(int responseCode) {\n assertThat(response.code()).isEqualTo(responseCode);\n return this;\n }", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "public void setStatusCode(int statusCode) {\r\n\t\tcheckHeaderGeneration();\r\n\t\tthis.statusCode = statusCode;\r\n\t}", "@Override\n\tpublic void setStatusCode(int statusCode) {\n\t\t_dmGtStatus.setStatusCode(statusCode);\n\t}", "public void setErrorCode(int value) {\n this.errorCode = value;\n }", "public AuditDataBuilder responseCode(final String responseCode) {\n this.responseCode = responseCode;\n return this;\n }", "private void setStatusCode(int code)\n {\n if(null == m_ElementStatus)\n m_ElementStatus = PSFUDDocMerger.createChildElement(m_Element,\n IPSFUDNode.ELEM_STATUS);\n\n if(null == m_ElementStatus) //never happens\n return;\n\n String tmp = null;\n try\n {\n tmp = Integer.toString(IPSFUDNode.STATUS_CODE_NORMAL); //default value\n tmp = Integer.toString(code);\n }\n catch(NumberFormatException e)\n {\n if(null == tmp) //should never happen\n tmp = \"\";\n }\n m_ElementStatus.setAttribute(IPSFUDNode.ATTRIB_CODE, tmp);\n }", "public void setStatusCode(String statusCode) {\r\n\t\tthis.statusCode = statusCode;\r\n\t}", "public HttpResponseCode getCode() {\n return code;\n }", "public void setRespcode(String respcode) {\n\t\tthis.respcode = respcode;\n\t}", "public void setStatusCode(HttpStatus statusCode) {\n this.statusCode = statusCode;\n }", "public void setHttpStatusCode(Integer httpStatusCode) {\n this.httpStatusCode = httpStatusCode;\n }", "public void setErrorCode(int errorCode) {\n this.errorCode = errorCode;\n }", "public void setStatusCode(String statusCode) {\n\t\tthis.statusCode = statusCode;\n\t}", "public void setResponseCode(com.singtel.group.manageporting_types.v1.PortNotificationResultCode responseCode) {\n this.responseCode = responseCode;\n }", "public void setStatusCode(int statusCode) {\n\t\tif (headerGenerated)\n\t\t\tthrow new RuntimeException(\"Header already generated\");\n\t\tthis.statusCode = statusCode;\n\t}", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public void setCode(OAIPMHErrorcodeType code) {\r\n this.code = code;\r\n }", "public java.lang.CharSequence getResponseCode() {\n return ResponseCode;\n }", "public void setRequestCode(String requestCode);", "public void setCode(int code) {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "private ResponseStatus(int code) {\n this.code = code;\n this.formatted = format(code, \"???\");\n this.symbolicName = String.format(\"0x%04x\", code);\n }", "public Builder setReturnCode(int value) {\n \n returnCode_ = value;\n onChanged();\n return this;\n }", "public Builder setReturnCode(int value) {\n \n returnCode_ = value;\n onChanged();\n return this;\n }", "public void setErrorCode(int errorCode)\n\t{\n\t\tthis.errorCode = errorCode;\n\t}", "protected abstract void setErrorCode();", "public void setResponsecode(String responsecode) {\n this.responsecode = responsecode == null ? null : responsecode.trim();\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setResult(com.rpg.framework.database.Protocol.ResponseCode value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n result_ = value;\n onChanged();\n return this;\n }", "public Builder setErrcode(int value) {\n bitField0_ |= 0x00000001;\n errcode_ = value;\n onChanged();\n return this;\n }", "public int getResponseCode() {\n return responseCode;\n }", "public int getResponseCode() {\n return responseCode;\n }", "public int getResponseCode() {\n return responseCode;\n }", "public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }", "public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }", "public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }", "public Builder setResultCode(int value) {\n \n resultCode_ = value;\n onChanged();\n return this;\n }", "public void setCode(org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum code)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CODE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CODE$0);\n }\n target.setEnumValue(code);\n }\n }", "public void setResponseStatus(int responseStatus) {\n this.responseStatus = responseStatus;\n }", "public void setErrorCode(int errorCode) {\n\t\tthis.errorCode = errorCode;\n\t}", "public void setStatus(int s) {\n if ((statusCode() != s) || (reason() == null))\n reason = standardReason(s);\n code = s;\n }", "public Builder setErrorCode(int value) {\n \n errorCode_ = value;\n onChanged();\n return this;\n }", "public int getStatusCode() {\n return code;\n }", "public int getResponseCode()\r\n {\r\n return this.responseCode;\r\n }", "public int getResponseCode() {\n return this.responseCode;\n }", "public void setCode(Integer code) {\n this.code = code;\n }", "public String getResponseCode() {\n return responseCode;\n }", "public void setStatusCode(final HttpStatus status) {\n\t\tthis.statusCode = status;\n\t}", "public Builder setResponseValue(int value) {\n response_ = value;\n onChanged();\n return this;\n }", "public void setCode(final int code) {\n this.code = code;\n commited = true;\n }", "public void setAuthorizationCode(int authorizationCode);", "public int toStatusCode(){\n\t\t\treturn _code;\n\t\t}", "public int statusCode(){\n return code;\n }", "@Override\n protected void handleErrorResponseCode(int code, String message) {\n }", "public AuthorizationResponseCode getResponseCode()\n {\n return responseCode;\n }", "protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}", "public java.lang.String getResponseCode() {\n return responseCode;\n }", "public void testSetReplyCode_Invalid() {\n try {\n commandHandler.setReplyCode(-1);\n fail(\"Expected AssertFailedException\");\n }\n catch (AssertFailedException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "public void setSipResponseCode(java.lang.Short sipResponseCode) {\r\n this.sipResponseCode = sipResponseCode;\r\n }", "public ResponseResource(final Integer code, final String message) {\n\n\t\tthis.message = message == null ? ResponseResource.R_MSG_EMPTY : message;\n\t\tthis.responseCode = code == null ? ResponseResource.R_CODE_OK : code;\n\t\t//this.setData(data);\n\t}", "public String getResponsecode() {\n return responsecode;\n }", "public void setResponseHeader(Response.Header header, String value) {\n setNonStandardHeader(header.code, value);\n }", "private void setStatusCode(String statusLine) {\n \n \t\tString[] each = statusLine.split( \" \" );\n \t\tresponseHTTPVersion = each[0];\n \t\tstatusCode = each[1];\n\t\treasonPhrase = each[2];\n \t}", "public void setAsSuccessful_OK(){\n setStatus(200);\n }", "public void setErrorCode(String errorCode) {\n this.errorCode = errorCode;\n }", "public void setCode(Code code) {\n this.Code = code;\n }", "public Builder setResponsePort(int value) {\n bitField0_ |= 0x00000040;\n responsePort_ = value;\n onChanged();\n return this;\n }", "public Builder setCode(int value) {\n bitField0_ |= 0x00000001;\n code_ = value;\n onChanged();\n return this;\n }", "public void setResultCode(java.lang.String param) {\r\n localResultCodeTracker = param != null;\r\n\r\n this.localResultCode = param;\r\n }", "void setCode(Integer aCode);", "public void errorResponse(int code, String msg){\n msg = errorMessage(code, msg);\n StringReader inputStream = new StringReader( msg );\n\n Content ct = new crc.content.text.html( inputStream, this );\n Transaction response = new HTTPResponse( Pia.instance().thisMachine,\n\t\t\t\t\t toMachine(), ct, false);\n response.setStatus( code );\n response.setContentType( \"text/html\" );\n response.setContentLength( msg.length() );\n Pia.debug(this, \"The header : \\n\" + response.headersAsString() );\n response.startThread();\n }", "public void setReturnCode(String returnCode)\r\n\t{\r\n\t\tthis.returnCode = returnCode;\r\n\t}", "public void setErrorCode(java.lang.String errorCode) {\r\n this.errorCode = errorCode;\r\n }", "public void reset(final int code, final String responseString) {\n setCode(code);\n setResponseString(responseString);\n initBody();\n }", "public Builder setResponseTypeValue(int value) {\n responseType_ = value;\n onChanged();\n return this;\n }", "public void status(int major_version,\n int minor_version,\n int code,\n String reason_phrase) {\n mStatusCode = code;\n }", "public UnifiedFormat setErrorStatus(String message, Integer code) {\n setErrorStatus(message, code, null, null);\n return this;\n }", "public D setHttpStatusCode(String httpStatusCode) {\n this.httpStatusCode = httpStatusCode;\n return this;\n }", "public void verifyResponseCode(int responseCode){\n\n Assert.assertEquals(responseCode,response.statusCode());\n System.out.println(\"Verify Response code: \"+responseCode);\n }", "private void setErrorCode(Throwable ex, ErrorResponse errorMessage) {\n errorMessage.setCode(\"1\");\n }", "public void setCode(long value) {\n this.code = value;\n }", "private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }", "private void setResponse(net.iGap.proto.ProtoResponse.Response value) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n \n }", "@Override\n public void setStatus(int sc) {\n this._getHttpServletResponse().setStatus(sc);\n }", "public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}", "private ResponseStatus(int code, String symbolicName, String description) {\n this.code = code;\n this.formatted = format(code, description);\n this.symbolicName = requireNonNull(symbolicName);\n\n if (code == MALFORMED_RESPONSE_CODE) {\n // skip further processing of the \"malformed response\" status\n return;\n }\n\n if (values[code] != null) {\n throw new IllegalStateException(\"already initialized status \" + values[code]);\n }\n\n values[code] = this;\n }", "public AuthorizationResponse(AuthorizationResponseCode responseCode,\n String reason)\n {\n this.reason = reason;\n this.responseCode = responseCode;\n }" ]
[ "0.802691", "0.7909501", "0.7712303", "0.7502746", "0.73282504", "0.7320664", "0.72603005", "0.7244572", "0.7239684", "0.72026604", "0.7155048", "0.71155846", "0.7026158", "0.7019473", "0.68945867", "0.68829805", "0.68508726", "0.6792298", "0.6769077", "0.67581755", "0.6725401", "0.6723409", "0.67156744", "0.6691815", "0.66604275", "0.66457915", "0.6643333", "0.66355366", "0.661046", "0.6575444", "0.6575444", "0.65508586", "0.65422523", "0.65422523", "0.6518845", "0.6499325", "0.6490622", "0.6474985", "0.64726776", "0.64726776", "0.6471431", "0.6471431", "0.64540476", "0.64538604", "0.64538604", "0.64538604", "0.6448953", "0.6448953", "0.6448953", "0.6448953", "0.64376724", "0.64374304", "0.6432127", "0.6431701", "0.64253116", "0.64240724", "0.64232194", "0.63814986", "0.6373128", "0.63560814", "0.6330322", "0.6306517", "0.6291836", "0.62894785", "0.6287634", "0.62875175", "0.6270934", "0.6258624", "0.6235091", "0.6234178", "0.6206577", "0.61968166", "0.6109756", "0.6108902", "0.6091119", "0.60885364", "0.60650474", "0.60645944", "0.60608923", "0.6049762", "0.60483813", "0.60452354", "0.60424674", "0.6032745", "0.60259765", "0.6020647", "0.59772795", "0.59710234", "0.5946505", "0.59395194", "0.5930971", "0.5910453", "0.5905321", "0.58933383", "0.5887885", "0.5887885", "0.5887691", "0.5883576", "0.58830935", "0.5861336" ]
0.80640686
0
Sets the desired response body.
public void setResponse(final String response) { handler.response = response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setBody(Object body) {\n\t\tsuper.setBody(body);\n\t}", "public void setBody(Object body) {\n this.body = body;\n }", "public void setResponseBody(String responseBody) {\n this.responseBody = responseBody;\n }", "public void setBody(Body body) {\n this.body = body;\n }", "public HttpBody setBody(String body) {\n this.body = body;\n return this;\n }", "public void setBody(byte[] body) {\n\t\t\tthis.body = body;\n\t\t}", "public void setBody_(String body_) {\n this.body_ = body_;\n }", "public void setBody(String body) {\r\n this.body = body;\r\n }", "public void setBody(byte[] body) {\n\t\tthis.body = body;\n\t}", "public void setBody(String body) {\n this.body = body;\n }", "public void setBody(String body)\n {\n this.body = body;\n }", "public void setBody(String newValue);", "void setBody(final Body body);", "private void setResponseBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n responseBody_ = value;\n }", "public void setBody(String body)\n\t{\n\t\tm_sBody=body;\t\n\t}", "public HttpsConnection setBody(final String body){\n this.mBody = body;\n return this;\n }", "public void setBody(AgentBody newBody) {\n\t\tbody = newBody;\n\t}", "public void setBody(BodyType _body) {\n this.body = _body;\n }", "public void setBody (String body) {\n\t\tresetText(body);\n\t}", "private void setResponseBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n responseBody_ = value.toStringUtf8();\n }", "public void setBody(String v) \n {\n \n if (!ObjectUtils.equals(this.body, v))\n {\n this.body = v;\n setModified(true);\n }\n \n \n }", "public void setBody(byte[] content) {\n this.body = content;\n }", "public Builder setBody(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n body_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setBody(java.lang.String body) {\n\t\t_news_Blogs.setBody(body);\n\t}", "private void clearResponseBody() {\n \n responseBody_ = getDefaultInstance().getResponseBody();\n }", "public void setBody(String body) {\n this.body = body;\n String params[] = body.split(\"&\");\n for (String param : params) {\n String keyValue[] = param.split(\"=\");\n parameters.put(keyValue[0], keyValue[1]);\n }\n\n }", "public void setBody(String content) {\n if (content != null) {\n setBody(content.getBytes(UTF_8));\n }\n else {\n setBody((byte[]) null);\n }\n }", "private void setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n }", "public Builder setBody(\n java.lang.String value) {\n copyOnWrite();\n instance.setBody(value);\n return this;\n }", "public void setResponse(HttpResponseWrapper response) {\n this.response = response;\n }", "public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n onChanged();\n return this;\n }", "RequestBody set(byte[] body);", "public Builder body(final Body body) {\n this.body = body;\n return this;\n }", "public Builder setResponseBody(\n java.lang.String value) {\n copyOnWrite();\n instance.setResponseBody(value);\n return this;\n }", "public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }", "public Builder setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }", "private void setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n body_ = value.toStringUtf8();\n }", "public void setMessageBody(T messageBody) {\n this.messageBody = messageBody;\n }", "public void setResponse(T response) {\n this.response = response;\n }", "public RestUtils setBinaryResponseBody(boolean binaryResponseBody)\n\t{\n\t\trestMethodDef.setBinaryResponseBody(binaryResponseBody);\n\t\treturn this;\n\t}", "void setBody (DBody body);", "public String getBody_() {\n return body_;\n }", "public void setBodyText(String bodyText) {\n this.bodyText = bodyText;\n }", "public String getBody() {\r\n return body;\r\n }", "public String getBody() {\n return body;\n }", "public String getBody() {\n return body;\n }", "public String getBody() {\n return body;\n }", "public StacLink body(Object body) {\n this.body = body;\n return this;\n }", "public void setBody(ClassBody body) {\n\t\tif(body == null) {\n\t\t\t_componentType.connectTo((Association)createComponentType(new ClassBody()).parentLink());\n\t\t} else {\n\t\t\t_componentType.connectTo((Association) createComponentType(body).parentLink());\n\t\t}\n\t}", "public Builder setResponseBodyBytes(\n com.google.protobuf.ByteString value) {\n copyOnWrite();\n instance.setResponseBodyBytes(value);\n return this;\n }", "public void setBody(ClassBodyNode body);", "public String getBody()\n {\n return body;\n }", "public String getBodyString() {\n return this.bodyString;\n }", "public Builder setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n body_ = value;\n onChanged();\n return this;\n }", "public String getBody () {\n\t\treturn body;\n\t}", "public Builder setBodyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n body_ = value;\n onChanged();\n return this;\n }", "public Body getBody() {\n return body;\n }", "public String getBody(){\n return body;\n }", "protected void setResponseStream(InputStream responseStream) {\n this.responseStream = responseStream;\n }", "public HttpResponseTarget(HttpServletResponse targetResponse) throws IOException {\n \n response = targetResponse;\n }", "public Builder setResponse(com.github.yeriomin.playstoreapi.ResponseWrapper value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "RequestBuilder setBody(Resource resource);", "public void setBody(UserModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }", "public void setBody(UserModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }", "public String getBody() {\n\t\treturn Body;\n\t}", "@Override\n public void setServletResponse(HttpServletResponse arg0) {\n this.response = arg0;\n }", "public void setResponseData(byte responseData[]) {\n this.responseData = responseData;\n }", "public java.lang.String getBody() {\n return body_;\n }", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\r\n\t}", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\r\n\t}", "public void setHttpResponse( HttpResponse resp ) {\r\n\tresponse=resp;\r\n }", "@Override\r\n\tpublic void setServletResponse(HttpServletResponse arg0) {\n\t\tthis.response = arg0;\r\n\t}", "public Object getBody() {\n return body;\n }", "public Builder setResponseBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }", "public void setResponse(String response) {\n this.response = response;\n }", "public void setResponse(String response) {\n this.response = response;\n }", "public void setPostBody(String postBody)\n\t\t{\n\t\t\tthis.postBody = postBody;\n\t\t}", "public java.lang.String getResponseBody() {\n return responseBody_;\n }", "public Builder clearResponseBody() {\n copyOnWrite();\n instance.clearResponseBody();\n return this;\n }", "private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000002;\n }", "public void setBody(AnimalModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }", "public void setBody(AnimalModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "@Override\n\tpublic void setServletResponse(HttpServletResponse response) {\n\t\tthis.response = response;\n\t}", "public Builder setResponse(\n com.github.yeriomin.playstoreapi.ResponseWrapper.Builder builderForValue) {\n if (responseBuilder_ == null) {\n response_ = builderForValue.build();\n onChanged();\n } else {\n responseBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n return this;\n }", "public String getBody() {\r\n\t\treturn mBody;\r\n\t}", "private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }", "private void setResponse(\n net.iGap.proto.ProtoResponse.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n \n }", "public Builder setResponse(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n response_ = value;\n onChanged();\n return this;\n }", "public void setResponse(int response) {\r\n this.response = response;\r\n }", "public RestUtils setPostBody(String postBody)\n\t{\n\t\trestMethodDef.setPostBody(postBody);\n\t\treturn this;\n\t}", "public void setBody(ASTNode body) {\n this.body = body;\n }", "private void setResponse(\n com.google.search.now.wire.feed.ResponseProto.Response.Builder builderForValue) {\n response_ = builderForValue.build();\n bitField0_ |= 0x00000001;\n }", "public String getBody()\n {\n return super.getBody();\n }", "public Builder setResponse(com.example.products.ResponseMessage value) {\n if (responseBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n response_ = value;\n onChanged();\n } else {\n responseBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setResponse(JSONObject res) { response = res; }", "public void setContent( final String content ) {\n setDefaultResponse(content, 200, \"OK\", \"text/html\");\n }", "public void setResponseObject(ResponseObject responseObject) {\n this.responseObject = responseObject;\n }" ]
[ "0.7214742", "0.70099443", "0.6997913", "0.6770455", "0.67645264", "0.67488754", "0.671159", "0.6710823", "0.6706858", "0.66868585", "0.6658837", "0.6658594", "0.66410094", "0.6562074", "0.6536637", "0.64999306", "0.64454895", "0.6408572", "0.634254", "0.6323636", "0.62647986", "0.6195022", "0.6172288", "0.61430144", "0.6059652", "0.60424787", "0.6040942", "0.6034085", "0.6021556", "0.6011058", "0.6009006", "0.5969518", "0.5924963", "0.5923138", "0.58444166", "0.5807268", "0.5798966", "0.5792091", "0.5756108", "0.5755783", "0.57252586", "0.56431615", "0.5638792", "0.5604936", "0.5587095", "0.5587095", "0.5587095", "0.55814135", "0.5543216", "0.5525969", "0.5522904", "0.55105275", "0.5501752", "0.54918957", "0.5451624", "0.544593", "0.54366577", "0.5427517", "0.54177374", "0.5417193", "0.53986925", "0.53974557", "0.53925204", "0.53925204", "0.537757", "0.537641", "0.5370074", "0.53561723", "0.53449506", "0.53449506", "0.5344815", "0.5342653", "0.53389347", "0.5330333", "0.53223777", "0.53223777", "0.53203595", "0.53197753", "0.530918", "0.5296769", "0.52953035", "0.52953035", "0.5294976", "0.5294976", "0.5294976", "0.5294976", "0.52903026", "0.52779186", "0.5262687", "0.5262687", "0.52613795", "0.5260517", "0.5253442", "0.52510786", "0.52374613", "0.52333075", "0.522809", "0.52104986", "0.52073514", "0.5205362" ]
0.5250729
94
Auto class visitorsprobably don't need to be overridden.
@Override public R visit(NodeList n, A argu) { R _ret = null; for (Enumeration<Node> e = n.elements(); e.hasMoreElements();) { e.nextElement().accept(this, argu); } return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "@Override\n\tpublic void VisitClassNode(BunClassNode Node) {\n\n\t}", "@Override\n public void visitClass(@NotNull PsiClass aClass) {\n }", "Object getClass_();", "Object getClass_();", "@Override\r\n\tpublic void visitJavaClass(JavaClass javaClass) {\n\t\t\r\n\t\t\r\n\t\tvisitClassName=javaClass.getClassName();\r\n\t\t\r\n\t\t//log.debug(\"className:+\"+visitClassName);\r\n\t\tsuper.visitJavaClass(javaClass);\r\n\t\t\r\n\t}", "@Override\n public void visit(ClassDefinitionNode classDefinitionNode) {\n }", "@Override\n public void generateClass(ClassVisitor classVisitor) throws Exception {\n ClassEmitter ce = new ClassEmitter(classVisitor);\n\n Map<Function, String> converterFieldMap = initClassStructure(ce);\n\n initDefaultConstruct(ce, converterFieldMap);\n\n buildMethod_getTargetInstanceFrom(ce);\n\n buildMethod_mergeProperties(ce, converterFieldMap);\n\n ce.end_class();\n }", "@Override\r\n\tpublic void transform(ClassNode cn) {\n\t\t\r\n\t}", "@Override\n\tpublic Void visit(ClassDef classDef) {\n\t\tprintIndent(\"class\");\n\t\tindent++;\n\t\tclassDef.self_type.accept(this);\n\t\tclassDef.base_type.accept(this);\n\t\tfor (var v : classDef.body)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "default boolean isClass() {\n return false;\n }", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "protected DiagClassVisitor() {\n super(ASM5);\n }", "@Override\n public String visit(ClassExpr n, Object arg) {\n return null;\n }", "@Override\r\n\tpublic void visit(ClassDeclNode classDeclaration) {\n\t\tsuper.visit(classDeclaration);\r\n\t}", "public abstract void visit();", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "protected DiagClassVisitor(ClassVisitor cv) {\n super(ASM5, cv);\n }", "@Override\n\tpublic void visit(OWLClass cls) {\n\t\taddFact(RewritingVocabulary.CLASS, cls.getIRI());\n\t}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "@Override\n\tpublic void visit(Instanceof n) {\n\t\t\n\t}", "public void visitClass(@NotNull PsiClass aClass) {\n if (aClass.isInterface() || aClass.isAnnotationType() ||\n aClass.isEnum()) {\n return;\n }\n if (aClass instanceof PsiTypeParameter ||\n aClass instanceof PsiAnonymousClass) {\n return;\n }\n if (m_ignoreSerializableDueToInheritance) {\n if (!SerializationUtils.isDirectlySerializable(aClass)) {\n return;\n }\n }\n else {\n if (!SerializationUtils.isSerializable(aClass)) {\n return;\n }\n }\n final boolean hasReadObject = SerializationUtils.hasReadObject(aClass);\n final boolean hasWriteObject = SerializationUtils.hasWriteObject(aClass);\n\n if (hasWriteObject && hasReadObject) {\n return;\n }\n registerClassError(aClass);\n }", "private ClassProxy() {\n }", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "public interface ClassNode\n{\n}", "@Override\n\tpublic void attendClass() {\n\t\tSystem.out.println(\"Attanding class locally\");\n\t}", "public void visit(ClassOrInterfaceDeclaration arg0, Object arg1) {\n\t \tclassName = arg0.getName();\n\t \tisInterface = arg0.toString().indexOf(\"interface\")!=-1;\n\t \tisAbstract = arg0.toString().indexOf(\"abstract\")!=-1;\n\t \tmyClasses.add(className);\n\t \tfor(Iterator<?> it = arg0.getImplements().iterator(); it.hasNext();)\n\t \t\tinheritance += className + \" ..|> \" + it.next() + \"\\n\";\n\t \tfor(Iterator<?> it = arg0.getExtends().iterator(); it.hasNext();)\n\t \t\tinheritance += className + \" ---|> \" +it.next() + \"\\n\";\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "public void accept(Visitor v) {\n/* 103 */ v.visitLoadClass(this);\n/* 104 */ v.visitAllocationInstruction(this);\n/* 105 */ v.visitExceptionThrower(this);\n/* 106 */ v.visitStackProducer(this);\n/* 107 */ v.visitTypedInstruction(this);\n/* 108 */ v.visitCPInstruction(this);\n/* 109 */ v.visitNEW(this);\n/* */ }", "@Override\n\tpublic void inAClass(AClass node) {\n\t\tString className = node.getType().getText();\n\t\tcurrentClass = topLevelSymbolTable.get(className);\n\t\tif (currentClass.isAbstract()){\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER | Constants.ACC_ABSTRACT, null);\n\t\t}else{\n\t\t\tcg = new ClassGen(className, currentClass.getSuper().getType().className, this.fileName, Constants.ACC_PUBLIC | Constants.ACC_SUPER, null);\n\t\t}\n\t\tcp = cg.getConstantPool(); \n\t}", "@Override\r\n public void process(CtClass<?> clazz) {\r\n this.processClass(clazz);\r\n }", "public JCheckClassAdapter(final ClassVisitor cv) {\n super(cv);\n }", "@Override\n public void accept(TreeVisitor visitor) {\n }", "protected Class<? extends DeciTree<S>> getTreeClassHook() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "@Override\n public boolean shouldSkipClass(Class<?> arg0) {\n return false;\n }", "@Override\n public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {\n if (!Type.isParameterizedType(name)) {\n frontClassName = name;\n super.visit(COMPILER_VERSION, access, name, signature, superName, interfaces);\n return;\n }\n // The class is anyfied. Cleaning the class frontClassName into the raw frontClassName.\n frontClassName = name;\n String rawName = Type.rawName(name);\n // The inheritance is not handled for anyfied class yet.\n if (superName != null && !superName.equals(\"java/lang/Object\")) {\n throw new IllegalStateException(\"Not inheritance allowed.\");\n }\n super.visit(COMPILER_VERSION, access, rawName, signature, superName, interfaces);\n // Creating the back class inside the any package, by concatenating \"_BackFactory\".\n // Now creating a back factory class, placed inside the package java/any\".\n createBackClassVisitor(COMPILER_VERSION, rawName);\n // Creating an Object field inside the class. It will be used to store the back class at runtime.\n super.visitField(Opcodes.ACC_PUBLIC + Opcodes.ACC_FINAL, BACK_FIELD, \"Ljava/lang/Object;\", null, null);\n createFrontSpecializationConstructor(rawName);\n }", "public interface Visitor {\n\n public void visitCode(Code obj);\n\n public void visitCodeException(CodeException obj);\n\n public void visitConstantClass(ConstantClass obj);\n\n public void visitConstantDouble(ConstantDouble obj);\n\n public void visitConstantFieldref(ConstantFieldref obj);\n\n public void visitConstantFloat(ConstantFloat obj);\n\n public void visitConstantInteger(ConstantInteger obj);\n\n public void visitConstantInterfaceMethodref(ConstantInterfaceMethodref obj);\n\n public void visitConstantLong(ConstantLong obj);\n\n public void visitConstantMethodref(ConstantMethodref obj);\n\n public void visitConstantNameAndType(ConstantNameAndType obj);\n\n public void visitConstantPool(ConstantPool obj);\n\n public void visitConstantString(ConstantString obj);\n\n public void visitConstantUtf8(ConstantUtf8 obj);\n\n public void visitConstantValue(ConstantValue obj);\n\n public void visitDeprecated(Deprecated obj);\n\n public void visitExceptionTable(ExceptionTable obj);\n\n public void visitField(Field obj);\n\n public void visitInnerClass(InnerClass obj);\n\n public void visitInnerClasses(InnerClasses obj);\n\n public void visitJavaClass(JavaClass obj);\n\n public void visitLineNumber(LineNumber obj);\n\n public void visitLineNumberTable(LineNumberTable obj);\n\n public void visitLocalVariable(LocalVariable obj);\n\n public void visitLocalVariableTable(LocalVariableTable obj);\n\n public void visitMethod(Method obj);\n\n public void visitSignature(Signature obj);\n\n public void visitSourceFile(SourceFile obj);\n\n public void visitSynthetic(Synthetic obj);\n\n public void visitUnknown(Unknown obj);\n\n public void visitStackMap(StackMap obj);\n\n public void visitStackMapEntry(StackMapEntry obj);\n\n // Java5\n public void visitEnclosingMethod(EnclosingMethod obj);\n\n public void visitRuntimeVisibleAnnotations(RuntimeVisibleAnnotations obj);\n\n public void visitRuntimeInvisibleAnnotations(RuntimeInvisibleAnnotations obj);\n\n public void visitRuntimeVisibleParameterAnnotations(RuntimeVisibleParameterAnnotations obj);\n\n public void visitRuntimeInvisibleParameterAnnotations(RuntimeInvisibleParameterAnnotations obj);\n\n public void visitAnnotationDefault(AnnotationDefault obj);\n\n public void visitLocalVariableTypeTable(LocalVariableTypeTable obj);\n}", "public Visitor() {}", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "public void firstClass(){\n }", "public interface AnonymousClass0RF {\n}", "@Override\n\tpublic void accept(TreeVisitor visitor) {\n\n\t}", "@Override\n\tpublic void implements_(JDefinedClass cls) {\n\n\t}", "@Override\n public Node override(Node n) {\n if (n instanceof ClassMember && !(n instanceof ClassDecl)) {\n return n;\n }\n\n return null;\n }", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}", "@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "protected JBuilderRenameClassRefactoring()\n\t{\n\t\tsuper();\n\t}", "public abstract Class resolveClass(GenerationContext context);", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "StackManipulation virtual(TypeDescription invocationTarget);", "@Override\n\tpublic void accept(NodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\n public void visit(ClassOrInterfaceDeclaration id, JSONObject data) {\n classObject = new JSONObject();\n String previousClass = currectClass;\n currectClass = solver.solve(id.getNameAsString(), \"\", \"\");\n if (currectClass == null)\n return;\n super.visit(id, data);\n if (!classObject.isEmpty())\n ((JSONObject) data.get(\"classes\")).put(currectClass, classObject);\n currectClass = previousClass;\n }", "@Override\n\tpublic void testPringt() {\n\t\tSystem.out.println(\"我是一个被代理的类\");\n\t}", "@Override\r\n \tpublic final void accept(IASTNeoVisitor visitor) {\r\n \t\tassertNotNull(visitor);\r\n \t\t\r\n \t\t// begin with the generic pre-visit\r\n \t\tif(visitor.preVisit(this)) {\r\n \t\t\t// dynamic dispatch to internal method for type-specific visit/endVisit\r\n \t\t\taccept0(visitor);\r\n \t\t}\r\n \t\t// end with the generic post-visit\r\n \t\tvisitor.postVisit(this);\r\n \t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public TargetClass() {\n super();\n }", "@Override\n public String visit(LocalClassDeclarationStmt n, Object arg) {\n return null;\n }", "@Override\n\tpublic void VisitInstanceOfNode(BunInstanceOfNode Node) {\n\n\t}", "public void traverse(\n\t\tASTVisitor visitor,\n\t\tClassScope classScope) {\n\t}", "public static interface Enhancer{\r\n\t\t\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime);\r\n\t}", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tpublic String visitClassDeclaration(ClassDeclarationContext ctx){\n\t\ttable.enterScope();\t\t\n\t\tvisit(ctx.getChild(4)); //visit methodList. \n\t\ttable.exitScope();\n\t\treturn null;\n\t}", "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 }", "public interface Visitor {\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param user\n */\n void visit(User user);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param entitlement\n */\n void visit(Entitlement entitlement);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param authToken\n */\n void visit(AuthToken authToken);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @param resource\n */\n void visit(Resource resource);\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isValidStatus();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isValidExpTime();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isHasPermissions();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n boolean isHasResources();\n\n /**\n * please refer to the java doc inside the implementation classes\n * @return\n */\n User getUserUnderValidation();\n\n}", "@Override\n public Object visitClassDecl(ClassDecl decl) {\n //look up the superclass name int he GST\n if (decl.superName == null || decl.superName.equals(\"\")) {\n return null;\n }\n //throw an error if there is no super name\n\n if (!globalSymTab.containsKey(decl.superName)) {\n errorMsg.error(decl.pos, \"Undefined class declaration.\");\n }\n //add the class to the list of subclasses from the GST\n else {\n decl.superLink = globalSymTab.get(decl.superName);\n decl.superLink.subclasses.addElement(decl);\n }\n return null;\n }", "public interface Acceptor {\n\n /**\n * Accepts a visitor for further processing.\n *\n * @param visitor the visitor class to accept.\n */\n void accept(Visitor visitor);\n}", "public void visit(MyClassDecl myClassDecl) {\n\t\tif (regularClassExtendsAbstractClass == 1) { \t\t\t\r\n\t\t\tArrayList<Struct> nadklase = new ArrayList<>();\r\n\t\t\t\r\n//\t\t\tMyExtendsClass extClass = (MyExtendsClass) myClassDecl.getExtendsClass();\r\n//\t\t\tStruct parentClassNode = extClass.getType().struct;\r\n\t\t\t\r\n\t\t\tStruct parentClassNode = currentClass.getElemType();\r\n\t\t\t\r\n\t\t\twhile (parentClassNode != null && parentClassNode.getKind() == Struct.Interface ) { \r\n\t\t\t\tnadklase.add(0, parentClassNode);\r\n\t\t\t\tparentClassNode = parentClassNode.getElemType();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tArrayList<Obj> finalMemebrs = new ArrayList<>();\r\n\t\t\tif (nadklase.size() > 0) {\r\n\t\t\t\tCollection<Obj> membersAbsClass = nadklase.get(0).getMembers();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tfor (Iterator<Obj> iter = membersAbsClass.iterator();iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0) { // only abstract methods\r\n\t\t\t\t\t\tfinalMemebrs.add(elem);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < nadklase.size(); i++) {\r\n\t\t\t\tCollection<Obj> membersSubClass = nadklase.get(i).getMembers();\r\n\t\t\t\tfor(Iterator<Obj> iter = membersSubClass.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0 ) { // abs method\r\n\t\t\t\t\t\tfinalMemebrs.add(elem); // da li treba da proveravam ako ga vec ima u nizu da ga ne ubacujem, mada mi sustinski ne smeta ako se ponovi?\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(elem.getKind() == Obj.Meth && elem.getFpPos() >= 0) { // ne abs method\r\n\t\t\t\t\t\tfor(int j = 0;j <finalMemebrs.size() ; j++) {\r\n\t\t\t\t\t\t\tif (mojeEquals(elem, finalMemebrs.get(j))) {\r\n\t\t\t\t\t\t\t\tfinalMemebrs.remove(j);\r\n\t\t\t\t\t\t\t\tj--;\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\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//22.6.2020 ako klasa nema ni jedno polje preskoci\r\n\t\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\t\r\n\t\t\t\tCollection<Obj> myMembers = Tab.currentScope.getLocals().symbols();\r\n\t\t\t\t\r\n\t\t\t\tint allImplemented = 1;\r\n\t\t\t\tfor (int i = 0 ; i < finalMemebrs.size();i++) {\r\n\t\t\t\t\tObj elem = finalMemebrs.get(i);\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0) {//abstract method\r\n\t\t\t\t\t\tint nasao = 0;\r\n\t\t\t\t\t\tfor(Iterator<Obj> iterator2 = myMembers.iterator();iterator2.hasNext();) {\r\n\t\t\t\t\t\t\tObj meth = iterator2.next();\r\n\t\t\t\t\t\t\tif (mojeEquals(meth, elem)) {\r\n\t\t\t\t\t\t\t\tnasao = 1;\r\n\t\t\t\t\t\t\t\tbreak;\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\r\n\t\t\t\t\t\tif (nasao == 0) {\r\n\t\t\t\t\t\t\tallImplemented = 0;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\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\r\n\t\t\t\tif (allImplemented == 0) {\r\n\t\t\t\t\treport_error (\"Semanticka greska na liniji \" + myClassDecl.getLine() + \": klasa izvedena iz apstraktne klase mora implementirati sve njene apstraktne metode!\", null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//22.6.2020 ako klasa nema ni jedno polje a ima abstraktnih metoda koje treba da implementira greska\r\n\t\t\telse {\r\n\t\t\t\tif (finalMemebrs.size()>0) {\r\n\t\t\t\t\treport_error (\"Semanticka greska na liniji \" + myClassDecl.getLine() +\r\n\t\t\t\t\t\t\t\": klasa izvedena iz apstraktne klase mora implementirati sve njene apstraktne metode!\", null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\r\n\t\tStruct pred = currentClass.getElemType();\r\n\t\tint predNum = 0;\r\n\t\tif (pred != null) {\r\n\t\t\t\r\n\t\t\twhile(pred != null) {\r\n\t\t\t\tpredNum += pred.getNumberOfFields();\r\n\t\t\t\tpred = pred.getElemType();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// 22.6.2020 ako je klasa prazna preskoci\r\n\t\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\t\tfor(Iterator<Obj> iter = Tab.currentScope().getLocals().symbols().iterator();iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\telem.setAdr(elem.getAdr() + predNum);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 22.6.2020 ako je klasa prazna preskoci\r\n\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\tfor(Iterator<Obj> iter = Tab.currentScope().getLocals().symbols().iterator();iter.hasNext();) {\r\n\t\t\t\tObj elem = iter.next();\r\n\t\t\t\telem.setAdr(elem.getAdr() + 1); // sacuvaj mesto za pok. na tabelu virtuelnih f-ja\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tTab.chainLocalSymbols(currentClass);\r\n \tTab.closeScope();\r\n \tcurrentClass = null;\r\n\t}", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void buildDefaultMethods(JDefinedClass cls) {\n\n\t}", "private RubyClass defineClassIfAllowed(String name, RubyClass superClass) {\n if (superClass != null && profile.allowClass(name)) {\n return defineClass(name, superClass, superClass.getAllocator());\n }\n return null;\n }", "public boolean doGeneration(Class<?> clazz);", "@Override\n\tpublic void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "public interface ClassTranslator {\n\n /**\n * Get the translation manager\n */\n public TranslatorManager getManager();\n \n /**\n * Write the class implementation into the given code block\n * \n * @param code the target avm2 code block\n */\n public void translateImplementation( Code code );\n \n /**\n * Write the code to instantiate this class\n * \n * @param method the method being written\n * @param newInsn the instruction being translated \n */\n public void translateInstantiation( MethodTranslator method, New newInsn );\n \n /**\n * Translate an instanceof operation\n * \n * @param method the method being written\n * @param instOfInsn the instanceOf instruction\n */\n public void translateInstanceOf( MethodTranslator method, InstanceOf instOfInsn );\n \n /**\n * Generate instruction(s) to push the static class object (that holds the\n * static properties and methods) on the stack.\n * \n * @param method the method being written\n */\n public void translateStaticPush( MethodTranslator method );\n \n /**\n * Get the translator for the superclass\n * \n * @return null if there is no superclass\n */\n public ClassTranslator getSuperclass();\n \n /**\n * Get the implemented interfaces\n * @return empty collection if none\n */\n public Collection<ClassTranslator> getInterfaces();\n \n /**\n * Get the translator for the given method - looking in superclasses\n * if necessary.\n * \n * @param sig the JVM signature of the method\n * @throws NoSuchMethodException if the method cannot be found\n */\n public MethodTranslator getMethodTranslator( ClassTranslator owner, Signature sig ) throws NoSuchMethodException;\n \n /**\n * Get the translator for the given field - looking in superclasses\n * if necessary\n * \n * @param name the JVM field name\n * @throws NoSuchFieldException if the field cannot be found\n */\n public FieldTranslator getFieldTranslator( ClassTranslator owner, String name ) throws NoSuchFieldException;\n \n /**\n * Get the JVM type\n */\n public ObjectType getJVMType();\n \n /**\n * Get the AVM2 name for the class\n */\n public AVM2QName getAVM2Name(); \n\n /**\n * Get the AVM2 protected namespace of the class\n */\n public AVM2Namespace getAVM2ProtectedNamespace();\n \n /**\n * Get the AVM2 internal namespace of the class\n */\n public AVM2Namespace getAVM2InternalNamespace();\n\n /**\n * Get the AVM2 private namespace of the class\n */\n public AVM2Namespace getAVM2PrivateNamespace();\n \n /**\n * Get the specified Java annotation\n * @return null if the annotation does not exist\n */\n public JavaAnnotation getAnnotation( String name );\n \n /**\n * Whether the class is an interface\n */\n public boolean isInterface();\n}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void visit(NodeVisitor v){\n v.visit(this);\n }", "public Object VisitClasses(ASTClasses classes){\n for (int i = 0; i <classes.size(); i++) {\n classes.elementAt(i).Accept(this);\n }\n return null;\n }", "@Override\n\tpublic Object accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "@Override\n public void visit(ClassOrInterfaceDeclaration n, Object arg) {\n \tif(n.getJavaDoc()!=null){\n \t\tclassInfo.add(n.getName());\n\t \tString comment = n.getJavaDoc().getContent();\n\t \tcomment = comment.replaceAll(\"\\\\* @param (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @return (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* @throws (.*)\",\"\");\n\t \tcomment = comment.replaceAll(\"\\\\* \",\"\");\n\t \tcomment = comment.replaceAll(\"(?s)\\\\*(.*)\",\"\");\n\t \tclassInfo.add(comment.trim()); \n \t}\n \t}", "@Override\n protected void prot() {\n }", "public interface AnonymousClass4O {\n}", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "public interface IClass extends IVisible, IMetaDataListHolder, INamableNode, IAsDocHolder, ICommentHolder\n{\n /**\n * @return\n */\n List< IAttribute > getAttributes();\n\n /**\n * @return\n */\n double getAverageCyclomaticComplexity();\n\n /**\n * @return\n */\n IParserNode getBlock();\n\n /**\n * @return\n */\n List< IConstant > getConstants();\n\n /**\n * @return\n */\n IFunction getConstructor();\n\n /**\n * @return\n */\n String getExtensionName();\n\n /**\n * @return\n */\n List< IFunction > getFunctions();\n\n /**\n * @return\n */\n List< IParserNode > getImplementations();\n\n /**\n * @return\n */\n boolean isBindable();\n\n /**\n * @return\n */\n boolean isFinal();\n}", "@Override\n public ClassTree declaration() {\n return null;\n }", "@Override\n\tpublic void jugar() {}", "public Object visit(Class_ node){\n currentClass = node.getName();\n ClassTreeNode treeNode = classMap.get(currentClass);\n\n treeNode.getMethodSymbolTable().enterScope();\n treeNode.getVarSymbolTable().enterScope();\n\n super.visit(node);\n //treeNode.getMethodSymbolTable().exitScope();\n treeNode.getVarSymbolTable().exitScope();\n return null;\n }", "final void mo6074a(Class cls) {\n if (this.f2339b == null) {\n super.mo6074a(cls);\n }\n }", "final void mo6074a(Class cls) {\n if (this.f2339b == null) {\n super.mo6074a(cls);\n }\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public <T> T accept(Visitor<T> v) {\n return v.visit(this);\n }", "public abstract <T> T mo33265b(Class<T> cls) throws Exception;", "@Override\r\n\tpublic void visitar(jugador jugador) {\n\t\t\r\n\t}", "public abstract void accept(Visitor visitor);", "public void visit(Instanceof i) {}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}" ]
[ "0.7236333", "0.69032633", "0.67377967", "0.6487067", "0.6487067", "0.6384801", "0.6382866", "0.6252293", "0.6200888", "0.6179769", "0.6178483", "0.61233836", "0.6103443", "0.60346556", "0.6033455", "0.6007175", "0.6001314", "0.59754306", "0.59126645", "0.586849", "0.58565784", "0.58392644", "0.58039224", "0.57944393", "0.57772166", "0.57610184", "0.5733837", "0.5733527", "0.5725587", "0.569986", "0.56693304", "0.56642365", "0.56577826", "0.56444365", "0.5629003", "0.56237876", "0.56041574", "0.55817056", "0.55707943", "0.5550242", "0.55494946", "0.5546101", "0.5541522", "0.553486", "0.5524509", "0.551807", "0.55166817", "0.5503358", "0.5485012", "0.5477935", "0.5477065", "0.5473583", "0.5470281", "0.5434842", "0.5406536", "0.5406536", "0.54027593", "0.5400537", "0.53947306", "0.53921825", "0.5385749", "0.53815323", "0.53793126", "0.53789204", "0.5374168", "0.53672445", "0.5361941", "0.53605723", "0.5360211", "0.5356324", "0.5356324", "0.53543025", "0.53438294", "0.5341633", "0.53398466", "0.533576", "0.5334126", "0.5328462", "0.5326059", "0.5320895", "0.5318128", "0.5316664", "0.5304498", "0.5295096", "0.5291966", "0.5283597", "0.5283597", "0.52829", "0.5282889", "0.52818906", "0.527219", "0.5265629", "0.5265629", "0.5253524", "0.52448696", "0.52330726", "0.5228329", "0.5228272", "0.52269185", "0.5217711", "0.5217711" ]
0.0
-1
Usergenerated visitor methods below prologue > Prologue() nodeChoice > ( SelectQuery() | ConstructQuery() | DescribeQuery() | AskQuery() )
@Override public R visit(Query n, A argu) { R _ret = null; n.prologue.accept(this, argu); n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public void Query() {\n }", "@Override\n\tpublic Object accept(QueryVisitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "@Override\n public R visit(DescribeQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public final void prog() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:54:5: ( ( query )+ )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:54:9: ( query )+\r\n {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:54:9: ( query )+\r\n int cnt1=0;\r\n loop1:\r\n do {\r\n int alt1=2;\r\n int LA1_0 = input.LA(1);\r\n\r\n if ( (LA1_0==SELECT||LA1_0==INSERT||LA1_0==UPDATE) ) {\r\n alt1=1;\r\n }\r\n\r\n\r\n switch (alt1) {\r\n \tcase 1 :\r\n \t // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:54:9: query\r\n \t {\r\n \t pushFollow(FOLLOW_query_in_prog39);\r\n \t query();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t if ( cnt1 >= 1 ) break loop1;\r\n EarlyExitException eee =\r\n new EarlyExitException(1, input);\r\n throw eee;\r\n }\r\n cnt1++;\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "protected abstract void onQueryStart();", "@Override\n public R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "Query query();", "public final AstValidator.query_return query() throws RecognitionException {\n AstValidator.query_return retval = new AstValidator.query_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree QUERY1=null;\n AstValidator.statement_return statement2 =null;\n\n\n CommonTree QUERY1_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:113:7: ( ^( QUERY ( statement )* ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:113:9: ^( QUERY ( statement )* )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n QUERY1=(CommonTree)match(input,QUERY,FOLLOW_QUERY_in_query80); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n QUERY1_tree = (CommonTree)adaptor.dupNode(QUERY1);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(QUERY1_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:113:18: ( statement )*\n loop1:\n do {\n int alt1=2;\n int LA1_0 = input.LA(1);\n\n if ( (LA1_0==ASSERT||LA1_0==REGISTER||LA1_0==SPLIT||LA1_0==REALIAS||LA1_0==STATEMENT) ) {\n alt1=1;\n }\n\n\n switch (alt1) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:113:18: statement\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_statement_in_query82);\n \t statement2=statement();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, statement2.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop1;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public void selectQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tResultSet result = qe.execSelect();\n\t\tprintResultSet(result);\n\t\tqe.close();\n\t}", "final public Exp SelectQuery(Metadata la) throws ParseException {\n Exp stack;\n jj_consume_token(SELECT);\n Debug();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case NOSORT:\n jj_consume_token(NOSORT);\n astq.setSorted(false);\n break;\n default:\n jj_la1[64] = jj_gen;\n ;\n }\n OneMoreListMerge();\n GroupCountSortDisplayVar();\n Max();\n label_14:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case FROM:\n ;\n break;\n default:\n jj_la1[65] = jj_gen;\n break label_14;\n }\n DatasetClause();\n }\n stack = WhereClause();\n SolutionModifier();\n astq.setResultForm(ASTQuery.QT_SELECT);\n astq.setAnnotation(la);\n {if (true) return stack;}\n throw new Error(\"Missing return statement in function\");\n }", "public QueryExecution createQueryExecution(Query qry);", "public abstract void applyToQuery(DatabaseQuery theQuery, GenerationContext context);", "public void customerQuery(){\n }", "public abstract DatabaseQuery createDatabaseQuery(ParseTreeContext context);", "public interface Query {\n\n\t/**\n\t * @return ID of the given query\n\t */\n\tint queryID();\n\t\n\t/**\n\t * @return given query\n\t */\n\tString query();\n\t\n\t/**\n\t * @return list of relevant documents to the corresponding query\n\t */\n\tList<RelevanceInfo> listOfRelevantDocuments();\n\t\n\t/**\n\t * @return list of results to the corresponding query after running one of the retrieval models\n\t */\n\tList<Result> resultList();\n\t\n\t/**\n\t * @param resultList\n\t * @Effects adds results to the result list of the corresponding query\n\t */\n\tvoid putResultList(List<Result> resultList);\n}", "public abstract Statement queryToRetrieveData();", "void runQueries();", "Query queryOn(Connection connection);", "SelectQuery createSelectQuery();", "private void generateQuery() {\n\t\tString edgeType = \"\";\n\n\t\tif (isUnionTraversal || isTraversal || isWhereTraversal) {\n\t\t\tString previousNode = prevsNode;\n\t\t\tif (isUnionTraversal) {\n\t\t\t\tpreviousNode = unionMap.get(unionKey);\n\t\t\t\tisUnionTraversal = false;\n\t\t\t}\n\n\t\t\tEdgeRuleQuery edgeRuleQuery = new EdgeRuleQuery.Builder(previousNode, currentNode).build();\n\t\t\tEdgeRule edgeRule = null;\n\n\t\t\ttry {\n\t\t\t\tedgeRule = edgeRules.getRule(edgeRuleQuery);\n\t\t\t} catch (EdgeRuleNotFoundException | AmbiguousRuleChoiceException e) {\n\t\t\t}\n\n\t\t\tif (edgeRule == null) {\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t} else if (\"none\".equalsIgnoreCase(edgeRule.getContains())){\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t}else {\n\t\t\t\tedgeType = \"EdgeType.TREE\";\n\t\t\t}\n\n\t\t\tquery += \".createEdgeTraversal(\" + edgeType + \", '\" + previousNode + \"','\" + currentNode + \"')\";\n\n\t\t}\n\n\t\telse\n\t\t\tquery += \".getVerticesByProperty('aai-node-type', '\" + currentNode + \"')\";\n\t}", "public void parseSelect(StatementTree sTree) {\r\n\r\n\t}", "public abstract String createQuery();", "@Override\n\tpublic void enterDslStatement(AAIDslParser.DslStatementContext ctx) {\n\t\tif (isUnionBeg) {\n\t\t\tisUnionBeg = false;\n\t\t\tisUnionTraversal = true;\n\n\t\t} else if (unionMembers > 0) {\n\t\t\tunionMembers--;\n\t\t\tquery += \",builder.newInstance()\";\n\t\t\tisUnionTraversal = true;\n\t\t}\n\n\t}", "@Override\n\tpublic Void visit(Program program) {\n\t\tprintIndent(\"program\");\n indent++;\n for (var stmt : program.stmts) {\n \tstmt.accept(this);\n }\n indent--;\n\t\treturn null;\n\t}", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "private void executeQuery() {\n }", "private void selectOperator() {\n String query = \"\";\n System.out.print(\"Issue the Select Query: \");\n query = sc.nextLine();\n query.trim();\n if (query.substring(0, 6).compareToIgnoreCase(\"select\") == 0) {\n sqlMngr.selectOp(query);\n } else {\n System.err.println(\"No select statement provided!\");\n }\n }", "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "@Override\r\n public void onShowQueryResult() {\n }", "void visit(final Select select);", "abstract public void onQueryRequestArrived(ClientQueryRequest request);", "private static Boolean specialQueries(String query) throws ClassNotFoundException, InstantiationException, IllegalAccessException {\n clickList = false;\n //newCorpus = true;\n\n if (query.equals(\"q\")) {\n\n System.exit(0);\n return true;\n }\n\n String[] subqueries = query.split(\"\\\\s+\"); //split around white space\n\n if (subqueries[0].equals(\"stem\")) //first term in subqueries tells computer what to do \n {\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n TokenProcessor processor = new NewTokenProcessor();\n if (subqueries.length > 1) //user meant to stem the token not to search stem\n {\n List<String> stems = processor.processToken(subqueries[1]);\n\n //clears list and repopulates it \n String stem = \"Stem of query '\" + subqueries[1] + \"' is '\" + stems.get(0) + \"'\";\n\n GUI.ResultsLabel.setText(stem);\n\n return true;\n }\n\n } else if (subqueries[0].equals(\"vocab\")) {\n List<String> vocabList = Disk_posIndex.getVocabulary();\n GUI.JListModel.clear();\n GUI.ResultsLabel.setText(\"\");\n\n int vocabCount = 0;\n for (String v : vocabList) {\n if (vocabCount < 1000) {\n vocabCount++;\n GUI.JListModel.addElement(v);\n }\n }\n GUI.ResultsLabel.setText(\"Total size of vocabulary: \" + vocabCount);\n return true;\n }\n\n return false;\n }", "private static void queryBook(){\n\t\tSystem.out.println(\"===Book Queries Menu===\");\n\t\t\n\t\t/*Display menu options*/\n\t\tSystem.out.println(\"1--> Query Books by Author\");\n\t\tSystem.out.println(\"2--> Query Books by Genre\");\n\t\tSystem.out.println(\"3--> Query Books by Publisher\");\n\t\tSystem.out.println(\"Any other number --> Exit To Main Menu\");\n\t\tSystem.out.println(\"Enter menu option: \");\n\t\tint menu_option = getIntegerInput(); //ensures user input is an integer value\n\t\t\n\t\tswitch(menu_option){\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByAuthor();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByGenre();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByPublisher();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void newQuery(String query){\n\t\tparser = new Parser(query);\n\t\tQueryClass parsedQuery = parser.createQueryClass();\n\t\tqueryList.add(parsedQuery);\n\t\t\n\t\tparsedQuery.matchFpcRegister((TreeRegistry)ps.getRegistry());\n\t\tparsedQuery.matchAggregatorRegister();\n\t\t\n\t\t\n\t}", "public ResultSet exicutionSelect(Connection con, String Query) throws SQLException {\n\tStatement stmt = con.createStatement();\n\t\n\t// step4 execute query\n\t\tResultSet rs = stmt.executeQuery(Query);\n\t\treturn rs;\n\t\n\t}", "boolean isIsQuery();", "SparqlResultObject callSelectQuery(String name, Map<String, String> params);", "public static void increaseQueryLevel() {\n\t\tif (!running) return;\n\t\t\n\t\tstate.queryLevel++;\n\t\tstate.currentLevelStore = state.currentLevelStore.getNextLevel();\n\t}", "public T caseQuery(Query object)\n {\n return null;\n }", "protected boolean query() {\r\n\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator())\r\n\t\t\t\t+ processQueryPublisher(queryBk.getPublisher()));\r\n\t\tSystem.out.println(queryStr);\r\n\t\t// if edition is 'lastest' (coded '0'), no query is performed; and\r\n\t\t// return false.\r\n\t\tif (queryBk.parseEdition() == 0) {\r\n\t\t\treturn false;\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * The following section adds edition info to the query string if edition no. is\r\n\t\t * greater than one. By cataloging practice, for the first edition, probably\r\n\t\t * there is NO input on the associated MARC field. Considering this, edition\r\n\t\t * query string to Primo is NOT added if querying for the first edition or no\r\n\t\t * edition is specified.\r\n\t\t */\r\n\t\tif (queryBk.parseEdition() > 1) {\r\n\t\t\tqueryStr += processQueryEdition(queryBk.parseEdition());\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * Querying the Primo X-service; and invoking the matching processes (all done\r\n\t\t * by remoteQuery()).\r\n\t\t */\r\n\t\tif (strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * For various reasons, there are possibilities that the first query fails while\r\n\t\t * a match should be found. The follow work as remedy queries to ensure the\r\n\t\t * accuracy.\r\n\t\t */\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryPublisher(queryBk.getPublisher()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublishYear())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryYear(queryBk.getPublishYear()));\r\n\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryTitleShort(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional query for Chinese titles\r\n\r\n\t\tif (!match && (CJKStringHandling.isCJKString(queryBk.getTitle())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getCreator())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getPublisher()))) {\r\n\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\r\n\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition2(queryBk.parseEdition()));\r\n\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\tmatch = true;\r\n\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmatch = false;\r\n\t\t\t\t} // end if\r\n\r\n\t\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition3(queryBk.parseEdition()));\r\n\t\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\t\tmatch = true;\r\n\t\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmatch = false;\r\n\t\t\t\t\t} // end if\r\n\t\t\t\t} // end if\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional check for ISO Document number in <search> <genernal> PNX\r\n\t\t// tag\r\n\t\tif (!match && !CJKStringHandling.isCJKString(queryBk.getTitle())) {\r\n\t\t\tqueryStr = new String(processQueryTitleISODoc(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t\terrMsg += \"Query: No record found on Primo.\" + Config.QUERY_SETTING;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\t\treturn false;\r\n\t}", "private void performNewQuery(){\n\n // update the label of the Activity\n setLabelForActivity();\n // reset the page number that is being used in queries\n pageNumberBeingQueried = 1;\n // clear the ArrayList of Movie objects\n cachedMovieData.clear();\n // notify our MovieAdapter about this\n movieAdapter.notifyDataSetChanged();\n // reset endless scroll listener when performing a new search\n recyclerViewScrollListener.resetState();\n\n /*\n * Loader call - case 3 of 3\n * We call loader methods as we have just performed reset of the data set\n * */\n // initiate a new query\n manageLoaders();\n\n }", "private void executeQuery()\n {\n ResultSet rs = null;\n try\n { \n String author = (String) authors.getSelectedItem();\n String publisher = (String) publishers.getSelectedItem();\n if (!author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (authorPublisherQueryStmt == null)\n authorPublisherQueryStmt = conn.prepareStatement(authorPublisherQuery);\n authorPublisherQueryStmt.setString(1, author);\n authorPublisherQueryStmt.setString(2, publisher);\n rs = authorPublisherQueryStmt.executeQuery();\n }\n else if (!author.equals(\"Any\") && publisher.equals(\"Any\"))\n { \n if (authorQueryStmt == null)\n authorQueryStmt = conn.prepareStatement(authorQuery);\n authorQueryStmt.setString(1, author);\n rs = authorQueryStmt.executeQuery();\n }\n else if (author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (publisherQueryStmt == null)\n publisherQueryStmt = conn.prepareStatement(publisherQuery);\n publisherQueryStmt.setString(1, publisher);\n rs = publisherQueryStmt.executeQuery();\n }\n else\n { \n if (allQueryStmt == null)\n allQueryStmt = conn.prepareStatement(allQuery);\n rs = allQueryStmt.executeQuery();\n }\n\n result.setText(\"\");\n while (rs.next())\n {\n result.append(rs.getString(1));\n result.append(\", \");\n result.append(rs.getString(2));\n result.append(\"\\n\");\n }\n rs.close();\n }\n catch (SQLException e)\n {\n result.setText(\"\");\n while (e != null)\n {\n result.append(\"\" + e);\n e = e.getNextException();\n }\n }\n }", "public abstract T queryRootNode();", "@ActionTrigger(action=\"QUERY\")\n\t\tpublic void spriden_Query()\n\t\t{\n\t\t\t\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tenterQuery();\n//\t\t\t\tif ( SupportClasses.SQLFORMS.FormSuccess().not() )\n//\t\t\t\t{\n//\t\t\t\t\t\n//\t\t\t\t\tthrow new ApplicationException();\n//\t\t\t\t}\n\t\t\t}", "protected abstract void select();", "@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate CompoundQuery handleQuery() throws Exception{\n\t\tif (this.resultant != null && this.resultant.getResultsContainer() != null){\n\t\t\t//compoundQuery = (CompoundQuery) resultant.getAssociatedQuery();\n\t\t\tViewable view = newCompoundQuery.getAssociatedView();\n\t\t\tResultsContainer resultsContainer = this.resultant.getResultsContainer();\n\t\t\tsampleCrit = null;\n\t Collection sampleIDs = new ArrayList(); \n\t\t\t//Get the samples from the resultset object\n\t\t\tif(resultsContainer!= null){\n\t\t\t\tCollection samples = null;\n\t\t\t\tif(resultsContainer != null &&resultsContainer instanceof DimensionalViewContainer){\t\t\t\t\n\t\t\t\t\tDimensionalViewContainer dimensionalViewContainer = (DimensionalViewContainer)resultsContainer;\n\t\t\t\t\t\tCopyNumberSingleViewResultsContainer copyNumberSingleViewContainer = dimensionalViewContainer.getCopyNumberSingleViewContainer();\n\t\t\t\t\t\tGeneExprSingleViewResultsContainer geneExprSingleViewContainer = dimensionalViewContainer.getGeneExprSingleViewContainer();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(copyNumberSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = copyNumberSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\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\tif(geneExprSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = geneExprSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\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}\n\t\t\t \t\tsampleCrit = new SampleCriteria();\n\t\t \t\t\tsampleCrit.setSampleIDs(sampleIDs);\n\n AddConstrainsToQueriesHelper constrainedSamplesHandler= new AddConstrainsToQueriesHelper();\n constrainedSamplesHandler.constrainQueryWithSamples(newCompoundQuery,sampleCrit);\n\t\t\t\tnewCompoundQuery = getShowAllValuesQuery(newCompoundQuery);\n\t\t\t\tnewCompoundQuery.setAssociatedView(view);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn newCompoundQuery;\n\t\t}", "void rewrite(MySqlSelectQueryBlock query);", "public PseudoQuery() {\r\n\t}", "public abstract ResultList executeQuery(DatabaseQuery query);", "private void executeQuery(QueryDobj queryDobj, Query query,\n DataView dataView)\n throws IOException, ServletException, DataSourceException\n {\n Util.argCheckNull(query);\n Util.argCheckNull(dataView);\n\n // perform the query\n DataViewDataSource dvds = MdnDataManager.getDataViewDS();\n RecordSet rs = dvds.select(query, dataView);\n\n // create a PagedSelectDelegate and set it into the UserState\n PagedSelectDelegate psd = new PagedSelectDelegate(rs, queryDobj.getId());\n getUserState().setPagedQuery(getUserState().getCurrentMenuActionId(), psd);\n\n // delegate to PagedSelectDelegate to display the list\n delegate(psd);\n }", "SELECT createSELECT();", "public final void query() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:56:6: ( selectStatement | insertStatement | updateSatement )\r\n int alt2=3;\r\n switch ( input.LA(1) ) {\r\n case SELECT:\r\n {\r\n alt2=1;\r\n }\r\n break;\r\n case INSERT:\r\n {\r\n alt2=2;\r\n }\r\n break;\r\n case UPDATE:\r\n {\r\n alt2=3;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt2) {\r\n case 1 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:56:10: selectStatement\r\n {\r\n pushFollow(FOLLOW_selectStatement_in_query66);\r\n selectStatement();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:57:10: insertStatement\r\n {\r\n pushFollow(FOLLOW_insertStatement_in_query77);\r\n insertStatement();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:58:8: updateSatement\r\n {\r\n pushFollow(FOLLOW_updateSatement_in_query86);\r\n updateSatement();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public void accept(final SqlNodeVisitor<E> visitor) throws SQLException {\n visitor.visit(this);\n }", "public void pre() {\n\t\t//handlePreReset(); //replaced with handlePostReset \n\t\tsendKeepAlive();\n\t\tcurrentQuery = new Query();\n\t\tfastForward = false;\n\n\t\t// System.out.println(\"New query starts now.\");\n\t}", "private Nodes xPathQuery(String query)\r\n \t{\r\n \t\treturn document.query(query, context);\r\n \t}", "public ResultSet querySelect(String query) throws SQLException {\n\t \t\t// Création de l'objet gérant les requêtes\n\t \t\tstatement = cnx.createStatement();\n\t \t\t\n\t \t\t// Exécution d'une requête de lecture\n\t \t\tResultSet result = statement.executeQuery(query);\n\t \t\t\n\t \t\treturn result;\n\t \t}", "public interface SemagrowQuery extends Query {\n\n TupleExpr getDecomposedQuery() throws QueryDecompositionException;\n\n void addExcludedSource(URI source);\n\n void addIncludedSource(URI source);\n\n Collection<URI> getExcludedSources();\n\n Collection<URI> getIncludedSources();\n}", "public void visit(Query obj) {\n if (obj.getOrderBy() != null || obj.getLimit() != null) {\n visitor.namingContext.aliasColumns = true;\n } \n visitNode(obj.getFrom());\n visitNode(obj.getCriteria());\n visitNode(obj.getGroupBy());\n visitNode(obj.getHaving());\n visitNode(obj.getSelect());\n visitNode(obj.getOrderBy());\n }", "CampusSearchQuery generateQuery();", "public void queryListener(QueryEvent queryEvent) {\n //#{bindings.ImplicitViewCriteriaQuery.processQuery}\n // Add event code here...\n \n FacesContext fctx = FacesContext.getCurrentInstance();\n ELContext elctx = fctx.getELContext();\n ExpressionFactory exprFactory = fctx.getApplication().getExpressionFactory();\n MethodExpression me = exprFactory.createMethodExpression(elctx, \"#{bindings.ImplicitViewCriteriaQuery.processQuery}\",\n Object.class, new Class[]{QueryEvent.class});\n me.invoke(elctx, new Object[] {queryEvent});\n \n BindingContext bctx = BindingContext.getCurrent();\n BindingContainer bindings = bctx.getCurrentBindingsEntry();\n DCIteratorBinding allEmployeesIter = (DCIteratorBinding) bindings.get(\"allEmployeesIterator\");\n \n boolean skipEditForm = allEmployeesIter.getEstimatedRowCount() > 0 ? false : true;\n \n ADFContext adfCtx = ADFContext.getCurrent();\n \n adfCtx.getPageFlowScope().put(\"skipEditEmployees\", skipEditForm);\n\n AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();\n adfFacesContext.addPartialTarget(trainComponent);\n }", "QueryType createQueryType();", "boolean hasQuery();", "void setQueryRequest(com.exacttarget.wsdl.partnerapi.QueryRequest queryRequest);", "private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n } \n }", "private DbQuery() {}", "public Query advancedQuery() \n {\n return null;\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}", "public abstract void callback_query(CallbackQuery cq);", "QueryRequest<Review> query();", "Object executeSelectQuery(String sql) { return null;}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaQueryImpl constructSelectQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaQueryImpl q = new CriteriaQueryImpl(this.metamodel);\n \n \t\tthis.constructFrom(cb, q, tree.getChild(1));\n \n \t\tfinal Tree select = tree.getChild(0);\n \t\tfinal List<Selection<?>> selections = this.constructSelect(cb, q, select.getChild(select.getChildCount() - 1));\n \n \t\tif (selections.size() == 1) {\n \t\t\tq.select(selections.get(0));\n \t\t}\n \t\telse {\n \t\t\tq.multiselect(selections);\n \t\t}\n \n \t\tif (select.getChild(0).getType() == JpqlParser.DISTINCT) {\n \t\t\tq.distinct(true);\n \t\t}\n \n \t\tint i = 2;\n \t\twhile (true) {\n \t\t\tfinal Tree child = tree.getChild(i);\n \n \t\t\t// end of query\n \t\t\tif (child.getType() == JpqlParser.EOF) {\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t\t// where fragment\n \t\t\tif (child.getType() == JpqlParser.WHERE) {\n \t\t\t\tq.where(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// group by fragment\n \t\t\tif (child.getType() == JpqlParser.LGROUP_BY) {\n \t\t\t\tq.groupBy(this.constructGroupBy(cb, q, child));\n \t\t\t}\n \n \t\t\t// having fragment\n \t\t\tif (child.getType() == JpqlParser.HAVING) {\n \t\t\t\tq.having(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// order by fragment\n \t\t\tif (child.getType() == JpqlParser.LORDER) {\n \t\t\t\tthis.constructOrder(cb, q, child);\n \t\t\t}\n \n \t\t\ti++;\n \t\t\tcontinue;\n \t\t}\n \n \t\treturn q;\n \t}", "private QueryResult performMappedQuery() throws VizException {\n\n if (database == null) {\n throw new VizException(\"Database not specified for query\");\n }\n if (query == null) {\n throw new VizException(\"Cannot execute null query\");\n }\n\n QlServerRequest request = new QlServerRequest(query);\n request.setDatabase(database);\n request.setType(QueryType.QUERY);\n request.setParamMap(paramMap);\n\n // set the mode so the handler knows what to do\n if (queryLanguage == null) {\n throw new VizException(\"Query language not specified\");\n } else if (queryLanguage.equals(QueryLanguage.HQL)) {\n request.setLang(QlServerRequest.QueryLanguage.HQL);\n } else {\n request.setLang(QlServerRequest.QueryLanguage.SQL);\n }\n\n // create request object\n QueryResult retVal = null;\n // get result\n AbstractResponseMessage response = (AbstractResponseMessage) ThriftClient\n .sendRequest(request);\n\n if (response instanceof ResponseMessageGeneric) {\n retVal = (QueryResult) ((ResponseMessageGeneric) response)\n .getContents();\n\n } else if (response instanceof ResponseMessageError) {\n ResponseMessageError rme = (ResponseMessageError) response;\n VizServerSideException innerException = new VizServerSideException(\n rme.toString());\n throw new VizServerSideException(rme.getErrorMsg(), innerException);\n }\n\n return retVal;\n }", "public abstract DbQuery getQuery(String queryName);", "IQuery getQuery();", "protected SelectQuery getQuery(final String query) {\n\t\treturn queryFactory.parseQuery(query);\n\t}", "public static void main(String[] args) throws SQLException {\n choiceProgram();\n }", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public QueryMatches interpret(ITMQLRuntime runtime, IContext context, IExpressionInterpreter<?> caller);", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "public Snippet visit(TopLevelDeclaration n, Snippet argu) {\n\t Snippet _ret=null;\n\t n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "void filterQuery(ServerContext context, QueryRequest request, QueryResultHandler handler,\n RequestHandler next);", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "public static CommandResponse selectQuery(InternalRequestHeader header, CommandPacket commandPacket,\n String reader, String query, List<String> projection,\n String signature, String message,\n ClientRequestHandlerInterface handler) throws InternalRequestException {\n if (Select.queryContainsEvil(query)) {\n return new CommandResponse(ResponseCode.OPERATION_NOT_SUPPORTED,\n GNSProtocol.BAD_RESPONSE.toString() + \" \"\n + GNSProtocol.OPERATION_NOT_SUPPORTED.toString()\n + \" Bad query operators in \" + query);\n }\n JSONArray result;\n try {\n SelectRequestPacket packet = SelectRequestPacket.MakeQueryRequest(-1, reader, query, projection);\n result = executeSelectHelper(header, commandPacket, packet, reader, signature, message, handler.getApp());\n if (result != null) {\n return new CommandResponse(ResponseCode.NO_ERROR, result.toString());\n }\n } catch (IOException | JSONException | FailedDBOperationException e) {\n \tClientException cle = new ClientException(e);\n \treturn new CommandResponse(cle.getCode(), \"selectQuery failed. \"+cle.getMessage());\n }\n return null;\n }", "@Override\n\tpublic void visit(SubSelect arg0) {\n\t\t\n\t}", "@Override\n public SpanQuery toFragmentQuery () throws QueryException {\n\n // The query is null\n if (this.isNull)\n return (SpanQuery) null;\n\n if (this.isEmpty) {\n log.error(\"You can't queryize an empty query\");\n return (SpanQuery) null;\n };\n\n // The query is not a repetition query at all, but may be optional\n if (this.min == 1 && this.max == 1)\n return this.subquery.retrieveNode(this.retrieveNode)\n .toFragmentQuery();\n\n // That's a fine repetition query\n return new SpanRepetitionQuery(\n this.subquery.retrieveNode(this.retrieveNode).toFragmentQuery(),\n this.min, this.max, true);\n }", "void queryDone(String queryId);", "void contactQueryResult(String queryId, Contact contact);", "@Override\n public void constructQuery() {\n try {\n super.constructQuery();\n sqlQueryBuilder.append(Constants.QUERY_SELECT);\n appendColumnName();\n appendPrimaryTableName();\n appendConditions(getJoinType());\n appendClause(joinQueryInputs.clauses, true);\n sqlQueryBuilder.append(Constants.SEMI_COLON);\n queryDisplayListener.displayConstructedQuery(sqlQueryBuilder.toString());\n } catch (NoSuchClauseFoundException noSuchClauseFoundException) {\n queryDisplayListener.showException(noSuchClauseFoundException.getExceptionMessage());\n }\n }", "Message handle(Message query, String kind);", "com.exacttarget.wsdl.partnerapi.QueryRequest addNewQueryRequest();", "@Override\n protected void processSelect() {\n \n }", "public StatementQueryMechanism(DatabaseQuery query) {\n super(query);\n }", "public Query() {\r\n }", "public static void mainExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit the program\");\n\t\tSystem.out.println(\"Enter 'STU' for the Student Menu\");\n\t\tSystem.out.println(\"Enter 'FAC' for the Faculty Menu\");\n\t\tSystem.out.println(\"You may also enter a customized SQL query:\");\n\t\tSystem.out.println(\"However, this may only be a SELECT query, not a DDl,INSERT or UPDATE query\");\n\t}", "@Test\n public void testUpdateQuery() {\n LayersViewController instance = LayersViewController.getDefault().init(null);\n String queryString1 = \"Type == 'Word'\";\n int index1 = 2;\n Query query1 = new Query(GraphElementType.VERTEX, \"Type == 'Event'\");\n instance.getVxQueryCollection().getQuery(index1).setQuery(query1);\n instance.getTxQueryCollection().getQuery(index1).setQuery(null);\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), \"Type == 'Event'\");\n\n instance.updateQuery(queryString1, index1, \"Vertex Query: \");\n assertEquals(instance.getVxQueryCollection().getQuery(index1).getQueryString(), queryString1);\n\n String queryString2 = \"Type == 'Unknown'\";\n int index2 = 3;\n Query query2 = new Query(GraphElementType.TRANSACTION, \"Type == 'Network'\");\n instance.getTxQueryCollection().getQuery(index2).setQuery(query2);\n instance.getVxQueryCollection().getQuery(index2).setQuery(null);\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), \"Type == 'Network'\");\n \n instance.updateQuery(queryString2, index2, \"Transaction Query: \");\n assertEquals(instance.getTxQueryCollection().getQuery(index2).getQueryString(), queryString2);\n\n }", "@Override\n\tpublic void visit(SubSelect arg0) {\n\n\t}" ]
[ "0.609243", "0.6077148", "0.58067876", "0.57991505", "0.5773472", "0.5669378", "0.5630076", "0.55853754", "0.55495447", "0.5547123", "0.54733", "0.5337509", "0.53148484", "0.52960384", "0.528403", "0.52830845", "0.52830154", "0.52768064", "0.524964", "0.5191068", "0.51492107", "0.5146581", "0.51426774", "0.5126612", "0.50799996", "0.506777", "0.50644505", "0.50581753", "0.50449383", "0.50207347", "0.50167656", "0.50155944", "0.5014149", "0.5010781", "0.5009972", "0.50090474", "0.49907082", "0.4971837", "0.49681437", "0.49604124", "0.49427158", "0.49407664", "0.493665", "0.49183407", "0.49172252", "0.49170017", "0.49136037", "0.48956037", "0.48953968", "0.4892179", "0.48821712", "0.48819086", "0.48795322", "0.4867962", "0.48551202", "0.4850947", "0.48488936", "0.48482648", "0.48406196", "0.48351756", "0.4834071", "0.48223984", "0.48200864", "0.4810263", "0.48099574", "0.4807993", "0.48056355", "0.48007515", "0.47967705", "0.4787423", "0.4785748", "0.47761363", "0.47755712", "0.4774478", "0.47553593", "0.4753876", "0.47527176", "0.475259", "0.4747356", "0.47469866", "0.4742611", "0.47332573", "0.47275767", "0.47273466", "0.47227013", "0.47193965", "0.47192907", "0.47095236", "0.47081953", "0.47015548", "0.47014302", "0.46971998", "0.46967813", "0.4696649", "0.46948433", "0.46927077", "0.46775103", "0.46761528", "0.4674672", "0.46670264" ]
0.73641604
0
nodeOptional > ( BaseDecl() )? nodeListOptional > ( PrefixDecl() )
@Override public R visit(Prologue n, A argu) { R _ret = null; n.nodeOptional.accept(this, argu); n.nodeListOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(PropertyList n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrefixDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n return _ret;\n }", "protected Node getOptionalNode(Node parent, int idx)\n {\n if (hasArgument(parent, idx)) {\n return parent.jjtGetChild(idx);\n }\n return null;\n }", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public List<? extends Declarator> directlyDeclaredElements();", "@Override\n public R visit(PropertyListNotEmpty n, A argu) {\n R _ret = null;\n n.verb.accept(this, argu);\n n.objectList.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(BaseDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void notationDeclaration() {\n\t\t\n\t}", "@Override\n public R visit(TriplesBlock n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public ClassTree declaration() {\n return null;\n }", "java.util.Optional<String> getPrefix();", "@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIrefOrFunction n, A argu) {\n R _ret = null;\n n.iRIref.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public void defaultVisit(ParseNode node) {}", "@Override\n public boolean parseOptional(PsiBuilder builder) {\n boolean parsed = rule.parseOptional(builder);\n if (!parsed) {\n return false;\n }\n\n while (rule.parseOptional(builder)) {\n }\n\n return true;\n }", "public Snippet visit(FormalParameterList n, Snippet argu) {\n\t\t Snippet _ret=new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.finalFormalParameter.accept(this, argu);\n\t fieldsCode = \"\";\n\t Snippet f1 = n.nodeListOptional.accept(this, argu);\n\t \n\t\t\t\n\t\t\t\t_ret.returnTemp = f0.returnTemp+fieldsCode;\t\n\t\t\t\tfieldsCode = \"\";\n\t\t\t\n\t return _ret;\n\t }", "public NodeUnion<? extends DeclaredTypeNode> getUnionForExtendsClause();", "public Optional<IDeclaration> nextDeclaration() {\n final var tok = peekToken();\n switch (tok.kind()) {\n case EOF:\n return Optional.empty();\n case ID:\n return parseDeclaration();\n default:\n Error.add(\"unexpected token \" + tok + \" at toplevel\",\n tok.pos());\n return Optional.empty();\n }\n }", "public void setUnionForExtendsClause(NodeUnion<? extends DeclaredTypeNode> extendsClause) throws NullPointerException;", "declaration_list2 getDeclaration_list2();", "Iterable<T> followNode(T start) throws NullPointerException;", "public void visit(PrimaryPrefix n) {\n n.f0.accept(this);\n }", "@Override\n\tpublic void notationDecl(String arg0, String arg1, String arg2)\n\t\t\tthrows SAXException {\n\n\t}", "@Override\n public R visit(ObjectList n, A argu) {\n R _ret = null;\n n.sparqlObject.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "public void end_ns(Object parser, String prefix) {\n }", "public interface PathNodeMember extends PathNode {\n}", "@Override\n public R visit(ConditionalOrExpression n, A argu) {\n R _ret = null;\n n.conditionalAndExpression.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "abstract ChildListPropertyDescriptor internalElseDeclarationsProperty();", "public void start_ns(Object parser, String prefix, String uri) {\n Array.array_push(this.ns_decls, new Array<Object>(new ArrayEntry<Object>(prefix), new ArrayEntry<Object>(uri)));\r\n }", "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 NodeUnion<? extends IdentifierListNode> getUnionForTargets();", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\n public R visit(ConstructTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }", "@Override\n public R visit(SolutionModifier n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeOptional1.accept(this, argu);\n return _ret;\n }", "@Override\n public void visit(NoOpNode noOpNode) {\n }", "@Override\n public R visit(GroupOrUnionGraphPattern n, A argu) {\n R _ret = null;\n n.groupGraphPattern.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "public List<AST> getChildNodes ();", "public void start(Node n) {}", "static boolean DefaultNamespaceDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"DefaultNamespaceDecl\")) return false;\n if (!nextTokenIs(b, K_DECLARE)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = DefaultNamespaceDecl_0(b, l + 1);\n r = r && Separator(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n public boolean isMissingNode() { return false; }", "public Snippet visit(IdentifierList n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t\t\tSnippet f0 =n.identifier.accept(this, argu);\n\t\t\tfieldsCode = \"\";\n\t\t\tidentifierList.add(f0.returnTemp);\n\t\t\tSnippet f1=n.nodeListOptional.accept(this, argu);\n\t _ret.returnTemp= f0.returnTemp+fieldsCode;\n\t\t\tfieldsCode = \"\";\n\t return _ret;\n\t }", "public NodeUnion<? extends DeclaredTypeListNode> getUnionForImplementsClause();", "@Override\n public Void visit(FunctionDeclaration nd, Void v) {\n if (!nd.hasDeclareKeyword()) {\n decls.add(nd.getId());\n }\n return null;\n }", "public String visit(TypeDeclaration n, String argu) {\n n.f0.accept(this, null);\n return null; \n }", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();", "@Test\n\tpublic void test_ClassDeclarationNested_Dec_1_Ref_0() {\n\t\tconfigureParser(\"public class Other { public class Foo {} }\", \"Other.Foo\", 1, 0);\n\t}", "Optional<? extends TypeInfo> superClass();", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public String visit(VariableDeclarator n, Object arg) {\n return null;\n }", "public Vector<Node> GetAdditionalSubNodes();", "@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 }", "public String visit(FormalParameterList n, String ourclass) {\n n.f0.accept(this, ourclass);\n n.f1.accept(this, ourclass);\n return null; \n }", "public interface IAeXPathQualifiedNode {\r\n /**\r\n * @return Returns the localName.\r\n */\r\n public String getLocalName();\r\n\r\n /**\r\n * @return Returns the namespace.\r\n */\r\n public String getNamespace();\r\n\r\n /**\r\n * @return Returns the prefix.\r\n */\r\n public String getPrefix();\r\n}", "public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;", "@Override\r\n\tpublic void visit(VariableDeclaration variableDeclaration) {\n\r\n\t}", "public void setUnionForTargets(NodeUnion<? extends IdentifierListNode> targets) throws NullPointerException;", "Iterable<T> followNodeAndSelef(T start) throws NullPointerException;", "@Override\n public void visit(ArrayDeclaration node) {\n }", "public node cnf() { rule: anything can sit immediately below ands\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSink({DSSinkKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.411 -0500\", hash_original_method = \"4549801F41C68E0A6A490696C062C72D\", hash_generated_method = \"8B62B5695F36760CAD8EDCDC235C2C64\")\n \nvoid declarePrefix(String prefix, String uri) {\n // Lazy processing...\n if (!declsOK) {\n throw new IllegalStateException (\"can't declare any more prefixes in this context\");\n }\n if (!declSeen) {\n copyTables();\n }\n if (declarations == null) {\n declarations = new ArrayList<String>();\n }\n\n prefix = prefix.intern();\n uri = uri.intern();\n if (\"\".equals(prefix)) {\n if (\"\".equals(uri)) {\n defaultNS = null;\n } else {\n defaultNS = uri;\n }\n } else {\n prefixTable.put(prefix, uri);\n uriTable.put(uri, prefix); // may wipe out another prefix\n }\n declarations.add(prefix);\n }", "public boolean isEmptyNestedClauses ();", "public List<Declaration> getIntroducedMembers();", "@Test\n\tpublic void test_ClassDeclarationNested2_Dec_1_Ref_0() {\n\t\tconfigureParser(\"public class Other { public class Bar { public class Foo{} } }\", \"Other.Bar.Foo\", 1, 0);\n\t}", "final public void OptionalGraphPattern(Exp stack) throws ParseException {\n Exp e;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OPTION:\n jj_consume_token(OPTION);\n deprecated(\"option\",\"optional\");\n break;\n default:\n jj_la1[176] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n e = GroupGraphPattern();\n e= Option.create(e);\n stack.add(e);\n }", "private boolean peekOptionalChainSuffix() {\n return peek(TokenType.OPEN_PAREN) // a?.b( ...\n || peek(TokenType.OPEN_SQUARE) // a?.b[ ...\n || peek(TokenType.PERIOD) // a?.b. ...\n // TEMPLATE_HEAD and NO_SUBSTITUTION_TEMPLATE are actually not allowed within optional\n // chaining and leads to an early error as dictated by the spec.\n // https://tc39.es/proposal-optional-chaining/#sec-left-hand-side-expressions-static-semantics-early-errors\n || peek(TokenType.NO_SUBSTITUTION_TEMPLATE) // a?.b`text`\n || peek(TokenType.TEMPLATE_HEAD); // a?.b`text ${substitution} text`\n }", "@Override\n public String visit(VariableDeclarationExpr n, Object arg) {\n return null;\n }", "public ListADTImpl() {\r\n head = new GenericEmptyNode();\r\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.421 -0500\", hash_original_method = \"B116CF358C1D0DA8CF46DFF106939FC0\", hash_generated_method = \"B116CF358C1D0DA8CF46DFF106939FC0\")\n \nEnumeration getDeclaredPrefixes() {\n return (declarations == null) ? EMPTY_ENUMERATION : Collections.enumeration(declarations);\n }", "QName getBase();", "NodeIterable(Node firstChild) {\n next = firstChild;\n }", "static boolean FirstDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"FirstDecl\")) return false;\n if (!nextTokenIs(b, \"\", K_DECLARE, K_IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = DefaultNamespaceDecl(b, l + 1);\n if (!r) r = Setter(b, l + 1);\n if (!r) r = NamespaceDecl(b, l + 1);\n if (!r) r = Import(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n public String visit(NodeList n, Object arg) {\n return null;\n }", "public Node(){\r\n primarySequence = null;\r\n dotBracketString = null;\r\n validity = false;\r\n prev = null;\r\n next = null;\r\n }", "@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}", "public interface XMLNode extends XMLElement {\n\t/** Prefix for the XMLSchema namespace. */\n\tfinal static String NS_PREFIX_XSD = \"xsd\";\n\t/** URL of the XMLSchema namespace. */\n\tfinal static String NS_URI_XSD = \"http://www.w3.org/2001/XMLSchema\";\n\t/** Prefix for the XmlSchema-instance namespace. */\n\tfinal static String NS_PREFIX_XSI = \"xsi\";\n\t/** URL of the XmlSchema-instance namespace. */\n\tfinal static String NS_URI_XSI = \"http://www.w3.org/2001/XMLSchema-instance\";\n\t/** The name of the xsi:nil element. */\n\tfinal static String XSI_NIL_NAME = \"nil\";\n\t/** The value of the xsi:nil element if true. */\n\tfinal static String XSI_NIL_TRUE = \"true\";\n\n\t/**\n\t * Get all the attributes of this element.\n\t * \n\t * @return The attributes as a collection of {@link XMLAttributeImpl}\n\t * objects.\n\t */\n\tCollection<XMLAttribute> getAttributes();\n\n\t/**\n\t * Adds an attribute to the element.\n\t * \n\t * @param namespace\n\t * The namespace of the element as a URI - can be null if no\n\t * namespace is to be set.\n\t * @param name\n\t * The name of the attribute.\n\t * @param value\n\t * The value of the attribute.\n\t * @return\n\t */\n\tXMLAttribute addAttribute(String namespace, String name, String value);\n\n\t/**\n\t * Sets the <code>xsi:type</code> attribute for the element.\n\t * \n\t * Note that this basically adds a new attribute called \"type\" in the\n\t * \"http://www.w3.org/2001/XMLSchema-instance\" namespace - it doesn't\n\t * automatically declare this namespace with the \"xsi\" prefix. If the xsi\n\t * prefix is declared with {@link XMLNode#declarePrefix(String, String)}\n\t * method on this element or any higher elements, it this will come out as\n\t * xsi:type.\n\t * \n\t * @param type\n\t * The type, as a string.\n\t */\n\tvoid setType(String type);\n\n\t/**\n\t * Declare a prefix for a namespace URI.\n\t * \n\t * @param prefix\n\t * The prefix name (e.g. \"xsi\").\n\t * @param namespace\n\t * The namespace URI, as a String.\n\t */\n\tvoid declarePrefix(String prefix, String namespace);\n\n\t/**\n\t * Get the name of the element.\n\t * \n\t * @return The name as a string.\n\t */\n\tString getName();\n\n\t/**\n\t * Sets the name of the element.\n\t * \n\t * @param name\n\t * The new name as a string.\n\t */\n\tvoid setName(String name);\n\n\t/**\n\t * Get the namespace URI for this element.\n\t * \n\t * @return The namespace URI, as a String.\n\t */\n\tString getNamespace();\n\n\t/**\n\t * Sets the namespace of this element.\n\t * \n\t * @param namespace\n\t * The namespace URI as a String.\n\t */\n\tvoid setNamespace(String namespace);\n}", "public boolean hasEmbeddedNodeDeclaration() {\r\n\t\t\treturn true;\r\n\t\t}", "boolean isOptional();", "public interface IGosuStatementList extends IGosuStatement, PsiCodeBlock\n{\n}", "private ParseTree parseRemainingOptionalChainSegment(ParseTree optionalExpression) {\n // The optional chain's source info should cover the lhs operand also\n SourcePosition start = optionalExpression.location.start;\n while (peekOptionalChainSuffix()) {\n if (peekType() == TokenType.NO_SUBSTITUTION_TEMPLATE\n || peekType() == TokenType.TEMPLATE_HEAD) {\n reportError(\"template literal cannot be used within optional chaining\");\n break;\n }\n switch (peekType()) {\n case PERIOD:\n eat(TokenType.PERIOD);\n IdentifierToken id = eatIdOrKeywordAsId();\n optionalExpression =\n new OptionalMemberExpressionTree(\n getTreeLocation(start),\n optionalExpression,\n id,\n /*isStartOfOptionalChain=*/ false);\n break;\n case OPEN_PAREN:\n ArgumentListTree arguments = parseArguments();\n optionalExpression =\n new OptChainCallExpressionTree(\n getTreeLocation(start),\n optionalExpression,\n arguments,\n /* isStartOfOptionalChain = */ false,\n arguments.hasTrailingComma);\n break;\n case OPEN_SQUARE:\n eat(TokenType.OPEN_SQUARE);\n ParseTree member = parseExpression();\n eat(TokenType.CLOSE_SQUARE);\n optionalExpression =\n new OptionalMemberLookupExpressionTree(\n getTreeLocation(start),\n optionalExpression,\n member,\n /* isStartOfOptionalChain = */ false);\n break;\n default:\n throw new AssertionError(\"unexpected case: \" + peekType());\n }\n }\n return optionalExpression;\n }", "boolean optional();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "@Override\n public String visit(AnnotationDeclaration n, Object arg) {\n return null;\n }", "public S6Fragment getBaseFragment()\t\t\t{ return base_node; }", "public NodeUnion<? extends TypeParameterListNode> getUnionForTypeParameters();", "public DeclaredTypeNode getExtendsClause()throws ClassCastException;", "public NilTypeNode() {\n super(VoidTypeNode.VoidNode);\n }", "public boolean hasEmbeddedNodeDeclaration() {\r\n\t\t\treturn false;\r\n\t\t}", "public void discover(Node n) {}" ]
[ "0.58808595", "0.57612735", "0.55354136", "0.5429582", "0.53188354", "0.51731485", "0.51597786", "0.51065654", "0.5090878", "0.5033783", "0.5028906", "0.50000364", "0.4995305", "0.49910185", "0.49630085", "0.49496973", "0.49154517", "0.4891236", "0.486765", "0.4835447", "0.48339906", "0.48290932", "0.48276195", "0.4825318", "0.48233035", "0.48102036", "0.48063123", "0.48009884", "0.4784248", "0.47794715", "0.47575217", "0.47559273", "0.47559273", "0.47559273", "0.47559273", "0.47559273", "0.47483635", "0.474724", "0.4735036", "0.47325864", "0.4727348", "0.47096422", "0.47036394", "0.4690784", "0.46827775", "0.46817166", "0.4673369", "0.46677834", "0.46503517", "0.46502", "0.46363828", "0.46326947", "0.46290907", "0.4626546", "0.46258494", "0.46229202", "0.46210375", "0.46177578", "0.46152052", "0.46099418", "0.4597882", "0.45878944", "0.4579814", "0.45331132", "0.4532305", "0.45301715", "0.45235887", "0.45235887", "0.45235887", "0.45235887", "0.45235887", "0.45163321", "0.45072228", "0.45059335", "0.44989732", "0.44897214", "0.44808295", "0.44779873", "0.44739094", "0.44719437", "0.4469169", "0.4462501", "0.44605684", "0.4453468", "0.44458222", "0.44446242", "0.4444307", "0.44366038", "0.44311622", "0.4427556", "0.4424941", "0.44226497", "0.44176775", "0.44149923", "0.4408057", "0.44074512", "0.44058588", "0.44052148", "0.44046086", "0.44023177" ]
0.59200704
0
nodeToken > nodeToken1 >
@Override public R visit(BaseDecl n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "@AutoEscape\n\tpublic String getNode_2();", "public void setNode_2(String node_2);", "Term getNodeTerm();", "@AutoEscape\n\tpublic String getNode_1();", "public interface QuotedL1Node {\n\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();", "public void setNode_1(String node_1);", "Token next();", "abstract Node split();", "abstract Node split();", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Override\n public R visit(PrefixDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n return _ret;\n }", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }", "protected int getNextToken(){\n if( currentToken == 1){\n currentToken = -1;\n }else{\n currentToken = 1;\n }\n return currentToken;\n }", "@Test\n public void parseToken() {\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "Node currentNode();", "abstract protected void parseNextToken();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes);", "List<Node> getNode(String str);", "String getIdNode1();", "String getIdNode2();", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@AutoEscape\n\tpublic String getNode_5();", "@AutoEscape\n\tpublic String getNode_3();", "final public Token getNextToken() {\r\n if (token.next != null) token = token.next;\r\n else token = token.next = token_source.getNextToken();\r\n jj_ntk = -1;\r\n return token;\r\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\r\n\tpublic void testProcessPass1Other()\r\n\t{\r\n\t\tToken t3 = new Token(TokenTypes.EXP5.name(), 1, null);\r\n\t\tt3.setType(\"INT\");\r\n\t\tArrayList<Token> tkns = new ArrayList<Token>();\t\t\t\r\n\t\ttkns.add(t3);\r\n\t\t\r\n\t\tToken t4 = new Token(TokenTypes.EXP4.name(), 1, tkns);\r\n\t\tClass c1 = new Class(\"ClassName\", null, null);\r\n\t\tPublicMethod pm = new PublicMethod(\"MethodName\", null, VariableType.BOOLEAN, null);\r\n\t\tt4.setParentMethod(pm);\r\n\t\tt4.setParentClass(c1);\r\n\r\n\t\tToken.pass1(t4);\r\n\t\t\r\n\t\tfor(int i = 0; i < t4.getChildren().size(); i++){\r\n\t\t\tToken child = t4.getChildren().get(i);\r\n\t\t\t\r\n\t\t\tassertEquals(child.getParentClass().getName(), t4.getParentClass().getName());\r\n\t\t\tassertEquals(child.getParentMethod(), t4.getParentMethod());\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(t4.getType(), \"INT\");\r\n\t}", "OperationNode getNode();", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "org.apache.xmlbeans.XmlToken xgetRef();", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">Uuu/X==mpx'Q N+\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Uuu\", token1.getTokenText());\n }", "private LeafNode(Token newToken) {\r\n\t\tthis.token = newToken;\r\n\t}", "public HuffmanNode (HuffmanToken token) {\n \ttotalFrequency = token.getFrequency();\n \ttokens = new ArrayList<HuffmanToken>();\n \ttokens.add(token);\n \tleft = null;\n \tright = null;\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "Node getNode();", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z uKBSX,^\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"Z\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\" u\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"KBSX\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public char getNextToken(){\n\t\treturn token;\n\t}", "@Test\n public void findRightDefinition() {\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 21, 42))).isPresent());\n // Clearly reference the first:\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // Reference the first:\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // So that this will fail:\n assertFalse(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n }", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "final public Token getNextToken() {\n if (token.next != null) token = token.next;\n else token = token.next = token_source.getNextToken();\n jj_ntk = -1;\n return token;\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "@AutoEscape\n\tpublic String getNode_4();", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(\"oo\", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"fT\", token1.getTokenText());\n }", "int getTokenStart();", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "void putToken(String name, String value);", "NNode(String[] tokenized) {\r\n\t\tthis(NodeTypeEnum.valueOf(tokenized[3]), Integer.parseInt(tokenized[1]), NodeLabelEnum.valueOf(tokenized[4]));\t\t\r\n\t\tfType = NodeFuncEnum.valueOf(tokenized[2]);\r\n\t\tif (tokenized.length > 5) System.out.println(\"ERROR: Too many segments on reading node from file.\");\r\n\t}", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.getPreviousToken();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.doubleColon();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\">6\", token0.getTokenText());\n assertEquals(19, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"_XdrPl\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public Token nextToken(){\n if(currentToken+1 >= tokens.size())\n return null; \n return tokens.get(++currentToken);\n }", "NDLMapEntryNode<T> traverse(String tokens[]) { \n\t\tNDLMapEntryNode<T> node = rootNode;\n\t\tboolean found = true;\n\t\tfor(String token : tokens) {\n\t\t\t// traverse\n\t\t\tif(StringUtils.isNotBlank(token)) {\n\t\t\t\t// valid\n\t\t\t\tnode = node.get(token);\n\t\t\t\tif(node == null) {\n\t\t\t\t\tfound = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(found) {\n\t\t\treturn node;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public String getNodeValue ();", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "private boolean performRearrange(List<CommonToken> tokens) throws BadLocationException\n\t{\n\t\tList<TagHolder> topLevelTags=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tint tagLevel=0;\n\t\tfor (int tokenIndex=0;tokenIndex<tokens.size();tokenIndex++)\n\t\t{\n\t\t\tCommonToken token=tokens.get(tokenIndex);\n\t\t\tSystem.out.println(token.getText());\n\t\t\tswitch (token.getType())\n\t\t\t{\n\t\t\t\tcase MXMLLexer.TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttagLevel++;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.END_TAG_OPEN:\n\t\t\t\t\ttagLevel--;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.EMPTY_TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.EMPTYTAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.COMMENT:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n//\t\t\t\tcase MXMLLexer.DECL_START:\n//\t\t\t\tcase MXMLLexer.CDATA:\n//\t\t\t\tcase MXMLLexer.PCDATA:\n//\t\t\t\tcase MXMLLexer.EOL:\n//\t\t\t\tcase MXMLLexer.WS:\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<TagHolder> unsortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tunsortedList.addAll(topLevelTags);\n\t\t\n\t\t//sort the elements in the tag list based on the supplied ordering\n\t\tString ordering=mPrefs.getString(PreferenceConstants.MXMLRearr_RearrangeTagOrdering);\n\t\tString[] tagNames=ordering.split(PreferenceConstants.AS_Pref_Line_Separator);\n\t\tSet<String> usedTags=new HashSet<String>();\n\t\tfor (String tagName : tagNames) {\n\t\t\tif (!tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant))\n\t\t\t\tusedTags.add(tagName);\n\t\t}\n\t\tList<TagHolder> sortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tfor (String tagName : tagNames) \n\t\t{\n\t\t\tboolean isSpecOther=tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant);\n\t\t\t//find all the items that match\n\t\t\tfor (int i=0;i<topLevelTags.size();i++)\n\t\t\t{\n\t\t\t\tTagHolder tagHolder=topLevelTags.get(i);\n\t\t\t\t\n\t\t\t\t//if the tagname matches the current specification \n\t\t\t\t//OR if the current spec is the \"other\" and the current tag doesn't match any in the list\n\t\t\t\tboolean tagMatches=false;\n\t\t\t\tif (!isSpecOther)\n\t\t\t\t{\n\t\t\t\t\tSet<String> testTag=new HashSet<String>();\n\t\t\t\t\ttestTag.add(tagName);\n\t\t\t\t\ttagMatches=matchesRegEx(tagHolder.mTagName, testTag);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttagMatches=(!matchesRegEx(tagHolder.mTagName, usedTags));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (tagMatches)\n\t\t\t\t{\n\t\t\t\t\ttopLevelTags.remove(i);\n\t\t\t\t\tsortedList.add(tagHolder);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsortedList.addAll(topLevelTags);\n\t\t\n\t\t//check for changes: if no changes, do nothing\n\t\tif (sortedList.size()!=unsortedList.size())\n\t\t{\n\t\t\t//error, just kick out\n\t\t\tSystem.out.println(\"Error performing mxml rearrange; tag count doesn't match\");\n\t\t\tmInternalError=\"Internal error replacing text: tag count doesn't match\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean differences=false;\n\t\tfor (int i=0;i<sortedList.size();i++)\n\t\t{\n\t\t\tif (sortedList.get(i)!=unsortedList.get(i))\n\t\t\t{\n\t\t\t\tdifferences=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!differences)\n\t\t\treturn true; //succeeded, just nothing done\n\t\t\n\t\t//reconstruct document in the sorted order\n\t\tString source=mSourceDocument.get();\n\t\tStringBuffer newText=new StringBuffer();\n\t\tfor (TagHolder tagHolder : sortedList) \n\t\t{\n\t\t\tCommonToken startToken=tokens.get(tagHolder.mStartTokenIndex);\n\t\t\tCommonToken endToken=tokens.get(tagHolder.mEndTokenIndex);\n\t\t\tString data=source.substring(startToken.getStartIndex(), endToken.getStopIndex()+1);\n\t\t\tnewText.append(data);\n\t\t}\n\t\t\n\t\tint startOffset=tokens.get(unsortedList.get(0).mStartTokenIndex).getStartIndex();\n\t\tint endOffset=tokens.get(unsortedList.get(unsortedList.size()-1).mEndTokenIndex).getStopIndex()+1;\n\t\tString oldData=mSourceDocument.get(startOffset, endOffset-startOffset);\n\t\tif (!ActionScriptFormatter.validateNonWhitespaceCharCounts(oldData, newText.toString()))\n\t\t{\n\t\t\tmInternalError=\"Internal error replacing text: new text doesn't match replaced text(\"+oldData+\")!=(\"+newText.toString()+\")\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tmSourceDocument.replace(startOffset, endOffset-startOffset, newText.toString());\n\t\t\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"z8I-qq3BBV%.C. *\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"8\", token1.getTokenText());\n }", "public Node setNextNode(Node node);", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "Iterator<String> getTokenIterator();", "Token current();", "private static String getSingleText(CommonToken token, String name1, String name2) {\n String input = token.getText();\n\n if (StringUtils.containsWhitespace(input)) return input;\n if (\",\".equals(input)) return \" AND \";\n return name1 + \".\" + input + \"=\" + name2 + \".\" + input;\n }", "private void addTagName(TagHolder holder, List<CommonToken> tokens, int tokenIndex) \n\t{\n\t\ttokenIndex++;\n\t\tfor (;tokenIndex<tokens.size(); tokenIndex++)\n\t\t{\n\t\t\tCommonToken tok=tokens.get(tokenIndex);\n\t\t\tif (tok.getType()==MXMLLexer.GENERIC_ID)\n\t\t\t{\n\t\t\t\tholder.setTagName(tok.getText());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (tok.getText()!=null && tok.getText().trim().length()>0)\n\t\t\t{\n\t\t\t\t//kick out if non whitespace hit; ideally, we shouldn't ever hit here\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test139() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(18, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"E\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "TokenTypes.TokenName getName();", "public void setNode_4(String node_4);", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "private static void commonNodesInOrdSuc(Node r1, Node r2)\n {\n Node n1 = r1, n2 = r2;\n \n if(n1==null || n2==null)\n return;\n \n while(n1.left != null)\n n1 = n1.left;\n \n while(n2.left!= null)\n n2 = n2.left;\n \n while(n1!=null && n2!=null)\n {\n if(n1.data < n2.data)\n n1 = inOrdSuc(n1);\n \n else if(n1.data > n2.data)\n n2 = inOrdSuc(n2);\n \n else\n {\n System.out.print(n1.data+\" \"); n1 = inOrdSuc(n1); n2 = inOrdSuc(n2);\n }\n }\n \n System.out.println();\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"^r\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"^r\", token0.getTokenText());\n }", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }", "public static String extractTokens(KSuccessorRelation<NetSystem, Node> rel) {\n\t\t\n\t\tString tokens = \"\";\n\t\tfor (Node[] pair : rel.getSuccessorPairs()) {\n\t\t\t\n\t\t\tString l1 = pair[0].getLabel();\n\t\t\tString l2 = pair[1].getLabel();\n\t\t\t\n\t\t\tif (NodeAlignment.isValidLabel(l1) && NodeAlignment.isValidLabel(l2)) {\n\t\t\t\ttokens += join(processLabel(l1),WORD_SEPARATOR) + \n\t\t\t\t\t\t RELATION_SYMBOL + \n\t\t\t\t\t\t join(processLabel(l2),WORD_SEPARATOR) + \n\t\t\t\t\t\t WHITESPACE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// no relations have been found (because the query contained only single activities)\n\t\t//if (tokens.isEmpty()) {\n\t\t\tfor (Node n : rel.getEntities()) {\n\t\t\t\tString l = n.getLabel();\n\t\t\t\tif (NodeAlignment.isValidLabel(l)) {\n\t\t\t\t\ttokens += join(processLabel(l), WORD_SEPARATOR) + WHITESPACE;\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t\t\n\t\treturn tokens;\n\t}" ]
[ "0.6374211", "0.581317", "0.5707435", "0.57067865", "0.56543434", "0.5648253", "0.5552249", "0.5530768", "0.5513369", "0.54341465", "0.54341465", "0.5321393", "0.5299456", "0.528124", "0.5225912", "0.5224379", "0.5220148", "0.52033365", "0.51950675", "0.518211", "0.51412076", "0.5122298", "0.51114243", "0.5104408", "0.509144", "0.5090301", "0.5069867", "0.50497", "0.50425506", "0.50374025", "0.503478", "0.50325906", "0.5025343", "0.50248134", "0.50246906", "0.50205797", "0.5006634", "0.500612", "0.50031537", "0.50018096", "0.5001363", "0.49973276", "0.498992", "0.49874297", "0.49779373", "0.49708486", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.497004", "0.49688372", "0.49634844", "0.49625117", "0.49504066", "0.49450615", "0.4937999", "0.49310666", "0.4913282", "0.48893312", "0.48872012", "0.48861268", "0.48854774", "0.4884581", "0.48825726", "0.48825726", "0.48765224", "0.4876386", "0.48753294", "0.48741552", "0.48726502", "0.48721147", "0.48709393", "0.48667023", "0.48640347", "0.4863642", "0.48597524", "0.48568898", "0.48542425", "0.48480117", "0.48470768", "0.48440447", "0.48434818", "0.4843104", "0.48403233", "0.48280576", "0.48278958", "0.48278958", "0.48278958", "0.48278958", "0.48278958", "0.4826242", "0.4825777", "0.48199055" ]
0.53087145
12
nodeToken > nodeToken1 > nodeToken2 >
@Override public R visit(PrefixDecl n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeToken2.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "Term getNodeTerm();", "abstract Node split();", "abstract Node split();", "public interface QuotedL1Node {\n\n}", "@AutoEscape\n\tpublic String getNode_2();", "List<Node> getNode(String str);", "public void setNode_2(String node_2);", "Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes);", "@AutoEscape\n\tpublic String getNode_1();", "Node currentNode();", "OperationNode getNode();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();", "abstract protected void parseNextToken();", "Token next();", "public void setNode_1(String node_1);", "public static String extractTokens(KSuccessorRelation<NetSystem, Node> rel) {\n\t\t\n\t\tString tokens = \"\";\n\t\tfor (Node[] pair : rel.getSuccessorPairs()) {\n\t\t\t\n\t\t\tString l1 = pair[0].getLabel();\n\t\t\tString l2 = pair[1].getLabel();\n\t\t\t\n\t\t\tif (NodeAlignment.isValidLabel(l1) && NodeAlignment.isValidLabel(l2)) {\n\t\t\t\ttokens += join(processLabel(l1),WORD_SEPARATOR) + \n\t\t\t\t\t\t RELATION_SYMBOL + \n\t\t\t\t\t\t join(processLabel(l2),WORD_SEPARATOR) + \n\t\t\t\t\t\t WHITESPACE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// no relations have been found (because the query contained only single activities)\n\t\t//if (tokens.isEmpty()) {\n\t\t\tfor (Node n : rel.getEntities()) {\n\t\t\t\tString l = n.getLabel();\n\t\t\t\tif (NodeAlignment.isValidLabel(l)) {\n\t\t\t\t\ttokens += join(processLabel(l), WORD_SEPARATOR) + WHITESPACE;\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t\t\n\t\treturn tokens;\n\t}", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }", "@Test\n public void parseToken() {\n }", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "Node getNode();", "Node<K, V> wrapNode(Node<K, V> node) throws IOException;", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "Iterable<T> followNode(T start) throws NullPointerException;", "Iterator<String> getTokenIterator();", "public abstract void storeToken(String token, int treeDepth) throws IOException;", "void putToken(String name, String value);", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "public Vector<Node> GetAdditionalSubNodes();", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "void split(Node n,Stack<Long> nodes);", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "NNode(String[] tokenized) {\r\n\t\tthis(NodeTypeEnum.valueOf(tokenized[3]), Integer.parseInt(tokenized[1]), NodeLabelEnum.valueOf(tokenized[4]));\t\t\r\n\t\tfType = NodeFuncEnum.valueOf(tokenized[2]);\r\n\t\tif (tokenized.length > 5) System.out.println(\"ERROR: Too many segments on reading node from file.\");\r\n\t}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "List<Node> nodes();", "public String toString (Token T);", "@Test\n public void whenAddTwoNodesOnDifferentLevelsThenNextFromBottomLevel() {\n tree.addChild(nodeOne, \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n Iterator iter = tree.iterator();\n assertThat(iter.next(), is(\"2\"));\n }", "public Node setNextNode(Node node);", "@Test\n public void findRightDefinition() {\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 21, 42))).isPresent());\n // Clearly reference the first:\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // Reference the first:\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // So that this will fail:\n assertFalse(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n }", "private boolean performRearrange(List<CommonToken> tokens) throws BadLocationException\n\t{\n\t\tList<TagHolder> topLevelTags=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tint tagLevel=0;\n\t\tfor (int tokenIndex=0;tokenIndex<tokens.size();tokenIndex++)\n\t\t{\n\t\t\tCommonToken token=tokens.get(tokenIndex);\n\t\t\tSystem.out.println(token.getText());\n\t\t\tswitch (token.getType())\n\t\t\t{\n\t\t\t\tcase MXMLLexer.TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttagLevel++;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.END_TAG_OPEN:\n\t\t\t\t\ttagLevel--;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.EMPTY_TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.EMPTYTAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.COMMENT:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n//\t\t\t\tcase MXMLLexer.DECL_START:\n//\t\t\t\tcase MXMLLexer.CDATA:\n//\t\t\t\tcase MXMLLexer.PCDATA:\n//\t\t\t\tcase MXMLLexer.EOL:\n//\t\t\t\tcase MXMLLexer.WS:\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<TagHolder> unsortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tunsortedList.addAll(topLevelTags);\n\t\t\n\t\t//sort the elements in the tag list based on the supplied ordering\n\t\tString ordering=mPrefs.getString(PreferenceConstants.MXMLRearr_RearrangeTagOrdering);\n\t\tString[] tagNames=ordering.split(PreferenceConstants.AS_Pref_Line_Separator);\n\t\tSet<String> usedTags=new HashSet<String>();\n\t\tfor (String tagName : tagNames) {\n\t\t\tif (!tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant))\n\t\t\t\tusedTags.add(tagName);\n\t\t}\n\t\tList<TagHolder> sortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tfor (String tagName : tagNames) \n\t\t{\n\t\t\tboolean isSpecOther=tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant);\n\t\t\t//find all the items that match\n\t\t\tfor (int i=0;i<topLevelTags.size();i++)\n\t\t\t{\n\t\t\t\tTagHolder tagHolder=topLevelTags.get(i);\n\t\t\t\t\n\t\t\t\t//if the tagname matches the current specification \n\t\t\t\t//OR if the current spec is the \"other\" and the current tag doesn't match any in the list\n\t\t\t\tboolean tagMatches=false;\n\t\t\t\tif (!isSpecOther)\n\t\t\t\t{\n\t\t\t\t\tSet<String> testTag=new HashSet<String>();\n\t\t\t\t\ttestTag.add(tagName);\n\t\t\t\t\ttagMatches=matchesRegEx(tagHolder.mTagName, testTag);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttagMatches=(!matchesRegEx(tagHolder.mTagName, usedTags));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (tagMatches)\n\t\t\t\t{\n\t\t\t\t\ttopLevelTags.remove(i);\n\t\t\t\t\tsortedList.add(tagHolder);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsortedList.addAll(topLevelTags);\n\t\t\n\t\t//check for changes: if no changes, do nothing\n\t\tif (sortedList.size()!=unsortedList.size())\n\t\t{\n\t\t\t//error, just kick out\n\t\t\tSystem.out.println(\"Error performing mxml rearrange; tag count doesn't match\");\n\t\t\tmInternalError=\"Internal error replacing text: tag count doesn't match\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean differences=false;\n\t\tfor (int i=0;i<sortedList.size();i++)\n\t\t{\n\t\t\tif (sortedList.get(i)!=unsortedList.get(i))\n\t\t\t{\n\t\t\t\tdifferences=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!differences)\n\t\t\treturn true; //succeeded, just nothing done\n\t\t\n\t\t//reconstruct document in the sorted order\n\t\tString source=mSourceDocument.get();\n\t\tStringBuffer newText=new StringBuffer();\n\t\tfor (TagHolder tagHolder : sortedList) \n\t\t{\n\t\t\tCommonToken startToken=tokens.get(tagHolder.mStartTokenIndex);\n\t\t\tCommonToken endToken=tokens.get(tagHolder.mEndTokenIndex);\n\t\t\tString data=source.substring(startToken.getStartIndex(), endToken.getStopIndex()+1);\n\t\t\tnewText.append(data);\n\t\t}\n\t\t\n\t\tint startOffset=tokens.get(unsortedList.get(0).mStartTokenIndex).getStartIndex();\n\t\tint endOffset=tokens.get(unsortedList.get(unsortedList.size()-1).mEndTokenIndex).getStopIndex()+1;\n\t\tString oldData=mSourceDocument.get(startOffset, endOffset-startOffset);\n\t\tif (!ActionScriptFormatter.validateNonWhitespaceCharCounts(oldData, newText.toString()))\n\t\t{\n\t\t\tmInternalError=\"Internal error replacing text: new text doesn't match replaced text(\"+oldData+\")!=(\"+newText.toString()+\")\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tmSourceDocument.replace(startOffset, endOffset-startOffset, newText.toString());\n\t\t\n\t\treturn true;\n\t}", "interface Node<K, V> {\n /** Returns the key of current node */\n K getKey();\n /** Returns the value of current node */\n V getValue();\n }", "Map<String, String> getTokens();", "NDLMapEntryNode<T> traverse(String tokens[]) { \n\t\tNDLMapEntryNode<T> node = rootNode;\n\t\tboolean found = true;\n\t\tfor(String token : tokens) {\n\t\t\t// traverse\n\t\t\tif(StringUtils.isNotBlank(token)) {\n\t\t\t\t// valid\n\t\t\t\tnode = node.get(token);\n\t\t\t\tif(node == null) {\n\t\t\t\t\tfound = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(found) {\n\t\t\treturn node;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public HuffmanNode (HuffmanToken token) {\n \ttotalFrequency = token.getFrequency();\n \ttokens = new ArrayList<HuffmanToken>();\n \ttokens.add(token);\n \tleft = null;\n \tright = null;\n }", "String getIdNode2();", "@Override\n public TreeNode make(Parser parser) {\n Token token = parser.peek();\n if(token.getTokenID() == Token.TIDEN){\n return nAlistNode.make(parser); //alist trans (dont consume token alist will need it)\n }\n return null; //eps trans\n }", "Node<X> make(Node<X> left, Node<X> right);", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "Iterable<T> followNodeAndSelef(T start) throws NullPointerException;", "void visit(Object node, String command);", "public List<AST> getChildNodes ();", "@AutoEscape\n\tpublic String getNode_3();", "@Override\n public R visit(BaseDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "private static void commonNodesInOrdSuc(Node r1, Node r2)\n {\n Node n1 = r1, n2 = r2;\n \n if(n1==null || n2==null)\n return;\n \n while(n1.left != null)\n n1 = n1.left;\n \n while(n2.left!= null)\n n2 = n2.left;\n \n while(n1!=null && n2!=null)\n {\n if(n1.data < n2.data)\n n1 = inOrdSuc(n1);\n \n else if(n1.data > n2.data)\n n2 = inOrdSuc(n2);\n \n else\n {\n System.out.print(n1.data+\" \"); n1 = inOrdSuc(n1); n2 = inOrdSuc(n2);\n }\n }\n \n System.out.println();\n }", "@Test\n public void testPhylogeneticTreeParserNamednodesNoDistance() {\n // create the actual tree\n String tree = \"(A,B,(C,D)E)F;\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n rootExpected.setName(\"F\");\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"E\");\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "BsonToken nextToken() throws IOException;", "@AutoEscape\n\tpublic String getNode_5();", "HNode getNextSibling();", "public Object[] getSuccessorNodes (Object node) throws InvalidComponentException;", "private static void commonNodesIterInOrd(Node root1,Node root2)\n {\n if(root1 == null || root2 == null) return;\n \n LinkedList<Node> stack1 = new LinkedList<>();\n LinkedList<Node> stack2 = new LinkedList<>();\n \n Node n1 = root1, n2 = root2;\n \n while(true)\n {\n if(n1!=null)\n {\n stack1.push(n1); n1 = n1.left;\n }\n if(n2!=null)\n {\n stack2.push(n2); n2 = n2.left;\n } \n \n if(n1 == null && n2 == null)\n {\n if(stack1.size() == 0 || stack2.size() == 0)\n break;\n \n n1 = stack1.peekFirst(); n2 = stack2.peekFirst();\n \n if(n1.data < n2.data)\n {\n stack1.pop(); n1 = n1.right; n2 = null;\n }\n else if(n1.data > n2.data)\n {\n stack2.pop(); n2 = n2.right; n1 = null;\n }\n else\n {\n stack1.pop(); stack2.pop(); \n System.out.print(n1.data+\" \");\n n1 = n1.right; n2 = n2.right;\n }\n }\n }\n }", "List<String> getTokens();", "public String getNodeValue ();", "private void addTagName(TagHolder holder, List<CommonToken> tokens, int tokenIndex) \n\t{\n\t\ttokenIndex++;\n\t\tfor (;tokenIndex<tokens.size(); tokenIndex++)\n\t\t{\n\t\t\tCommonToken tok=tokens.get(tokenIndex);\n\t\t\tif (tok.getType()==MXMLLexer.GENERIC_ID)\n\t\t\t{\n\t\t\t\tholder.setTagName(tok.getText());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (tok.getText()!=null && tok.getText().trim().length()>0)\n\t\t\t{\n\t\t\t\t//kick out if non whitespace hit; ideally, we shouldn't ever hit here\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z uKBSX,^\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"Z\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\" u\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"KBSX\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "org.apache.xmlbeans.XmlToken xgetRef();", "private Tree<Token> convertToTreeOfTokens(Tree<String> tree) {\n Tree<Token> root = new Tree<Token>(makeOneToken(tree.getValue()));\n\n Iterator<Tree<String>> iter = tree.children();\n \n while (iter.hasNext()) {\n Tree<String> child = iter.next();\n root.addChildren(convertToTreeOfTokens(child));\n }\n return root;\n }", "public interface NCToken extends NCMetadata {\n /**\n * Gets reference to the model this token belongs to.\n *\n * @return Model reference.\n */\n NCModel getModel();\n\n /**\n * Gets ID of the server request this token is part of.\n *\n * @return ID of the server request this token is part of.\n */\n String getServerRequestId();\n\n /**\n * If this token represents user defined model element this method returns\n * the ID of that element. Otherwise, it returns ID of the built-in system token.\n * Note that a sentence can have multiple tokens with the same element ID. \n *\n * @return ID of the element (system or user defined).\n * @see NCElement#getId()\n */\n String getId();\n\n /**\n * Gets the optional parent ID of the model element this token represents. This only available\n * for user-defined model elements - built-in tokens do not have parents and this will return {@code null}.\n *\n * @return ID of the token's element immediate parent or {@code null} if not available.\n * @see NCElement#getParentId()\n * @see #getAncestors()\n */\n String getParentId();\n\n /**\n * Gets the list of all parent IDs from this token up to the root. This only available\n * for user-defined model elements = built-in tokens do not have parents and will return an empty list.\n *\n * @return List, potentially empty but never {@code null}, of all parent IDs from this token up to the root.\n * @see #getParentId()\n */\n List<String> getAncestors();\n\n /**\n * Tests whether this token is a child of given token ID. It is equivalent to:\n * <pre class=\"brush: java\">\n * return getAncestors().contains(tokId);\n * </pre>\n *\n * @param tokId Ancestor token ID.\n * @return <code>true</code> this token is a child of given token ID, <code>false</code> otherwise.\n */\n default boolean isChildOf(String tokId) {\n return getAncestors().contains(tokId);\n }\n\n /**\n * Gets the value if this token was detected via element's value (or its synonyms). Otherwise,\n * returns {@code null}. Only applicable for user-defined model elements - built-in tokens\n * do not have values, and it will return {@code null}.\n *\n * @return Value for the user-defined model element or {@code null}, if not available.\n * @see NCElement#getValues()\n */\n String getValue();\n\n /**\n * Gets the list of groups this token belongs to. Note that, by default, if not specified explicitly,\n * token always belongs to one group with ID equal to token ID.\n *\n * @return Token groups list. Never {@code null} - but can be empty.\n * @see NCElement#getGroups()\n */\n List<String> getGroups();\n\n /**\n * Tests whether this token belongs to the given group. It is equivalent to:\n * <pre class=\"brush: java\">\n * return getGroups().contains(grp);\n * </pre>\n *\n * @param grp Group to test.\n * @return <code>True</code> if this token belongs to the group <code>grp</code>, {@code false} otherwise.\n */\n default boolean isMemberOf(String grp) {\n return getGroups().contains(grp);\n }\n\n /**\n * Gets start character index of this token in the original text.\n *\n * @return Start character index of this token.\n */\n int getStartCharIndex();\n\n /**\n * Gets end character index of this token in the original text.\n *\n * @return End character index of this token.\n */\n int getEndCharIndex();\n\n /**\n * A shortcut method checking whether this token is a stopword. Stopwords are some extremely common\n * words which add little value in helping to understand user input and are excluded from the\n * processing entirely. For example, words like a, the, can, of, about, over, etc. are\n * typical stopwords in English. NLPCraft has built-in set of stopwords.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:stopword\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Whether this token is a stopword.\n */\n default boolean isStopWord() {\n return meta(\"nlpcraft:nlp:stopword\");\n }\n\n /**\n * A shortcut method checking whether this token represents a free word. A free word is a\n * token that was detected neither as a part of user defined nor system tokens.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:freeword\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Whether this token is a freeword.\n */\n default boolean isFreeWord() {\n return meta(\"nlpcraft:nlp:freeword\");\n }\n\n /**\n * A shortcut method that gets original user input text for this token.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:origtext\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Original user input text for this token.\n */\n default String getOriginalText() {\n return meta(\"nlpcraft:nlp:origtext\");\n }\n\n /**\n * A shortcut method that gets index of this token in the sentence.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:index\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Index of this token in the sentence.\n */\n default int getIndex() {\n return meta(\"nlpcraft:nlp:index\");\n }\n\n /**\n * A shortcut method that gets normalized user input text for this token.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:normtext\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Normalized user input text for this token.\n */\n default String getNormalizedText() {\n return meta(\"nlpcraft:nlp:normtext\");\n }\n\n /**\n * A shortcut method on whether this token is a swear word. NLPCraft has built-in list of\n * common English swear words.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:swear\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Whether this token is a swear word.\n */\n default boolean isSwear() {\n return meta(\"nlpcraft:nlp:swear\");\n }\n\n /**\n * A shortcut method to get lemma of this token, i.e. a canonical form of this word. Note that\n * stemming and lemmatization allow reducing inflectional forms and sometimes derivationally related\n * forms of a word to a common base form. Lemmatization refers to the use of a vocabulary and\n * morphological analysis of words, normally aiming to remove inflectional endings only and to\n * return the base or dictionary form of a word, which is known as the lemma.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:lemma\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Lemma of this token, i.e. a canonical form of this word.\n */\n default String getLemma() {\n return meta(\"nlpcraft:nlp:lemma\");\n }\n\n /**\n * A shortcut method to get stem of this token. Note that stemming and lemmatization allow to reduce\n * inflectional forms and sometimes derivationally related forms of a word to a common base form.\n * Unlike lemma, stemming is a basic heuristic process that chops off the ends of words in the\n * hope of achieving this goal correctly most of the time, and often includes the removal of derivational affixes.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:stem\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Stem of this token.\n */\n default String getStem() {\n return meta(\"nlpcraft:nlp:stem\");\n }\n\n /**\n * A shortcut method to get Penn Treebank POS tag for this token. Note that additionally to standard Penn\n * Treebank POS tags NLPCraft introduced '---' synthetic tag to indicate a POS tag for multiword tokens.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:pos\");\n * </pre>\n * See more information on token metadata <a target=_ href=\"https://nlpcraft.apache.org/data-model.html\">here</a>.\n *\n * @return Penn Treebank POS tag for this token.\n */\n default String getPos() {\n return meta(\"nlpcraft:nlp:pos\");\n }\n\n /**\n * A shortcut method that gets internal globally unique system ID of the token.\n * <p>\n * This method is equivalent to:\n * <pre class=\"brush: java\">\n * return meta(\"nlpcraft:nlp:unid\");\n * </pre>\n *\n * @return Internal globally unique system ID of the token.\n */\n default String getUnid() {\n return meta(\"nlpcraft:nlp:unid\");\n } \n}", "@AutoEscape\n\tpublic String getNode_4();", "public Node insertAfter(Node node);", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "private LeafNode(Token newToken) {\r\n\t\tthis.token = newToken;\r\n\t}", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "protected int getNextToken(){\n if( currentToken == 1){\n currentToken = -1;\n }else{\n currentToken = 1;\n }\n return currentToken;\n }", "public interface Node {\n static class NodeComparor implements Comparator<Node>{\n @Override\n public int compare(Node o1, Node o2) {\n return o1.getNodeId().compareTo(o2.getNodeId());\n }\n }\n\n public String getNodeId();\n\n public Chunk getChunck(String id) throws ChunkNotFound;\n\n public void addChunk(Chunk c);\n\n public boolean doesManage(String chunkId);\n\n public void sendMessage(Message m) throws IOException;\n\n public NodeWorkGroup getWorkGroup();\n}", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "public static void lmd_parseTree(){\n\n e_stack.push(\"$\");\n e_stack.push(pc.first_rule);\n head_node=new node(pc.first_rule);\n\n // Evaluate\n // Building the tree as well\n\n node cur=head_node;\n\n for(int i=0;i<token_stream.length;i++){\n System.out.println(e_stack);\n if(!pc.isTerminal(e_stack.peek())){\n String rule_token =pc.parse_Table.get(e_stack.pop(),token_stream[i]).right;\n\n if(!rule_token.equals(\"empty\")) {\n String to_put[]=rule_token.split(\" \");\n for(int j=to_put.length-1;j>=0;j--)\n e_stack.push(to_put[j]);\n\n // add children\n for(int j=0;j<to_put.length;j++)\n addNode(cur,to_put[j]);\n // set cur\n cur=cur.next;\n }\n else {\n // if rule_token is empty\n addNode(cur,\"empty\");\n cur=cur.next.next; // as \"empty\" node will not have any children\n }\n i--;\n }\n else {\n // if(e_stack.peek().equals(token_stream[i]))\n e_stack.pop();\n if(cur.next!=null ) cur=cur.next;\n }\n }\n }", "public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}", "@Test\r\n\tpublic void testProcessPass1Other()\r\n\t{\r\n\t\tToken t3 = new Token(TokenTypes.EXP5.name(), 1, null);\r\n\t\tt3.setType(\"INT\");\r\n\t\tArrayList<Token> tkns = new ArrayList<Token>();\t\t\t\r\n\t\ttkns.add(t3);\r\n\t\t\r\n\t\tToken t4 = new Token(TokenTypes.EXP4.name(), 1, tkns);\r\n\t\tClass c1 = new Class(\"ClassName\", null, null);\r\n\t\tPublicMethod pm = new PublicMethod(\"MethodName\", null, VariableType.BOOLEAN, null);\r\n\t\tt4.setParentMethod(pm);\r\n\t\tt4.setParentClass(c1);\r\n\r\n\t\tToken.pass1(t4);\r\n\t\t\r\n\t\tfor(int i = 0; i < t4.getChildren().size(); i++){\r\n\t\t\tToken child = t4.getChildren().get(i);\r\n\t\t\t\r\n\t\t\tassertEquals(child.getParentClass().getName(), t4.getParentClass().getName());\r\n\t\t\tassertEquals(child.getParentMethod(), t4.getParentMethod());\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(t4.getType(), \"INT\");\r\n\t}", "private TreeNode<K> combine(TreeNode<K> x, TreeNode<K> y) {\n TreeNode<K> z = new TreeNode<K>();\n z.left = x;\n z.right = y;\n z.rank = x.rank + 1;\n sift(z);\n return z;\n }", "private static TreeNode parseTreeNode(Scanner in)\n {\n int numberOfChildren = in.nextInt();\n int numberOfMetadata = in.nextInt();\n TreeNode newNode = new TreeNode(numberOfChildren, numberOfMetadata);\n\n // Recursively resolve children\n for (int i = 0; i < numberOfChildren; i++)\n {\n newNode.mChildren[i] = parseTreeNode(in);\n }\n\n // Now resolve the metadata by consuming tokens\n for (int i = 0; i < numberOfMetadata; i++)\n {\n newNode.mMetadata[i] = in.nextInt();\n }\n\n return newNode;\n }", "NodeChain createNodeChain();", "@Test\n public void testPhylogeneticTreeParserNamednodesAndDistance() {\n // create the actual tree\n String tree = \"(A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5)F;\";\n PhylogeneticTreeItem rootActual = PhylogeneticTreeParser.parse(tree);\n\n // create the expected Tree\n // root node\n PhylogeneticTreeItem rootExpected = new PhylogeneticTreeItem();\n rootExpected.setName(\"F\");\n // add 3 child nodes\n PhylogeneticTreeItem current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"A\");\n current.setDistance(0.1);\n current = new PhylogeneticTreeItem();\n current.setName(\"B\");\n current.setDistance(0.2);\n current.setParent(rootExpected);\n current = new PhylogeneticTreeItem();\n current.setParent(rootExpected);\n current.setName(\"E\");\n current.setDistance(0.5);\n // add 2 child nodes to the third node\n PhylogeneticTreeItem current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"C\");\n current2.setDistance(0.3);\n current2 = new PhylogeneticTreeItem();\n current2.setParent(current);\n current2.setName(\"D\");\n current2.setDistance(0.4);\n\n // compare the trees\n assertEquals(\"both trees do not match\", rootExpected, rootActual);\n\n }" ]
[ "0.6145059", "0.5677637", "0.56600505", "0.56600505", "0.55566126", "0.5537073", "0.5448758", "0.53630143", "0.5340851", "0.5200486", "0.51558053", "0.5085834", "0.5084792", "0.5070836", "0.505062", "0.5046389", "0.5044816", "0.5017703", "0.5007184", "0.49879417", "0.49665523", "0.49638397", "0.49630392", "0.49540156", "0.49298078", "0.4924846", "0.4909421", "0.4902745", "0.48846355", "0.48843122", "0.48828623", "0.4871539", "0.4871539", "0.48664138", "0.48599625", "0.4859097", "0.4855206", "0.48475644", "0.4841297", "0.48410046", "0.48409984", "0.4835663", "0.48296112", "0.48211992", "0.48203337", "0.48153812", "0.4810393", "0.48074505", "0.48030925", "0.47975853", "0.47864717", "0.47855663", "0.47842884", "0.47750482", "0.4773021", "0.47680295", "0.47578415", "0.47535175", "0.47522542", "0.47504023", "0.473848", "0.47303548", "0.47297063", "0.47182372", "0.47173166", "0.47059512", "0.47025576", "0.47001708", "0.46951932", "0.46911162", "0.46875393", "0.46865815", "0.46763682", "0.46763638", "0.466912", "0.46691155", "0.4661764", "0.46597996", "0.46589866", "0.46510884", "0.4645106", "0.4641984", "0.46369457", "0.463308", "0.463308", "0.463308", "0.463308", "0.463308", "0.463308", "0.463308", "0.463308", "0.463308", "0.463308", "0.46252194", "0.46240807", "0.46206182", "0.4616028", "0.46147865", "0.46047673", "0.4604611" ]
0.4938978
24
nodeToken > nodeOptional > ( | )? nodeChoice > ( ( Var() )+ | "" ) nodeListOptional > ( DatasetClause() ) whereClause > WhereClause() solutionModifier > SolutionModifier()
@Override public R visit(SelectQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeOptional.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeListOptional.accept(this, argu); n.whereClause.accept(this, argu); n.solutionModifier.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(DescribeQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SolutionModifier n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeOptional1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public Snippet visit(ExplodedSpecification n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\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 }", "Node getVariable();", "public interface DataNode\r\n{\r\n /** @return type name of this data node */\r\n public String get_type_name();\r\n /** @return the bits of this data node */\r\n public String get_bitsequence_value() ;\r\n \r\n /** @return size of this data in bits*/\r\n public int get_bit_size(); \r\n \r\n /** @return size of this data as an integer (for expresion evaluation\r\n * purpose */\r\n public int get_int_value() throws Exception;\r\n \r\n /** @return the number of bits this type takes */ \r\n public int get_fieldsize();\r\n \r\n /** set the expression for number of bits this type takes*/\r\n public void set_fieldsize(AST fieldsize);\r\n \r\n /** set valid ok nok */\r\n public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;\r\n \r\n /** sets the contaxt for evaluation of expressions for this data node*/\r\n public void set_context(VariableSymbolTable context);\r\n \r\n /** print a human readable form of this node */\r\n public String print();\r\n \r\n /** print with formatting \r\n * 0 = print() [debug formatted]\r\n * 1 = as string [useful to write to a file]\r\n * 2 = debug with strings [similar to 0, but with strings instad of bytes]\r\n * @return Formatted output ready to be printed\r\n */\r\n public String print(int format);\r\n public void set_name(String name);\r\n public String get_name();\r\n \r\n /** returns the maximum size this object can accept (hold) or -1 for infinity */\r\n public int get_max_accept() throws Exception;\r\n public void assign(DataNodeAbstract rhs) throws Exception;\r\n public void populate(BdplFile rhs) throws Exception;\r\n \r\n}", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public QuestionNode(String query, DecisionNode yesTree, DecisionNode noTree) {\n this.query = query;\n this.yesTree = yesTree;\n this.noTree = noTree;\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 }", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Override\n public R visit(Antecedent n, A argu) {\n R _ret = null;\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Override\n public R visit(Query n, A argu) {\n R _ret = null;\n n.prologue.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "@Test\n \tpublic void whereClauseForNodeRoot() {\n \t\tnode23.setRoot(true);\n \t\tcheckWhereCondition(\"_rank23.root IS TRUE\");\n \t}", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTCondSome node, Object data) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTLetClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"let \");\n\t\tint numOfChild = node.jjtGetNumChildren();\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < numOfChild; i++) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\",\");\n\t\t\t\tprintIndent(indent + 2);\n\t\t\t}\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, data);\n\t\t}\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ConstructQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.constructTemplate.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "protected Node getOptionalNode(Node parent, int idx)\n {\n if (hasArgument(parent, idx)) {\n return parent.jjtGetChild(idx);\n }\n return null;\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTWhereClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"where \");\n\t\tnode.childrenAccept(this, 0);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "public void defaultVisit(ParseNode node) {}", "public Node(String name, boolean action, boolean raceAndCar, boolean card, boolean strategy, boolean adventure,\n boolean online, boolean simulation, boolean management, boolean horror, boolean mental) {\n \n this.name = name;\n this.action=action;\n this.raceAndCar=raceAndCar;\n this.card=card;\n this.strategy=strategy;\n this.adventure=adventure;\n this.online=online;\n this.simulation=simulation;\n this.management=management;\n this.horror=horror;\n this.mental=mental;\n }", "public Element getPredicateVariable();", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "final public LogicalPlan Parse() throws ParseException {\n /*@bgen(jjtree) Parse */\n SimpleNode jjtn000 = new SimpleNode(JJTPARSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);LogicalOperator root = null;\n Token t1;\n Token t2;\n LogicalPlan lp = new LogicalPlan();\n log.trace(\"Entering Parse\");\n try {\n if (jj_2_1(3)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n t2 = jj_consume_token(IDENTIFIER);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AS:\n jj_consume_token(AS);\n jj_consume_token(80);\n TupleSchema();\n jj_consume_token(81);\n break;\n default:\n jj_la1[0] = jj_gen;\n ;\n }\n jj_consume_token(82);\n {if (true) throw new ParseException(\n \"Currently PIG does not support assigning an existing relation (\" + t1.image + \") to another alias (\" + t2.image + \")\");}\n } else if (jj_2_2(2)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n root = Expr(lp);\n jj_consume_token(82);\n root.setAlias(t1.image);\n addAlias(t1.image, root);\n pigContext.setLastAlias(t1.image);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n case LOAD:\n case FILTER:\n case FOREACH:\n case ORDER:\n case DISTINCT:\n case COGROUP:\n case JOIN:\n case CROSS:\n case UNION:\n case GROUP:\n case STREAM:\n case STORE:\n case LIMIT:\n case SAMPLE:\n case IDENTIFIER:\n case 80:\n root = Expr(lp);\n jj_consume_token(82);\n break;\n case SPLIT:\n jj_consume_token(SPLIT);\n root = SplitClause(lp);\n jj_consume_token(82);\n break;\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n if(null != root) {\n log.debug(\"Adding \" + root.getAlias() + \" \" + root + \" to the lookup table \" + aliases);\n\n //Translate all the project(*) leaves in the plan to a sequence of projections\n ProjectStarTranslator translate = new ProjectStarTranslator(lp);\n translate.visit();\n\n addLogicalPlan(root, lp);\n\n try {\n log.debug(\"Root: \" + root.getClass().getName() + \" schema: \" + root.getSchema());\n } catch(FrontendException fee) {\n ParseException pe = new ParseException(fee.getMessage());\n pe.initCause(fee);\n {if (true) throw pe;}\n }\n }\n\n ArrayList<LogicalOperator> roots = new ArrayList<LogicalOperator>(lp.getRoots().size());\n for(LogicalOperator op: lp.getRoots()) {\n roots.add(op);\n }\n\n Map<LogicalOperator, Boolean> rootProcessed = new HashMap<LogicalOperator, Boolean>();\n for(LogicalOperator op: roots) {\n //At this point we have a logical plan for the pig statement\n //In order to construct the entire logical plan we need to traverse\n //each root and get the logical plan it belongs to. From each of those\n //plans we need the predecessors of the root of the current logical plan\n //and so on. This is a computationally intensive operatton but should\n //be fine as its restricted to the parser\n\n LogicalPlan rootPlan = aliases.get(op);\n if(null != rootPlan) {\n attachPlan(lp, op, rootPlan, rootProcessed);\n rootProcessed.put(op, true);\n }\n }\n\n log.trace(\"Exiting Parse\");\n {if (true) return lp;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n\tpublic Void visit(ClauseVarType clause, Void ctx) {\n\t\treturn null;\n\t}", "private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public void visit(NoOpNode noOpNode) {\n }", "OperationNode getNode();", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "public Node(){\r\n primarySequence = null;\r\n dotBracketString = null;\r\n validity = false;\r\n prev = null;\r\n next = null;\r\n }", "@Override\n public String visit(VariableDeclarationExpr n, Object arg) {\n return null;\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "@Override\n\tpublic Object visit(FuncNode funcNode) {\n\t\tif (funcNode.getChild(0) != null) \n\t\t\tfuncNode.getChild(0).accept(this);\t\n\t\t\n\t\t//Variables\n\t\tif (funcNode.getChild(1) != null)\n\t\t\tfuncNode.getChild(1).accept(this);\n\t\n\t\t//Compstmt\n\t\tfuncNode.getChild(2).accept(this);\n\t\t\n\treturn null; }", "@Override\n\tpublic Object visit(ASTCondIs node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" is \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }", "public StatementNode getStatementNodeOnTrue();", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "public Snippet visit(TopLevelDeclaration n, Snippet argu) {\n\t Snippet _ret=null;\n\t n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "private ExpSem choose(AST.Expression exp, QvarSem qvar, ExpSem none, FunExpSem some)\n {\n if (qvar instanceof QvarSem.Single &&\n (none == null || none instanceof ExpSem.Single) &&\n some instanceof FunExpSem.Single)\n {\n QvarSem.Single qvar0 = (QvarSem.Single)qvar;\n ExpSem.Single none0 = (ExpSem.Single)none;\n FunExpSem.Single some0 = (FunExpSem.Single)some;\n if (translator.nondeterministic)\n return (ExpSem.Multiple)(Context c)-> \n {\n Seq<Value[]> v = qvar0.apply(c);\n // if (v.get() == null)\n // {\n // if (none0 == null)\n // return Seq.empty();\n // else\n // return Seq.cons(none0.apply(c), Seq.empty());\n // }\n // return v.apply((Value[] v1)->some0.apply(v1).apply(c));\n if (none0 == null)\n return v.apply((Value[] v1)->some0.apply(v1).apply(c));\n else\n return Seq.append(v.apply((Value[] v1)->some0.apply(v1).apply(c)),\n Seq.supplier(()->new Seq.Next<Value>(none0.apply(c), Seq.empty())));\n };\n else\n return (ExpSem.Single)(Context c)-> \n {\n Main.performChoice();\n Seq<Value[]> v = qvar0.apply(c);\n Seq.Next<Value[]> next = v.get();\n if (next == null) \n {\n if (none0 == null)\n {\n translator.runtimeError(exp, \"no choice possible\");\n return null;\n }\n else\n return none0.apply(c);\n }\n else\n return some0.apply(next.head).apply(c);\n };\n }\n else\n {\n QvarSem.Multiple qvar0 = qvar.toMultiple();\n FunExpSem.Multiple some0 = some.toMultiple();\n ExpSem.Multiple none0 = none == null ? null : none.toMultiple();\n return (ExpSem.Multiple)(Context c)->\n {\n Seq<Seq<Value[]>> result = qvar0.apply(c);\n return result.applyJoin((Seq<Value[]> v)->\n {\n if (v.get() == null) \n {\n if (none0 == null)\n return Seq.empty();\n else\n return none0.apply(c);\n }\n return v.applyJoin((Value[] v1)->some0.apply(v1).apply(c));\n });\n };\n }\n }", "@Override\n public R visit(TriplesBlock n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "private Term parseTerm(final boolean required) throws ParseException {\n return parseAssign(required);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void build(Node<VirtualDataSet> node) {\n\n\t\tif (node == null)\n\t\t\tthrow new NullPointerException(\"Cannot built a decision (sub)tree for a null node.\");\n\n\t\tVirtualDataSet set = node.data;\n\n\t\tif (set == null || set.getNumberOfDatapoints() == 0 || set.getNumberOfAttributes() == 0)\n\t\t\tthrow new IllegalStateException(\"The dataset is in an invalid state!\");\n\n\t\tif (set.getNumberOfAttributes() == 1) // We have only the class attribute left\n\t\t\treturn;\n\n\t\tif (set.getAttribute(set.getNumberOfAttributes() - 1).getValues().length == 1) // No uncertainty left\n\t\t\treturn;\n\n\t\tboolean needsSplit = false;\n\n\t\tfor (int i = 0; i < set.getNumberOfAttributes() - 1; i++) {\n\t\t\tif (set.getAttribute(i).getValues().length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tneedsSplit = true;\n\t\t}\n\n\t\tif (!needsSplit) // split would be futile for all remaining attributes\n\t\t\treturn;\n\n\t\tGainInfoItem[] gains = InformationGainCalculator.calculateAndSortInformationGains(set);\n\t\t\n\t\tif (gains[0].getGainValue() == 0.0) // No split when there is no gain\n\t\t\treturn; \n\n\t\tAttribute bestAttribute = set.getAttribute(gains[0].getAttributeName());\n\n\t\tif (bestAttribute.getType() == AttributeType.NOMINAL) {\n\t\t\tVirtualDataSet[] partitions = set\n\t\t\t\t\t.partitionByNominallAttribute(set.getAttributeIndex(bestAttribute.getName()));\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\n\t\t} else {\n\t\t\tint attributeIndex = node.data.getAttributeIndex(bestAttribute.getName());\n\n\t\t\tString[] values = bestAttribute.getValues();\n\n\t\t\tint valueIndex = -1;\n\n\t\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\t\tif (values[i].equals(gains[0].getSplitAt())) {\n\t\t\t\t\tvalueIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (valueIndex == -1) {\n\t\t\t\tSystem.out.println(\"Houston, we have a problem!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tVirtualDataSet[] partitions = set.partitionByNumericAttribute(attributeIndex, valueIndex);\n\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\t\t}\n\t}", "Term getNodeTerm();", "@Override\n\tpublic Object visit(ASTCondEq node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" eq \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public abstract void accept0(IASTNeoVisitor visitor);", "public Snippet visit(DotIsFirst n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t //return new Snippet(\"\", _ret.returnTemp+\".isFirst()\", new X10Boolean(), false);\n\t return new Snippet(\"\", \"true\", new X10Boolean(), false);\n\t \n\t }", "public Snippet visit(NonArrayType n, Snippet argu) {\n\t Snippet _ret=null;\n\t \n\t _ret =n.nodeChoice.accept(this, argu); \n\t\t\t_ret.expType.typeName = _ret.returnTemp;\n\t return _ret;\n\t }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "public Snippet visit(DotNext n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t // return new Snippet(\"\", _ret.returnTemp+\".next()\", new X10Place(), false);\n\t return new Snippet(\"\", \"0\", new X10Place(), false);\n\t }", "AlgNode routeDml( LogicalModify node, Statement statement );", "public String visit(Clause n, String s) {\n n.f0.accept(this, null);\n return null;\n }", "private void parseOpt(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (! ok && in == saveIn) ok = true;\r\n }", "@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "@Test\n public void syntactic_fail(){\n SetupMocks.setup();\n\n List<Token> tokens= new ArrayList<>();\n\n// tokens.add(new Token(Token.TSTRG,1,1,null));\n\n tokens.add(new Token(Token.TCOMA,1,1,null));\n\n Parser parser = new Parser(tokens);\n\n NPrintItemNode nPrintItemNode = new NPrintItemNode();\n nPrintItemNode.setnExprNode(NExprNode.INSTANCE());\n\n TreeNode printitem = nPrintItemNode.make(parser);\n\n assertEquals(TreeNode.NUNDEF, printitem.getValue());\n\n }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "public interface QuotedL1Node {\n\n}", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "public void explore(Node node, int nchoices) {\n /**\n * Solution strategy: recursive backtracking.\n */\n\n if (nchoices == graphSize) {\n //\n // BASE CASE\n //\n if (this.this_distance < this.min_distance || this.min_distance < 0) {\n // if this_distance < min_distance, this is our new minimum distance\n // if min_distance < 0, this is our first minimium distance\n this.min_distance = this.this_distance;\n\n\n printSolution();\n\n\n } else {\n printFailure();\n }\n\n } else {\n //\n // RECURSIVE CASE\n //\n Set<Node> neighbors = graph.adjacentNodes(node);\n for (Node neighbor : neighbors) {\n if (neighbor.visited == false) {\n\n int distance_btwn = 0;\n\n for (Edge edge : graph.edgesConnecting(node, neighbor)) {\n distance_btwn = edge.value;\n\n\n }\n\n\n // Make a choice\n\n this.route[nchoices] = neighbor;\n neighbor.visit();\n this.this_distance += distance_btwn;\n\n // Explore the consequences\n explore(neighbor, nchoices+ 1);\n\n // Unmake the choice\n\n this.route[nchoices] = null;\n neighbor.unvisit();\n this.this_distance -= distance_btwn;\n\n }\n\n // Move on to the next choice (continue loop)\n }\n\n\n } // End base/recursive case\n\n\n }", "public Snippet visit(DistType n, Snippet argu) {\n\t\t Snippet _ret=new Snippet(\"\",\"\", null ,false);\n\t\t\t_ret.expType = new X10Distribution(1);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t Snippet f3 = n.rankEquation.accept(this, argu);\n\t _ret.returnTemp = \"int\";\n\t n.nodeToken3.accept(this, argu);\n\t return _ret;\n\t }", "protected IndigoValenceCheckerNodeModel()\r\n {\r\n super(1, 3);\r\n }", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }" ]
[ "0.63794965", "0.61163324", "0.5921776", "0.5809663", "0.5791704", "0.5772481", "0.57223266", "0.56490624", "0.56092495", "0.55210996", "0.54840904", "0.54733855", "0.547277", "0.5434244", "0.5398167", "0.53896546", "0.537442", "0.5348031", "0.5323522", "0.5281915", "0.5252484", "0.5249898", "0.5241848", "0.5223647", "0.5209091", "0.52089316", "0.5175714", "0.51728326", "0.51597273", "0.51230603", "0.51004857", "0.50904405", "0.5089805", "0.50533885", "0.5013496", "0.49978402", "0.49916497", "0.49728757", "0.497101", "0.49646097", "0.49574366", "0.49423546", "0.49386686", "0.49374866", "0.49294457", "0.4905813", "0.4901912", "0.48991722", "0.4898294", "0.488795", "0.48804945", "0.48576894", "0.48546362", "0.48519298", "0.48454142", "0.4843785", "0.48423302", "0.48132282", "0.48129812", "0.48069638", "0.48043147", "0.47951412", "0.47930327", "0.47869775", "0.47767702", "0.47676238", "0.47663403", "0.47593153", "0.47556382", "0.4754367", "0.47531787", "0.47502387", "0.47456124", "0.47423738", "0.47399762", "0.47383815", "0.4736988", "0.47369525", "0.47368488", "0.47302338", "0.47257572", "0.47255296", "0.47234765", "0.4722247", "0.47213364", "0.47143063", "0.47059682", "0.47046658", "0.47011086", "0.46804366", "0.46787181", "0.46685725", "0.46618325", "0.46560302", "0.46455008", "0.46428266", "0.46406686", "0.4631801", "0.4630084", "0.46268132" ]
0.57208425
7
nodeToken > constructTemplate > ConstructTemplate() nodeListOptional > ( DatasetClause() ) whereClause > WhereClause() solutionModifier > SolutionModifier()
@Override public R visit(ConstructQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.constructTemplate.accept(this, argu); n.nodeListOptional.accept(this, argu); n.whereClause.accept(this, argu); n.solutionModifier.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DataNode\r\n{\r\n /** @return type name of this data node */\r\n public String get_type_name();\r\n /** @return the bits of this data node */\r\n public String get_bitsequence_value() ;\r\n \r\n /** @return size of this data in bits*/\r\n public int get_bit_size(); \r\n \r\n /** @return size of this data as an integer (for expresion evaluation\r\n * purpose */\r\n public int get_int_value() throws Exception;\r\n \r\n /** @return the number of bits this type takes */ \r\n public int get_fieldsize();\r\n \r\n /** set the expression for number of bits this type takes*/\r\n public void set_fieldsize(AST fieldsize);\r\n \r\n /** set valid ok nok */\r\n public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;\r\n \r\n /** sets the contaxt for evaluation of expressions for this data node*/\r\n public void set_context(VariableSymbolTable context);\r\n \r\n /** print a human readable form of this node */\r\n public String print();\r\n \r\n /** print with formatting \r\n * 0 = print() [debug formatted]\r\n * 1 = as string [useful to write to a file]\r\n * 2 = debug with strings [similar to 0, but with strings instad of bytes]\r\n * @return Formatted output ready to be printed\r\n */\r\n public String print(int format);\r\n public void set_name(String name);\r\n public String get_name();\r\n \r\n /** returns the maximum size this object can accept (hold) or -1 for infinity */\r\n public int get_max_accept() throws Exception;\r\n public void assign(DataNodeAbstract rhs) throws Exception;\r\n public void populate(BdplFile rhs) throws Exception;\r\n \r\n}", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "public TSPMSTSolution(int[] included, int[] includedT, int[] excluded, int[] excludedT, int iterations, double[] weight)\n {\n// System.out.println(\"CHILD NODE CREATED\");\n this.included = included;\n this.includedT = includedT;\n this.excluded = excluded;\n this.excludedT = excludedT;\n this.iterations = iterations;\n this.weight = weight;\n }", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\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 }", "GeneralClause createGeneralClause();", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "protected GenTreeOperation() {}", "@Override\n public R visit(Antecedent n, A argu) {\n R _ret = null;\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Test\n public void testNaya() throws Exception {\n ICFG mCFG = null;\n\n // Why A,W ?\n // A -> start node\n // W -> end node\n ICFGBasicBlockNode A = new CFGBasicBlockNode(\"A\",null);\n ICFGBasicBlockNode W = new CFGBasicBlockNode(\"W\",null);\n // This constructor initializes mCFG with start & end node\n mCFG = new CFG(A, W);\n\n ConcreteConstant CONSTANT_TWO = new ConcreteConstant(2,mCFG);\n ConcreteConstant CONSTANT_FIVE = new ConcreteConstant(5,mCFG);\n ConcreteConstant CONSTANT_TWENTY = new ConcreteConstant(20,mCFG);\n ConcreteConstant CONSTANT_THIRTY = new ConcreteConstant(30,mCFG);\n\n\n // variables x & y\n Variable x = new Variable(\"x\", mCFG);\n Variable y = new Variable(\"y\", mCFG);\n Variable p = new Variable(\"p\", mCFG);\n Variable q = new Variable(\"q\", mCFG);\n\n True trueExpr = new True(mCFG);\n ICFGDecisionNode B = new CFGDecisionNode(mCFG,trueExpr);\n mCFG.addDecisionNode(B);\n\n ICFGBasicBlockNode C = new CFGBasicBlockNode(\"C\", mCFG);\n Input i1 = new Input(mCFG);\n Statement stmt1 = new Statement(mCFG, x, i1);\n C.setStatement(stmt1);\n mCFG.addBasicBlockNode(C);\n\n ICFGBasicBlockNode D = new CFGBasicBlockNode(\"D\", mCFG);\n Input i2 = new Input(mCFG);\n Statement stmt2 = new Statement(mCFG, y, i2);\n D.setStatement(stmt2);\n mCFG.addBasicBlockNode(D);\n\n LesserThanExpression expr3 = new LesserThanExpression(mCFG, x, y);\n ICFGDecisionNode E = new CFGDecisionNode(mCFG,expr3);\n mCFG.addDecisionNode(E);\n\n ICFGBasicBlockNode F = new CFGBasicBlockNode(\"F\", mCFG);\n AddExpression addExpr1 = new AddExpression(mCFG,x,y);\n Statement stmt3 = new Statement(mCFG, p, addExpr1);\n F.setStatement(stmt3);\n mCFG.addBasicBlockNode(F);\n\n ICFGBasicBlockNode G = new CFGBasicBlockNode(\"G\", mCFG);\n SubExpression subExpr1 = new SubExpression(mCFG,x,y);\n Statement stmt4 = new Statement(mCFG, p, subExpr1);\n G.setStatement(stmt4);\n mCFG.addBasicBlockNode(G);\n//\n//\n// //edges\n ICFEdge AB = new CFEdge(\"AB\", mCFG, A, B);\n ICFEdge BC = new CFEdge(\"BC\", mCFG, B, C);\n ICFEdge CD = new CFEdge(\"CD\", mCFG, C, D);\n ICFEdge DE = new CFEdge(\"DE\", mCFG, D, E);\n ICFEdge EF = new CFEdge(\"EF\", mCFG, E, F);\n ICFEdge EG = new CFEdge(\"EG\", mCFG, E, G);\n ICFEdge FB = new CFEdge(\"FB\", mCFG, F, B);\n ICFEdge GB = new CFEdge(\"GB\", mCFG, G, B);\n ICFEdge BW = new CFEdge(\"BW\", mCFG, B, W);\n\n B.setThenEdge(BC);\n B.setElseEdge(BW);\n\n E.setThenEdge(EF);\n E.setElseEdge(EG);\n\n System.out.println(mCFG.getEdgeSet());\n\n// System.out.println(mCFG.getNodeSet());\n// System.out.println(mCFG.getEdgeSet());\n\n SEENew2 seeNew2 = new SEENew2(mCFG);\n\n SETNode setNode6 = seeNew2.allPathSE(mCFG,10);\n//\n// System.out.println(seeNew2.getSET().getStartNode().getIncomingEdge());\n// System.out.println(seeNew2.getSET().getStartNode().getCFGNode());\n//\n// Set<SETEdge> edgeSet = seeNew2.getSET().getEdgeSet();\n// for (SETEdge setEdge:edgeSet){\n// System.out.println(\"Edge:\"+setEdge);\n// System.out.println(\"Head:\"+setEdge.getHead());\n// System.out.println(\"Tail:\"+setEdge.getTail().getIncomingEdge());\n// System.out.println(\"Tail:\"+setEdge.getTail().getCFGNode());\n// }\n\n// Set<SETNode> nodeSet = seeNew2.getSET().getNodeSet();\n// for (SETNode setNode:nodeSet){\n// System.out.println(\"Node:\"+setNode);\n// System.out.println(\"CFGNode:\"+setNode.getCFGNode());\n//// System.out.println(\"Head:\"+setEdge.getHead());\n//// System.out.println(\"Tail:\"+setEdge.getTail());\n// }\n\n// // passing empty environment & startNode\n// SETBasicBlockNode startNode = new SETBasicBlockNode(seeNew2.getSET(),A);\n//\n// SETNode setNode = seeNew2.singleStep(B,startNode);\n// System.out.println(setNode.getLatestValue(x));\n//\n// SETNode setNode2 = seeNew2.singleStep(C,setNode);\n// System.out.println(setNode2.getLatestValue(y));\n//\n// SETNode setNode3 = seeNew2.singleStep(D,setNode2);\n// System.out.println(\"PathPredicate:\"+((SETDecisionNode)setNode3).getCondition());\n//\n// SETNode setNode4 = seeNew2.singleStep(E,setNode3);\n// System.out.println(setNode4.getLatestValue(x));\n//\n// SETNode setNode5 = seeNew2.singleStep(F,setNode4);\n// System.out.println(setNode5.getLatestValue(x));\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6.getSET());\n\n// System.out.println(seeNew2.getSET().getNodeSet());\n\n// System.out.println(seeNew2.getSET().getNumberOfDecisionNodes());\n\n// SETNode setNode6 = seeNew2.allPathSE(mCFG,5);\n// System.out.println(setNode6);\n\n\n\n\n\n }", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public interface Node extends WrappedIndividual {\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FEMSettingsPAK.owl#hasNodeSettings\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeSettings property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeSettings property.\r\n */\r\n Collection<? extends NodeSettings> getHasNodeSettings();\r\n\r\n /**\r\n * Checks if the class has a hasNodeSettings property value.<p>\r\n * \r\n * @return true if there is a hasNodeSettings property value.\r\n */\r\n boolean hasHasNodeSettings();\r\n\r\n /**\r\n * Adds a hasNodeSettings property value.<p>\r\n * \r\n * @param newHasNodeSettings the hasNodeSettings property value to be added\r\n */\r\n void addHasNodeSettings(NodeSettings newHasNodeSettings);\r\n\r\n /**\r\n * Removes a hasNodeSettings property value.<p>\r\n * \r\n * @param oldHasNodeSettings the hasNodeSettings property value to be removed.\r\n */\r\n void removeHasNodeSettings(NodeSettings oldHasNodeSettings);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isBoundaryNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isBoundaryNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isBoundaryNodeOf property.\r\n */\r\n Collection<? extends Boundary> getIsBoundaryNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isBoundaryNodeOf property value.<p>\r\n * \r\n * @return true if there is a isBoundaryNodeOf property value.\r\n */\r\n boolean hasIsBoundaryNodeOf();\r\n\r\n /**\r\n * Adds a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param newIsBoundaryNodeOf the isBoundaryNodeOf property value to be added\r\n */\r\n void addIsBoundaryNodeOf(Boundary newIsBoundaryNodeOf);\r\n\r\n /**\r\n * Removes a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param oldIsBoundaryNodeOf the isBoundaryNodeOf property value to be removed.\r\n */\r\n void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isNodeOf property.\r\n */\r\n Collection<? extends Subdomain> getIsNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isNodeOf property value.<p>\r\n * \r\n * @return true if there is a isNodeOf property value.\r\n */\r\n boolean hasIsNodeOf();\r\n\r\n /**\r\n * Adds a isNodeOf property value.<p>\r\n * \r\n * @param newIsNodeOf the isNodeOf property value to be added\r\n */\r\n void addIsNodeOf(Subdomain newIsNodeOf);\r\n\r\n /**\r\n * Removes a isNodeOf property value.<p>\r\n * \r\n * @param oldIsNodeOf the isNodeOf property value to be removed.\r\n */\r\n void removeIsNodeOf(Subdomain oldIsNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isVertexOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isVertexOf property.<p>\r\n * \r\n * @returns a collection of values for the isVertexOf property.\r\n */\r\n Collection<? extends Subdomain_group> getIsVertexOf();\r\n\r\n /**\r\n * Checks if the class has a isVertexOf property value.<p>\r\n * \r\n * @return true if there is a isVertexOf property value.\r\n */\r\n boolean hasIsVertexOf();\r\n\r\n /**\r\n * Adds a isVertexOf property value.<p>\r\n * \r\n * @param newIsVertexOf the isVertexOf property value to be added\r\n */\r\n void addIsVertexOf(Subdomain_group newIsVertexOf);\r\n\r\n /**\r\n * Removes a isVertexOf property value.<p>\r\n * \r\n * @param oldIsVertexOf the isVertexOf property value to be removed.\r\n */\r\n void removeIsVertexOf(Subdomain_group oldIsVertexOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasNodeID\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeID property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeID property.\r\n */\r\n Collection<? extends Integer> getHasNodeID();\r\n\r\n /**\r\n * Checks if the class has a hasNodeID property value.<p>\r\n * \r\n * @return true if there is a hasNodeID property value.\r\n */\r\n boolean hasHasNodeID();\r\n\r\n /**\r\n * Adds a hasNodeID property value.<p>\r\n * \r\n * @param newHasNodeID the hasNodeID property value to be added\r\n */\r\n void addHasNodeID(Integer newHasNodeID);\r\n\r\n /**\r\n * Removes a hasNodeID property value.<p>\r\n * \r\n * @param oldHasNodeID the hasNodeID property value to be removed.\r\n */\r\n void removeHasNodeID(Integer oldHasNodeID);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasXCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasXCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasXCoordinate property.\r\n */\r\n Collection<? extends Object> getHasXCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasXCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasXCoordinate property value.\r\n */\r\n boolean hasHasXCoordinate();\r\n\r\n /**\r\n * Adds a hasXCoordinate property value.<p>\r\n * \r\n * @param newHasXCoordinate the hasXCoordinate property value to be added\r\n */\r\n void addHasXCoordinate(Object newHasXCoordinate);\r\n\r\n /**\r\n * Removes a hasXCoordinate property value.<p>\r\n * \r\n * @param oldHasXCoordinate the hasXCoordinate property value to be removed.\r\n */\r\n void removeHasXCoordinate(Object oldHasXCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasYCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasYCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasYCoordinate property.\r\n */\r\n Collection<? extends Object> getHasYCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasYCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasYCoordinate property value.\r\n */\r\n boolean hasHasYCoordinate();\r\n\r\n /**\r\n * Adds a hasYCoordinate property value.<p>\r\n * \r\n * @param newHasYCoordinate the hasYCoordinate property value to be added\r\n */\r\n void addHasYCoordinate(Object newHasYCoordinate);\r\n\r\n /**\r\n * Removes a hasYCoordinate property value.<p>\r\n * \r\n * @param oldHasYCoordinate the hasYCoordinate property value to be removed.\r\n */\r\n void removeHasYCoordinate(Object oldHasYCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasZCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasZCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasZCoordinate property.\r\n */\r\n Collection<? extends Object> getHasZCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasZCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasZCoordinate property value.\r\n */\r\n boolean hasHasZCoordinate();\r\n\r\n /**\r\n * Adds a hasZCoordinate property value.<p>\r\n * \r\n * @param newHasZCoordinate the hasZCoordinate property value to be added\r\n */\r\n void addHasZCoordinate(Object newHasZCoordinate);\r\n\r\n /**\r\n * Removes a hasZCoordinate property value.<p>\r\n * \r\n * @param oldHasZCoordinate the hasZCoordinate property value to be removed.\r\n */\r\n void removeHasZCoordinate(Object oldHasZCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isCentralNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isCentralNode property.<p>\r\n * \r\n * @returns a collection of values for the isCentralNode property.\r\n */\r\n Collection<? extends Boolean> getIsCentralNode();\r\n\r\n /**\r\n * Checks if the class has a isCentralNode property value.<p>\r\n * \r\n * @return true if there is a isCentralNode property value.\r\n */\r\n boolean hasIsCentralNode();\r\n\r\n /**\r\n * Adds a isCentralNode property value.<p>\r\n * \r\n * @param newIsCentralNode the isCentralNode property value to be added\r\n */\r\n void addIsCentralNode(Boolean newIsCentralNode);\r\n\r\n /**\r\n * Removes a isCentralNode property value.<p>\r\n * \r\n * @param oldIsCentralNode the isCentralNode property value to be removed.\r\n */\r\n void removeIsCentralNode(Boolean oldIsCentralNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isMidNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isMidNode property.<p>\r\n * \r\n * @returns a collection of values for the isMidNode property.\r\n */\r\n Collection<? extends Boolean> getIsMidNode();\r\n\r\n /**\r\n * Checks if the class has a isMidNode property value.<p>\r\n * \r\n * @return true if there is a isMidNode property value.\r\n */\r\n boolean hasIsMidNode();\r\n\r\n /**\r\n * Adds a isMidNode property value.<p>\r\n * \r\n * @param newIsMidNode the isMidNode property value to be added\r\n */\r\n void addIsMidNode(Boolean newIsMidNode);\r\n\r\n /**\r\n * Removes a isMidNode property value.<p>\r\n * \r\n * @param oldIsMidNode the isMidNode property value to be removed.\r\n */\r\n void removeIsMidNode(Boolean oldIsMidNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "@Override\n public R visit(DescribeQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public interface NodeRoot extends RootVertex<Node> {\n\n\tpublic static final String TYPE = \"nodes\";\n\n\t/**\n\t * Create a new node.\n\t * \n\t * @param user\n\t * User that is used to set creator and editor references\n\t * @param container\n\t * Schema version that should be used when creating the node\n\t * @param project\n\t * Project to which the node should be assigned to\n\t * @return Created node\n\t */\n\tdefault Node create(HibUser user, HibSchemaVersion container, HibProject project) {\n\t\treturn create(user, container, project, null);\n\t}\n\n\t/**\n\t * Create a new node.\n\t * \n\t * @param user\n\t * User that is used to set creator and editor references\n\t * @param container\n\t * Schema version that should be used when creating the node\n\t * @param project\n\t * Project to which the node should be assigned to\n\t * @param uuid\n\t * Optional uuid\n\t * @return Created node\n\t */\n\tNode create(HibUser user, HibSchemaVersion container, HibProject project, String uuid);\n\n}", "OperationNode getNode();", "@org.junit.Test\n public void constrCompelemNodeid4() {\n final XQuery query = new XQuery(\n \"for $x in <?pi content?>, $y in element elem {$x} return exactly-one($y/processing-instruction()) is $x\",\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 assertBoolean(false)\n );\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(SolutionModifier n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeOptional1.accept(this, argu);\n return _ret;\n }", "public interface SimplexSolutionTransferringNode {\n\n\tpublic double getTransfer();\n\t\n}", "interface PseudoNodeSchema<S> {\n\tClass<S> getEntityClass();\n\tAccessorSupplierFactory<S> getAccessorSupplierFactory(); \t\t\n\tPredicateMappingRegistry getPredicateMappings();\n}", "AlgNode routeDml( LogicalModify node, Statement statement );", "@Test\n \tpublic void whereClauseForNodeDirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "void genAst();", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "protected IndigoValenceCheckerNodeModel()\r\n {\r\n super(1, 3);\r\n }", "public interface Ast {\n /**\n * Method for generating abstract syntactic structure for the source code\n * written in a programming language(Java or Python for example)\n */\n void genAst();\n\n}", "@SuppressWarnings(\"unchecked\")\n\tprivate void build(Node<VirtualDataSet> node) {\n\n\t\tif (node == null)\n\t\t\tthrow new NullPointerException(\"Cannot built a decision (sub)tree for a null node.\");\n\n\t\tVirtualDataSet set = node.data;\n\n\t\tif (set == null || set.getNumberOfDatapoints() == 0 || set.getNumberOfAttributes() == 0)\n\t\t\tthrow new IllegalStateException(\"The dataset is in an invalid state!\");\n\n\t\tif (set.getNumberOfAttributes() == 1) // We have only the class attribute left\n\t\t\treturn;\n\n\t\tif (set.getAttribute(set.getNumberOfAttributes() - 1).getValues().length == 1) // No uncertainty left\n\t\t\treturn;\n\n\t\tboolean needsSplit = false;\n\n\t\tfor (int i = 0; i < set.getNumberOfAttributes() - 1; i++) {\n\t\t\tif (set.getAttribute(i).getValues().length < 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tneedsSplit = true;\n\t\t}\n\n\t\tif (!needsSplit) // split would be futile for all remaining attributes\n\t\t\treturn;\n\n\t\tGainInfoItem[] gains = InformationGainCalculator.calculateAndSortInformationGains(set);\n\t\t\n\t\tif (gains[0].getGainValue() == 0.0) // No split when there is no gain\n\t\t\treturn; \n\n\t\tAttribute bestAttribute = set.getAttribute(gains[0].getAttributeName());\n\n\t\tif (bestAttribute.getType() == AttributeType.NOMINAL) {\n\t\t\tVirtualDataSet[] partitions = set\n\t\t\t\t\t.partitionByNominallAttribute(set.getAttributeIndex(bestAttribute.getName()));\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\n\t\t} else {\n\t\t\tint attributeIndex = node.data.getAttributeIndex(bestAttribute.getName());\n\n\t\t\tString[] values = bestAttribute.getValues();\n\n\t\t\tint valueIndex = -1;\n\n\t\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\t\tif (values[i].equals(gains[0].getSplitAt())) {\n\t\t\t\t\tvalueIndex = i;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (valueIndex == -1) {\n\t\t\t\tSystem.out.println(\"Houston, we have a problem!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tVirtualDataSet[] partitions = set.partitionByNumericAttribute(attributeIndex, valueIndex);\n\n\t\t\tnode.children = (Node<VirtualDataSet>[]) new Node[partitions.length];\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tnode.children[i] = new Node<VirtualDataSet>(partitions[i]);\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < node.children.length; i++) {\n\t\t\t\tbuild(node.children[i]);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public abstract T getSolverDeclaration();", "@Test\n \tpublic void whereClauseDirectDominanceNamedAndAnnotated() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tnode42.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t\tcheckWhereCondition(node42,\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation42.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public CustomSolver() {\n this.possibleSol = this.generateTokenSet();\n this.curToken = 0;\n }", "public interface CustomConstruct extends AgnosticStatement, QueryCondition {\n}", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeIndirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "public TSPMSTSolution(int iterations)\n {\n// System.out.println(\"NODE CREATED\");\n this.included = new int[0];\n this.includedT = new int[0];\n this.excluded = new int[0];\n this.excludedT = new int[0];\n this.iterations = iterations;\n }", "@Test\n \tpublic void whereClauseForNodeRoot() {\n \t\tnode23.setRoot(true);\n \t\tcheckWhereCondition(\"_rank23.root IS TRUE\");\n \t}", "public interface INestedIfElseClauseContainer extends IEmbeddedNodeUser {\r\n\t\t/**\r\n\t\t * registers an if-clause (or else-clause) as an inner clause of this clause\r\n\t\t * @param nestedClause\r\n\t\t * @throws NullPointerException: if nestedClause is null\r\n\t\t */\r\n\t\tpublic void addNestedClause(TempTableHeaderCell nestedClause);\r\n\t\t\r\n\t\t/**\r\n\t\t * Looks for the first if/else clause (performing deep scan - searches every nested if/else clause\r\n\t\t * as well) which the bExpression returns true.\r\n\t\t * \r\n\t\t * @param valuesOnCPTColumn: a map which the key is a name of a parent node and\r\n\t\t * the value is its current possible values to be evaluated.\r\n\t\t * For example, if we want to evalueate an expression when for a node \"Node(!ST0)\" we\r\n\t\t * have parents Parent1(!ST0,!Z0), Parent1(!ST0,!Z1), Parent2(!ST0,!T0), and Parent2(!ST0,!T0)\r\n\t\t * with values True, False, Alpha, Beta respectively, the map should be:\r\n\t\t * \t\tentry0, (key:\"Parent1\", values: {True, False});\r\n\t\t * \t\tentry1, (key:\"Parent2\", values: {Alpha, Beta});\r\n\t\t * \r\n\t\t * @return: the first if/else clause which returned true.\r\n\t\t */\r\n\t\tpublic TempTableHeaderCell getFirstTrueClause(Map<String, List<EntityAndArguments>> valuesOnCPTColumn) ;\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Tests if this container has no nested clauses.\r\n\t\t * @return true if this if/else clause container has 0 nested elements\r\n\t\t */\r\n\t\tpublic boolean isEmptyNestedClauses ();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return the clauses\r\n\t\t */\r\n\t\tpublic List<TempTableHeaderCell> getNestedClauses();\r\n\t\t\r\n\t\t/**\r\n\t\t * \r\n\t\t * @return the clause this object is contained within\r\n\t\t */\r\n\t\tpublic INestedIfElseClauseContainer getUpperClause();\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * sets the clause this object is contained within\r\n\t\t * @param upper\r\n\t\t */\r\n\t\tpublic void setUpperClause(INestedIfElseClauseContainer upper);\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the \"isKnownValue\" attributes of TempTableHeader objects\r\n\t\t * by recursively calling this method for all nested causes.\r\n\t\t * @param ssbnnode\r\n\t\t * @see TempTableHeader\r\n\t\t * @throws NullPointerException if ssbnnode is null\r\n\t\t */\r\n\t\tpublic void cleanUpKnownValues(SSBNNode ssbnnode);\r\n\t\t\r\n\r\n\t\t/**\r\n\t\t * Hierarchically searches for user-defined variables in scope.\r\n\t\t * @param key : name of variable to look for\r\n\t\t * @return : value of the variable\r\n\t\t * @see #addUserDefinedVariable(String, IExpressionValue)\r\n\t\t * @see #clearUserDefinedVariables()\r\n\t\t */\r\n\t\tpublic IExpressionValue getUserDefinedVariable(String key);\r\n\t\t\r\n\t\t/**\r\n\t\t * Adds a new user-defined variable retrievable from {@link #getUserDefinedVariable(String)}\r\n\t\t * @see #clearUserDefinedVariables()\r\n\t\t */\r\n\t\tpublic void addUserDefinedVariable(String key, IExpressionValue value);\r\n\t\t\r\n\t\t/**\r\n\t\t * Deletes all user variables that were included by {@link #addUserDefinedVariable(String, IExpressionValue)}.\r\n\t\t * @see #getUserDefinedVariable(String)\r\n\t\t */\r\n\t\tpublic void clearUserDefinedVariables();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return {@link #getUserDefinedVariable(String)} for this clause and all {@link #getNestedClauses()} recursively\r\n\t\t * @param keepFirst : if true, then variables found first will be kept if\r\n\t\t * variables with same name are found. If false, then variables found later will be used\r\n\t\t * in case of duplicate names.\r\n\t\t */\r\n\t\tpublic Map<String, IExpressionValue> getUserDefinedVariablesRecursively(boolean keepFirst);\r\n\t\t\r\n\t\t/**\r\n\t\t * @return instance of resident node whose LPD script is being applied.\r\n\t\t * (this can be used if we are compiling a script before generating SSBN)\r\n\t\t * @see #getSSBNNode()\r\n\t\t */\r\n\t\tpublic IResidentNode getResidentNode();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return : instance of SSBN node whose LPD script is being applied during SSBN generation.\r\n\t\t * May return null if compiler is called before SSBN generation. If so, {@link #getResidentNode()}\r\n\t\t * must be used.\r\n\t\t */\r\n\t\tpublic SSBNNode getSSBNNode();\r\n\t}", "@Override\n public Predicate generateOutputStructure(Predicate predicate) {\n Predicate modifiedPredicate = new Predicate(predicate.getPredicateName());\n phrase = nlgFactory.createClause();\n //create phrase using the annotations of each predicate element describing its function in the sentence\n for (PredicateElement element : predicate.getElements()) {\n if (element != null && element.getPredicateElementAnnotation() != null) {\n PredicateElementAnnotation elementAnnotation = element.getPredicateElementAnnotation();\n if (elementAnnotation.equals(PredicateElementAnnotation.subject)) {\n phrase.setSubject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.verb)) {\n phrase.setVerb(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.directObject)) {\n phrase.setObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.indirectObject)) {\n phrase.setIndirectObject(element.toString());\n } else if (elementAnnotation.equals(PredicateElementAnnotation.complement)) {\n phrase.setComplement(element.toString());\n }\n }\n }\n //get annotation which affect whole predicate and use them to create correct type of phrase\n if (predicate.getPredicateAnnotations() != null) {\n List<PredicateAnnotation> predicateAnnotations = predicate.getPredicateAnnotations();\n if (predicateAnnotations.contains(PredicateAnnotation.NEGATION)) {\n phrase.setFeature(Feature.NEGATED, true);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.YES_NO)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.YES_NO);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_SUBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_SUBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHO_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHO_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.WHAT_OBJECT)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.WHAT_OBJECT);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW);\n }\n if (predicateAnnotations.contains(PredicateAnnotation.HOW_MANY)) {\n phrase.setFeature(Feature.INTERROGATIVE_TYPE, InterrogativeType.HOW_MANY);\n }\n if (predicateAnnotations.contains((PredicateAnnotation.IMPERATIVE))) {\n phrase.setFeature(Feature.FORM, Form.IMPERATIVE);\n }\n }\n //create the output sentence\n String resultString = realiser.realiseSentence(phrase);\n setOutputStructure(resultString);\n //split output structure into its elements\n String resStructure = phrase.getParent().getFeatureAsString((\"textComponents\"));\n resStructure = resStructure.replace(\"[\", \"\");\n resStructure = resStructure.replace(\"]\", \"\");\n ArrayList<String> outputOrderList = new ArrayList<>();\n String[] resSplit = resStructure.split(\",\");\n for (int i = 0; i < resSplit.length; i++) {\n outputOrderList.add(resSplit[i].trim());\n }\n //create new predicate element list\n ArrayList<PredicateElement> modifiedPredicateElementList = new ArrayList<>();\n //use this orderList as new predicate element list -> order important for planning\n boolean elementAlreadyAdded = false;\n for (String outputOrderElement : outputOrderList) {\n //keep old predicate if worldobjectid and type were already set (\"I\", \"you\")\n for(PredicateElement element: predicate.getElements()) {\n if(element.getWorldObjectId() != null && element.toString().equals(outputOrderElement)) {\n modifiedPredicateElementList.add(element);\n elementAlreadyAdded = true;\n break;\n }\n }\n if(elementAlreadyAdded) {\n elementAlreadyAdded = false;\n continue;\n }\n modifiedPredicateElementList.add(new StringPredicateElement(outputOrderElement));\n }\n if(phrase.hasFeature(Feature.INTERROGATIVE_TYPE)) {\n modifiedPredicateElementList.add(new StringPredicateElement(\"?\"));\n }else {\n modifiedPredicateElementList.add(new StringPredicateElement(\".\"));\n }\n //set new elements for the modified predicate\n modifiedPredicate.setElements(modifiedPredicateElementList.toArray(new StringPredicateElement[modifiedPredicateElementList.size()]));\n return modifiedPredicate;\n }", "public S6Solution createNewSolution(S6Fragment n,S6Transform.Memo m)\n{\n double newscore = for_source.getScore() + scoreRandom();\n\n return new SolutionBase(base_node,current_node,n,transform_set,m,for_source,newscore);\n}", "public TreeStructure<String> optimiseTree() throws IllegalAccessException {\n\n canonicalTree.createStack(canonicalTree.getRootNode());\n TreeStructure.Node<String> popNode;\n TreeStructure.Node<String> whereNodeToDelete = null;\n Stack<TreeStructure.Node<String>> stack = canonicalTree.getStack();\n Stack<TreeStructure.Node<String>> optimizationStack = new Stack<>();\n\n boolean conditionAlready;\n while (!stack.empty()) {\n popNode = stack.pop();\n switch (popNode.getNodeStatus()) {\n case RELATION_NODE_STATUS:{\n conditionAlready = false;\n /*if there is a condition associated with that relation then call the method. and set set conditionAlready to TRue so that\n if a node is associated with more than one conditions all the associated conditions will be added to it's parent node.\n after every iteration of the loop the popNode is becoming the node that holds the condition if any so need to make pop node to hold the\n relation node again (if node has a child node-> avoid exception)!!!*/\n while(optimizedWhere.containsValue(new LinkedList<>(Collections.singleton(popNode.getData())))) {\n conditionAlready = relationNodeAction(popNode, conditionAlready);\n if(popNode.getChildren().size() == 1) popNode = popNode.getChildren().get(0);\n }\n associatedRelations = new LinkedList<>();\n break;\n }\n case CARTESIAN_NODE_STATUS: {\n\n cartesianNodeAction(popNode,(Stack<TreeStructure.Node<String>>) optimizationStack.clone());\n cartesianNodesIncludeCond(popNode);\n associatedRelations = new LinkedList<>();\n }\n case WHERE_NODE_STATUS:{\n whereNodeToDelete = popNode;\n break;\n }\n }\n optimizationStack.push(popNode);\n }\n //Delete node that holds the condition if any from the initial tree\n if(whereNodeToDelete!=null){\n /*The condition node will be removed so the root node level must become the condition node's level\n *Make the root node the parent of its child node so the whole tree won't be deleted when the node is deleted*/\n canonicalTree.getRootNode().setNodeLevel(whereNodeToDelete.getNodeLevel());\n whereNodeToDelete.getChildren().get(0).setParentNode(whereNodeToDelete.getParentNode());\n canonicalTree.deleteNode(whereNodeToDelete);\n }\n convertCartesianToJoin();\n\n\n return canonicalTree;\n }", "public interface TreeModel {\n\n double checkAccuracy(DataSource d);\n void crossValidate(DataSource testdata);\n void pessimisticPrune(double z);\n void printTree();\n\n}", "@Test\n public void testConditionGraphNesting() {\n StringConcatenation _builder = new StringConcatenation();\n _builder.append(\"ePackageImport testmodel\");\n _builder.newLine();\n _builder.newLine();\n _builder.append(\"rule rulename() {\");\n _builder.newLine();\n _builder.append(\"\\t\");\n _builder.append(\"graph {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"node a:testmodel.type\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"matchingFormula {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\");\n _builder.append(\"formula !conGraph\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\");\n _builder.append(\"conditionGraph conGraph {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"node b:testmodel.type\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"reuse a {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"attribute=\\\"test\\\"\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"edges [(a->b:testmodel.type)]\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"matchingFormula {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"formula conNestGraph\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"conditionGraph conNestGraph {\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\\t\");\n _builder.append(\"node c:testmodel.type\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"\\t\");\n _builder.append(\"}\");\n _builder.newLine();\n _builder.append(\"}\");\n _builder.newLine();\n _builder.newLine();\n final String model = _builder.toString();\n final Procedure1<FormatterTestRequest> _function = new Procedure1<FormatterTestRequest>() {\n public void apply(final FormatterTestRequest it) {\n it.setToBeFormatted(model.replace(\"\\n\", \"\").replace(\"\\t\", \"\"));\n it.setExpectation(model);\n }\n };\n this.assertFormatted(_function);\n }", "final public LogicalPlan Parse() throws ParseException {\n /*@bgen(jjtree) Parse */\n SimpleNode jjtn000 = new SimpleNode(JJTPARSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);LogicalOperator root = null;\n Token t1;\n Token t2;\n LogicalPlan lp = new LogicalPlan();\n log.trace(\"Entering Parse\");\n try {\n if (jj_2_1(3)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n t2 = jj_consume_token(IDENTIFIER);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AS:\n jj_consume_token(AS);\n jj_consume_token(80);\n TupleSchema();\n jj_consume_token(81);\n break;\n default:\n jj_la1[0] = jj_gen;\n ;\n }\n jj_consume_token(82);\n {if (true) throw new ParseException(\n \"Currently PIG does not support assigning an existing relation (\" + t1.image + \") to another alias (\" + t2.image + \")\");}\n } else if (jj_2_2(2)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n root = Expr(lp);\n jj_consume_token(82);\n root.setAlias(t1.image);\n addAlias(t1.image, root);\n pigContext.setLastAlias(t1.image);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n case LOAD:\n case FILTER:\n case FOREACH:\n case ORDER:\n case DISTINCT:\n case COGROUP:\n case JOIN:\n case CROSS:\n case UNION:\n case GROUP:\n case STREAM:\n case STORE:\n case LIMIT:\n case SAMPLE:\n case IDENTIFIER:\n case 80:\n root = Expr(lp);\n jj_consume_token(82);\n break;\n case SPLIT:\n jj_consume_token(SPLIT);\n root = SplitClause(lp);\n jj_consume_token(82);\n break;\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n if(null != root) {\n log.debug(\"Adding \" + root.getAlias() + \" \" + root + \" to the lookup table \" + aliases);\n\n //Translate all the project(*) leaves in the plan to a sequence of projections\n ProjectStarTranslator translate = new ProjectStarTranslator(lp);\n translate.visit();\n\n addLogicalPlan(root, lp);\n\n try {\n log.debug(\"Root: \" + root.getClass().getName() + \" schema: \" + root.getSchema());\n } catch(FrontendException fee) {\n ParseException pe = new ParseException(fee.getMessage());\n pe.initCause(fee);\n {if (true) throw pe;}\n }\n }\n\n ArrayList<LogicalOperator> roots = new ArrayList<LogicalOperator>(lp.getRoots().size());\n for(LogicalOperator op: lp.getRoots()) {\n roots.add(op);\n }\n\n Map<LogicalOperator, Boolean> rootProcessed = new HashMap<LogicalOperator, Boolean>();\n for(LogicalOperator op: roots) {\n //At this point we have a logical plan for the pig statement\n //In order to construct the entire logical plan we need to traverse\n //each root and get the logical plan it belongs to. From each of those\n //plans we need the predecessors of the root of the current logical plan\n //and so on. This is a computationally intensive operatton but should\n //be fine as its restricted to the parser\n\n LogicalPlan rootPlan = aliases.get(op);\n if(null != rootPlan) {\n attachPlan(lp, op, rootPlan, rootProcessed);\n rootProcessed.put(op, true);\n }\n }\n\n log.trace(\"Exiting Parse\");\n {if (true) return lp;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface ExpressionNode extends Node, VariableInitializerNode\n{\n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public ExpressionNode deepCopy(BsjNodeFactory factory);\n \n}", "@org.junit.Test\n public void constrCompelemNodeid3() {\n final XQuery query = new XQuery(\n \"for $x in <!--comment-->, $y in element elem {$x} return exactly-one($y/comment()) is $x\",\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 assertBoolean(false)\n );\n }", "public static void main(String []args) {\n ConstantNode ten = new ConstantNode(10);\n ExprNode tree = ten.into(20).plus(30);\n// ExprNode exprNode = new AddOperator(\n// new MultiplyOperator(\n// new ConstantNode(10),\n// new ConstantNode(20)),\n// new ConstantNode(30));\n tree.genCode();\n }", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "public NestedClause getXQueryClause();", "public static void main(String[] args) throws Exception {\n TDB.setOptimizerWarningFlag(false);\n\n final String DATASET_DIR_NAME = \"data0\";\n final Dataset data0 = TDBFactory.createDataset( DATASET_DIR_NAME );\n\n // show the currently registered names\n for (Iterator<String> it = data0.listNames(); it.hasNext(); ) {\n out.println(\"NAME=\"+it.next());\n }\n\n out.println(\"getting named model...\");\n /// this is the OWL portion\n final Model model = data0.getNamedModel( MY_NS );\n out.println(\"Model := \"+model);\n\n out.println(\"getting graph...\");\n /// this is the DATA in that MODEL\n final Graph graph = model.getGraph();\n out.println(\"Graph := \"+graph);\n\n if (graph.isEmpty()) {\n final Resource product1 = model.createResource( MY_NS +\"product/1\");\n final Property hasName = model.createProperty( MY_NS, \"#hasName\");\n final Statement stmt = model.createStatement(\n product1, hasName, model.createLiteral(\"Beach Ball\",\"en\") );\n out.println(\"Statement = \" + stmt);\n\n model.add(stmt);\n\n // just for fun\n out.println(\"Triple := \" + stmt.asTriple().toString());\n } else {\n out.println(\"Graph is not Empty; it has \"+graph.size()+\" Statements\");\n long t0, t1;\n t0 = System.currentTimeMillis();\n final Query q = QueryFactory.create(\n \"PREFIX exns: <\"+MY_NS+\"#>\\n\"+\n \"PREFIX exprod: <\"+MY_NS+\"product/>\\n\"+\n \" SELECT * \"\n // if you don't provide the Model to the\n // QueryExecutionFactory below, then you'll need\n // to specify the FROM;\n // you *can* always specify it, if you want\n // +\" FROM <\"+MY_NS+\">\\n\"\n // +\" WHERE { ?node <\"+MY_NS+\"#hasName> ?name }\"\n // +\" WHERE { ?node exns:hasName ?name }\"\n // +\" WHERE { exprod:1 exns:hasName ?name }\"\n +\" WHERE { ?res ?pred ?obj }\"\n );\n out.println(\"Query := \"+q);\n t1 = System.currentTimeMillis();\n out.println(\"QueryFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n try ( QueryExecution qExec = QueryExecutionFactory\n // if you query the whole DataSet,\n // you have to provide a FROM in the SparQL\n //.create(q, data0);\n .create(q, model) ) {\n t1 = System.currentTimeMillis();\n out.println(\"QueryExecutionFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n ResultSet rs = qExec.execSelect();\n t1 = System.currentTimeMillis();\n out.println(\"executeSelect.TIME=\"+(t1 - t0));\n while (rs.hasNext()) {\n QuerySolution sol = rs.next();\n out.println(\"Solution := \"+sol);\n for (Iterator<String> names = sol.varNames(); names.hasNext(); ) {\n final String name = names.next();\n out.println(\"\\t\"+name+\" := \"+sol.get(name));\n }\n }\n }\n }\n out.println(\"closing graph\");\n graph.close();\n out.println(\"closing model\");\n model.close();\n //out.println(\"closing DataSetGraph\");\n //dsg.close();\n out.println(\"closing DataSet\");\n data0.close();\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface MetaprogramTargetNode extends Node, BsjSpecificNode\n{\n /**\n * Gets the names of the metaprogram targets in which to participate.\n * @return The names of the metaprogram targets in which to participate.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierListNode getTargets()throws ClassCastException;\n \n /**\n * Gets the union object for the names of the metaprogram targets in which to participate.\n * @return A union object representing The names of the metaprogram targets in which to participate.\n */\n public NodeUnion<? extends IdentifierListNode> getUnionForTargets();\n \n /**\n * Changes the names of the metaprogram targets in which to participate.\n * @param targets The names of the metaprogram targets in which to participate.\n */\n public void setTargets(IdentifierListNode targets);\n \n /**\n * Changes the names of the metaprogram targets in which to participate.\n * @param targets The names of the metaprogram targets in which to participate.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForTargets(NodeUnion<? extends IdentifierListNode> targets) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public MetaprogramTargetNode deepCopy(BsjNodeFactory factory);\n \n}", "@Override\n public R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "public interface TreeEnsembleRegressorParams extends org.apache.spark.ml.tree.TreeEnsembleParams {\n public org.apache.spark.sql.types.StructType validateAndTransformSchema (org.apache.spark.sql.types.StructType schema, boolean fitting, org.apache.spark.sql.types.DataType featuresDataType) ;\n}", "public interface StatementContext {\n\n @SuppressWarnings(\"HardCodedStringLiteral\")\n enum Expression {\n /**\n * Please note that this tuple might not always resolve to the domain controller. For some edge cases (e.g. when the\n * current user is assigned to a host scoped role which is scoped to a secondary host), this tuple is resolved to the\n * first host which was read during bootstrap. In any case it is resolved to an existing host.\n * <p>\n * Address templates which use this tuple must be prepared that it does not always resolve to the domain controller.\n */\n DOMAIN_CONTROLLER(\"domain.controller\", HOST), SELECTED_PROFILE(\"selected.profile\", PROFILE), SELECTED_GROUP(\n \"selected.group\", SERVER_GROUP), SELECTED_HOST(\"selected.host\", HOST), SELECTED_SERVER_CONFIG(\n \"selected.server-config\", SERVER_CONFIG), SELECTED_SERVER(\"selected.server\", SERVER);\n\n private final String name;\n private final String resource;\n\n Expression(String name, String resource) {\n this.name = name;\n this.resource = resource;\n }\n\n public String resource() {\n return resource;\n }\n\n /** @return the {@code name} surrounded by \"{\" and \"}\" */\n public String expression() {\n return \"{\" + name + \"}\";\n }\n\n public static Expression from(String name) {\n for (Expression t : Expression.values()) {\n if (t.name.equals(name)) {\n return t;\n }\n }\n return null;\n }\n }\n\n StatementContext NOOP = new StatementContext() {\n\n @Override\n public String resolve(String placeholder, AddressTemplate template) {\n return placeholder;\n }\n\n @Override\n public String[] resolveTuple(String placeholder, AddressTemplate template) {\n return new String[] { placeholder, placeholder };\n }\n\n @Override\n public String domainController() {\n return null;\n }\n\n @Override\n public String selectedProfile() {\n return null;\n }\n\n @Override\n public String selectedServerGroup() {\n return null;\n }\n\n @Override\n public String selectedHost() {\n return null;\n }\n\n @Override\n public String selectedServerConfig() {\n return null;\n }\n\n @Override\n public String selectedServer() {\n return null;\n }\n };\n\n /** Resolves a single value. */\n String resolve(String placeholder, AddressTemplate template);\n\n /** Resolves a tuple. */\n String[] resolveTuple(String placeholder, AddressTemplate template);\n\n /** @return the domain controller */\n String domainController();\n\n /** @return the selected profile */\n String selectedProfile();\n\n /** @return the selected server group */\n String selectedServerGroup();\n\n /** @return the selected host */\n String selectedHost();\n\n /** @return the selected server config */\n String selectedServerConfig();\n\n /** @return the selected server */\n String selectedServer();\n}", "public Solution() {\n this(DSL.name(\"solution\"), null);\n }", "public StatementNode getStatementNodeOnTrue();", "@Override\n\tpublic Object visit(ASTCondSome node, Object data) {\n\t\treturn null;\n\t}", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "public String[] getConcreteSyntaxNodes ();", "public abstract SolutionPartielle solutionInitiale();", "public RealConjunctiveFeature() { }", "@Test\n public void testRewriteCreate() throws Exception{\n try {\n ParseNode tree = TestQuery.prepareCreateStmtAnalysed();\n ParseNode ansTreeRewritten = TestQuery.prepareCreateStmtRewritten();\n testObj.rewrite(tree);\n System.out.println(tree.toSql());\n assertEquals(ansTreeRewritten.toSql(), tree.toSql());\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public interface SASolution extends Solution {\r\n\r\n /**\r\n * Generates a neighbor solution using this solution\r\n *\r\n * @return\r\n */\r\n public SASolution getNeighborSolution();\r\n\r\n /**\r\n * Prints this solution\r\n *\r\n * @return\r\n */\r\n public String getAsString();\r\n\r\n}", "public Vector<Node> GetAdditionalSubNodes();", "@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }", "@Override\n\tpublic Object visit(ASTWhereClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"where \");\n\t\tnode.childrenAccept(this, 0);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "private Node() {\n\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}", "Collection<SNode> callSiteNode(SNodeReference templateNode, TemplateContext templateContext) throws GenerationCanceledException, GenerationFailureException;", "POperand createPOperand();", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "public interface CwmExpressionNode extends org.pentaho.pms.cwm.pentaho.meta.core.CwmElement {\n /**\n * Returns the value of attribute expression. Contains a textual representation of the expression relevant for this\n * ExpressionNode instance.\n * \n * @return Value of attribute expression.\n */\n public org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression getExpression();\n\n /**\n * Sets the value of expression attribute. See {@link #getExpression} for description on the attribute.\n * \n * @param newValue\n * New value to be set.\n */\n public void setExpression( org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression newValue );\n\n /**\n * Returns the value of reference featureNode.\n * \n * @return Value of reference featureNode.\n */\n public org.pentaho.pms.cwm.pentaho.meta.expressions.CwmFeatureNode getFeatureNode();\n\n /**\n * Sets the value of reference featureNode. See {@link #getFeatureNode} for description on the reference.\n * \n * @param newValue\n * New value to be set.\n */\n public void setFeatureNode( org.pentaho.pms.cwm.pentaho.meta.expressions.CwmFeatureNode newValue );\n\n /**\n * Returns the value of reference type.\n * \n * @return Value of reference type.\n */\n public org.pentaho.pms.cwm.pentaho.meta.core.CwmClassifier getType();\n\n /**\n * Sets the value of reference type. See {@link #getType} for description on the reference.\n * \n * @param newValue\n * New value to be set.\n */\n public void setType( org.pentaho.pms.cwm.pentaho.meta.core.CwmClassifier newValue );\n}", "private Node generateSubTreeHQMFInFunctionalOp(Node firstChildNode, Element dataCriteriaSectionElem,\n\t\t\tString clauseName) throws XPathExpressionException {\n\t\tNode parentNode = firstChildNode.getParentNode();\n\n\t\t// temp node.\n\t\tString subTreeUUID = firstChildNode.getAttributes().getNamedItem(ID).getNodeValue();\n\t\tString xpath = \"/measure/subTreeLookUp/subTree[@uuid='\" + subTreeUUID + \"']\";\n\t\tNode subTreeNode = measureExport.getSimpleXMLProcessor()\n\t\t\t\t.findNode(measureExport.getSimpleXMLProcessor().getOriginalDoc(), xpath);\n\t\tString firstChildNameOfSubTree = subTreeNode.getFirstChild().getNodeName();\n\t\tif (FUNCTIONAL_OP.equals(firstChildNameOfSubTree)) {\n\t\t\tString firstChildNodeName = parentNode.getAttributes().getNamedItem(TYPE).getNodeValue();\n\t\t\tif (!SATISFIES_ALL.equalsIgnoreCase(firstChildNodeName)\n\t\t\t\t\t|| !SATISFIES_ANY.equalsIgnoreCase(firstChildNodeName) || !AGE_AT.equals(firstChildNodeName)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\tElement root = measureExport.getHQMFXmlProcessor().getOriginalDoc().createElement(\"temp\");\n\t\tgenerateSubTreeHQMF(firstChildNode, root, clauseName);\n\t\tElement entryElement = (Element) root.getFirstChild();\n\t\tNode firstChild = entryElement.getFirstChild();\n\t\tif (\"localVariableName\".equals(firstChild.getNodeName())) {\n\t\t\tfirstChild = firstChild.getNextSibling();\n\t\t}\n\t\tElement excerpt = generateExcerptEntryForFunctionalNode(parentNode, null, measureExport.getHQMFXmlProcessor(),\n\t\t\t\tentryElement);\n\t\tif (excerpt != null) {\n\t\t\tfirstChild.appendChild(excerpt);\n\t\t}\n\t\tdataCriteriaSectionElem.appendChild(entryElement);\n\t\treturn entryElement;\n\t}", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic Object visit(ASTCondIs node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" is \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTLetClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"let \");\n\t\tint numOfChild = node.jjtGetNumChildren();\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < numOfChild; i++) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\",\");\n\t\t\t\tprintIndent(indent + 2);\n\t\t\t}\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, data);\n\t\t}\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "private XMLTreeNNExpressionEvaluator() {\n }", "public interface ResolvableModelicaNode extends ModelicaNode {\n /**\n * Tries to resolve the <b>declaration</b> of the referenced component.\n */\n ResolutionResult getResolutionCandidates();\n}", "final public ASTModel Model() throws ParseException {\r\n /*@bgen(jjtree) Model */\r\n ASTModel jjtn000 = new ASTModel(JJTMODEL);\r\n boolean jjtc000 = true;\r\n jjtree.openNodeScope(jjtn000);\r\n try {\r\n if (jj_2_1(2)) {\r\n jj_consume_token(BEGIN);\r\n jj_consume_token(MODEL);\r\n label_1:\r\n while (true) {\r\n jj_consume_token(BEGIN);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMPARTMENTS:\r\n CompartmentsBlock();\r\n break;\r\n case PARAMETERS:\r\n ParameterBlock();\r\n break;\r\n case MOLECULE:\r\n MolecularDefinitionBlock();\r\n break;\r\n case ANCHORS:\r\n AnchorsBlock();\r\n break;\r\n case SEED:\r\n SeedSpeciesBlock();\r\n break;\r\n case REACTION:\r\n ReactionRulesBlock();\r\n break;\r\n case OBSERVABLES:\r\n ObservablesBlock();\r\n break;\r\n case FUNCTIONS:\r\n FunctionsBlock();\r\n break;\r\n default:\r\n jj_la1[0] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case BEGIN:\r\n ;\r\n break;\r\n default:\r\n jj_la1[1] = jj_gen;\r\n break label_1;\r\n }\r\n }\r\n jj_consume_token(END);\r\n jj_consume_token(MODEL);\r\n label_2:\r\n while (true) {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ACTION:\r\n ;\r\n break;\r\n default:\r\n jj_la1[2] = jj_gen;\r\n break label_2;\r\n }\r\n Action();\r\n }\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n } else if (jj_2_2(2)) {\r\n label_3:\r\n while (true) {\r\n jj_consume_token(BEGIN);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case COMPARTMENTS:\r\n CompartmentsBlock();\r\n break;\r\n case PARAMETERS:\r\n ParameterBlock();\r\n break;\r\n case MOLECULE:\r\n MolecularDefinitionBlock();\r\n break;\r\n case ANCHORS:\r\n AnchorsBlock();\r\n break;\r\n case SEED:\r\n SeedSpeciesBlock();\r\n break;\r\n case REACTION:\r\n ReactionRulesBlock();\r\n break;\r\n case OBSERVABLES:\r\n ObservablesBlock();\r\n break;\r\n case FUNCTIONS:\r\n FunctionsBlock();\r\n break;\r\n default:\r\n jj_la1[3] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case BEGIN:\r\n ;\r\n break;\r\n default:\r\n jj_la1[4] = jj_gen;\r\n break label_3;\r\n }\r\n }\r\n label_4:\r\n while (true) {\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ACTION:\r\n ;\r\n break;\r\n default:\r\n jj_la1[5] = jj_gen;\r\n break label_4;\r\n }\r\n Action();\r\n }\r\n jjtree.closeNodeScope(jjtn000, true);\r\n jjtc000 = false;\r\n {if (true) return jjtn000;}\r\n } else {\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n } catch (Throwable jjte000) {\r\n if (jjtc000) {\r\n jjtree.clearNodeScope(jjtn000);\r\n jjtc000 = false;\r\n } else {\r\n jjtree.popNode();\r\n }\r\n if (jjte000 instanceof RuntimeException) {\r\n {if (true) throw (RuntimeException)jjte000;}\r\n }\r\n if (jjte000 instanceof ParseException) {\r\n {if (true) throw (ParseException)jjte000;}\r\n }\r\n {if (true) throw (Error)jjte000;}\r\n } finally {\r\n if (jjtc000) {\r\n jjtree.closeNodeScope(jjtn000, true);\r\n }\r\n }\r\n throw new Error(\"Missing return statement in function\");\r\n }", "TestNode createTestNode();", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public Node(){\n\n\t\t}", "@Override\n\tpublic Void visit(ClauseOperator clause, Void ctx) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic void sampleNode() {\n\n\t}", "public abstract Statement createRootStatement(CodeLocation codeLoc, List<Annotation> annotations, Statement ... s);", "private ParseTree parseStatement() {\n return parseSourceElement();\n }", "protected abstract SyntaxNode derivative(SyntaxNode doperand);", "private interface OperationOverNodes {\n\t\tvoid operate(Node node);\n\t}", "public Snippet visit(DistType n, Snippet argu) {\n\t\t Snippet _ret=new Snippet(\"\",\"\", null ,false);\n\t\t\t_ret.expType = new X10Distribution(1);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t Snippet f3 = n.rankEquation.accept(this, argu);\n\t _ret.returnTemp = \"int\";\n\t n.nodeToken3.accept(this, argu);\n\t return _ret;\n\t }", "public interface QuotedL1Node {\n\n}", "public QuestionNode(String query, DecisionNode yesTree, DecisionNode noTree) {\n this.query = query;\n this.yesTree = yesTree;\n this.noTree = noTree;\n }", "private Node generateFunctionalOpHQMF(Node functionalNode, Element dataCriteriaSectionElem, String clauseName)\n\t\t\tthrows XPathExpressionException {\n\t\tNode node = null;\n\t\tif (functionalNode.getChildNodes() != null) {\n\t\t\tNode firstChildNode = functionalNode.getFirstChild();\n\t\t\tString firstChildName = firstChildNode.getNodeName();\n\t\t\tswitch (firstChildName) {\n\t\t\tcase SET_OP:\n\t\t\t\tString functionOpType = functionalNode.getAttributes().getNamedItem(TYPE).getNodeValue();\n\t\t\t\tif (FUNCTIONAL_OPS_NON_SUBSET.containsKey(functionOpType.toUpperCase())\n\t\t\t\t\t\t|| FUNCTIONAL_OPS_SUBSET.containsKey(functionOpType.toUpperCase())) {\n\t\t\t\t\tnode = generateSetOpHQMF(firstChildNode, dataCriteriaSectionElem, clauseName);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ELEMENT_REF:\n\t\t\t\tnode = generateElementRefHQMF(firstChildNode, dataCriteriaSectionElem, clauseName);\n\t\t\t\tbreak;\n\t\t\tcase RELATIONAL_OP:\n\t\t\t\tnode = generateRelOpHQMF(firstChildNode, dataCriteriaSectionElem, clauseName);\n\t\t\t\tbreak;\n\t\t\tcase FUNCTIONAL_OP:\n\t\t\t\t// findFunctionalOpChild(firstChildNode, dataCriteriaSectionElem);\n\t\t\t\tbreak;\n\t\t\tcase SUB_TREE_REF:\n\t\t\t\tnode = generateSubTreeHQMFInFunctionalOp(firstChildNode, dataCriteriaSectionElem, clauseName);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t// Dont do anything\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tString localVarName = clauseName;\n\n\t\t\tlocalVarName = localVarName.replace(\"$\", \"\");\n\t\t\tNode parentNode = functionalNode.getParentNode();\n\t\t\tif (parentNode != null && parentNode.getNodeName().equalsIgnoreCase(\"subTree\")) {\n\t\t\t\tif (parentNode.getAttributes().getNamedItem(QDM_VARIABLE) != null) {\n\t\t\t\t\tString isQdmVariable = parentNode.getAttributes().getNamedItem(QDM_VARIABLE).getNodeValue();\n\t\t\t\t\tif (TRUE.equalsIgnoreCase(isQdmVariable)) {\n\t\t\t\t\t\tlocalVarName = localVarName.replace(\"$\", \"\");\n\t\t\t\t\t\tlocalVarName = \"qdm_var_\" + localVarName;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlocalVarName = localVarName + \"_\" + UUIDUtilClient.uuid(5);\n\t\t\t\tlocalVarName = StringUtils.deleteWhitespace(localVarName);\n\t\t\t\tupdateLocalVar(node, localVarName);\n\t\t\t}\n\t\t}\n\t\treturn node;\n\n\t}", "protected AST_Node() {\r\n\t}", "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public Node(){\r\n primarySequence = null;\r\n dotBracketString = null;\r\n validity = false;\r\n prev = null;\r\n next = null;\r\n }" ]
[ "0.5639874", "0.5572094", "0.55224", "0.54982966", "0.5371959", "0.5367201", "0.5364531", "0.5354186", "0.53439283", "0.5322688", "0.5322682", "0.53069866", "0.52570325", "0.5241645", "0.52359706", "0.5218304", "0.51788414", "0.51491964", "0.5136436", "0.51226693", "0.51169837", "0.511373", "0.51031613", "0.509267", "0.5078149", "0.5066557", "0.50526714", "0.5047395", "0.5042833", "0.50188565", "0.5013303", "0.50130254", "0.49984044", "0.49930486", "0.49929956", "0.49922788", "0.49916002", "0.49865407", "0.49754086", "0.49683055", "0.49674365", "0.49554545", "0.49474052", "0.49259168", "0.49193868", "0.4914278", "0.49140692", "0.48950872", "0.48862007", "0.48856798", "0.48631397", "0.48611477", "0.48551422", "0.48418283", "0.48416623", "0.4840966", "0.48397762", "0.48394313", "0.48342276", "0.48182347", "0.48164138", "0.48156992", "0.48121077", "0.48103645", "0.4803161", "0.48010796", "0.47957432", "0.47889048", "0.47816548", "0.47810718", "0.47699037", "0.47651652", "0.47648188", "0.4763088", "0.47618318", "0.47606844", "0.47566774", "0.4751365", "0.47466794", "0.47461745", "0.4740609", "0.47379807", "0.4735552", "0.47348565", "0.47348142", "0.4734001", "0.47313666", "0.4725121", "0.4724724", "0.47243524", "0.47236854", "0.4718877", "0.4717922", "0.47178683", "0.47172418", "0.4712962", "0.4711985", "0.47089553", "0.47046116", "0.4702976" ]
0.5706984
0
nodeToken > nodeChoice > ( ( VarOrIRIref() )+ | "" ) nodeListOptional > ( DatasetClause() ) nodeOptional > ( WhereClause() )? solutionModifier > SolutionModifier()
@Override public R visit(DescribeQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeChoice.accept(this, argu); n.nodeListOptional.accept(this, argu); n.nodeOptional.accept(this, argu); n.solutionModifier.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SolutionModifier n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeOptional1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\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 R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public Snippet visit(ExplodedSpecification n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@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 }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "Node getVariable();", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "@Override\n public R visit(Antecedent n, A argu) {\n R _ret = null;\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Element getPredicateVariable();", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private List<String> generateN3Optional() {\n\t\treturn list(\n\t\t\t\t\t\"?conceptNode <\" + VitroVocabulary.RDF_TYPE + \"> <\" + SKOSConceptType + \"> .\\n\" +\n\t\t\t\t\t\"?conceptNode <\" + label + \"> ?conceptLabel .\"\n\t \t);\n\n }", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public interface Node extends WrappedIndividual {\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FEMSettingsPAK.owl#hasNodeSettings\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeSettings property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeSettings property.\r\n */\r\n Collection<? extends NodeSettings> getHasNodeSettings();\r\n\r\n /**\r\n * Checks if the class has a hasNodeSettings property value.<p>\r\n * \r\n * @return true if there is a hasNodeSettings property value.\r\n */\r\n boolean hasHasNodeSettings();\r\n\r\n /**\r\n * Adds a hasNodeSettings property value.<p>\r\n * \r\n * @param newHasNodeSettings the hasNodeSettings property value to be added\r\n */\r\n void addHasNodeSettings(NodeSettings newHasNodeSettings);\r\n\r\n /**\r\n * Removes a hasNodeSettings property value.<p>\r\n * \r\n * @param oldHasNodeSettings the hasNodeSettings property value to be removed.\r\n */\r\n void removeHasNodeSettings(NodeSettings oldHasNodeSettings);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isBoundaryNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isBoundaryNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isBoundaryNodeOf property.\r\n */\r\n Collection<? extends Boundary> getIsBoundaryNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isBoundaryNodeOf property value.<p>\r\n * \r\n * @return true if there is a isBoundaryNodeOf property value.\r\n */\r\n boolean hasIsBoundaryNodeOf();\r\n\r\n /**\r\n * Adds a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param newIsBoundaryNodeOf the isBoundaryNodeOf property value to be added\r\n */\r\n void addIsBoundaryNodeOf(Boundary newIsBoundaryNodeOf);\r\n\r\n /**\r\n * Removes a isBoundaryNodeOf property value.<p>\r\n * \r\n * @param oldIsBoundaryNodeOf the isBoundaryNodeOf property value to be removed.\r\n */\r\n void removeIsBoundaryNodeOf(Boundary oldIsBoundaryNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isNodeOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isNodeOf property.<p>\r\n * \r\n * @returns a collection of values for the isNodeOf property.\r\n */\r\n Collection<? extends Subdomain> getIsNodeOf();\r\n\r\n /**\r\n * Checks if the class has a isNodeOf property value.<p>\r\n * \r\n * @return true if there is a isNodeOf property value.\r\n */\r\n boolean hasIsNodeOf();\r\n\r\n /**\r\n * Adds a isNodeOf property value.<p>\r\n * \r\n * @param newIsNodeOf the isNodeOf property value to be added\r\n */\r\n void addIsNodeOf(Subdomain newIsNodeOf);\r\n\r\n /**\r\n * Removes a isNodeOf property value.<p>\r\n * \r\n * @param oldIsNodeOf the isNodeOf property value to be removed.\r\n */\r\n void removeIsNodeOf(Subdomain oldIsNodeOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isVertexOf\r\n */\r\n \r\n /**\r\n * Gets all property values for the isVertexOf property.<p>\r\n * \r\n * @returns a collection of values for the isVertexOf property.\r\n */\r\n Collection<? extends Subdomain_group> getIsVertexOf();\r\n\r\n /**\r\n * Checks if the class has a isVertexOf property value.<p>\r\n * \r\n * @return true if there is a isVertexOf property value.\r\n */\r\n boolean hasIsVertexOf();\r\n\r\n /**\r\n * Adds a isVertexOf property value.<p>\r\n * \r\n * @param newIsVertexOf the isVertexOf property value to be added\r\n */\r\n void addIsVertexOf(Subdomain_group newIsVertexOf);\r\n\r\n /**\r\n * Removes a isVertexOf property value.<p>\r\n * \r\n * @param oldIsVertexOf the isVertexOf property value to be removed.\r\n */\r\n void removeIsVertexOf(Subdomain_group oldIsVertexOf);\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasNodeID\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasNodeID property.<p>\r\n * \r\n * @returns a collection of values for the hasNodeID property.\r\n */\r\n Collection<? extends Integer> getHasNodeID();\r\n\r\n /**\r\n * Checks if the class has a hasNodeID property value.<p>\r\n * \r\n * @return true if there is a hasNodeID property value.\r\n */\r\n boolean hasHasNodeID();\r\n\r\n /**\r\n * Adds a hasNodeID property value.<p>\r\n * \r\n * @param newHasNodeID the hasNodeID property value to be added\r\n */\r\n void addHasNodeID(Integer newHasNodeID);\r\n\r\n /**\r\n * Removes a hasNodeID property value.<p>\r\n * \r\n * @param oldHasNodeID the hasNodeID property value to be removed.\r\n */\r\n void removeHasNodeID(Integer oldHasNodeID);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasXCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasXCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasXCoordinate property.\r\n */\r\n Collection<? extends Object> getHasXCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasXCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasXCoordinate property value.\r\n */\r\n boolean hasHasXCoordinate();\r\n\r\n /**\r\n * Adds a hasXCoordinate property value.<p>\r\n * \r\n * @param newHasXCoordinate the hasXCoordinate property value to be added\r\n */\r\n void addHasXCoordinate(Object newHasXCoordinate);\r\n\r\n /**\r\n * Removes a hasXCoordinate property value.<p>\r\n * \r\n * @param oldHasXCoordinate the hasXCoordinate property value to be removed.\r\n */\r\n void removeHasXCoordinate(Object oldHasXCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasYCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasYCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasYCoordinate property.\r\n */\r\n Collection<? extends Object> getHasYCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasYCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasYCoordinate property value.\r\n */\r\n boolean hasHasYCoordinate();\r\n\r\n /**\r\n * Adds a hasYCoordinate property value.<p>\r\n * \r\n * @param newHasYCoordinate the hasYCoordinate property value to be added\r\n */\r\n void addHasYCoordinate(Object newHasYCoordinate);\r\n\r\n /**\r\n * Removes a hasYCoordinate property value.<p>\r\n * \r\n * @param oldHasYCoordinate the hasYCoordinate property value to be removed.\r\n */\r\n void removeHasYCoordinate(Object oldHasYCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#hasZCoordinate\r\n */\r\n \r\n /**\r\n * Gets all property values for the hasZCoordinate property.<p>\r\n * \r\n * @returns a collection of values for the hasZCoordinate property.\r\n */\r\n Collection<? extends Object> getHasZCoordinate();\r\n\r\n /**\r\n * Checks if the class has a hasZCoordinate property value.<p>\r\n * \r\n * @return true if there is a hasZCoordinate property value.\r\n */\r\n boolean hasHasZCoordinate();\r\n\r\n /**\r\n * Adds a hasZCoordinate property value.<p>\r\n * \r\n * @param newHasZCoordinate the hasZCoordinate property value to be added\r\n */\r\n void addHasZCoordinate(Object newHasZCoordinate);\r\n\r\n /**\r\n * Removes a hasZCoordinate property value.<p>\r\n * \r\n * @param oldHasZCoordinate the hasZCoordinate property value to be removed.\r\n */\r\n void removeHasZCoordinate(Object oldHasZCoordinate);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isCentralNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isCentralNode property.<p>\r\n * \r\n * @returns a collection of values for the isCentralNode property.\r\n */\r\n Collection<? extends Boolean> getIsCentralNode();\r\n\r\n /**\r\n * Checks if the class has a isCentralNode property value.<p>\r\n * \r\n * @return true if there is a isCentralNode property value.\r\n */\r\n boolean hasIsCentralNode();\r\n\r\n /**\r\n * Adds a isCentralNode property value.<p>\r\n * \r\n * @param newIsCentralNode the isCentralNode property value to be added\r\n */\r\n void addIsCentralNode(Boolean newIsCentralNode);\r\n\r\n /**\r\n * Removes a isCentralNode property value.<p>\r\n * \r\n * @param oldIsCentralNode the isCentralNode property value to be removed.\r\n */\r\n void removeIsCentralNode(Boolean oldIsCentralNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Property http://www.sifemontologies.com/ontologies/FiniteElementModel.owl#isMidNode\r\n */\r\n \r\n /**\r\n * Gets all property values for the isMidNode property.<p>\r\n * \r\n * @returns a collection of values for the isMidNode property.\r\n */\r\n Collection<? extends Boolean> getIsMidNode();\r\n\r\n /**\r\n * Checks if the class has a isMidNode property value.<p>\r\n * \r\n * @return true if there is a isMidNode property value.\r\n */\r\n boolean hasIsMidNode();\r\n\r\n /**\r\n * Adds a isMidNode property value.<p>\r\n * \r\n * @param newIsMidNode the isMidNode property value to be added\r\n */\r\n void addIsMidNode(Boolean newIsMidNode);\r\n\r\n /**\r\n * Removes a isMidNode property value.<p>\r\n * \r\n * @param oldIsMidNode the isMidNode property value to be removed.\r\n */\r\n void removeIsMidNode(Boolean oldIsMidNode);\r\n\r\n\r\n\r\n /* ***************************************************\r\n * Common interfaces\r\n */\r\n\r\n OWLNamedIndividual getOwlIndividual();\r\n\r\n OWLOntology getOwlOntology();\r\n\r\n void delete();\r\n\r\n}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTPCGenSingleWord node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.jjtGetNumChildren() != 0)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\tgetInvalidCountReport(node, 0));\n\t\t\treturn semantics;\n\t\t}\n\t\tString varName = node.getText();\n\t\tFormatManager<?> formatManager =\n\t\t\t\tfm.getFactory().getVariableFormat(legalScope, varName);\n\t\tif (formatManager != null)\n\t\t{\n\t\t\tsemantics.setInfo(FormulaSemanticsUtilities.SEM_FORMAT,\n\t\t\t\tnew FormulaFormat(formatManager.getManagedClass()));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics, \"Variable: \"\n\t\t\t\t+ varName + \" was not found\");\n\t\t}\n\t\treturn semantics;\n\t}", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public interface ResolvableModelicaNode extends ModelicaNode {\n /**\n * Tries to resolve the <b>declaration</b> of the referenced component.\n */\n ResolutionResult getResolutionCandidates();\n}", "@Test\n \tpublic void whereClauseForNodeRoot() {\n \t\tnode23.setRoot(true);\n \t\tcheckWhereCondition(\"_rank23.root IS TRUE\");\n \t}", "public Snippet visit(TopLevelDeclaration n, Snippet argu) {\n\t Snippet _ret=null;\n\t n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public interface DataNode\r\n{\r\n /** @return type name of this data node */\r\n public String get_type_name();\r\n /** @return the bits of this data node */\r\n public String get_bitsequence_value() ;\r\n \r\n /** @return size of this data in bits*/\r\n public int get_bit_size(); \r\n \r\n /** @return size of this data as an integer (for expresion evaluation\r\n * purpose */\r\n public int get_int_value() throws Exception;\r\n \r\n /** @return the number of bits this type takes */ \r\n public int get_fieldsize();\r\n \r\n /** set the expression for number of bits this type takes*/\r\n public void set_fieldsize(AST fieldsize);\r\n \r\n /** set valid ok nok */\r\n public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;\r\n \r\n /** sets the contaxt for evaluation of expressions for this data node*/\r\n public void set_context(VariableSymbolTable context);\r\n \r\n /** print a human readable form of this node */\r\n public String print();\r\n \r\n /** print with formatting \r\n * 0 = print() [debug formatted]\r\n * 1 = as string [useful to write to a file]\r\n * 2 = debug with strings [similar to 0, but with strings instad of bytes]\r\n * @return Formatted output ready to be printed\r\n */\r\n public String print(int format);\r\n public void set_name(String name);\r\n public String get_name();\r\n \r\n /** returns the maximum size this object can accept (hold) or -1 for infinity */\r\n public int get_max_accept() throws Exception;\r\n public void assign(DataNodeAbstract rhs) throws Exception;\r\n public void populate(BdplFile rhs) throws Exception;\r\n \r\n}", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "public Potential addVariable(Node var) {\n Vector v;\n PTreeCredalSet pot;\n \n v = new Vector();\n v.addElement(var);\n pot = (PTreeCredalSet)addVariable(v);\n return pot;\n }", "AlgNode routeDml( LogicalModify node, Statement statement );", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "@Test\n \tpublic void whereClauseForNodeIndirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeNamespace() {\n \t\tnode23.setNamespace(\"namespace\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.namespace\", \"'namespace'\"));\n \t}", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public QuestionNode(String query, DecisionNode yesTree, DecisionNode noTree) {\n this.query = query;\n this.yesTree = yesTree;\n this.noTree = noTree;\n }", "public String visit(Clause n, String s) {\n n.f0.accept(this, null);\n return null;\n }", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "public StatementNode getStatementNodeOnTrue();", "public interface SolutionQuery {\n\n Optional<String> getUser();\n\n Optional<String> getTask();\n\n Optional<SolutionStatus> getStatus();\n\n boolean isTest();\n}", "private Node getrelOpLHSSetOp(Node relOpNode, Node dataCriteriaSectionElem, Node lhsNode, Node rhsNode,\n\t\t\tString clauseName) {\n\n\t\tXmlProcessor hqmfXmlProcessor = measureExport.getHQMFXmlProcessor();\n\t\t// Node relOpParentNode = relOpNode.getParentNode();\n\n\t\ttry {\n\t\t\tNode setOpEntryNode = generateSetOpHQMF(lhsNode, dataCriteriaSectionElem, clauseName);\n\t\t\t// Element temporallyRelatedInfoNode = createBaseTemporalNode(relOpNode,\n\t\t\t// hqmfXmlProcessor);\n\t\t\tNode relOpParentNode = checkIfSubTree(relOpNode.getParentNode());\n\t\t\tif (relOpParentNode != null) {\n\t\t\t\tNodeList idChildNodeList = ((Element) setOpEntryNode).getElementsByTagName(ID);\n\t\t\t\tif (idChildNodeList != null && idChildNodeList.getLength() > 0) {\n\t\t\t\t\tNode idChildNode = idChildNodeList.item(0);\n\t\t\t\t\tString root = relOpParentNode.getAttributes().getNamedItem(UUID).getNodeValue();\n\t\t\t\t\tString ext = StringUtils\n\t\t\t\t\t\t\t.deleteWhitespace(relOpNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue() + \"_\"\n\t\t\t\t\t\t\t\t\t+ relOpNode.getAttributes().getNamedItem(UUID).getNodeValue());\n\t\t\t\t\tif (relOpParentNode.getAttributes().getNamedItem(QDM_VARIABLE) != null) {\n\t\t\t\t\t\tString isQdmVariable = relOpParentNode.getAttributes().getNamedItem(QDM_VARIABLE)\n\t\t\t\t\t\t\t\t.getNodeValue();\n\t\t\t\t\t\tif (TRUE.equalsIgnoreCase(isQdmVariable)) {\n\t\t\t\t\t\t\tString occText = null;\n\t\t\t\t\t\t\t// Handled Occurrence Of QDM Variable.\n\t\t\t\t\t\t\tif (relOpParentNode.getAttributes().getNamedItem(INSTANCE_OF) != null) {\n\t\t\t\t\t\t\t\toccText = \"occ\" + relOpParentNode.getAttributes().getNamedItem(INSTANCE).getNodeValue()\n\t\t\t\t\t\t\t\t\t\t+ \"of_\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (occText != null) {\n\t\t\t\t\t\t\t\text = occText + \"qdm_var_\" + ext;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\text = \"qdm_var_\" + ext;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tidChildNode.getAttributes().getNamedItem(EXTENSION).setNodeValue(ext);\n\t\t\t\t\tidChildNode.getAttributes().getNamedItem(ROOT).setNodeValue(root);\n\t\t\t\t}\n\t\t\t}\n\t\t\tElement temporallyRelatedInfoNode = null;\n\t\t\tif (!FULFILLS.equalsIgnoreCase(relOpNode.getAttributes().getNamedItem(TYPE).getNodeValue())) {\n\t\t\t\ttemporallyRelatedInfoNode = createBaseTemporalNode(relOpNode, hqmfXmlProcessor);\n\t\t\t} else {\n\t\t\t\ttemporallyRelatedInfoNode = hqmfXmlProcessor.getOriginalDoc().createElement(OUTBOUND_RELATIONSHIP);\n\t\t\t\ttemporallyRelatedInfoNode.setAttribute(TYPE_CODE, \"FLFS\");\n\t\t\t}\n\t\t\thandleRelOpRHS(rhsNode, temporallyRelatedInfoNode, clauseName);\n\n\t\t\tNode firstChild = setOpEntryNode.getFirstChild();\n\t\t\tif (LOCAL_VARIABLE_NAME.equals(firstChild.getNodeName())) {\n\t\t\t\tfirstChild = firstChild.getNextSibling();\n\t\t\t}\n\t\t\tNodeList outBoundList = ((Element) firstChild).getElementsByTagName(OUTBOUND_RELATIONSHIP);\n\t\t\tif (outBoundList != null && outBoundList.getLength() > 0) {\n\t\t\t\tNode outBound = outBoundList.item(0);\n\t\t\t\tfirstChild.insertBefore(temporallyRelatedInfoNode, outBound);\n\t\t\t} else {\n\t\t\t\tfirstChild.appendChild(temporallyRelatedInfoNode);\n\t\t\t}\n\n\t\t\t// create comment node\n\t\t\t// Comment comment = hqmfXmlProcessor.getOriginalDoc().createComment(\"entry for\n\t\t\t// \"+relOpNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue());\n\t\t\t// dataCriteriaSectionElem.appendChild(comment);\n\t\t\tdataCriteriaSectionElem.appendChild(setOpEntryNode);\n\t\t\treturn setOpEntryNode;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTLetClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"let \");\n\t\tint numOfChild = node.jjtGetNumChildren();\n\t\tboolean first = true;\n\t\tfor (int i = 0; i < numOfChild; i++) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tSystem.out.println(\",\");\n\t\t\t\tprintIndent(indent + 2);\n\t\t\t}\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, data);\n\t\t}\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Test\n \tpublic void whereClauseForNodeDirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "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 }", "@Override\n public R visit(ConstructQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.constructTemplate.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract IDecisionVariable getVariable();", "public Node getGoal(){\n return goal;\n }", "public final EObject ruleSparqlQueryVariable() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token lv_variable_1_0=null;\n Token otherlv_2=null;\n Token lv_variable_3_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1780:28: ( (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:1: (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:1: (otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1781:3: otherlv_0= '?' ( (lv_variable_1_0= RULE_STRING ) ) (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )*\n {\n otherlv_0=(Token)match(input,34,FOLLOW_34_in_ruleSparqlQueryVariable3970); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getSparqlQueryVariableAccess().getQuestionMarkKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1785:1: ( (lv_variable_1_0= RULE_STRING ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1786:1: (lv_variable_1_0= RULE_STRING )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1786:1: (lv_variable_1_0= RULE_STRING )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1787:3: lv_variable_1_0= RULE_STRING\n {\n lv_variable_1_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSparqlQueryVariable3987); \n\n \t\t\tnewLeafNode(lv_variable_1_0, grammarAccess.getSparqlQueryVariableAccess().getVariableSTRINGTerminalRuleCall_1_0()); \n \t\t\n\n \t if (current==null) {\n \t current = createModelElement(grammarAccess.getSparqlQueryVariableRule());\n \t }\n \t\taddWithLastConsumed(\n \t\t\tcurrent, \n \t\t\t\"variable\",\n \t\tlv_variable_1_0, \n \t\t\"STRING\");\n \t \n\n }\n\n\n }\n\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1803:2: (otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) ) )*\n loop18:\n do {\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (LA18_0==34) ) {\n alt18=1;\n }\n\n\n switch (alt18) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1803:4: otherlv_2= '?' ( (lv_variable_3_0= RULE_STRING ) )\n \t {\n \t otherlv_2=(Token)match(input,34,FOLLOW_34_in_ruleSparqlQueryVariable4005); \n\n \t \tnewLeafNode(otherlv_2, grammarAccess.getSparqlQueryVariableAccess().getQuestionMarkKeyword_2_0());\n \t \n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1807:1: ( (lv_variable_3_0= RULE_STRING ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1808:1: (lv_variable_3_0= RULE_STRING )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1808:1: (lv_variable_3_0= RULE_STRING )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:1809:3: lv_variable_3_0= RULE_STRING\n \t {\n \t lv_variable_3_0=(Token)match(input,RULE_STRING,FOLLOW_RULE_STRING_in_ruleSparqlQueryVariable4022); \n\n \t \t\t\tnewLeafNode(lv_variable_3_0, grammarAccess.getSparqlQueryVariableAccess().getVariableSTRINGTerminalRuleCall_2_1_0()); \n \t \t\t\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getSparqlQueryVariableRule());\n \t \t }\n \t \t\taddWithLastConsumed(\n \t \t\t\tcurrent, \n \t \t\t\t\"variable\",\n \t \t\tlv_variable_3_0, \n \t \t\t\"STRING\");\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop18;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Test\n public void example10 () throws Exception {\n ValueFactory f = repo.getValueFactory();\n String exns = \"http://example.org/people/\";\n URI alice = f.createURI(exns, \"alice\");\n URI bob = f.createURI(exns, \"bob\");\n URI ted = f.createURI(exns, \"ted\"); \n URI person = f.createURI(\"http://example.org/ontology/Person\");\n URI name = f.createURI(\"http://example.org/ontology/name\");\n Literal alicesName = f.createLiteral(\"Alice\");\n Literal bobsName = f.createLiteral(\"Bob\");\n Literal tedsName = f.createLiteral(\"Ted\"); \n URI context1 = f.createURI(exns, \"cxt1\"); \n URI context2 = f.createURI(exns, \"cxt2\"); \n conn.add(alice, RDF.TYPE, person, context1);\n conn.add(alice, name, alicesName, context1);\n conn.add(bob, RDF.TYPE, person, context2);\n conn.add(bob, name, bobsName, context2);\n conn.add(ted, RDF.TYPE, person);\n conn.add(ted, name, tedsName);\n \n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(conn.getStatements(null, null, null, false, context1, context2)));\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2),\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(conn.getStatements(null, null, null, false, null, context2)));\n \n // testing named graph query\n DatasetImpl ds = new DatasetImpl();\n ds.addNamedGraph(context1);\n ds.addNamedGraph(context2);\n TupleQuery tupleQuery = conn.prepareTupleQuery(\n QueryLanguage.SPARQL, \"SELECT ?s ?p ?o ?g WHERE { GRAPH ?g {?s ?p ?o . } }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(alice, RDF.TYPE, person, context1),\n new Stmt(alice, name, alicesName, context1),\n new Stmt(bob, RDF.TYPE, person, context2),\n new Stmt(bob, name, bobsName, context2)\n }),\n statementSet(tupleQuery.evaluate()));\n \n ds = new DatasetImpl();\n ds.addDefaultGraph(null);\n tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, \"SELECT ?s ?p ?o WHERE {?s ?p ?o . }\");\n tupleQuery.setDataset(ds);\n assertSetsEqual(\n stmts(new Stmt[] {\n new Stmt(ted, RDF.TYPE, person),\n new Stmt(ted, name, tedsName)\n }),\n statementSet(tupleQuery.evaluate()));\n }", "@Test\n public void t1()\n {\n \tFormula f1;\n \tEnvironment retenv;\n \tClause clause1,clause2,clause3;\n \tclause1 = make (na);\n\n \tf1=new Formula(clause1);\n \tSystem.out.println(\"---\");\n \tSystem.out.println(f1);\n \tretenv=SATSolver.solve(f1);\n \tSystem.out.println(\"Solution: \"+retenv);\n \t\n \tassertTrue(Boolean.TRUE);\n }", "@Test\n \tpublic void whereClauseDirectDominanceNamedAndAnnotated() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tnode42.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t\tcheckWhereCondition(node42,\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation42.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public interface SimplexSolutionTransferringNode {\n\n\tpublic double getTransfer();\n\t\n}", "public String getElement()\n {\n return nodeChoice;\n }", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void testConjunctionInQueryVarResolvesWhenBindingsMatch() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), f(x)], (?- f(X), g(X)), [[X <-- x]]]\");\n }", "OperationNode getNode();", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "public interface TeaVariable extends TeaNamedElement {\n boolean hasInitializer();\n TeaExpression getInitializer();\n void setInitializer(TeaExpression expr) throws IncorrectOperationException;\n TeaType getType();\n// boolean isConst();\n ASTNode findNameIdentifier();\n\n TeaReferenceExpression findNameExpression();\n}", "@Override\n public R visit(Query n, A argu) {\n R _ret = null;\n n.prologue.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private Node getrelOpLHSSubtree(Node relOpNode, Node dataCriteriaSectionElem, Node lhsNode, Node rhsNode,\n\t\t\tString clauseName) {\n\n\t\ttry {\n\t\t\tString subTreeUUID = lhsNode.getAttributes().getNamedItem(ID).getNodeValue();\n\t\t\tString root = subTreeUUID;\n\n\t\t\tNode relOpParentNode = relOpNode.getParentNode();\n\n\t\t\tString xpath = \"/measure/subTreeLookUp/subTree[@uuid='\" + subTreeUUID + \"']\";\n\t\t\tNode subTreeNode = measureExport.getSimpleXMLProcessor()\n\t\t\t\t\t.findNode(measureExport.getSimpleXMLProcessor().getOriginalDoc(), xpath);\n\t\t\tif (subTreeNode != null) {\n\t\t\t\t/**\n\t\t\t\t * Check if the Clause has already been generated. If it is not generated yet,\n\t\t\t\t * then generate it by calling the 'generateSubTreeXML' method.\n\t\t\t\t */\n\n\t\t\t\tif (!subTreeNodeMap.containsKey(subTreeUUID)) {\n\t\t\t\t\tgenerateSubTreeXML(subTreeNode, false);\n\t\t\t\t}\n\t\t\t\tString isQdmVariable = subTreeNode.getAttributes().getNamedItem(QDM_VARIABLE).getNodeValue();\n\t\t\t\tNode firstChild = subTreeNode.getFirstChild();\n\t\t\t\tString firstChildName = firstChild.getNodeName();\n\n\t\t\t\tString ext = StringUtils\n\t\t\t\t\t\t.deleteWhitespace(firstChild.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue());\n\t\t\t\tif (FUNCTIONAL_OP.equals(firstChildName) || RELATIONAL_OP.equals(firstChildName)\n\t\t\t\t\t\t|| SET_OP.equals(firstChildName)) {\n\t\t\t\t\text += \"_\" + firstChild.getAttributes().getNamedItem(UUID).getNodeValue();\n\t\t\t\t}\n\n\t\t\t\tif (ELEMENT_REF.equals(firstChildName)) {\n\t\t\t\t\text = getElementRefExt(firstChild, measureExport.getSimpleXMLProcessor());\n\t\t\t\t} else if (FUNCTIONAL_OP.equals(firstChildName)) {\n\t\t\t\t\tif (firstChild.getFirstChild() != null) {\n\t\t\t\t\t\tNode functionChild = firstChild.getFirstChild();\n\t\t\t\t\t\tif (functionChild != null) {\n\t\t\t\t\t\t\tif (functionChild.getNodeName().equalsIgnoreCase(SUB_TREE_REF)) {\n\t\t\t\t\t\t\t\text = functionChild.getAttributes().getNamedItem(ID).getNodeValue();\n\t\t\t\t\t\t\t} else if (functionChild.getNodeName().equalsIgnoreCase(ELEMENT_REF)) {\n\t\t\t\t\t\t\t\text = getElementRefExt(functionChild, measureExport.getSimpleXMLProcessor());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\text = StringUtils\n\t\t\t\t\t\t\t\t\t\t.deleteWhitespace(functionChild.getAttributes().getNamedItem(DISPLAY_NAME)\n\t\t\t\t\t\t\t\t\t\t\t\t.getNodeValue() + \"_\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ functionChild.getAttributes().getNamedItem(UUID).getNodeValue())\n\t\t\t\t\t\t\t\t\t\t.replaceAll(\":\", \"_\");\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 (TRUE.equalsIgnoreCase(isQdmVariable)) {\n\t\t\t\t\tString occText = null;\n\t\t\t\t\t// Handled Occurrence Of QDM Variable.\n\t\t\t\t\tif (subTreeNode.getAttributes().getNamedItem(INSTANCE_OF) != null) {\n\t\t\t\t\t\toccText = \"occ\" + subTreeNode.getAttributes().getNamedItem(\"instance\").getNodeValue() + \"of_\";\n\t\t\t\t\t}\n\t\t\t\t\tif (occText != null) {\n\t\t\t\t\t\text = occText + \"qdm_var_\" + ext;\n\t\t\t\t\t} else {\n\t\t\t\t\t\text = \"qdm_var_\" + ext;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tNode idNodeQDM = measureExport.getHQMFXmlProcessor().findNode(\n\t\t\t\t\t\tmeasureExport.getHQMFXmlProcessor().getOriginalDoc(),\n\t\t\t\t\t\t\"//entry/*/id[@root='\" + root + \"'][@extension=\\\"\" + ext + \"\\\"]\");\n\t\t\t\tif (idNodeQDM != null) {\n\t\t\t\t\tString newExt = StringUtils\n\t\t\t\t\t\t\t.deleteWhitespace(relOpNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue() + \"_\"\n\t\t\t\t\t\t\t\t\t+ relOpNode.getAttributes().getNamedItem(UUID).getNodeValue());\n\t\t\t\t\tif (relOpParentNode != null && SUB_TREE.equals(relOpParentNode.getNodeName())) {\n\t\t\t\t\t\troot = relOpParentNode.getAttributes().getNamedItem(UUID).getNodeValue();\n\t\t\t\t\t\tNode qdmVarNode = relOpParentNode.getAttributes().getNamedItem(QDM_VARIABLE);\n\t\t\t\t\t\tif (qdmVarNode != null) {\n\t\t\t\t\t\t\tString isQdmVar = relOpParentNode.getAttributes().getNamedItem(QDM_VARIABLE).getNodeValue();\n\t\t\t\t\t\t\tif (TRUE.equalsIgnoreCase(isQdmVar)) {\n\t\t\t\t\t\t\t\tString occText = null;\n\t\t\t\t\t\t\t\t// Handled Occurrence Of QDM Variable.\n\t\t\t\t\t\t\t\tif (relOpParentNode.getAttributes().getNamedItem(INSTANCE_OF) != null) {\n\t\t\t\t\t\t\t\t\toccText = \"occ\"\n\t\t\t\t\t\t\t\t\t\t\t+ relOpParentNode.getAttributes().getNamedItem(\"instance\").getNodeValue()\n\t\t\t\t\t\t\t\t\t\t\t+ \"of_\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (occText != null) {\n\t\t\t\t\t\t\t\t\tnewExt = occText + \"qdm_var_\" + newExt;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewExt = \"qdm_var_\" + newExt;\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} else {\n\t\t\t\t\t\tNode tempParentNode = checkIfParentSubTree(relOpParentNode);\n\t\t\t\t\t\tif (tempParentNode != null) {\n\t\t\t\t\t\t\troot = tempParentNode.getAttributes().getNamedItem(UUID).getNodeValue();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tNode parent = idNodeQDM.getParentNode();\n\t\t\t\t\tNode isOcc = subTreeNode.getAttributes().getNamedItem(INSTANCE_OF);\n\t\t\t\t\tNode newEntryNode = null;\n\n\t\t\t\t\tif (TRUE.equals(isQdmVariable) && isOcc == null) {\n\t\t\t\t\t\tXmlProcessor hqmfXmlProcessor = measureExport.getHQMFXmlProcessor();\n\t\t\t\t\t\t// creating Entry Tag\n\t\t\t\t\t\tElement entryElem = hqmfXmlProcessor.getOriginalDoc().createElement(ENTRY);\n\t\t\t\t\t\tentryElem.setAttribute(TYPE_CODE, \"DRIV\");\n\t\t\t\t\t\t// create empty grouperCriteria\n\t\t\t\t\t\tNode grouperElem = generateEmptyGrouper(hqmfXmlProcessor, root, newExt);\n\n\t\t\t\t\t\t// generate outboundRelationship\n\t\t\t\t\t\tElement outboundRelElem = generateEmptyOutboundElem(hqmfXmlProcessor);\n\n\t\t\t\t\t\tNamedNodeMap attribMap = parent.getAttributes();\n\t\t\t\t\t\tString classCode = attribMap.getNamedItem(CLASS_CODE).getNodeValue();\n\t\t\t\t\t\tString moodCode = attribMap.getNamedItem(MOOD_CODE).getNodeValue();\n\n\t\t\t\t\t\t// create criteriaRef\n\t\t\t\t\t\tElement criteriaReference = hqmfXmlProcessor.getOriginalDoc().createElement(CRITERIA_REFERENCE);\n\t\t\t\t\t\tcriteriaReference.setAttribute(CLASS_CODE, classCode);\n\t\t\t\t\t\tcriteriaReference.setAttribute(MOOD_CODE, moodCode);\n\n\t\t\t\t\t\tElement id = hqmfXmlProcessor.getOriginalDoc().createElement(ID);\n\t\t\t\t\t\tid.setAttribute(ROOT, subTreeUUID);\n\t\t\t\t\t\tid.setAttribute(EXTENSION, ext);\n\n\t\t\t\t\t\tcriteriaReference.appendChild(id);\n\t\t\t\t\t\toutboundRelElem.appendChild(criteriaReference);\n\n\t\t\t\t\t\tElement localVarElem = hqmfXmlProcessor.getOriginalDoc().createElement(LOCAL_VARIABLE_NAME);\n\t\t\t\t\t\tlocalVarElem.setAttribute(VALUE, ext);\n\t\t\t\t\t\tentryElem.appendChild(localVarElem);\n\n\t\t\t\t\t\tgrouperElem.appendChild(outboundRelElem);\n\t\t\t\t\t\tentryElem.appendChild(grouperElem);\n\n\t\t\t\t\t\tnewEntryNode = entryElem;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tNode entryNodeForSubTree = idNodeQDM.getParentNode().getParentNode();\n\t\t\t\t\t\tnewEntryNode = entryNodeForSubTree.cloneNode(true);\n\n\t\t\t\t\t\tNodeList idChildNodeList = ((Element) newEntryNode).getElementsByTagName(ID);\n\t\t\t\t\t\tif (idChildNodeList != null && idChildNodeList.getLength() > 0) {\n\t\t\t\t\t\t\tNode idChildNode = idChildNodeList.item(0);\n\t\t\t\t\t\t\tidChildNode.getAttributes().getNamedItem(EXTENSION).setNodeValue(newExt);\n\t\t\t\t\t\t\tidChildNode.getAttributes().getNamedItem(ROOT).setNodeValue(root);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Element temporallyRelatedInfoNode = createBaseTemporalNode(relOpNode,\n\t\t\t\t\t// measureExport.getHQMFXmlProcessor());\n\t\t\t\t\tElement temporallyRelatedInfoNode = null;\n\t\t\t\t\tif (!FULFILLS.equalsIgnoreCase(relOpNode.getAttributes().getNamedItem(TYPE).getNodeValue())) {\n\t\t\t\t\t\ttemporallyRelatedInfoNode = createBaseTemporalNode(relOpNode,\n\t\t\t\t\t\t\t\tmeasureExport.getHQMFXmlProcessor());\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttemporallyRelatedInfoNode = measureExport.getHQMFXmlProcessor().getOriginalDoc()\n\t\t\t\t\t\t\t\t.createElement(OUTBOUND_RELATIONSHIP);\n\t\t\t\t\t\ttemporallyRelatedInfoNode.setAttribute(TYPE_CODE, \"FLFS\");\n\t\t\t\t\t}\n\n\t\t\t\t\thandleRelOpRHS(rhsNode, temporallyRelatedInfoNode, clauseName);\n\n\t\t\t\t\tNode firstNode = newEntryNode.getFirstChild();\n\t\t\t\t\tif (LOCAL_VARIABLE_NAME.equals(firstNode.getNodeName())) {\n\t\t\t\t\t\tfirstNode = firstNode.getNextSibling();\n\t\t\t\t\t}\n\t\t\t\t\tNodeList outBoundList = ((Element) firstNode).getElementsByTagName(OUTBOUND_RELATIONSHIP);\n\t\t\t\t\tif (outBoundList != null && outBoundList.getLength() > 0) {\n\t\t\t\t\t\tNode outBound = outBoundList.item(0);\n\t\t\t\t\t\tfirstNode.insertBefore(temporallyRelatedInfoNode, outBound);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfirstNode.appendChild(temporallyRelatedInfoNode);\n\t\t\t\t\t}\n\t\t\t\t\t// Entry for Functional Op.\n\t\t\t\t\tif (FUNCTIONAL_OP.equals(relOpParentNode.getNodeName())) {\n\t\t\t\t\t\tElement excerptElement = generateExcerptEntryForFunctionalNode(relOpParentNode, lhsNode,\n\t\t\t\t\t\t\t\tmeasureExport.getHQMFXmlProcessor(), firstNode.getParentNode());\n\t\t\t\t\t\tif (excerptElement != null) {\n\t\t\t\t\t\t\t// Comment comment =\n\t\t\t\t\t\t\t// measureExport.getHQMFXmlProcessor().getOriginalDoc().createComment(\"entry for\n\t\t\t\t\t\t\t// \"+relOpParentNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue());\n\t\t\t\t\t\t\t// firstNode.appendChild(comment);\n\t\t\t\t\t\t\tfirstNode.appendChild(excerptElement);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// create comment node\n\t\t\t\t\t// Comment comment =\n\t\t\t\t\t// measureExport.getHQMFXmlProcessor().getOriginalDoc().createComment(\"entry for\n\t\t\t\t\t// \"+relOpNode.getAttributes().getNamedItem(DISPLAY_NAME).getNodeValue());\n\t\t\t\t\t// dataCriteriaSectionElem.appendChild(comment);\n\t\t\t\t\tdataCriteriaSectionElem.appendChild(newEntryNode);\n\t\t\t\t\treturn newEntryNode;\n\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "final public LogicalPlan Parse() throws ParseException {\n /*@bgen(jjtree) Parse */\n SimpleNode jjtn000 = new SimpleNode(JJTPARSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);LogicalOperator root = null;\n Token t1;\n Token t2;\n LogicalPlan lp = new LogicalPlan();\n log.trace(\"Entering Parse\");\n try {\n if (jj_2_1(3)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n t2 = jj_consume_token(IDENTIFIER);\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case AS:\n jj_consume_token(AS);\n jj_consume_token(80);\n TupleSchema();\n jj_consume_token(81);\n break;\n default:\n jj_la1[0] = jj_gen;\n ;\n }\n jj_consume_token(82);\n {if (true) throw new ParseException(\n \"Currently PIG does not support assigning an existing relation (\" + t1.image + \") to another alias (\" + t2.image + \")\");}\n } else if (jj_2_2(2)) {\n t1 = jj_consume_token(IDENTIFIER);\n jj_consume_token(79);\n root = Expr(lp);\n jj_consume_token(82);\n root.setAlias(t1.image);\n addAlias(t1.image, root);\n pigContext.setLastAlias(t1.image);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n case LOAD:\n case FILTER:\n case FOREACH:\n case ORDER:\n case DISTINCT:\n case COGROUP:\n case JOIN:\n case CROSS:\n case UNION:\n case GROUP:\n case STREAM:\n case STORE:\n case LIMIT:\n case SAMPLE:\n case IDENTIFIER:\n case 80:\n root = Expr(lp);\n jj_consume_token(82);\n break;\n case SPLIT:\n jj_consume_token(SPLIT);\n root = SplitClause(lp);\n jj_consume_token(82);\n break;\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n if(null != root) {\n log.debug(\"Adding \" + root.getAlias() + \" \" + root + \" to the lookup table \" + aliases);\n\n //Translate all the project(*) leaves in the plan to a sequence of projections\n ProjectStarTranslator translate = new ProjectStarTranslator(lp);\n translate.visit();\n\n addLogicalPlan(root, lp);\n\n try {\n log.debug(\"Root: \" + root.getClass().getName() + \" schema: \" + root.getSchema());\n } catch(FrontendException fee) {\n ParseException pe = new ParseException(fee.getMessage());\n pe.initCause(fee);\n {if (true) throw pe;}\n }\n }\n\n ArrayList<LogicalOperator> roots = new ArrayList<LogicalOperator>(lp.getRoots().size());\n for(LogicalOperator op: lp.getRoots()) {\n roots.add(op);\n }\n\n Map<LogicalOperator, Boolean> rootProcessed = new HashMap<LogicalOperator, Boolean>();\n for(LogicalOperator op: roots) {\n //At this point we have a logical plan for the pig statement\n //In order to construct the entire logical plan we need to traverse\n //each root and get the logical plan it belongs to. From each of those\n //plans we need the predecessors of the root of the current logical plan\n //and so on. This is a computationally intensive operatton but should\n //be fine as its restricted to the parser\n\n LogicalPlan rootPlan = aliases.get(op);\n if(null != rootPlan) {\n attachPlan(lp, op, rootPlan, rootProcessed);\n rootProcessed.put(op, true);\n }\n }\n\n log.trace(\"Exiting Parse\");\n {if (true) return lp;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "public void setNode_3(String node_3);", "private ExpSem choose(AST.Expression exp, QvarSem qvar, ExpSem none, FunExpSem some)\n {\n if (qvar instanceof QvarSem.Single &&\n (none == null || none instanceof ExpSem.Single) &&\n some instanceof FunExpSem.Single)\n {\n QvarSem.Single qvar0 = (QvarSem.Single)qvar;\n ExpSem.Single none0 = (ExpSem.Single)none;\n FunExpSem.Single some0 = (FunExpSem.Single)some;\n if (translator.nondeterministic)\n return (ExpSem.Multiple)(Context c)-> \n {\n Seq<Value[]> v = qvar0.apply(c);\n // if (v.get() == null)\n // {\n // if (none0 == null)\n // return Seq.empty();\n // else\n // return Seq.cons(none0.apply(c), Seq.empty());\n // }\n // return v.apply((Value[] v1)->some0.apply(v1).apply(c));\n if (none0 == null)\n return v.apply((Value[] v1)->some0.apply(v1).apply(c));\n else\n return Seq.append(v.apply((Value[] v1)->some0.apply(v1).apply(c)),\n Seq.supplier(()->new Seq.Next<Value>(none0.apply(c), Seq.empty())));\n };\n else\n return (ExpSem.Single)(Context c)-> \n {\n Main.performChoice();\n Seq<Value[]> v = qvar0.apply(c);\n Seq.Next<Value[]> next = v.get();\n if (next == null) \n {\n if (none0 == null)\n {\n translator.runtimeError(exp, \"no choice possible\");\n return null;\n }\n else\n return none0.apply(c);\n }\n else\n return some0.apply(next.head).apply(c);\n };\n }\n else\n {\n QvarSem.Multiple qvar0 = qvar.toMultiple();\n FunExpSem.Multiple some0 = some.toMultiple();\n ExpSem.Multiple none0 = none == null ? null : none.toMultiple();\n return (ExpSem.Multiple)(Context c)->\n {\n Seq<Seq<Value[]>> result = qvar0.apply(c);\n return result.applyJoin((Seq<Value[]> v)->\n {\n if (v.get() == null) \n {\n if (none0 == null)\n return Seq.empty();\n else\n return none0.apply(c);\n }\n return v.applyJoin((Value[] v1)->some0.apply(v1).apply(c));\n });\n };\n }\n }", "public void test_anon_0() {\n String NS = \"http://example.org/foo#\";\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:ex='http://example.org/foo#'\"\n + \" xmlns:owl='http://www.w3.org/2002/07/owl#'>\"\n + \" <owl:ObjectProperty rdf:about='http://example.org/foo#p' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#A' />\"\n + \" <ex:A rdf:about='http://example.org/foo#x' />\"\n + \" <owl:Class rdf:about='http://example.org/foo#B'>\"\n + \" <owl:equivalentClass>\"\n + \" <owl:Restriction>\" \n + \" <owl:onProperty rdf:resource='http://example.org/foo#p' />\" \n + \" <owl:hasValue rdf:resource='http://example.org/foo#x' />\" \n + \" </owl:Restriction>\"\n + \" </owl:equivalentClass>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n OntModel m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null);\n m.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n OntClass B = m.getOntClass( NS + \"B\");\n Restriction r = B.getEquivalentClass().asRestriction();\n HasValueRestriction hvr = r.asHasValueRestriction();\n RDFNode n = hvr.getHasValue();\n \n assertTrue( \"Should be an individual\", n instanceof Individual );\n }", "public Snippet visit(Expression n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public abstract T getSolverDeclaration();", "public void testVariableBindingFromQueryPropagatesAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X) :- g(X), h(X))], (?- f(x)), [[]]]\");\n }", "public interface SASolution extends Solution {\r\n\r\n /**\r\n * Generates a neighbor solution using this solution\r\n *\r\n * @return\r\n */\r\n public SASolution getNeighborSolution();\r\n\r\n /**\r\n * Prints this solution\r\n *\r\n * @return\r\n */\r\n public String getAsString();\r\n\r\n}", "private Term parseTerm(final boolean required) throws ParseException {\n return parseAssign(required);\n }", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Void visit(ClauseVarType clause, Void ctx) {\n\t\treturn null;\n\t}", "@Override\n public Void visitClause(GraafvisParser.ClauseContext ctx) {\n /* Arrived at a new clause, clear variables set */\n variables.clear();\n /* Visit antecedent and consequence */\n return visitChildren(ctx);\n }", "protected IndigoValenceCheckerNodeModel()\r\n {\r\n super(1, 3);\r\n }", "public Snippet visit(NonArrayType n, Snippet argu) {\n\t Snippet _ret=null;\n\t \n\t _ret =n.nodeChoice.accept(this, argu); \n\t\t\t_ret.expType.typeName = _ret.returnTemp;\n\t return _ret;\n\t }", "public static void main(String[] args) throws Exception {\n TDB.setOptimizerWarningFlag(false);\n\n final String DATASET_DIR_NAME = \"data0\";\n final Dataset data0 = TDBFactory.createDataset( DATASET_DIR_NAME );\n\n // show the currently registered names\n for (Iterator<String> it = data0.listNames(); it.hasNext(); ) {\n out.println(\"NAME=\"+it.next());\n }\n\n out.println(\"getting named model...\");\n /// this is the OWL portion\n final Model model = data0.getNamedModel( MY_NS );\n out.println(\"Model := \"+model);\n\n out.println(\"getting graph...\");\n /// this is the DATA in that MODEL\n final Graph graph = model.getGraph();\n out.println(\"Graph := \"+graph);\n\n if (graph.isEmpty()) {\n final Resource product1 = model.createResource( MY_NS +\"product/1\");\n final Property hasName = model.createProperty( MY_NS, \"#hasName\");\n final Statement stmt = model.createStatement(\n product1, hasName, model.createLiteral(\"Beach Ball\",\"en\") );\n out.println(\"Statement = \" + stmt);\n\n model.add(stmt);\n\n // just for fun\n out.println(\"Triple := \" + stmt.asTriple().toString());\n } else {\n out.println(\"Graph is not Empty; it has \"+graph.size()+\" Statements\");\n long t0, t1;\n t0 = System.currentTimeMillis();\n final Query q = QueryFactory.create(\n \"PREFIX exns: <\"+MY_NS+\"#>\\n\"+\n \"PREFIX exprod: <\"+MY_NS+\"product/>\\n\"+\n \" SELECT * \"\n // if you don't provide the Model to the\n // QueryExecutionFactory below, then you'll need\n // to specify the FROM;\n // you *can* always specify it, if you want\n // +\" FROM <\"+MY_NS+\">\\n\"\n // +\" WHERE { ?node <\"+MY_NS+\"#hasName> ?name }\"\n // +\" WHERE { ?node exns:hasName ?name }\"\n // +\" WHERE { exprod:1 exns:hasName ?name }\"\n +\" WHERE { ?res ?pred ?obj }\"\n );\n out.println(\"Query := \"+q);\n t1 = System.currentTimeMillis();\n out.println(\"QueryFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n try ( QueryExecution qExec = QueryExecutionFactory\n // if you query the whole DataSet,\n // you have to provide a FROM in the SparQL\n //.create(q, data0);\n .create(q, model) ) {\n t1 = System.currentTimeMillis();\n out.println(\"QueryExecutionFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n ResultSet rs = qExec.execSelect();\n t1 = System.currentTimeMillis();\n out.println(\"executeSelect.TIME=\"+(t1 - t0));\n while (rs.hasNext()) {\n QuerySolution sol = rs.next();\n out.println(\"Solution := \"+sol);\n for (Iterator<String> names = sol.varNames(); names.hasNext(); ) {\n final String name = names.next();\n out.println(\"\\t\"+name+\" := \"+sol.get(name));\n }\n }\n }\n }\n out.println(\"closing graph\");\n graph.close();\n out.println(\"closing model\");\n model.close();\n //out.println(\"closing DataSetGraph\");\n //dsg.close();\n out.println(\"closing DataSet\");\n data0.close();\n }", "boolean checkGoal(Node solution);", "@org.junit.Test\n public void constrCompelemNodeid3() {\n final XQuery query = new XQuery(\n \"for $x in <!--comment-->, $y in element elem {$x} return exactly-one($y/comment()) is $x\",\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 assertBoolean(false)\n );\n }", "private Agent getRecommenderFromNode()\n\t{\n\t\tMap<String,ComputationOutputBuffer> nodeInputs =\n\t\t\t\tcomputationNode.getInputs();\n\n\t\tAgent agent = new Agent();\n\t\tagent.setType(computationNode.getRecommenderClass());\n if (options == null) {\n \tOptionEdge optionEdge = (OptionEdge)\n \t\t\tnodeInputs.get(\"options\").getNext();\n nodeInputs.get(\"options\").block();\n options = new NewOptions(optionEdge.getOptions());\n }\n\t\tagent.setOptions(options.getOptions());\n\t\treturn agent;\n\t}", "public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }" ]
[ "0.6201431", "0.5924797", "0.5899969", "0.57501996", "0.5673597", "0.550213", "0.5470634", "0.54152924", "0.5370618", "0.5350331", "0.5334729", "0.5309262", "0.5281099", "0.5259857", "0.525146", "0.5238906", "0.5233488", "0.5194583", "0.5179048", "0.51782745", "0.51671636", "0.5123248", "0.5090356", "0.50883776", "0.5045422", "0.49583608", "0.49321535", "0.49316284", "0.49159098", "0.49133927", "0.49083865", "0.4905833", "0.49043772", "0.4892618", "0.48716578", "0.4869214", "0.48497343", "0.48441434", "0.48314485", "0.48201632", "0.48190877", "0.48181713", "0.4814554", "0.48031133", "0.47784165", "0.47693676", "0.47566485", "0.47343165", "0.4720503", "0.4718148", "0.4710588", "0.47104985", "0.470344", "0.4697215", "0.46856838", "0.46851522", "0.46804357", "0.46772277", "0.46714398", "0.46659723", "0.4659328", "0.46576014", "0.4656663", "0.46499664", "0.46483085", "0.4643181", "0.46421954", "0.4636747", "0.46321964", "0.46291646", "0.462218", "0.46179318", "0.4613865", "0.46114153", "0.46112752", "0.4609914", "0.45905212", "0.4587356", "0.45853236", "0.45849815", "0.45820022", "0.45765498", "0.4572101", "0.45709133", "0.45624518", "0.455784", "0.45539755", "0.45516464", "0.4543032", "0.45391318", "0.4530905", "0.4530835", "0.45259237", "0.45255044", "0.45237076", "0.45223558", "0.4516842", "0.45148465", "0.45139438", "0.45004365" ]
0.5840506
3
nodeToken > nodeListOptional > ( DatasetClause() ) whereClause > WhereClause()
@Override public R visit(AskQuery n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeListOptional.accept(this, argu); n.whereClause.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTWhereClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"where \");\n\t\tnode.childrenAccept(this, 0);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "@Test\n \tpublic void whereClauseForNodeNamespace() {\n \t\tnode23.setNamespace(\"namespace\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.namespace\", \"'namespace'\"));\n \t}", "@Test\n \tpublic void whereClauseForNodeName() {\n \t\tnode23.setName(\"name\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.name\", \"'name'\"));\n \t}", "@Test\n \tpublic void whereClauseForNodeRoot() {\n \t\tnode23.setRoot(true);\n \t\tcheckWhereCondition(\"_rank23.root IS TRUE\");\n \t}", "@Test\n \tpublic void whereClauseForNodeDirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseDirectDominanceNamedAndAnnotated() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tnode42.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t\tcheckWhereCondition(node42,\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation42.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeIndirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "String getMetadataWhereClause();", "public NestedClause getXQueryClause();", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public WhereExpression(List<Node> nodeList, TreeBuilder treeBuilder,\r\n SelectStatement selectStatement) throws TreeParsingException {\r\n this.selectStatement = selectStatement;\r\n this.builder = treeBuilder;\r\n this.build(nodeList);\r\n }", "private ASTQuery() {\r\n dataset = Dataset.create();\r\n }", "@Test\n \tpublic void whereClauseForNodeSibling() {\n \t\tnode23.addJoin(new Sibling(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank23.parent\", \"_rank42.parent\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n\t\t\t\t\"_component23.name IS NULL\"\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}", "@Override\n\tpublic void accept(WhereNodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\n public R visit(Antecedent n, A argu) {\n R _ret = null;\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "String getWhereClause();", "@Test\n \tpublic void whereClauseForNodeSpanString() {\n \t\tnode23.setSpannedText(\"string\", TextMatching.EXACT_EQUAL);\n \t\tcheckWhereCondition(join(\"=\", \"_node23.span\", \"'string'\"));\n \t}", "@Test\n \tpublic void whereClauseForNodeInclusion() {\n \t\tnode23.addJoin(new Inclusion(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.left\"),\n \t\t\t\tjoin(\">=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}", "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeRangedDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10, 20));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\t\"_rank23.level BETWEEN SYMMETRIC _rank42.level - 10 AND _rank42.level - 20\"\n \n \t\t);\n \t}", "@Override\n\tpublic Object visit(ASTCondSome node, Object data) {\n\t\treturn null;\n\t}", "@Test\n \tpublic void whereClauseForNodeSameSpan() {\n \t\tnode23.addJoin(new SameSpan(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.left\", \"_node42.left\"),\n \t\t\t\tjoin(\"=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeExactPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -10));\n \t}", "@Override\n\tpublic Object visit(ASTFilterEq node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" eq \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "public abstract Statement queryToRetrieveData();", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public QbWhere where();", "@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}", "@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 }", "@Override\n\tpublic Void visit(ClauseOperator clause, Void ctx) {\n\t\treturn null;\n\t}", "@Test\n \tpublic void whereClauseDirectDominanceNamed() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "@Test\n public void testIsNullCriteria1() throws Exception {\n String sql = \"Select a From db.g Where a IS NULL\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, IsNullCriteria.ID);\n verifyElementSymbol(criteriaNode, IsNullCriteria.EXPRESSION_REF_NAME, \"a\");\n \n verifySql(\"SELECT a FROM db.g WHERE a IS NULL\", fileNode);\n }", "@Override\n\tpublic Object visit(ASTCondEq node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" eq \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "@Test\n \tpublic void whereClauseForNodeSpanRegexp() {\n \t\tnode23.setSpannedText(\"regexp\", TextMatching.REGEXP_EQUAL);\n \t\tcheckWhereCondition(join(\"~\", \"_node23.span\", \"'^regexp$'\"));\n \t}", "@Test\n public void testIsNullCriteria2() throws Exception {\n String sql = \"Select a From db.g Where a IS NOT NULL\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, IsNullCriteria.ID);\n verifyElementSymbol(criteriaNode, IsNullCriteria.EXPRESSION_REF_NAME, \"a\");\n verifyProperty(criteriaNode, IsNullCriteria.NEGATED_PROP_NAME, true);\n \n verifySql(\"SELECT a FROM db.g WHERE a IS NOT NULL\", fileNode);\n }", "public StatementNode getStatementNodeOnTrue();", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTCondAnd node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" and \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "String WHERE() { return yyline+\"/\"+yycolumn+\"(\"+yychar+\")\" ;}", "public static QueryIterator testForGraphName(DatasetGraphTDB ds, Node graphNode, QueryIterator input,\n Predicate<Tuple<NodeId>> filter, ExecutionContext execCxt) {\n NodeId nid = TDBInternal.getNodeId(ds, graphNode) ;\n boolean exists = !NodeId.isDoesNotExist(nid) ;\n if ( exists ) {\n // Node exists but is it used in the quad position?\n NodeTupleTable ntt = ds.getQuadTable().getNodeTupleTable() ;\n // Don't worry about abortable - this iterator should be fast\n // (with normal indexing - at least one G???).\n // Either it finds a starting point, or it doesn't. We are only \n // interested in the first .hasNext.\n Iterator<Tuple<NodeId>> iter1 = ntt.find(nid, NodeId.NodeIdAny, NodeId.NodeIdAny, NodeId.NodeIdAny) ;\n if ( filter != null )\n iter1 = Iter.filter(iter1, filter) ;\n exists = iter1.hasNext() ;\n }\n\n if ( exists )\n return input ;\n else {\n input.close() ;\n return QueryIterNullIterator.create(execCxt) ;\n }\n }", "public Element getPredicateVariable();", "@Test\n \tpublic void whereClauseForNodeLeftAlignment() {\n \t\tnode23.addJoin(new LeftAlignment(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.left\", \"_node42.left\")\n \t\t);\n \t}", "String getMetadataSelectClause();", "GeneralClause createGeneralClause();", "public ExpressionNode getCondition();", "@Override\n public R visit(DescribeQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "DataParamNode DataParamNode(Token t, String text);", "@Test\n \tpublic void whereClauseForNodeOverlap() {\n \t\tnode23.addJoin(new Overlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.right\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Override\n\tpublic Object visit(ASTCondEmpty node, Object data) {\n\t\tSystem.out.print(\"empty (\");\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@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\tpublic Tuple next(){\n\t\tif(!child.from.equals(whereTablePredicate)){\n\t\t\treturn child.next();\n\t\t}\n\t\tTuple tmp = child.next();\n\t\twhile(tmp != null){\n\t\t\tfor (int i = 0; i < tmp.getAttributeList().size(); i++){\n\t\t\t\tif(tmp.getAttributeName(i).equals(whereAttributePredicate)){\n\t\t\t\t\tif(tmp.getAttributeValue(i).equals(whereValuePredicate)){\n\t\t\t\t\t\treturn tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttmp = child.next();\n\t\t}\n\t\treturn tmp;\n\t}", "@Test\n \tpublic void whereClauseForNodeRightAlignment() {\n \t\tnode23.addJoin(new RightAlignment(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}", "@Override\n public Void visitProgram(GraafvisParser.ProgramContext ctx) {\n for (GraafvisParser.ClauseContext clause : ctx.clause()) {\n visitClause(clause);\n }\n return null;\n }", "@Test\n public void operator_empty_data_table() {\n OutputNode output = new OutputNode(\"testing\", typeOf(Result.class), typeOf(String.class));\n OperatorNode operator = new OperatorNode(\n classOf(SimpleOp.class), typeOf(Result.class), typeOf(String.class),\n output, new SpecialElement(VertexElement.ElementKind.EMPTY_DATA_TABLE, typeOf(DataTable.class)));\n InputNode root = new InputNode(operator);\n MockContext context = new MockContext();\n testing(root, context, op -> {\n op.process(\"Hello, world!\");\n });\n assertThat(context.get(\"testing\"), contains(\"Hello, world!TABLE\"));\n }", "public WhereExpression(Tree t, TreeBuilder treeBuilder,\r\n SelectStatement selectStatement) throws TreeParsingException {\r\n this.selectStatement = selectStatement;\r\n this.builder = treeBuilder;\r\n this.build(t, this.builder);\r\n }", "@Override\n\tpublic Object visit(ASTCondIs node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" is \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTFilterAnd node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" and \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "String getInsertDataLiteralQuery(String graph, String subject, String predicate, String object, String datatype);", "public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }", "com.google.protobuf.ByteString\n getWhereClauseBytes();", "@Test\n public void testSetCriteria0() throws Exception {\n String sql = \"SELECT a FROM db.g WHERE b IN (1000,5000)\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, SetCriteria.ID);\n verifyElementSymbol(criteriaNode, AbstractSetCriteria.EXPRESSION_REF_NAME, \"b\");\n verifyConstant(criteriaNode, SetCriteria.VALUES_REF_NAME, 1, 1000);\n verifyConstant(criteriaNode, SetCriteria.VALUES_REF_NAME, 2, 5000);\n\n verifySql(\"SELECT a FROM db.g WHERE b IN (1000, 5000)\", fileNode);\n }", "@Override\r\n public StringBuilder getWhereStatement(BuildingContext context, StringBuilder targetAlias, List<Object> params) {\n AbstractMsSQLDatabaseDialect dialect = (AbstractMsSQLDatabaseDialect)context.getDialect(); \r\n String schemaName;\r\n try{\r\n schemaName = dialect.getSchemaName();\r\n }catch(Exception e){\r\n throw new RuntimeException(\"Failed to get schema name from MSSQL Dialect\", e);\r\n }\r\n \r\n StringBuilder statement = new StringBuilder((schemaName.length() != 0 ? schemaName+\".\" : \"\"))\r\n .append(\"PREAD\")\r\n .append(\"(\")\r\n .append(QueryUtils.asPrefix(targetAlias)).append(dialect.convertColumnName(Constants.FIELD_ID))\r\n .append(\",\")\r\n .append(QueryUtils.asPrefix(targetAlias)).append(dialect.convertColumnName(Constants.TABLE_NODE__SECURITY_ID))\r\n .append(\",?,?,?,?)>0\");\r\n\r\n \r\n Collection<String> groups = context.getSession().getGroupIDs();\r\n Collection<String> contexts = context.getSession().getContextIDs();\r\n StringBuffer groupNames = new StringBuffer();\r\n int i = 0;\r\n for(String group:groups){\r\n if(i++>0) {\r\n groupNames.append(',');\r\n }\r\n \r\n groupNames.append(dialect.convertStringToSQL(group));\r\n }\r\n \r\n StringBuffer contextNames = new StringBuffer();\r\n i = 0;\r\n for(String c:contexts){\r\n if(i++>0)\r\n contextNames.append(',');\r\n \r\n contextNames.append(dialect.convertStringToSQL(c));\r\n }\r\n \r\n \r\n params.add(dialect.convertStringToSQL(context.getSession().getUserID()));\r\n params.add(groupNames.toString());\r\n params.add(contextNames.toString());\r\n params.add(context.isAllowBrowse());\r\n \r\n return statement;\r\n }", "private void concatWhere(StringBuilder sb, Criteria root) {\n root.args.clear();\r\n if (root.rootRestrictions != null) {\r\n root.where = root.rootRestrictions.getWhere(root.args);\r\n if (root.where.length() > 0) {\r\n sb.append(\" WHERE \");\r\n sb.append(root.where);\r\n }\r\n }\r\n // Criteria current = root;\r\n // for (Restrictions restriction : current.propRestrictionList) {\r\n // if (!appendWhere) {\r\n // sb.append(\" WHERE\");\r\n // appendWhere = true;\r\n // }\r\n // sb.append(\" \");\r\n // sb.append(property2Column(restriction.property));\r\n // sb.append(restriction.op);\r\n // sb.append(property2Column((String) restriction.value));\r\n // }\r\n // while (current != null) {\r\n // if (!current.restrictionList.isEmpty()) {\r\n // if (!appendWhere) {\r\n // sb.append(\" WHERE\");\r\n // appendWhere = true;\r\n // }\r\n // for (Restrictions restriction : current.restrictionList) {\r\n // sb.append(\" \");\r\n // sb.append(property2Column(restriction.property));\r\n // sb.append(restriction.op);\r\n // sb.append('?');\r\n // root.args.add(restriction.value);\r\n // }\r\n // }\r\n // current = current.child;\r\n // }\r\n \r\n }", "public StatementNode getStatementNodeOnFalse();", "private String createSQLStatement(String segmentNode){\n\t\t\n\t\tString SQL2 = \"SELECT * FROM [cq:Page] AS s WHERE ISDESCENDANTNODE([\" + segmentNode + \"])\";\n\t\treturn SQL2;\n\t\t\n\t}", "cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();", "@Override\n\tpublic String getSqlWhere() {\n\t\treturn null;\n\t}", "public String visit(Clause n, String s) {\n n.f0.accept(this, null);\n return null;\n }", "public abstract T queryRootNode();", "public interface Equality extends Clause {}", "@Override\n\tpublic Void visit(ClauseType clause, Void ctx) {\n\t\treturn null;\n\t}", "public void build(Tree t, TreeBuilder builder) throws TreeParsingException {\r\n if (t.getType() == JdbcGrammarParser.WHEREEXPRESSION) {\r\n this.tokenType = t.getType();\r\n this.tokenName = JdbcGrammarParser.tokenNames[this.tokenType];\r\n this.logger.debug(\"BUILDING \" + this.tokenName);\r\n \r\n for (int i = 0; i < t.getChildCount(); i++) {\r\n Tree child = t.getChild(i);\r\n switch (child.getType()) {\r\n case JdbcGrammarParser.DISJUNCTION:\r\n this.expression = (new Disjunction(child, builder,\r\n this, this.selectStatement));\r\n break;\r\n case JdbcGrammarParser.CONJUNCTION:\r\n logger.debug(\"BUILDING CONJUNCTION OR DISJUNCTION FROM CONJUNCTION\");\r\n Node built = Conjunction.buildFromConjunction(child, builder, this, selectStatement);\r\n if(built.getTokenType()==JdbcGrammarParser.CONJUNCTION){\r\n this.expression = (Conjunction.class.cast(built));\r\n logger.debug(\"CONJUNCTION BUILT AND ADDED TO WHEREEXPRESSION\");\r\n }\r\n else{\r\n this.expression = (Disjunction.class.cast(built));\r\n logger.debug(\"DISJUNCTION BUILT AND ADDED TO WHEREEXPRESSION\");\r\n } \r\n break;\r\n case JdbcGrammarParser.NEGATION:\r\n this.expression = (new Negation(child, builder, this,\r\n this.selectStatement));\r\n break;\r\n case JdbcGrammarParser.BOOLEANEXPRESSIONITEM:\r\n this.expression = (new BooleanExpressionItem(child,\r\n builder, this, this.selectStatement));\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n \r\n }\r\n else {\r\n throw new TreeParsingException(\"This Tree is not a WHEREEXPRESSION\");\r\n }\r\n }", "public SCondition(Node node) {\n super(node);\n }", "@Test\n public void testNotIsNullCriteria() throws Exception {\n String sql = \"Select a From db.g Where Not a IS NULL\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node notCriteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, NotCriteria.ID);\n \n Node isNullCriteriaNode = verify(notCriteriaNode, NotCriteria.CRITERIA_REF_NAME, IsNullCriteria.ID);\n verifyElementSymbol(isNullCriteriaNode, IsNullCriteria.EXPRESSION_REF_NAME, \"a\");\n \n verifySql(\"SELECT a FROM db.g WHERE NOT (a IS NULL)\", fileNode);\n }", "@Test\n public void test3() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY 8 > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator filter = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe1 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "final public LogicalOperator SampleClause(LogicalPlan lp) throws ParseException {\n /*@bgen(jjtree) SampleClause */\n SimpleNode jjtn000 = new SimpleNode(JJTSAMPLECLAUSE);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);ExpressionOperator cond;\n LogicalOperator input;\n Token t;\n LogicalPlan conditionPlan = new LogicalPlan();\n log.trace(\"Entering SampleClause\");\n try {\n input = NestedExpr(lp);\n log.debug(\"Filter input: \" + input);\n t = jj_consume_token(DOUBLENUMBER);\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n LOUserFunc rand = new LOUserFunc(conditionPlan, new OperatorKey(scope, getNextId()), new FuncSpec(RANDOM.class.getName()), DataType.DOUBLE);\n conditionPlan.add(rand);\n\n double l = Double.parseDouble(t.image);\n LOConst prob = new LOConst(conditionPlan, new OperatorKey(scope, getNextId()), l);\n conditionPlan.add(prob);\n\n cond = new LOLesserThanEqual(conditionPlan, new OperatorKey(scope, getNextId()));\n conditionPlan.add(cond);\n conditionPlan.connect(rand, cond);\n conditionPlan.connect(prob, cond);\n\n LogicalOperator filter = new LOFilter(lp, new OperatorKey(scope, getNextId()), conditionPlan);\n addAlias(input.getAlias(), input);\n lp.add(filter);\n log.debug(\"Added operator \" + filter.getClass().getName() + \" to the logical plan\");\n\n lp.connect(input, filter);\n log.debug(\"Connected alias \" + input.getAlias() + \" operator \" + input.getClass().getName() + \" to operator \" + filter.getClass().getName() +\" in the logical plan\");\n\n log.trace(\"Exiting SampleClause\");\n {if (true) return filter;}\n } catch (Throwable jjte000) {\n if (jjtc000) {\n jjtree.clearNodeScope(jjtn000);\n jjtc000 = false;\n } else {\n jjtree.popNode();\n }\n if (jjte000 instanceof RuntimeException) {\n {if (true) throw (RuntimeException)jjte000;}\n }\n if (jjte000 instanceof ParseException) {\n {if (true) throw (ParseException)jjte000;}\n }\n {if (true) throw (Error)jjte000;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "public ZExpression getWhereExpression()\r\n\t{\r\n\t\treturn where;\r\n\t}", "@Test\n \tpublic void whereClauseForNodeRangedPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10, 20));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\t\"_node23.right_token BETWEEN SYMMETRIC _node42.left_token - 10 AND _node42.left_token - 20\"\n \t\t);\n \t}", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "@Test\n public void whereStoreSucceed()\n {\n // arrange\n final String whereClause = \"validWhere\";\n // act\n QuerySpecificationBuilder querySpecificationBuilder = new QuerySpecificationBuilder(\"*\", QuerySpecificationBuilder.FromType.ENROLLMENTS).where(whereClause);\n\n // assert\n assertEquals(whereClause, Deencapsulation.getField(querySpecificationBuilder, \"where\"));\n }", "public Relation select(Condition c) throws RelationException;", "@Test\n public void test1() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:bag{(u,v)}, b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY \" + COUNT.class.getName() +\"($0) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe2 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }", "private static QueryIterator execute(NodeTupleTable nodeTupleTable, Node graphNode, BasicPattern pattern, \n QueryIterator input, Predicate<Tuple<NodeId>> filter,\n ExecutionContext execCxt)\n {\n if ( Quad.isUnionGraph(graphNode) )\n graphNode = Node.ANY ;\n if ( Quad.isDefaultGraph(graphNode) )\n graphNode = null ;\n \n List<Triple> triples = pattern.getList() ;\n boolean anyGraph = (graphNode==null ? false : (Node.ANY.equals(graphNode))) ;\n\n int tupleLen = nodeTupleTable.getTupleTable().getTupleLen() ;\n if ( graphNode == null ) {\n if ( 3 != tupleLen )\n throw new TDBException(\"SolverLib: Null graph node but tuples are of length \"+tupleLen) ;\n } else {\n if ( 4 != tupleLen )\n throw new TDBException(\"SolverLib: Graph node specified but tuples are of length \"+tupleLen) ;\n }\n \n // Convert from a QueryIterator (Bindings of Var/Node) to BindingNodeId\n NodeTable nodeTable = nodeTupleTable.getNodeTable() ;\n \n Iterator<BindingNodeId> chain = Iter.map(input, SolverLib.convFromBinding(nodeTable)) ;\n List<Abortable> killList = new ArrayList<>() ;\n \n for ( Triple triple : triples )\n {\n Tuple<Node> tuple = null ;\n if ( graphNode == null )\n // 3-tuples\n tuple = tuple(triple.getSubject(), triple.getPredicate(), triple.getObject()) ;\n else\n // 4-tuples.\n tuple = tuple(graphNode, triple.getSubject(), triple.getPredicate(), triple.getObject()) ;\n // Plain RDF\n //chain = solve(nodeTupleTable, tuple, anyGraph, chain, filter, execCxt) ;\n // RDF-star\n chain = SolverRX.solveRX(nodeTupleTable, tuple, anyGraph, chain, filter, execCxt) ;\n chain = makeAbortable(chain, killList) ; \n }\n \n // DEBUG POINT\n if ( false )\n {\n if ( chain.hasNext())\n chain = Iter.debug(chain) ;\n else\n System.out.println(\"No results\") ;\n }\n \n // Timeout wrapper ****\n // QueryIterTDB gets called async.\n // Iter.abortable?\n // Or each iterator has a place to test.\n // or pass in a thing to test?\n \n \n // Need to make sure the bindings here point to parent.\n Iterator<Binding> iterBinding = convertToNodes(chain, nodeTable) ;\n \n // \"input\" will be closed by QueryIterTDB but is otherwise unused.\n // \"killList\" will be aborted on timeout.\n return new QueryIterTDB(iterBinding, killList, input, execCxt) ;\n }", "private void generateQuery() {\n\t\tString edgeType = \"\";\n\n\t\tif (isUnionTraversal || isTraversal || isWhereTraversal) {\n\t\t\tString previousNode = prevsNode;\n\t\t\tif (isUnionTraversal) {\n\t\t\t\tpreviousNode = unionMap.get(unionKey);\n\t\t\t\tisUnionTraversal = false;\n\t\t\t}\n\n\t\t\tEdgeRuleQuery edgeRuleQuery = new EdgeRuleQuery.Builder(previousNode, currentNode).build();\n\t\t\tEdgeRule edgeRule = null;\n\n\t\t\ttry {\n\t\t\t\tedgeRule = edgeRules.getRule(edgeRuleQuery);\n\t\t\t} catch (EdgeRuleNotFoundException | AmbiguousRuleChoiceException e) {\n\t\t\t}\n\n\t\t\tif (edgeRule == null) {\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t} else if (\"none\".equalsIgnoreCase(edgeRule.getContains())){\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t}else {\n\t\t\t\tedgeType = \"EdgeType.TREE\";\n\t\t\t}\n\n\t\t\tquery += \".createEdgeTraversal(\" + edgeType + \", '\" + previousNode + \"','\" + currentNode + \"')\";\n\n\t\t}\n\n\t\telse\n\t\t\tquery += \".getVerticesByProperty('aai-node-type', '\" + currentNode + \"')\";\n\t}", "public interface INestedIfElseClauseContainer extends IEmbeddedNodeUser {\r\n\t\t/**\r\n\t\t * registers an if-clause (or else-clause) as an inner clause of this clause\r\n\t\t * @param nestedClause\r\n\t\t * @throws NullPointerException: if nestedClause is null\r\n\t\t */\r\n\t\tpublic void addNestedClause(TempTableHeaderCell nestedClause);\r\n\t\t\r\n\t\t/**\r\n\t\t * Looks for the first if/else clause (performing deep scan - searches every nested if/else clause\r\n\t\t * as well) which the bExpression returns true.\r\n\t\t * \r\n\t\t * @param valuesOnCPTColumn: a map which the key is a name of a parent node and\r\n\t\t * the value is its current possible values to be evaluated.\r\n\t\t * For example, if we want to evalueate an expression when for a node \"Node(!ST0)\" we\r\n\t\t * have parents Parent1(!ST0,!Z0), Parent1(!ST0,!Z1), Parent2(!ST0,!T0), and Parent2(!ST0,!T0)\r\n\t\t * with values True, False, Alpha, Beta respectively, the map should be:\r\n\t\t * \t\tentry0, (key:\"Parent1\", values: {True, False});\r\n\t\t * \t\tentry1, (key:\"Parent2\", values: {Alpha, Beta});\r\n\t\t * \r\n\t\t * @return: the first if/else clause which returned true.\r\n\t\t */\r\n\t\tpublic TempTableHeaderCell getFirstTrueClause(Map<String, List<EntityAndArguments>> valuesOnCPTColumn) ;\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Tests if this container has no nested clauses.\r\n\t\t * @return true if this if/else clause container has 0 nested elements\r\n\t\t */\r\n\t\tpublic boolean isEmptyNestedClauses ();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return the clauses\r\n\t\t */\r\n\t\tpublic List<TempTableHeaderCell> getNestedClauses();\r\n\t\t\r\n\t\t/**\r\n\t\t * \r\n\t\t * @return the clause this object is contained within\r\n\t\t */\r\n\t\tpublic INestedIfElseClauseContainer getUpperClause();\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * sets the clause this object is contained within\r\n\t\t * @param upper\r\n\t\t */\r\n\t\tpublic void setUpperClause(INestedIfElseClauseContainer upper);\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the \"isKnownValue\" attributes of TempTableHeader objects\r\n\t\t * by recursively calling this method for all nested causes.\r\n\t\t * @param ssbnnode\r\n\t\t * @see TempTableHeader\r\n\t\t * @throws NullPointerException if ssbnnode is null\r\n\t\t */\r\n\t\tpublic void cleanUpKnownValues(SSBNNode ssbnnode);\r\n\t\t\r\n\r\n\t\t/**\r\n\t\t * Hierarchically searches for user-defined variables in scope.\r\n\t\t * @param key : name of variable to look for\r\n\t\t * @return : value of the variable\r\n\t\t * @see #addUserDefinedVariable(String, IExpressionValue)\r\n\t\t * @see #clearUserDefinedVariables()\r\n\t\t */\r\n\t\tpublic IExpressionValue getUserDefinedVariable(String key);\r\n\t\t\r\n\t\t/**\r\n\t\t * Adds a new user-defined variable retrievable from {@link #getUserDefinedVariable(String)}\r\n\t\t * @see #clearUserDefinedVariables()\r\n\t\t */\r\n\t\tpublic void addUserDefinedVariable(String key, IExpressionValue value);\r\n\t\t\r\n\t\t/**\r\n\t\t * Deletes all user variables that were included by {@link #addUserDefinedVariable(String, IExpressionValue)}.\r\n\t\t * @see #getUserDefinedVariable(String)\r\n\t\t */\r\n\t\tpublic void clearUserDefinedVariables();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return {@link #getUserDefinedVariable(String)} for this clause and all {@link #getNestedClauses()} recursively\r\n\t\t * @param keepFirst : if true, then variables found first will be kept if\r\n\t\t * variables with same name are found. If false, then variables found later will be used\r\n\t\t * in case of duplicate names.\r\n\t\t */\r\n\t\tpublic Map<String, IExpressionValue> getUserDefinedVariablesRecursively(boolean keepFirst);\r\n\t\t\r\n\t\t/**\r\n\t\t * @return instance of resident node whose LPD script is being applied.\r\n\t\t * (this can be used if we are compiling a script before generating SSBN)\r\n\t\t * @see #getSSBNNode()\r\n\t\t */\r\n\t\tpublic IResidentNode getResidentNode();\r\n\t\t\r\n\t\t/**\r\n\t\t * @return : instance of SSBN node whose LPD script is being applied during SSBN generation.\r\n\t\t * May return null if compiler is called before SSBN generation. If so, {@link #getResidentNode()}\r\n\t\t * must be used.\r\n\t\t */\r\n\t\tpublic SSBNNode getSSBNNode();\r\n\t}", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }" ]
[ "0.6688921", "0.66780335", "0.63620895", "0.6315981", "0.62585855", "0.61475646", "0.61392283", "0.6097466", "0.59390736", "0.5896862", "0.58467054", "0.57483095", "0.5736964", "0.5713846", "0.56375027", "0.56268895", "0.5600761", "0.5575557", "0.55130124", "0.5428083", "0.5381333", "0.5359439", "0.5314286", "0.5313767", "0.53069514", "0.53008527", "0.52865773", "0.5283968", "0.5256704", "0.52548724", "0.5201467", "0.51602876", "0.5145813", "0.51268333", "0.5121616", "0.50904703", "0.50823534", "0.5070088", "0.50461054", "0.5045461", "0.5010647", "0.50096977", "0.49979222", "0.4995378", "0.49905932", "0.4983367", "0.49691784", "0.49668598", "0.49639156", "0.49598607", "0.49370566", "0.49364486", "0.49073902", "0.4901577", "0.48958457", "0.4892616", "0.48740518", "0.4872516", "0.48665273", "0.48654467", "0.48585737", "0.485672", "0.48566735", "0.48429257", "0.48375845", "0.48295155", "0.48247853", "0.48110342", "0.4807676", "0.4805727", "0.47956508", "0.4780141", "0.4773316", "0.47728714", "0.47618237", "0.4761495", "0.47588098", "0.4758019", "0.47355977", "0.47352126", "0.4730044", "0.4729105", "0.47270703", "0.4726696", "0.472631", "0.4717121", "0.47158653", "0.47105327", "0.46942085", "0.4693402", "0.4683361", "0.46815383", "0.46688303", "0.46677986", "0.46644518", "0.46621826", "0.4643541", "0.46132278", "0.46028474", "0.46024165" ]
0.63492787
3
nodeToken > nodeChoice > ( DefaultGraphClause() | NamedGraphClause() )
@Override public R visit(DatasetClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "String targetGraph();", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "LogicalGraph callForGraph(GraphsToGraphOperator operator, LogicalGraph... otherGraphs);", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "OperationNode getNode();", "public void defaultVisit(ParseNode node) {}", "public static void main(String[] args) {\n graph.addEdge(\"Mumbai\",\"Warangal\");\n graph.addEdge(\"Warangal\",\"Pennsylvania\");\n graph.addEdge(\"Pennsylvania\",\"California\");\n //graph.addEdge(\"Montevideo\",\"Jameka\");\n\n\n String sourceNode = \"Pennsylvania\";\n\n if(graph.isGraphConnected(sourceNode)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "public abstract void accept0(IASTNeoVisitor visitor);", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "void visit(Object node, String command);", "Term getNodeTerm();", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "MCTS.State select(MCTS.State node);", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public DefaultGraphDecorator(Color backgroundColor, Color nodeColor, Color nodeOutlineColor, Color edgeColor, Color nodeSelectionColor) {\n\t\t\n\t\tthis.backgroundColor = backgroundColor;\n\t\tthis.nodeColor = nodeColor;\n\t\tthis.nodeOutlineColor = nodeOutlineColor;\n\t\tthis.edgeColor = edgeColor;\n\t\t\n\t\tthis.nodeSelectionColor = nodeSelectionColor;\n\t\tthis.nodeSelectionWeightFill = 0.75;\n\t\tthis.nodeSelectionWeightText = 0.25;\n\t\tthis.nodeSelectionWeightOutline = 0.75;\n\t\t\n\t\tthis.nodeHighlightColor = nodeSelectionColor;\n\t\tthis.nodeHighlightWeightFill = 0.30;\n\t\tthis.nodeHighlightWeightText = 0.10;\n\t\tthis.nodeHighlightWeightOutline = 0.30;\n\t}", "private GraphNode getGraphNode(String name, Graph graph) {\n\t\tGraphNode node = graph.nodeMap.get(name);\n\t\tif (node == null) {\n\t\t\tServiceNode n;\n\t\t\tif (name.equals(\"Input\"))\n\t\t\t\tn = inputNode;\n\t\t\telse if (name.equals(\"Output\"))\n\t\t\t\tn = outputNode;\n\t\t\telse\n\t\t\t\tn = serviceMap.get(name);\n\t\t\tnode = new GraphNode(n, this);\n\t\t\tgraph.nodeMap.put(name, node);\n\t\t}\n\t\treturn node;\n\t}", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract String getSelectedNode();", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public void nodeAdded(GraphEvent e);", "public Graph getGraph();", "public abstract boolean isUsing(Long graphNode);", "public void setGraphName(String name) {\n this.graphname = name;\n }", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "public abstract Node apply(Node node);", "public interface NodeRoot extends RootVertex<Node> {\n\n\tpublic static final String TYPE = \"nodes\";\n\n\t/**\n\t * Create a new node.\n\t * \n\t * @param user\n\t * User that is used to set creator and editor references\n\t * @param container\n\t * Schema version that should be used when creating the node\n\t * @param project\n\t * Project to which the node should be assigned to\n\t * @return Created node\n\t */\n\tdefault Node create(HibUser user, HibSchemaVersion container, HibProject project) {\n\t\treturn create(user, container, project, null);\n\t}\n\n\t/**\n\t * Create a new node.\n\t * \n\t * @param user\n\t * User that is used to set creator and editor references\n\t * @param container\n\t * Schema version that should be used when creating the node\n\t * @param project\n\t * Project to which the node should be assigned to\n\t * @param uuid\n\t * Optional uuid\n\t * @return Created node\n\t */\n\tNode create(HibUser user, HibSchemaVersion container, HibProject project, String uuid);\n\n}", "Node currentNode();", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}", "@Override\r\n public void nodeActivity() {\n }", "public INode addOrGetNode(String label);", "void visit(Entity node);", "Graph testGraph();", "Node getNode();", "public T caseGraphicalNode(GraphicalNode object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void processNode(DirectedGraphNode node) {\n\t\tSystem.out.print(node.getLabel()+\" \");\n\t}", "private Agent getRecommenderFromNode()\n\t{\n\t\tMap<String,ComputationOutputBuffer> nodeInputs =\n\t\t\t\tcomputationNode.getInputs();\n\n\t\tAgent agent = new Agent();\n\t\tagent.setType(computationNode.getRecommenderClass());\n if (options == null) {\n \tOptionEdge optionEdge = (OptionEdge)\n \t\t\tnodeInputs.get(\"options\").getNext();\n nodeInputs.get(\"options\").block();\n options = new NewOptions(optionEdge.getOptions());\n }\n\t\tagent.setOptions(options.getOptions());\n\t\treturn agent;\n\t}", "void graphSelectionChanged(Mode mode);", "public abstract void setSelectedNode(String n);", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "void token(TokenNode node);", "@Override\n public R visit(SparqlCollection n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeList.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "Node navigate(String nodeType, String nodeId);", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "public OrderByNode() {\n super();\n }", "public void buildGraph(){\n\t}", "public Node getGoal(){\n return goal;\n }", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "final public Expression GraphNode(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_17(2)) {\n expression1 = VarOrTerm(stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n break;\n default:\n jj_la1[229] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "private Node chooseNode(Identity identity) {\n\t\treturn availableNodes.peek();\n\t}", "public static QueryIterator testForGraphName(DatasetGraphTDB ds, Node graphNode, QueryIterator input,\n Predicate<Tuple<NodeId>> filter, ExecutionContext execCxt) {\n NodeId nid = TDBInternal.getNodeId(ds, graphNode) ;\n boolean exists = !NodeId.isDoesNotExist(nid) ;\n if ( exists ) {\n // Node exists but is it used in the quad position?\n NodeTupleTable ntt = ds.getQuadTable().getNodeTupleTable() ;\n // Don't worry about abortable - this iterator should be fast\n // (with normal indexing - at least one G???).\n // Either it finds a starting point, or it doesn't. We are only \n // interested in the first .hasNext.\n Iterator<Tuple<NodeId>> iter1 = ntt.find(nid, NodeId.NodeIdAny, NodeId.NodeIdAny, NodeId.NodeIdAny) ;\n if ( filter != null )\n iter1 = Iter.filter(iter1, filter) ;\n exists = iter1.hasNext() ;\n }\n\n if ( exists )\n return input ;\n else {\n input.close() ;\n return QueryIterNullIterator.create(execCxt) ;\n }\n }", "public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "void visit(Text node);", "Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}", "GraphFactory getGraphFactory();", "public static void main(String[] args) throws IOException {\n InputStream is = ClassLoader.getSystemResourceAsStream(\"graph.gr\");\n \n //Loading the DSL script into the ANTLR stream.\n CharStream cs = new ANTLRInputStream(is);\n \n // generate lexer from input stream from dsl statements.\n GraphLexer lexer = new GraphLexer(cs);\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n \n // generate parser tree from lexer tokens stream.\n GraphParser parser = new GraphParser(tokens);\n \n //Semantic model to be populated\n Graph g = new Graph();\n GraphDslListener dslRuleListener = new GraphDslListener(g, parser);\n \n //Adding the listener to facilitate walking through parse tree. \n parser.addParseListener(dslRuleListener);\n \n //invoking the parser. \n parser.graph();\n \n Graph.printGraph(g);\n }", "@Override\n \t\t\t\tpublic String getGraphName() {\n \t\t\t\t\treturn \"http://opendata.cz/data/namedGraph/3\";\n \t\t\t\t}", "public interface QuotedL1Node {\n\n}", "@Override\n public R visit(DescribeQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public abstract Node getNode();", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}", "public void printNode(Node n);", "public OrientGraph getGraphTx();", "NodeType getType();", "public Node(String name) {\n this.name = name;\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "public SqlNode asNode() {\n return node;\n }", "@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }", "NodeConnection createNodeConnection();", "@Override\n public void visit(NoOpNode noOpNode) {\n }", "@Override\n\tpublic void sampleNode() {\n\n\t}", "Object getDefaultNodeFactory();", "public SetSuccessorsGraphView(String name, E graphVar, int node) {\n super(name, graphVar);\n this.node = node;\n this.gdm = graphVar.monitorDelta(this);\n this.gdm.startMonitoring();\n if (!graphVar.isDirected()) {\n this.arcRemoved = (from, to) -> {\n if (from == node || to == node) {\n notifyPropagators(SetEventType.REMOVE_FROM_ENVELOPE, this);\n }\n };\n this.arcEnforced = (from, to) -> {\n if (from == node || to == node) {\n notifyPropagators(SetEventType.ADD_TO_KER, this);\n }\n };\n } else {\n this.arcRemoved = (from, to) -> {\n if (from == node) {\n notifyPropagators(SetEventType.REMOVE_FROM_ENVELOPE, this);\n }\n };\n this.arcEnforced = (from, to) -> {\n if (from == node) {\n notifyPropagators(SetEventType.ADD_TO_KER, this);\n }\n };\n }\n }", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "@Override\n public R visit(GroupOrUnionGraphPattern n, A argu) {\n R _ret = null;\n n.groupGraphPattern.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "public StatementNode getStatementNodeOnTrue();", "public void setNode(String node) {\n this.node = node;\n }", "@Override\n public void defaultOut(Node node) {\n //mPrintWriter.println(\"This node is not implemented\");\n }", "public abstract int getNodeType();" ]
[ "0.6603242", "0.62260854", "0.6013702", "0.57607794", "0.5513368", "0.550673", "0.5497024", "0.54595727", "0.5377641", "0.5358945", "0.5333038", "0.53183377", "0.52678597", "0.5219906", "0.5194761", "0.51587975", "0.515677", "0.51557344", "0.51340425", "0.51257044", "0.5116682", "0.5088122", "0.507661", "0.50468916", "0.5043804", "0.5038708", "0.5029487", "0.50272846", "0.49907959", "0.49903464", "0.49777845", "0.49663627", "0.49567643", "0.4956562", "0.49550766", "0.49367046", "0.49287784", "0.49144015", "0.48985487", "0.489617", "0.48913708", "0.48899782", "0.48871058", "0.48829925", "0.48766008", "0.48513314", "0.48470902", "0.48434642", "0.48264778", "0.4821331", "0.48176926", "0.48176607", "0.4811647", "0.48079693", "0.4799511", "0.47978845", "0.47971535", "0.47971535", "0.47970647", "0.4793464", "0.47902033", "0.47890708", "0.47885346", "0.47833246", "0.47829378", "0.47674435", "0.4761112", "0.47607678", "0.4758057", "0.474966", "0.47451633", "0.47288963", "0.47151414", "0.47021678", "0.46914026", "0.46867096", "0.4686529", "0.46857327", "0.4684832", "0.46847755", "0.46819517", "0.46709195", "0.4667617", "0.46626583", "0.46624798", "0.46623", "0.46521512", "0.46520996", "0.4646827", "0.46442348", "0.46433032", "0.46422789", "0.46355256", "0.46286252", "0.4626456", "0.4621611", "0.462118", "0.46188867", "0.46133623", "0.4605487" ]
0.5432148
8
nodeToken > sourceSelector > SourceSelector()
@Override public R visit(NamedGraphClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.sourceSelector.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Node getSourceNode();", "public Node source() {\n\t\treturn _source;\n\t}", "String getSourceExpression();", "public String getSourceNode() {\n return sourceNode;\n }", "public Node source() {\n return source;\n }", "public Node getSource() {\n return this.source;\n }", "public void setSourceNode(String sourceNode) {\n this.sourceNode = sourceNode;\n }", "Selector getSelector();", "public Selector getSelector();", "public Selector getSelector();", "public ClassNode source(String source) {\n $.sourceFile = source;\n return this;\n }", "String getSelector();", "java.lang.String getSource();", "java.lang.String getSource();", "public String getSource ();", "String getSource();", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "private ParseTree parseStatement() {\n return parseSourceElement();\n }", "public abstract String getSource();", "public String getSource();", "java.lang.String getSourceContext();", "public abstract Source getSource();", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public String getSourceSelectionLabel()\n {\n\treturn this.sourceSelectionLabel;\n }", "Variable getSourceVariable();", "@VTID(27)\n java.lang.String getSourceName();", "State getSource();", "Node currentNode();", "public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}", "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "public abstract Object getSource();", "Type getSource();", "public java.lang.String getSelector() {\n return selector_;\n }", "ElementCircuit getSource();", "@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}", "TrafficSelector selector();", "public abstract T getSource();", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector getSelector();", "public XPath getFrom()\n {\n return m_fromMatchPattern;\n }", "String getSourceString();", "public abstract String getSelectedNode();", "public String[] getConcreteSyntaxNodes ();", "public Object getSource() {return source;}", "Term getNodeTerm();", "public String getSelector() {\n return selector;\n }", "public String getSource() {\n return source;\n }", "public IdentifierListNode getTargets()throws ClassCastException;", "public Map<String, String> getNodeSelector() {\n return nodeSelector;\n }", "int getNameSourceStart();", "public String getSource() {\r\n return source;\r\n }", "public void setSourceSelectionLabel(String sourceSelectionLabel)\n {\n\tthis.sourceSelectionLabel = sourceSelectionLabel;\n }", "String getSourceVariablePart();", "void Parse(Source source);", "public Class<?> getSource() {\r\n \t\treturn source;\r\n \t}", "@AutoEscape\n\tpublic String getNode_1();", "EolItemSelectorExpression getItemSelectorExpression();", "@Override\n public String getName() {\n return source.getName();\n }", "@Override\n \tpublic String getSource() {\n \t\tif (super.source != refSource) {\n \t\t\tif (refSource == null) {\n \t\t\t\trefSource = super.source;\n \t\t\t} else {\n \t\t\t\tsuper.source = refSource;\n \t\t\t}\n \t\t}\n \t\treturn refSource;\n \t}", "Token current();", "public interface ICorrelateSource {\n\n\t/**\n\t * Decorates parseTree adding line and column attributes \n\t * to the concrete syntax nodes. \n\t * Concrete syntax node types are defined in \n\t * docs/schemas/SourceAST.xsd.\n\t * Line index origin is 0, and Column index origin is 0.\n\t */\n\tpublic Document decoratePosition (Document parseTree);\n\n\t/**\n\t * Checks if node is concrete syntax node.\n\t * Concrete syntax is carried by Element nodes\n\t * with \"@ID\" attribute or text child node.\n\t */\n\tpublic boolean isConcreteSyntax (Node node);\n\n\t/**\n\t * Gets text value for concrete syntax node.\n\t * @return value of DELIMITER ID attribute, or\n\t *\tfirst text node child, or null otherwise.\n\t */\n\tpublic String getTextValue (Node node);\n\n\t/**\n\t * Gets line number for given decorated node.\n\t * @return line, or -1 if not numeric or \"line\" attribute not found.\n\t */\n\tpublic int getDecoratedLine (Node node);\n\n\t/**\n\t * Gets beginning column number for given decorated node.\n\t * @return column, or -1 if not numeric or \"column\" attribute not found.\n\t */\n\tpublic int getDecoratedColumn (Node node);\n\n\t/**\n\t * Finds closest bounding decorated concrete syntax nodes\n\t * in AST for given span in source. \n\t * Source can be subset of ParseTree, e.g., for Groovy we\n\t * preserve \";\" in Deconstructed.xsl but it is removed from source.\n\t * So ignores a parse token if it is not found as next token in source,\n\t * i.e., is found but separated by non-whitespace.\n\t * Line index origin is 0, and Column index origin is 0.\n\t * fromLine < 0 is first line; fromColumn < 0 is first column.\n\t * toLine < 0 is last line; toColumn < 0 is end of toLine.\n\t * @return [fromLine, fromColumn, toLine, toColumn]\n\t */\n\tpublic int[] findDecoratedSpan (Document parseTree,\n\t\t\tint fromLine, int fromColumn,\n\t\t\tint toLine, int toColumn);\n\n\t/**\n\t * Extracts lines from source for the span defined by the line\n\t * and column numbers in the closest bounding decorated nodes.\n\t * Decorates extracted lines with \"^\" symbols for span start and end.\n\t * Line index origin is 0, and Column index origin is 0.\n\t * fromLine < 0 is first line; fromColumn < 0 is first column.\n\t * toLine < 0 is last line; toColumn < 0 is end of toLine.\n\t */\n\tpublic String extractDecoratedLines (int fromLine, int fromColumn,\n\t\t\tint toLine, int toColumn);\n\n\t/**\n\t * Extracts line with corresponding line number from source.\n\t * Line index origin is 0.\n\t * @return Last line if line > number of lines in source,\n\t *\tor entire source if line < 0,\n\t *\tor empty string if source was null.\n\t */\n\tpublic String getSourceLine (int line);\n\n\t/**\n\t * Gets number of lines in source.\n\t */\n\tpublic int getNumLines ();\n\n //====================================================================\n // Setters and defaults.\n // The setters are non-static for Spring dependency injection.\n //====================================================================\n\n\t/**\n\t * Gets default source line separator.\n\t */\n\tpublic String getDefaultSourceLineSeparator ();\n\n\t/**\n\t * Sets default source line separator.\n\t */\n\tpublic void setDefaultSourceLineSeparator (String linesep);\n\n\t/**\n\t * Gets default line separator for decorated extracts.\n\t */\n\tpublic String getDefaultExtractLineSeparator ();\n\n\t/**\n\t * Sets default line separator for decorated extracts.\n\t */\n\tpublic void setDefaultExtractLineSeparator (String linesep);\n\n\t/**\n\t * Gets source line separator.\n\t */\n\tpublic String getSourceLineSeparator ();\n\n\t/**\n\t * Sets source line separator.\n\t */\n\tpublic void setSourceLineSeparator (String linesep);\n\n\t/**\n\t * Gets line separator for decorated extracts \n\t * using extractDecoratedLines.\n\t */\n\tpublic String getExtractLineSeparator ();\n\n\t/**\n\t * Sets line separator for decorated extracts\n\t * using extractDecoratedLines.\n\t */\n\tpublic void setExtractLineSeparator (String linesep);\n\n\t/**\n\t * Gets XML concrete syntax node names used in correlating source.\n\t */\n\tpublic String[] getConcreteSyntaxNodes ();\n\n\t/**\n\t * Sets XML concrete syntax node names used in correlating source.\n\t */\n\tpublic void setConcreteSyntaxNodes (String[] nodes);\n\n\t/**\n\t * Gets source to correlate.\n\t */\n\tpublic String getSource ();\n\n\t/**\n\t * Sets source to correlate.\n\t */\n\tpublic void setSource (String source);\n\n}", "SelectorType getSelector();", "@AutoEscape\n\tpublic String getNode_2();", "public java.lang.String getSelector() {\n return instance.getSelector();\n }", "MCTS.State select(MCTS.State node);", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getSource() {\n return source;\n }", "public String getNodeValue ();", "@objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();", "@Deprecated\n public V1NodeSelector getNodeSelector() {\n return this.nodeSelector != null ? this.nodeSelector.build() : null;\n }", "public SimpleSelector getSiblingSelector();", "public String getSource() {\r\n return Source;\r\n }", "@jdk.Exported\npublic interface MemberSelectTree extends ExpressionTree {\n ExpressionTree getExpression();\n Name getIdentifier();\n}", "public String getSource() {\n return this.source;\n }", "public Locator getLocator() {\n/* 155 */ return this.sourceLocator;\n/* */ }", "private Selector() { }", "private Selector() { }", "public String get_source() {\n\t\treturn source;\n\t}", "public NodeKey createNodeKeyWithSource( String sourceName );", "public T getSource() {\n return source;\n }", "String getIdNode2();", "public String getSourceIdentifier() {\n return sourceIdentifier;\n }", "public noNamespace.SourceType getSource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "Node getNode();", "public void select() {}", "public Node getFrom() {\n return from;\n }", "@Override\n\tpublic VType getSource() {\n\t\t// TODO: Add your code here\n\t\treturn super.from;\n\t}", "String getIdNode1();", "public AstNode getTarget() {\n return target;\n }", "@Override\n public String getSource()\n {\n return null;\n }", "public List<AST> getChildNodes ();", "org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector.Xpath xgetXpath();", "public void setSource (String source);", "ControllerNode localNode();", "public Node(String name, boolean isSource) {\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}", "int getDeclarationSourceStart();", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Override\n public String getSource() {\n return this.src;\n }", "public String getSourceLine (int line);", "public interface ISelector {\n\t\tboolean accept(int startOffset, int endOffset);\n\t}" ]
[ "0.73527545", "0.664124", "0.6525159", "0.6481107", "0.636948", "0.63054", "0.6208911", "0.5982022", "0.59795713", "0.59795713", "0.59601194", "0.59540987", "0.5934664", "0.5934664", "0.5867405", "0.5839774", "0.57582146", "0.5745391", "0.574437", "0.5722149", "0.5718164", "0.57074904", "0.5676841", "0.565606", "0.56431425", "0.56373703", "0.56227833", "0.55952346", "0.5569712", "0.55638754", "0.5558283", "0.55537075", "0.5548961", "0.5507137", "0.5505851", "0.5476812", "0.54549134", "0.54465455", "0.5420486", "0.5413109", "0.5407238", "0.5401465", "0.5388277", "0.5387291", "0.53711575", "0.5361644", "0.5348572", "0.5345942", "0.5331957", "0.53248763", "0.53016514", "0.52886564", "0.52775544", "0.52704686", "0.5266087", "0.52652365", "0.52614117", "0.5259075", "0.5258834", "0.5234128", "0.5231557", "0.521435", "0.52071285", "0.52013856", "0.5197471", "0.5197471", "0.5197471", "0.5192623", "0.5186168", "0.51572114", "0.514589", "0.51441383", "0.51398855", "0.51398027", "0.51332694", "0.5129773", "0.5129773", "0.5127604", "0.51075804", "0.50996614", "0.509015", "0.50886035", "0.5087136", "0.5086826", "0.5077113", "0.50660646", "0.50630957", "0.506195", "0.5056044", "0.5052592", "0.5051891", "0.5042481", "0.50421786", "0.504014", "0.5039136", "0.5034389", "0.50227314", "0.5019483", "0.5018143", "0.50142443" ]
0.61397964
7
nodeOptional > ( )? groupGraphPattern > GroupGraphPattern()
@Override public R visit(WhereClause n, A argu) { R _ret = null; n.nodeOptional.accept(this, argu); n.groupGraphPattern.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GroupOrUnionGraphPattern n, A argu) {\n R _ret = null;\n n.groupGraphPattern.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "final public void OptionalGraphPattern(Exp stack) throws ParseException {\n Exp e;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OPTION:\n jj_consume_token(OPTION);\n deprecated(\"option\",\"optional\");\n break;\n default:\n jj_la1[176] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n e = GroupGraphPattern();\n e= Option.create(e);\n stack.add(e);\n }", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "final public void GroupOrUnionGraphPattern(Exp stack) throws ParseException {\n Exp temp, res;\n res = GroupGraphPattern();\n label_36:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n case OR:\n ;\n break;\n default:\n jj_la1[179] = jj_gen;\n break label_36;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n jj_consume_token(UNION);\n break;\n case OR:\n jj_consume_token(OR);\n deprecated(\"or\",\"union\");\n break;\n default:\n jj_la1[180] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n temp = res;\n res = Or.create();\n res.add(temp);\n temp = GroupGraphPattern();\n res.add(temp);\n }\n stack.add(res);\n }", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public abstract Multigraph buildMatchedGraph();", "public TreeNode rewriteTreeNode(TreeNode node) {\n if (node instanceof Group) {\n BGP theBGP = new BGP(new ArrayList<TriplePatternNode>());\n Group g = (Group) node;\n ArrayList<GraphPattern> toAdd = new ArrayList<GraphPattern>(), toRemove = new ArrayList<GraphPattern>();\n\n for (GraphPattern pattern : g.getPatterns()) {\n if (pattern instanceof BGP || pattern instanceof Group) {\n if (conjoinGraphPattern(theBGP, g, pattern, toAdd))\n toRemove.add(pattern);\n }\n }\n\n for (GraphPattern gp : toRemove)\n g.removeGraphPattern(gp);\n for (GraphPattern gp : toAdd)\n g.addGraphPattern(gp);\n\n // we used to only add a BGP if it was non-empty\n // the special case of empty groups made backends more difficult\n // to implement in some cases, so now we ensure a single BGP for\n // every group, even if it is empty\n g.addGraphPattern(theBGP);\n }\n return node;\n }", "private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create an associated MyNode object\r\n\t\tint nodeCount = 0;\r\n\t\tfor (Node n : allNodes){\r\n\t\t\tMyNode myNode = new MyNode(nodeCount, \"PERSON\");\r\n\t\t\tnodesMap.put(n, myNode);\r\n\t\t\tgp.addNode(myNode);\r\n\r\n\t\t\tnodeCount++;\r\n\t\t}\r\n\r\n\t\t//For k random MyNodes add the id as an attribute/property.\r\n\t\t//This id is used for cypher queries.\r\n\t\t//This process uses simple random sampling\r\n\t\tif (rooted > allNodes.size()){\r\n\t\t\trooted = allNodes.size();\r\n\t\t}\r\n\r\n\t\tList<Node> allNodesClone = new ArrayList<Node>();\r\n\t\tallNodesClone.addAll(allNodes);\r\n\r\n\t\tfor (int i = 0; i < rooted; i++){\r\n\t\t\t//Pick a random node from allNodes and get it's corresponding MyNode\r\n\t\t\tint idx = random.nextInt(allNodesClone.size());\r\n\t\t\tNode node = allNodesClone.get(idx);\r\n\t\t\tMyNode myNode = nodesMap.get(node);\r\n\r\n\t\t\t//Add the property to myNode\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tmyNode.addAttribute(\"id\", node.getProperty(\"id\")+\"\");\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t\t//Remove the node from allNodesClone list.\r\n\t\t\tallNodesClone.remove(idx);\r\n\t\t}\r\n\r\n\t\t//Process the relationships\r\n\t\tint relCount = 0;\r\n\t\tString relPrefix = \"rel\";\r\n\r\n\t\tfor (Relationship r : rels){\r\n\r\n\t\t\tMyNode source = null, target = null;\r\n\t\t\tRelType type = null;\r\n\r\n\t\t\t//For each relationship in rels, create a corresponding relationship in gp.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tsource = nodesMap.get(r.getStartNode());\r\n\t\t\t\ttarget = nodesMap.get(r.getEndNode());\r\n\t\t\t\ttype = GPUtil.translateRelType(r.getType());\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\r\n\t\t\tMyRelationship rel = new MyRelationship(source, target, type, relCount);\r\n\t\t\trelCount++;\r\n\r\n\t\t\tif (relCount >= 25){\r\n\t\t\t\trelCount = 0;\r\n\t\t\t\trelPrefix = relPrefix + \"l\";\r\n\t\t\t}\r\n\r\n\t\t\tgp.addRelationship(rel);\r\n\t\t\trelsMap.put(r, rel);\r\n\t\t}\r\n\r\n\t\t//Set the attribute requirements\r\n\t\tattrsReq(gp, true);\r\n\t\tattrsReq(gp, false);\r\n\t\treturn gp;\r\n\t}", "GroupOpt getGroup();", "Node getNode() {\n return new Group(body.getPolygon(), head.getPolygon());\n }", "public abstract String getDefaultGroup();", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "Stream<PlanNode> resolveGroup(PlanNode node);", "CyNetwork getGroupNetwork();", "private Optional optionalToOptional(ElementOptional optional) throws SemQAException {\n\t\tElement elm = optional.getOptionalElement();\r\n\t\tGraphPattern gp;\r\n\t\tValueConstraint vc;\r\n\t\tif (elm instanceof ElementGroup) {\r\n\t\t\tList<Element> children = ((ElementGroup) elm).getElements();\r\n\t\t\tSet<GraphPattern> childSemQA = new LinkedHashSet<GraphPattern>();\r\n\t\t\tSet<Optional> optionals = new LinkedHashSet<Optional>();\r\n\t\t\tSet<ElementFilter> filters = new LinkedHashSet<ElementFilter>();\r\n\t\t\tfor (Element child : children) {\r\n\t\t\t\tif (child instanceof ElementFilter) {\r\n\t\t\t\t\tfilters.add((ElementFilter) child);\r\n\t\t\t\t}\r\n\t\t\t\telse if (child instanceof ElementOptional) {\r\n\t\t\t\t\t// if child is an optional, need to get the graph pattern for the optional\r\n\t\t\t\t\t// and add it to the list of optional graph patterns\r\n\t\t\t\t\toptionals.add(optionalToOptional((ElementOptional) child));\r\n//\t\t\t\t\tchildSemQA.add(optionalToOptional((ElementOptional) child));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tchildSemQA.add(sparqlToSemQA(child));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tGraphPattern baseGp = convertSetToJoin(childSemQA);\r\n\t\t\tif (childSemQA.size() == 0) {\r\n\t\t\t\tthrow new SemQAException(\"semQA: OPTIONAL without non-optional side not supported.\");\r\n\t\t\t}\r\n\t\t\tif (optionals.size() > 0) {\r\n\t\t\t\t// if there are optional elements, create a left join\r\n\t\t\t\t// convert the non-filter non-optional graph patterns to a Join if necessary\r\n\t\t\t\t// then, each optional element is part of a left join\r\n\t\t\t\tgp = new LeftJoin(baseGp, optionals);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// no optionals, just return the join of the graph patterns\r\n\t\t\t\tgp = baseGp;\r\n\t\t\t}\r\n\t\t\tif (filters.size() > 0) {\r\n\t\t\t\tvc = getConstraintFromFilters(filters);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvc = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgp = sparqlToSemQA(elm); // if it is not a group\r\n\t\t\tvc = null;\r\n\t\t}\r\n\t\treturn new Optional(gp, vc);\r\n\t\t\r\n\t}", "default String getGroup() {\n return null;\n }", "public UIFormGroupPane(final SchemaNode pNode) throws IllegalArgumentException\n\t{\n\t\tsuper();\n\t\tif (pNode == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"pNode argument shall not be null\");\n\t\t}\n\t\tthis.nodes.add(pNode);\n\t}", "@Test\n public void streamDefaultGraphNameByPattern() throws Exception {\n final Optional<? extends Quad> aliceTopic = dataset.stream(Optional.empty(), null, null, null).findAny();\n assertTrue(aliceTopic.isPresent());\n // COMMONSRDF-55: should not be <urn:x-arq:defaultgraph> or similar\n assertNull(aliceTopic.get().getGraphName().orElse(null));\n assertFalse(aliceTopic.get().getGraphName().isPresent());\n }", "public T caseGraphicalNode(GraphicalNode object) {\n\t\treturn null;\n\t}", "public void visitGroup(Group group) {\n\t}", "public final void ruleAstParameter() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:857:2: ( ( ( rule__AstParameter__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:858:1: ( ( rule__AstParameter__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:858:1: ( ( rule__AstParameter__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:859:1: ( rule__AstParameter__Group__0 )\n {\n before(grammarAccess.getAstParameterAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:860:1: ( rule__AstParameter__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:860:2: rule__AstParameter__Group__0\n {\n pushFollow(FOLLOW_rule__AstParameter__Group__0_in_ruleAstParameter1774);\n rule__AstParameter__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstParameterAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "abstract Shape nodeShape(String node, Graphics2D g2d);", "public final void rule__AstInputPattern__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14257:1: ( ( ( rule__AstInputPattern__Group_0__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14258:1: ( ( rule__AstInputPattern__Group_0__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14258:1: ( ( rule__AstInputPattern__Group_0__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14259:1: ( rule__AstInputPattern__Group_0__0 )?\n {\n before(grammarAccess.getAstInputPatternAccess().getGroup_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14260:1: ( rule__AstInputPattern__Group_0__0 )?\n int alt121=2;\n int LA121_0 = input.LA(1);\n\n if ( (LA121_0==RULE_ID) ) {\n alt121=1;\n }\n switch (alt121) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14260:2: rule__AstInputPattern__Group_0__0\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__0_in_rule__AstInputPattern__Group__0__Impl28833);\n rule__AstInputPattern__Group_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstInputPatternAccess().getGroup_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public MultiGraph(boolean directed) {\r\n\t\tsuper(directed ? Type.DIRECTED : Type.UNDIRECTED);\r\n\t}", "protected abstract Graph filterGraph();", "public Graph getGraph();", "public final void rule__AstParameter__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10487:1: ( rule__AstParameter__Group__0__Impl rule__AstParameter__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10488:2: rule__AstParameter__Group__0__Impl rule__AstParameter__Group__1\n {\n pushFollow(FOLLOW_rule__AstParameter__Group__0__Impl_in_rule__AstParameter__Group__021395);\n rule__AstParameter__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstParameter__Group__1_in_rule__AstParameter__Group__021398);\n rule__AstParameter__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private static Edge or(Edge... edges) {\n List<Edge> e = Arrays.asList(edges);\n Preconditions.checkArgument(!e.contains(Edge.epsilon()), \"use 'opt()' for optional groups\");\n return Edge.disjunction(e);\n }", "public boolean isMultiGraph();", "public final void rule__AstConnection__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5918:1: ( ( ( rule__AstConnection__Group_0__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5919:1: ( ( rule__AstConnection__Group_0__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5919:1: ( ( rule__AstConnection__Group_0__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5920:1: ( rule__AstConnection__Group_0__0 )?\n {\n before(grammarAccess.getAstConnectionAccess().getGroup_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5921:1: ( rule__AstConnection__Group_0__0 )?\n int alt52=2;\n int LA52_0 = input.LA(1);\n\n if ( (LA52_0==RULE_ID) ) {\n int LA52_1 = input.LA(2);\n\n if ( (LA52_1==55) ) {\n alt52=1;\n }\n }\n switch (alt52) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5921:2: rule__AstConnection__Group_0__0\n {\n pushFollow(FOLLOW_rule__AstConnection__Group_0__0_in_rule__AstConnection__Group__0__Impl12399);\n rule__AstConnection__Group_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstConnectionAccess().getGroup_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "IMappingNode getMappingNode(Object groupID) throws Exception;", "@GroupSequence({Default.class, GroupA.class, GroupB.class})\r\npublic interface Group {\r\n}", "public String group() { return group; }", "public void setDefaultGroup(boolean defaultGroup);", "public final void rule__AstInputPattern__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14434:1: ( rule__AstInputPattern__Group_0__0__Impl rule__AstInputPattern__Group_0__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14435:2: rule__AstInputPattern__Group_0__0__Impl rule__AstInputPattern__Group_0__1\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__0__Impl_in_rule__AstInputPattern__Group_0__029179);\n rule__AstInputPattern__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group_0__1_in_rule__AstInputPattern__Group_0__029182);\n rule__AstInputPattern__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void testGroups() {\n assertThat(regex(or(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"0|1|2\");\n // Optional groups always need parentheses.\n assertThat(regex(opt(e(\"0\"), e(\"1\"), e(\"2\")))).isEqualTo(\"(?:0|1|2)?\");\n // Once a group has prefix or suffix, parentheses are needed.\n assertThat(regex(\n seq(\n or(e(\"0\"), e(\"1\")),\n e(\"2\"))))\n .isEqualTo(\"(?:0|1)2\");\n }", "void graph4() {\n\t\tconnect(\"8\", \"9\");\n\t\tconnect(\"3\", \"1\");\n\t\tconnect(\"3\", \"2\");\n\t\tconnect(\"3\", \"9\");\n\t\tconnect(\"4\", \"3\");\n\t\t//connect(\"4\", \"5\");\n\t\t//connect(\"4\", \"7\");\n\t\t//connect(\"5\", \"7\");\t\t\n\t}", "protected GraphNode() {\n }", "protected GraphNode() {\n }", "String targetGraph();", "public static interface DiGraphNode<N, E> extends GraphNode<N, E> {\n\n public List<? extends DiGraphEdge<N, E>> getOutEdges();\n\n public List<? extends DiGraphEdge<N, E>> getInEdges();\n\n /** Returns whether a priority has been set. */\n boolean hasPriority();\n\n /**\n * Returns a nonnegative integer priority which can be used to order nodes.\n *\n * <p>Throws if a priority has not been set.\n */\n int getPriority();\n\n /** Sets a node priority, must be non-negative. */\n void setPriority(int priority);\n }", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}", "@Override\n\tpublic Graph<String> emptyInstance() {\n\t\treturn new ConcreteEdgesGraph();\n\t}", "public boolean groupSpecified() {\n return group != null && !group.isEmpty();\n }", "public final void ruleAstInputPattern() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1139:2: ( ( ( rule__AstInputPattern__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1140:1: ( ( rule__AstInputPattern__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1140:1: ( ( rule__AstInputPattern__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1141:1: ( rule__AstInputPattern__Group__0 )\n {\n before(grammarAccess.getAstInputPatternAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1142:1: ( rule__AstInputPattern__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1142:2: rule__AstInputPattern__Group__0\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__0_in_ruleAstInputPattern2376);\n rule__AstInputPattern__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstInputPatternAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "Boolean groupingEnabled();", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "public final void rule__AstInputPattern__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14245:1: ( rule__AstInputPattern__Group__0__Impl rule__AstInputPattern__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14246:2: rule__AstInputPattern__Group__0__Impl rule__AstInputPattern__Group__1\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__0__Impl_in_rule__AstInputPattern__Group__028803);\n rule__AstInputPattern__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__1_in_rule__AstInputPattern__Group__028806);\n rule__AstInputPattern__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstConnection__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5906:1: ( rule__AstConnection__Group__0__Impl rule__AstConnection__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5907:2: rule__AstConnection__Group__0__Impl rule__AstConnection__Group__1\n {\n pushFollow(FOLLOW_rule__AstConnection__Group__0__Impl_in_rule__AstConnection__Group__012369);\n rule__AstConnection__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConnection__Group__1_in_rule__AstConnection__Group__012372);\n rule__AstConnection__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstConnection__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5976:1: ( ( '-->' ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5977:1: ( '-->' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5977:1: ( '-->' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5978:1: '-->'\n {\n before(grammarAccess.getAstConnectionAccess().getHyphenMinusHyphenMinusGreaterThanSignKeyword_2()); \n match(input,65,FOLLOW_65_in_rule__AstConnection__Group__2__Impl12521); \n after(grammarAccess.getAstConnectionAccess().getHyphenMinusHyphenMinusGreaterThanSignKeyword_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstConnectionAttribute__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6348:1: ( rule__AstConnectionAttribute__Group__0__Impl rule__AstConnectionAttribute__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6349:2: rule__AstConnectionAttribute__Group__0__Impl rule__AstConnectionAttribute__Group__1\n {\n pushFollow(FOLLOW_rule__AstConnectionAttribute__Group__0__Impl_in_rule__AstConnectionAttribute__Group__013241);\n rule__AstConnectionAttribute__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConnectionAttribute__Group__1_in_rule__AstConnectionAttribute__Group__013244);\n rule__AstConnectionAttribute__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstOutputPattern__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14635:1: ( ( ( rule__AstOutputPattern__Group_0__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14636:1: ( ( rule__AstOutputPattern__Group_0__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14636:1: ( ( rule__AstOutputPattern__Group_0__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14637:1: ( rule__AstOutputPattern__Group_0__0 )?\n {\n before(grammarAccess.getAstOutputPatternAccess().getGroup_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14638:1: ( rule__AstOutputPattern__Group_0__0 )?\n int alt124=2;\n int LA124_0 = input.LA(1);\n\n if ( (LA124_0==RULE_ID) ) {\n alt124=1;\n }\n switch (alt124) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14638:2: rule__AstOutputPattern__Group_0__0\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group_0__0_in_rule__AstOutputPattern__Group__0__Impl29578);\n rule__AstOutputPattern__Group_0__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstOutputPatternAccess().getGroup_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public weighted_graph getGraph();", "java.lang.String getGroup();", "public final void rule__AstAssignParameter__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5742:1: ( rule__AstAssignParameter__Group__0__Impl rule__AstAssignParameter__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:5743:2: rule__AstAssignParameter__Group__0__Impl rule__AstAssignParameter__Group__1\n {\n pushFollow(FOLLOW_rule__AstAssignParameter__Group__0__Impl_in_rule__AstAssignParameter__Group__012044);\n rule__AstAssignParameter__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstAssignParameter__Group__1_in_rule__AstAssignParameter__Group__012047);\n rule__AstAssignParameter__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private Shape drawNodeGraphInfo(Graphics2D g2d, String node_coord, Shape shape) {\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n\t // Get the graph info sources\n\t Set<String> cuts = bcc.getCutVertices(),\n\t cuts_2p = bcc_2p.getCutVertices();\n\t Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n\n\t // Determine if we have a set of nodes or a single node\n Set<String> set = node_coord_set.get(node_coord);\n\t if (set.size() == 1) {\n\t String node = set.iterator().next();\n\t if (cuts.contains(node)) {\n g2d.setColor(RTColorManager.getColor(\"background\", \"default\")); g2d.fill(shape); g2d.setColor(RTColorManager.getColor(\"background\", \"reverse\")); g2d.draw(shape);\n\t if (cuts_2p.contains(node)) {\n\t g2d.setColor(RTColorManager.getColor(\"annotate\", \"cursor\"));\n\t\tdouble cx = shape.getBounds().getCenterX(),\n\t\t cy = shape.getBounds().getCenterY(),\n\t\t dx = shape.getBounds().getMaxX() - cx;\n\t\tg2d.draw(new Ellipse2D.Double(cx-1.8*dx,cy-1.8*dx,3.6*dx,3.6*dx));\n\t }\n\t } else {\n\t MyGraph mg = v_to_b.get(node).iterator().next();\n if (mg.getNumberOfEntities() <= 2) g2d.setColor(RTColorManager.getColor(\"background\", \"nearbg\"));\n\t else g2d.setColor(RTColorManager.getColor(mg.toString())); \n\t g2d.fill(shape);\n\t }\n\t } else {\n\t boolean lu_miss = false;\n\t Set<MyGraph> graphs = new HashSet<MyGraph>();\n\t Iterator<String> it = set.iterator();\n\t while (it.hasNext()) {\n\t String node = it.next();\n\t if (v_to_b.containsKey(node)) graphs.addAll(v_to_b.get(node));\n\t else { System.err.println(\"No V-to-B Lookup For Node \\\"\" + node + \"\\\"\"); lu_miss = true; }\n }\n\t if (graphs.size() == 1) {\n\t MyGraph mg = graphs.iterator().next();\n\t g2d.setColor(RTColorManager.getColor(mg.toString()));\n\t } else {\n\t g2d.setColor(RTColorManager.getColor(\"set\", \"multi\"));\n\t }\n\t g2d.fill(shape);\n\t if (lu_miss) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"errorfg\"));\n\t Rectangle2D rect = shape.getBounds();\n\t g2d.drawLine((int) rect.getMinX() - 5, (int) rect.getMinY() - 5, \n\t (int) rect.getMaxX() + 5, (int) rect.getMaxY() + 5);\n\t g2d.drawLine((int) rect.getMaxX() + 5, (int) rect.getMinY() - 5, \n\t (int) rect.getMinX() - 5, (int) rect.getMaxY() + 5);\n\t }\n\t }\n\t}\n\treturn shape;\n }", "public final void ruleAstConnection() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:437:2: ( ( ( rule__AstConnection__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:438:1: ( ( rule__AstConnection__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:438:1: ( ( rule__AstConnection__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:439:1: ( rule__AstConnection__Group__0 )\n {\n before(grammarAccess.getAstConnectionAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:440:1: ( rule__AstConnection__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:440:2: rule__AstConnection__Group__0\n {\n pushFollow(FOLLOW_rule__AstConnection__Group__0_in_ruleAstConnection874);\n rule__AstConnection__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstConnectionAccess().getGroup()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Graph getGraph4SingleCores(String nodeId, CustRelationshipMapper custRelationshipMapper, CustPropertyMapper custPropertyMapper) throws CustomException {\n if (StringUtils.isBlank(nodeId)) {\n throw new CustomException(\"[nodeId] is blank null or ' '\");\n }\n\n List<CustRelationship> oneDepthRels = custRelationshipMapper.selectAll1DRelByCertNo(nodeId);\n\n //Map<String, Object> graph = new HashMap<>();\n Graph graph = new Graph();\n if (oneDepthRels.size() == 0) {\n log.info(\"当前1度范围内[边]等于0, 将返回null\");\n graph = new Graph(null, null, StatusCode.NO_MATCHES);\n return graph;\n }\n\n\n\n //仅一度边\n Map<String, Edge> oneDepthEdges = new HashMap<>();\n //一度节点, 含中心\n Map<String, Node> oneDepthNodes = new HashMap<>();\n\n Node core = new Node();\n core.setId(nodeId);\n core.setDepth(0);\n //core 并入 onetDepthNodes\n oneDepthNodes.put(core.getId(), core);\n\n //遍历一度边, 封装数据\n gatherNodeEdge(oneDepthRels, oneDepthEdges, oneDepthNodes,1);\n\n Set<String> oneDepthNodesKeySet = oneDepthNodes.keySet();\n\n //判断一度节点个数, 小于阈值才会继续查询二度边\n if (oneDepthNodes.size() > MAX_DISPLAY_NODES_1D) {\n log.info(\"当前一度范围内[节点]个数大于[{}], 将仅返回一度节点和边数据\", MAX_DISPLAY_NODES_1D);\n\n\n List<CustProperty> custProperties = custPropertyMapper.selectByCertNos(oneDepthNodesKeySet);\n\n //封装点属性\n dumpCustPropertyData(oneDepthNodes, custProperties, 1);\n\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n return graph;\n }\n\n\n // -- 一度范围节点数量在范围之内, 则获取所有二度边 --\n\n //装所有节点\n HashMap<String, Node> nodes = (HashMap<String, Node>) ((HashMap<String, Node>) oneDepthNodes).clone();\n //装所有的边\n HashMap<String, Edge> edges = (HashMap<String, Edge>) ((HashMap<String, Edge>) oneDepthEdges).clone();\n\n List<CustRelationship> allRel = custRelationshipMapper.selectRelByGivenCertNos(oneDepthNodesKeySet);\n if (allRel.size() > MAX_DISPLAY_EDGES) {\n log.info(\"当前二度范围内[边]总数大于[{}], 仅返回一度节点和边数据\", MAX_DISPLAY_EDGES);\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n return graph;\n }\n\n // -- 二度范围边在范围之内, 则加工边数据集 --\n\n gatherNodeEdge(allRel, edges, nodes,2);\n /* ABANDON: 抽取\n for (CustRelationship rel : allRel) {\n //Note: oneDepthEdges中已有的, 不用再封装了, 没有的, 创建, 封装, 存入edges中, 且depth==2\n if (oneDepthEdges.get(rel.getId()) == null) {\n Edge edge = new Edge(rel.getId(), rel.getuCertNo(), rel.getvCertNo(), rel.getContent(), rel.getContentType(), rel.getRelationType());\n //新建的边, 说明depth==2\n edge.setDepth(2);\n //存入edges\n edges.put(String.valueOf(edge.getId()), edge);\n }\n\n //遇到新节点, 则存入nodes中, 且深度为2 !注意别存错了!\n gatherNodes(nodes, rel, 2);\n }\n */\n\n //查询所有属性: 核, 一度, 二度\n Set<String> allCertNos = nodes.keySet(); //获取所有身份证号, 查取属性数据\n List<CustProperty> custProperties = custPropertyMapper.selectByCertNos(allCertNos);\n\n //封装属性数据\n dumpCustPropertyData(nodes, custProperties, 2);\n\n //判断节点数目\n if (nodes.size() > MAX_DISPLAY_NODES_2D) {\n //0,1,2度节点之和超过阈值, 则只返回一度节点和边\n log.info(\"当前二度范围内[节点]总数大于[{}], 仅返回一度节点和边数据\", MAX_DISPLAY_NODES_2D);\n\n graph.setNodes(oneDepthNodes);\n graph.setEdges(oneDepthEdges);\n } else {\n //没有超限, 则返回1,2度全部\n log.info(\"返回全部二度范围内节点和边数据\");\n graph.setNodes(nodes);\n graph.setEdges(edges);\n }\n\n\n return graph;\n }", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public final void rule__AstParameter__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10548:1: ( rule__AstParameter__Group_1__0__Impl rule__AstParameter__Group_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10549:2: rule__AstParameter__Group_1__0__Impl rule__AstParameter__Group_1__1\n {\n pushFollow(FOLLOW_rule__AstParameter__Group_1__0__Impl_in_rule__AstParameter__Group_1__021516);\n rule__AstParameter__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstParameter__Group_1__1_in_rule__AstParameter__Group_1__021519);\n rule__AstParameter__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstInputPattern__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14305:1: ( rule__AstInputPattern__Group__2__Impl rule__AstInputPattern__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14306:2: rule__AstInputPattern__Group__2__Impl rule__AstInputPattern__Group__3\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__2__Impl_in_rule__AstInputPattern__Group__228926);\n rule__AstInputPattern__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__3_in_rule__AstInputPattern__Group__228929);\n rule__AstInputPattern__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstParameter__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10527:1: ( ( ( rule__AstParameter__Group_1__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10528:1: ( ( rule__AstParameter__Group_1__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10528:1: ( ( rule__AstParameter__Group_1__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10529:1: ( rule__AstParameter__Group_1__0 )?\n {\n before(grammarAccess.getAstParameterAccess().getGroup_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10530:1: ( rule__AstParameter__Group_1__0 )?\n int alt87=2;\n int LA87_0 = input.LA(1);\n\n if ( (LA87_0==19) ) {\n alt87=1;\n }\n switch (alt87) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:10530:2: rule__AstParameter__Group_1__0\n {\n pushFollow(FOLLOW_rule__AstParameter__Group_1__0_in_rule__AstParameter__Group__1__Impl21481);\n rule__AstParameter__Group_1__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstParameterAccess().getGroup_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "void addIsVertexOf(Subdomain_group newIsVertexOf);", "public final void rule__AstOutputPattern__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14812:1: ( rule__AstOutputPattern__Group_0__0__Impl rule__AstOutputPattern__Group_0__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14813:2: rule__AstOutputPattern__Group_0__0__Impl rule__AstOutputPattern__Group_0__1\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group_0__0__Impl_in_rule__AstOutputPattern__Group_0__029924);\n rule__AstOutputPattern__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstOutputPattern__Group_0__1_in_rule__AstOutputPattern__Group_0__029927);\n rule__AstOutputPattern__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstNetwork__Group_4_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4935:1: ( ( ( rule__AstNetwork__ParametersAssignment_4_1_1 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4936:1: ( ( rule__AstNetwork__ParametersAssignment_4_1_1 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4936:1: ( ( rule__AstNetwork__ParametersAssignment_4_1_1 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4937:1: ( rule__AstNetwork__ParametersAssignment_4_1_1 )\n {\n before(grammarAccess.getAstNetworkAccess().getParametersAssignment_4_1_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4938:1: ( rule__AstNetwork__ParametersAssignment_4_1_1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4938:2: rule__AstNetwork__ParametersAssignment_4_1_1\n {\n pushFollow(FOLLOW_rule__AstNetwork__ParametersAssignment_4_1_1_in_rule__AstNetwork__Group_4_1__1__Impl10462);\n rule__AstNetwork__ParametersAssignment_4_1_1();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getParametersAssignment_4_1_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void newGroup() {\n addGroup(null, true);\n }", "public final void rule__AstInputPattern__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14274:1: ( rule__AstInputPattern__Group__1__Impl rule__AstInputPattern__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14275:2: rule__AstInputPattern__Group__1__Impl rule__AstInputPattern__Group__2\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group__1__Impl_in_rule__AstInputPattern__Group__128864);\n rule__AstInputPattern__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group__2_in_rule__AstInputPattern__Group__128867);\n rule__AstInputPattern__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstConnection__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6126:1: ( rule__AstConnection__Group_0__0__Impl rule__AstConnection__Group_0__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6127:2: rule__AstConnection__Group_0__0__Impl rule__AstConnection__Group_0__1\n {\n pushFollow(FOLLOW_rule__AstConnection__Group_0__0__Impl_in_rule__AstConnection__Group_0__012807);\n rule__AstConnection__Group_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConnection__Group_0__1_in_rule__AstConnection__Group_0__012810);\n rule__AstConnection__Group_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public interface GroupReference extends ComplexExtensionDefinition,\n SequenceDefinition, ComplexTypeDefinition, SchemaComponent {\n public static final String REF_PROPERTY = \"ref\";\n public static final String MAX_OCCURS_PROPERTY = \"maxOccurs\";\n public static final String MIN_OCCURS_PROPERTY = \"minOccurs\";\n\n String getMaxOccurs();\n void setMaxOccurs(String max);\n String getMaxOccursDefault();\n String getMaxOccursEffective();\n \n Integer getMinOccurs();\n void setMinOccurs(Integer min);\n int getMinOccursDefault();\n int getMinOccursEffective();\n \n NamedComponentReference<GlobalGroup> getRef();\n void setRef(NamedComponentReference<GlobalGroup> def);\n}", "public final void rule__AstOutputPattern__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14652:1: ( rule__AstOutputPattern__Group__1__Impl rule__AstOutputPattern__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14653:2: rule__AstOutputPattern__Group__1__Impl rule__AstOutputPattern__Group__2\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__1__Impl_in_rule__AstOutputPattern__Group__129609);\n rule__AstOutputPattern__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__2_in_rule__AstOutputPattern__Group__129612);\n rule__AstOutputPattern__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstOutputPattern__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14623:1: ( rule__AstOutputPattern__Group__0__Impl rule__AstOutputPattern__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14624:2: rule__AstOutputPattern__Group__0__Impl rule__AstOutputPattern__Group__1\n {\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__0__Impl_in_rule__AstOutputPattern__Group__029548);\n rule__AstOutputPattern__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstOutputPattern__Group__1_in_rule__AstOutputPattern__Group__029551);\n rule__AstOutputPattern__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__AstInputPattern__Group_3__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14497:1: ( rule__AstInputPattern__Group_3__0__Impl rule__AstInputPattern__Group_3__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:14498:2: rule__AstInputPattern__Group_3__0__Impl rule__AstInputPattern__Group_3__1\n {\n pushFollow(FOLLOW_rule__AstInputPattern__Group_3__0__Impl_in_rule__AstInputPattern__Group_3__029302);\n rule__AstInputPattern__Group_3__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstInputPattern__Group_3__1_in_rule__AstInputPattern__Group_3__029305);\n rule__AstInputPattern__Group_3__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public final void rule__Parameter__Group_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1587:1: ( ( ( rule__Parameter__Group_2_0__0 ) ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1588:1: ( ( rule__Parameter__Group_2_0__0 ) )\n {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1588:1: ( ( rule__Parameter__Group_2_0__0 ) )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1589:1: ( rule__Parameter__Group_2_0__0 )\n {\n before(grammarAccess.getParameterAccess().getGroup_2_0()); \n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1590:1: ( rule__Parameter__Group_2_0__0 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1590:2: rule__Parameter__Group_2_0__0\n {\n pushFollow(FOLLOW_rule__Parameter__Group_2_0__0_in_rule__Parameter__Group_2__0__Impl3311);\n rule__Parameter__Group_2_0__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getParameterAccess().getGroup_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n public R visit(TriplesBlock n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "LogicalGraph callForGraph(GraphsToGraphOperator operator, LogicalGraph... otherGraphs);", "public BranchGroup createSceneGraph() {\n BranchGroup node = new BranchGroup();\n TransformGroup TG = createSubGraph();\n TG.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n TG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n // mouse behaviour\n MouseRotate mouse = new MouseRotate(TG);\n mouse.setSchedulingBounds(new BoundingSphere());\n // key nav\n KeyNavigatorBehavior keyNav = new KeyNavigatorBehavior(TG); //Imposto il bound del behavior\n keyNav.setSchedulingBounds(new BoundingSphere(new Point3d(), 100.0)); //Aggiungo il behavior alla scena\n TG.addChild(keyNav);\n TG.addChild(mouse);\n node.addChild(TG);\n // Add directionalLight\n node.addChild(directionalLight());\n // Add ambientLight\n node.addChild(ambientLight());\n return node;\n }", "Collection<? extends Subdomain_group> getIsVertexOf();", "@Override\n public String visit(PatternExpr n, Object arg) {\n return null;\n }", "public ShapeGroupShape(drawit.shapegroups1.ShapeGroup group) {\n this.referencedShapeGroup = group;\n }", "Relations getGroupOfRelations();", "GroupRefType createGroupRefType();", "@Override\r\n\tpublic Node visitDataParallelPattern(DataParallelPatternContext ctx) {\n\t\treturn super.visitDataParallelPattern(ctx);\r\n\t}", "public Graph subGraph(final Collection<Node> nodeSet) {\n final Graph newG = new Graph();\n newG.metrics = null;\n \n for(Attributes a : this.getAllAttributes())\n newG.addAttributes(a);\n for(EdgeType et : this.getEdgeTypes())\n newG.addEdgeType(et);\n \n final Map<Node,Node> map = new HashMap<Node,Node>();\n \n for(final Node n : nodeSet)\n {\n final NodeTypeHolder nth = newG.ntMap.get(n.getAttributes().getName());\n final Node newN = n.copy(nth.numNodes());\n final String nodeName = newN.getName();\n nth.nodeMap.put(nodeName, newN);\n map.put(n,newN);\n }\n for(final Map.Entry<Node,Node> pair : map.entrySet())\n {\n for(final Edge e : pair.getKey().getEdges())\n {\n final Node dst = map.get(e.getDest());\n if(dst != null) {\n newG.addEdge(e.getEdgeType(),pair.getValue(),dst,e.getWeight());\n }\n }\n }\n \n return newG;\n }", "public final void rule__AstNetwork__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4844:1: ( ( ( rule__AstNetwork__ParametersAssignment_4_0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4845:1: ( ( rule__AstNetwork__ParametersAssignment_4_0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4845:1: ( ( rule__AstNetwork__ParametersAssignment_4_0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4846:1: ( rule__AstNetwork__ParametersAssignment_4_0 )\n {\n before(grammarAccess.getAstNetworkAccess().getParametersAssignment_4_0()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4847:1: ( rule__AstNetwork__ParametersAssignment_4_0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:4847:2: rule__AstNetwork__ParametersAssignment_4_0\n {\n pushFollow(FOLLOW_rule__AstNetwork__ParametersAssignment_4_0_in_rule__AstNetwork__Group_4__0__Impl10281);\n rule__AstNetwork__ParametersAssignment_4_0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstNetworkAccess().getParametersAssignment_4_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "void add(R group);", "public final void rule__PredicateOr__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3406:1: ( rule__PredicateOr__Group__0__Impl rule__PredicateOr__Group__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3407:2: rule__PredicateOr__Group__0__Impl rule__PredicateOr__Group__1\n {\n pushFollow(FOLLOW_rule__PredicateOr__Group__0__Impl_in_rule__PredicateOr__Group__06698);\n rule__PredicateOr__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__PredicateOr__Group__1_in_rule__PredicateOr__Group__06701);\n rule__PredicateOr__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Override\n\tpublic Object getGroup(int groupPosition) {\n\t\treturn null;\n\t}", "public void setGroup(entity.Group value);", "private VertexObject addGroupVertex(IntermediateGroup group) {\n String groupLabel = group.getID().toString();\n VertexObject groupV = groupVertices.get(group.getID());\n if (groupV == null) {\n groupV = new VertexObject(groupLabel, group);\n graph.addVertex(groupV);\n\n groupVertices.put(group.getID(), groupV);\n }\n\n return groupV;\n }", "@Override\n public boolean isGroup() {\n return false;\n }", "void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}", "public static void runTest() {\n Graph mnfld = new Graph();\n float destTank = 7f;\n\n // Adding Tanks\n mnfld.addPipe( new Node( 0f, 5.0f ) );\n mnfld.addPipe( new Node( 1f, 5.0f ) );\n mnfld.addPipe( new Node( 7f, 5.0f ) );\n\n // Adding Pipes\n mnfld.addPipe( new Node( 2f, 22f, 100f ) );\n mnfld.addPipe( new Node( 3f, 33f, 150f ) );\n mnfld.addPipe( new Node( 4f, 44f, 200f ) );\n mnfld.addPipe( new Node( 5f, 55f, 250f ) );\n mnfld.addPipe( new Node( 6f, 66f, 300f ) );\n mnfld.addPipe( new Node( 8f, 88f, 200f ) );\n mnfld.addPipe( new Node( 9f, 99f, 150f ) );\n mnfld.addPipe( new Node( 10f, 1010f, 150f ) );\n mnfld.addPipe( new Node( 20f, 2020f, 150f ) );\n\n // Inserting Edges to the graph\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 3f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 22f ), mnfld.getPipe( 4f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 7f ), 500f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 55f ), mnfld.getPipe( 6f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 7f ), 100f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 8f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 88f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 9f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 99f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 1010f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1010f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 20f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 2020f ), mnfld.getPipe( 3f ), 1f ) );\n\n // -- Running Dijkstra & Finding shortest Paths -- //\n// Dijkstra.findPaths( mnfld, 10, \"0.0\", destTank );\n//\n// mnfld.restoreDroppedConnections();\n//\n// System.out.println( \"\\n\\n\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( 0f ) );\n Dijkstra.mergePaths( mnfld, 1f, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n\n }", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "Optional<GraphMorphism> projection(int i);", "public final void rule__Parameter__Group_2_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1636:1: ( rule__Parameter__Group_2_0__0__Impl rule__Parameter__Group_2_0__1 )\n // ../ufscar.Compiladores2.ui/src-gen/ufscar/compiladores2/ui/contentassist/antlr/internal/InternalMusy.g:1637:2: rule__Parameter__Group_2_0__0__Impl rule__Parameter__Group_2_0__1\n {\n pushFollow(FOLLOW_rule__Parameter__Group_2_0__0__Impl_in_rule__Parameter__Group_2_0__03402);\n rule__Parameter__Group_2_0__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Parameter__Group_2_0__1_in_rule__Parameter__Group_2_0__03405);\n rule__Parameter__Group_2_0__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "Object getGroup(int groupPosition);", "public String getGroup();", "GroupId groupId();", "@Override\r\n\tpublic boolean contains(GraphPattern gp) {\n\t\tif (this.operand == null) {\r\n\t\t\treturn (gp == null);\r\n\t\t}\r\n\t\telse if (this.operand.equals(gp)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.operand.contains(gp);\r\n\t\t}\r\n\t}" ]
[ "0.7431962", "0.7064587", "0.64841866", "0.61317754", "0.58334416", "0.57915884", "0.573191", "0.56380624", "0.5594496", "0.55672187", "0.55316156", "0.5405769", "0.5316594", "0.5271418", "0.52554625", "0.51915216", "0.51559615", "0.5102344", "0.5091356", "0.50789994", "0.5052251", "0.50033724", "0.49986264", "0.49957764", "0.4973167", "0.4957472", "0.49567857", "0.49518463", "0.49494383", "0.49424893", "0.49327335", "0.49192777", "0.49060807", "0.48987812", "0.4892237", "0.48758432", "0.48715773", "0.486907", "0.48680052", "0.48680052", "0.48605007", "0.48536116", "0.48474684", "0.48440018", "0.48423475", "0.48361936", "0.48252922", "0.48227406", "0.48189116", "0.48141646", "0.4811248", "0.48007825", "0.47917497", "0.47910437", "0.47860458", "0.4780639", "0.47626922", "0.47601172", "0.47599855", "0.4758229", "0.47581133", "0.47478145", "0.47395548", "0.47307935", "0.47266364", "0.47241846", "0.47213542", "0.4719957", "0.47193485", "0.47092953", "0.47030202", "0.46982294", "0.46970895", "0.46940574", "0.4689843", "0.46878174", "0.46870884", "0.46834597", "0.46824786", "0.468209", "0.46787527", "0.4672567", "0.4666292", "0.46616703", "0.46593875", "0.4657488", "0.46562934", "0.4651542", "0.46497425", "0.46477994", "0.46433628", "0.4643043", "0.46421283", "0.46397847", "0.46362305", "0.46337008", "0.46336123", "0.46296176", "0.46282235", "0.46224025" ]
0.58453757
4
nodeOptional > ( OrderClause() )? nodeOptional1 > ( LimitOffsetClauses() )?
@Override public R visit(SolutionModifier n, A argu) { R _ret = null; n.nodeOptional.accept(this, argu); n.nodeOptional1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(LimitOffsetClauses n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(OrderClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.nodeList.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(OffsetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public final AstValidator.order_clause_return order_clause() throws RecognitionException {\n AstValidator.order_clause_return retval = new AstValidator.order_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree ORDER304=null;\n AstValidator.rel_return rel305 =null;\n\n AstValidator.order_by_clause_return order_by_clause306 =null;\n\n AstValidator.func_clause_return func_clause307 =null;\n\n\n CommonTree ORDER304_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:14: ( ^( ORDER rel order_by_clause ( func_clause )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:16: ^( ORDER rel order_by_clause ( func_clause )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n ORDER304=(CommonTree)match(input,ORDER,FOLLOW_ORDER_in_order_clause2561); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n ORDER304_tree = (CommonTree)adaptor.dupNode(ORDER304);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(ORDER304_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_in_order_clause2563);\n rel305=rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel305.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_order_by_clause_in_order_clause2565);\n order_by_clause306=order_by_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, order_by_clause306.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:45: ( func_clause )?\n int alt82=2;\n int LA82_0 = input.LA(1);\n\n if ( (LA82_0==FUNC||LA82_0==FUNC_REF) ) {\n alt82=1;\n }\n switch (alt82) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:45: func_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_clause_in_order_clause2567);\n func_clause307=func_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_clause307.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "private static boolean OrderByClause_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"OrderByClause_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = OrderByClause_0_0(b, l + 1);\n if (!r) r = OrderByClause_0_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public List<PlanNode> findAllAtOrBelow( Traversal order ) {\n assert order != null;\n LinkedList<PlanNode> results = new LinkedList<PlanNode>();\n LinkedList<PlanNode> queue = new LinkedList<PlanNode>();\n queue.add(this);\n while (!queue.isEmpty()) {\n PlanNode aNode = queue.poll();\n switch (order) {\n case LEVEL_ORDER:\n results.add(aNode);\n queue.addAll(aNode.getChildren());\n break;\n case PRE_ORDER:\n results.add(aNode);\n queue.addAll(0, aNode.getChildren());\n break;\n case POST_ORDER:\n queue.addAll(0, aNode.getChildren());\n results.addFirst(aNode);\n break;\n }\n }\n return results;\n }", "@Override\n public R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeExactPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -10));\n \t}", "OrderByClauseArg createOrderByClauseArg();", "OrderByClause createOrderByClause();", "@Test\n \tpublic void whereClauseForNodeRangedPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10, 20));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\t\"_node23.right_token BETWEEN SYMMETRIC _node42.left_token - 10 AND _node42.left_token - 20\"\n \t\t);\n \t}", "@Override\n public R visit(LimitClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}", "public OrderByNode() {\n super();\n }", "@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 PlanNode findAtOrBelow( Traversal order,\n Type firstTypeToFind,\n Type... additionalTypesToFind ) {\n return findAtOrBelow(order, EnumSet.of(firstTypeToFind, additionalTypesToFind));\n }", "public final AstValidator.order_by_clause_return order_by_clause() throws RecognitionException {\n AstValidator.order_by_clause_return retval = new AstValidator.order_by_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree STAR308=null;\n CommonTree set309=null;\n AstValidator.order_col_return order_col310 =null;\n\n\n CommonTree STAR308_tree=null;\n CommonTree set309_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:490:17: ( STAR ( ASC | DESC )? | ( order_col )+ )\n int alt85=2;\n int LA85_0 = input.LA(1);\n\n if ( (LA85_0==STAR) ) {\n alt85=1;\n }\n else if ( (LA85_0==CUBE||LA85_0==DOLLARVAR||LA85_0==GROUP||LA85_0==IDENTIFIER||LA85_0==COL_RANGE) ) {\n alt85=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 85, 0, input);\n\n throw nvae;\n\n }\n switch (alt85) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:490:19: STAR ( ASC | DESC )?\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n STAR308=(CommonTree)match(input,STAR,FOLLOW_STAR_in_order_by_clause2579); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n STAR308_tree = (CommonTree)adaptor.dupNode(STAR308);\n\n\n adaptor.addChild(root_0, STAR308_tree);\n }\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:490:24: ( ASC | DESC )?\n int alt83=2;\n int LA83_0 = input.LA(1);\n\n if ( (LA83_0==ASC||LA83_0==DESC) ) {\n alt83=1;\n }\n switch (alt83) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n _last = (CommonTree)input.LT(1);\n set309=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==ASC||input.LA(1)==DESC ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set309_tree = (CommonTree)adaptor.dupNode(set309);\n\n\n adaptor.addChild(root_0, set309_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n }\n break;\n\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:491:19: ( order_col )+\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:491:19: ( order_col )+\n int cnt84=0;\n loop84:\n do {\n int alt84=2;\n int LA84_0 = input.LA(1);\n\n if ( (LA84_0==CUBE||LA84_0==DOLLARVAR||LA84_0==GROUP||LA84_0==IDENTIFIER||LA84_0==COL_RANGE) ) {\n alt84=1;\n }\n\n\n switch (alt84) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:491:19: order_col\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_order_col_in_order_by_clause2610);\n \t order_col310=order_col();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_0, order_col310.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt84 >= 1 ) break loop84;\n \t if (state.backtracking>0) {state.failed=true; return retval;}\n EarlyExitException eee =\n new EarlyExitException(84, input);\n throw eee;\n }\n cnt84++;\n } while (true);\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@Test public void posAsLastPredicate() {\n // return first\n query(\"//ul/li[''][1]\", \"\");\n query(\"//ul/li['x'][1]\", LI1);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][1]\", LI1);\n\n query(\"//ul/li[0][1]\", \"\");\n query(\"//ul/li[1][1]\", LI1);\n query(\"//ul/li[3][1]\", \"\");\n query(\"//ul/li[last()][1]\", LI2);\n\n // return second\n query(\"//ul/li[''][2]\", \"\");\n query(\"//ul/li['x'][2]\", LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][2]\", LI2);\n\n query(\"//ul/li[0][2]\", \"\");\n query(\"//ul/li[1][2]\", \"\");\n query(\"//ul/li[3][2]\", \"\");\n query(\"//ul/li[last()][2]\", \"\");\n\n // return last\n query(\"//ul/li[''][last()]\", \"\");\n query(\"//ul/li['x'][last()]\", LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][last()]\", LI2);\n\n query(\"//ul/li[0][last()]\", \"\");\n query(\"//ul/li[1][last()]\", LI1);\n query(\"//ul/li[3][last()]\", \"\");\n query(\"//ul/li[last()][last()]\", LI2);\n\n // multiple positions\n query(\"//ul/li[''][position() = 1 to 2]\", \"\");\n query(\"//ul/li['x'][position() = 1 to 2]\", LI1 + '\\n' + LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\"\n + \"[position() = 1 to 2]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[0][position() = 1 to 2]\", \"\");\n query(\"//ul/li[1][position() = 1 to 2]\", LI1);\n query(\"//ul/li[2][position() = 1 to 2]\", LI2);\n query(\"//ul/li[3][position() = 1 to 2]\", \"\");\n query(\"//ul/li[last()][position() = 1 to 2]\", 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['x'][$i]\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][$i]\", LI1 + '\\n' + LI2);\n\n query(\"for $i in 1 to 2 return //ul/li[0][$i]\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[1][$i]\", LI1);\n query(\"for $i in 1 to 2 return //ul/li[2][$i]\", LI2);\n query(\"for $i in 1 to 2 return //ul/li[3][$i]\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[last()][$i]\", 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['x'][$i]\", LI1 + '\\n' + LI1 + '\\n' + LI2);\n query(\"for $i in (1, 'a') return //ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][$i]\",\n LI1 + '\\n' + LI1 + '\\n' + LI2);\n\n query(\"for $i in (1, 'a') return //ul/li[0][$i]\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[1][$i]\", LI1 + '\\n' + LI1);\n query(\"for $i in (1, 'a') return //ul/li[2][$i]\", LI2 + '\\n' + LI2);\n query(\"for $i in (1, 'a') return //ul/li[3][$i]\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[last()][$i]\", LI2 + '\\n' + LI2);\n }", "private static int getRelationalOffset(Node basicNode, int absoluteOffset) {\n \n \t\treturn absoluteOffset - ((IndexedRegion) basicNode).getStartOffset();\n \t}", "@Test\n public void testMatchLimitOneTopDown() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addMatchOrder( HepMatchOrder.TOP_DOWN );\n programBuilder.addMatchLimit( 1 );\n programBuilder.addRuleInstance( UnionToDistinctRule.INSTANCE );\n\n checkPlanning( programBuilder.build(), UNION_TREE );\n }", "public StatementBuilder order(Order... orderClauses) {\n if (this.orderSql == null) {\n this.orderSql = OrderSql.order(orderClauses);\n } else {\n this.orderSql.add(orderClauses);\n }\n return this;\n }", "OrderByClauseArgs createOrderByClauseArgs();", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeOverlap() {\n \t\tnode23.addJoin(new Overlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.right\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeRangedDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10, 20));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\t\"_rank23.level BETWEEN SYMMETRIC _rank42.level - 10 AND _rank42.level - 20\"\n \n \t\t);\n \t}", "public T caseOrderByClause(OrderByClause object)\n {\n return null;\n }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "public List<PlanNode> findAllAtOrBelow( Traversal order,\n Type firstTypeToFind,\n Type... additionalTypesToFind ) {\n return findAllAtOrBelow(order, EnumSet.of(firstTypeToFind, additionalTypesToFind));\n }", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Override\n\tpublic Void visit(ClauseOperator clause, Void ctx) {\n\t\treturn null;\n\t}", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public NestedClause getXQueryClause();", "String getLimitOffset(boolean hasWhereClause, long limit, long offset);", "boolean hasOrderByAnnotation();", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeIndirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeEdgeAnnotation() {\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addEdgeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_1.edge_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_2.edge_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_rank_annotation23_3.edge_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_rank_annotation23_3.edge_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "protected Node getOptionalNode(Node parent, int idx)\n {\n if (hasArgument(parent, idx)) {\n return parent.jjtGetChild(idx);\n }\n return null;\n }", "OrderExpression<T> desc();", "Optional<Node<UnderlyingData>> nextNode(Node<UnderlyingData> node);", "public PlanNode findAtOrBelow( Traversal order,\n Set<Type> typesToFind ) {\n LinkedList<PlanNode> queue = new LinkedList<PlanNode>();\n queue.add(this);\n while (!queue.isEmpty()) {\n PlanNode aNode = queue.poll();\n switch (order) {\n case LEVEL_ORDER:\n if (typesToFind.contains(aNode.getType())) {\n return aNode;\n }\n queue.addAll(aNode.getChildren());\n break;\n case PRE_ORDER:\n if (typesToFind.contains(aNode.getType())) {\n return aNode;\n }\n queue.addAll(0, aNode.getChildren());\n break;\n case POST_ORDER:\n queue.addAll(0, aNode.getChildren());\n if (typesToFind.contains(aNode.getType())) {\n return aNode;\n }\n break;\n }\n }\n return null;\n }", "private void validOrderResult() {\n TreeNode currentTreeNode = treeLeaf;\n TreeNode orderTreeNode = null;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof OrderGlobalTreeNode) {\n orderTreeNode = currentTreeNode;\n break;\n } else {\n currentTreeNode = UnaryTreeNode.class.cast(currentTreeNode).getInputNode();\n }\n }\n if (null != orderTreeNode) {\n OrderGlobalTreeNode orderGlobalTreeNode = OrderGlobalTreeNode.class.cast(orderTreeNode);\n TreeNode aggTreeNode = orderTreeNode.getOutputNode();\n while (aggTreeNode != null && aggTreeNode.getNodeType() != NodeType.AGGREGATE) {\n aggTreeNode = aggTreeNode.getOutputNode();\n }\n if (null != aggTreeNode) {\n if (aggTreeNode instanceof FoldTreeNode) {\n TreeNode inputTreeNode = UnaryTreeNode.class.cast(aggTreeNode).getInputNode();\n if (inputTreeNode == orderTreeNode) {\n return;\n }\n UnaryTreeNode inputUnaryTreeNode = UnaryTreeNode.class.cast(inputTreeNode);\n if (inputUnaryTreeNode.getInputNode() == orderTreeNode &&\n (inputUnaryTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(inputUnaryTreeNode).getDirection() != Direction.BOTH)) {\n return;\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(inputUnaryTreeNode, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n OrderGlobalTreeNode addOrderTreeNode = new OrderGlobalTreeNode(inputUnaryTreeNode, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n UnaryTreeNode.class.cast(aggTreeNode).setInputNode(addOrderTreeNode);\n }\n } else {\n if (treeLeaf instanceof OrderGlobalTreeNode) {\n return;\n }\n TreeNode currTreeNode = orderTreeNode.getOutputNode();\n boolean hasSimpleShuffle = false;\n while (currTreeNode != null) {\n if (currTreeNode.getNodeType() == NodeType.FLATMAP\n || (currTreeNode instanceof PropertyNode &&\n !(UnaryTreeNode.class.cast(currTreeNode).getInputNode().getOutputValueType() instanceof EdgeValueType))) {\n hasSimpleShuffle = true;\n break;\n }\n currTreeNode = currTreeNode.getOutputNode();\n }\n if (!hasSimpleShuffle) {\n return;\n }\n\n UnaryTreeNode outputTreeNode = UnaryTreeNode.class.cast(treeLeaf);\n if (outputTreeNode.getInputNode() == orderTreeNode) {\n if (outputTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(outputTreeNode).getDirection() != Direction.BOTH) {\n return;\n }\n if (orderTreeNode.getOutputValueType() instanceof EdgeValueType && outputTreeNode instanceof PropertyNode) {\n return;\n }\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(treeLeaf, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n treeLeaf = new OrderGlobalTreeNode(treeLeaf, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n }\n }\n }", "@Test\n \tpublic void whereClauseForNodeRightOverlap() {\n \t\tnode23.addJoin(new RightOverlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\">=\", \"_node23.right\", \"_node42.right\"),\n \t\t\t\tjoin(\">=\", \"_node42.right\", \"_node23.left\"),\n \t\t\t\tjoin(\">=\", \"_node23.left\", \"_node42.left\")\n \t\t);\n \t}", "@Override\n\tpublic void optimizeJoinOrder(NJoin node, List<TupleExpr> joinArgs) {\n\t\tboolean sliceWasFound = false;\n\t\tfor (QueryModelNode pnd = node.getParentNode(); pnd != null; pnd = pnd.getParentNode()) {\n\t\t\tif (pnd instanceof Slice) {\n\t\t\t\tsliceWasFound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!sliceWasFound) {\n\t\t\tsuper.optimizeJoinOrder(node, joinArgs);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tlog.info(\"using Top-K\");\n\t\t\n\t\tTopKEstimatorVisitor cvis = new TopKEstimatorVisitor();\n\t\tList<CardinalityVisitor.CardPair> cardPairs = new ArrayList<CardinalityVisitor.CardPair>();\n\t\t\n\t\t// pin selectors\n\t\tboolean useHashJoin = false;\n\t\tboolean useBindJoin = false;\n\t\t\n\t\tfor (TupleExpr te : joinArgs) {\n\t\t\tte.visit(cvis);\n\t\t\tcardPairs.add(new CardinalityVisitor.CardPair(cvis.getNode(), cvis.getDescriptor()));\n\t\t\tcvis.reset();\n\t\t}\n\t\t\n\t\t// sort arguments according their cards\n\t\tcardPairs.sort((cpl, cpr) -> Long.compare(cpl.nd.card, cpr.nd.card));\n\t\t\n\t\tif (log.isTraceEnabled()) {\n\t\t\tlog.trace(\"\", cardPairs.get(0));\n\t\t}\n\t\t//long minCard = cardPairs.get(0).nd.card;\n\t\t//long maxCard = cardPairs.get(cardPairs.size() - 1).nd.card;\n\t\t\n\t\tCardinalityVisitor.CardPair leftArg = cardPairs.get(0);\n\t\t//result.add(cardPairs.get(0).expr);\n\t\tcardPairs.remove(0); // I expect it isn't too expensive, list is not very long (to do: try linked list)\n\t\t\n\t\tSet<String> joinVars = new HashSet<String>();\n\t\tjoinVars.addAll(OptimizerUtil.getFreeVars(leftArg.expr));\n\t\t\n\t\t// look for best bound pattern\n\t\twhile (!cardPairs.isEmpty()) {\n\t\t\tint rightIndex = 0;\n\t\t\tCollection<String> commonvars = null;\n\t\t\tfor (int i = 0, n = cardPairs.size(); i < n; ++i) {\n\t\t\t\tTupleExpr arg = cardPairs.get(i).expr;\n\t\t\t\tcommonvars = TopKEstimatorVisitor.getCommonVars(joinVars, arg);\n\t\t\t\tif (commonvars == null || commonvars.isEmpty()) continue;\n\t\t\t\trightIndex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tCardinalityVisitor.CardPair rightArg = cardPairs.get(rightIndex);\n\t\t\tcardPairs.remove(rightIndex);\n\t\t\tjoinVars.addAll(OptimizerUtil.getFreeVars(rightArg.expr));\n\t\t\t\n\t\t\tif (log.isTraceEnabled()) {\n\t\t\t\tlog.trace(\"\", rightArg);\n\t\t\t}\n\t\t\t\n\t\t\tlong resultCard;\n\t\t\tdouble sel = 1;\n\t\t\t\n\t\t\tif (TopKEstimatorVisitor.ESTIMATION_TYPE == 0) {\n\t\t\t\tif (commonvars != null && !commonvars.isEmpty()) {\n\t\t\t\t\tresultCard = (long)Math.ceil((Math.min(leftArg.nd.card, rightArg.nd.card) / 1));\n\t\t\t\t} else {\n\t\t\t\t\tresultCard = (long)Math.ceil(leftArg.nd.card * rightArg.nd.card);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (commonvars != null && !commonvars.isEmpty()) {\n\t\t\t\t\tsel *= Math.min(leftArg.nd.sel, rightArg.nd.sel);\n\t\t\t\t}\n\t\t\t\tresultCard = (long)Math.ceil(leftArg.nd.card * rightArg.nd.card * sel);\n\t\t\t}\n\t\t\t\n\t\t\tdouble hashCost = rightArg.nd.card * C_TRANSFER_TUPLE + 2 * C_TRANSFER_QUERY;\n\t\t\tdouble bindCost = leftArg.nd.card / queryInfo.getFederation().getConfig().getBoundJoinBlockSize() * C_TRANSFER_QUERY + resultCard * C_TRANSFER_TUPLE;\n\t\t\t\n\t\t\tleftArg.nd.card = resultCard;\n\t\t\tleftArg.nd.sel = sel;\n\t\t\t\t\t\n\t\t\tif (log.isTraceEnabled()) {\n\t\t\t\tlog.debug(String.format(\"join card: %s, hash cost: %s, bind cost: %s\", resultCard, hashCost, bindCost));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tNJoin newNode;\n\t\t\t//newNode = new BindJoin(leftArg.expr, rightArg.expr, queryInfo);\n\t\t\tnewNode = new HashJoin(leftArg.expr, rightArg.expr, queryInfo);\n\t\t\t/*\n\t\t\tif (useHashJoin || (!useBindJoin && hashCost < bindCost)) {\n\t\t\t\tnewNode = new HashJoin(leftArg.expr, rightArg.expr, queryInfo);\n\t\t\t\t//useHashJoin = true; // pin\n\t\t\t} else {\n\t\t\t\tnewNode = new BindJoin(leftArg.expr, rightArg.expr, queryInfo);\n\t\t\t\t//useBindJoin = true; // pin\n\t\t\t}\n\t\t\t//*/\n\t\t\tleftArg.expr = newNode;\n\t\t}\n\t\t\n\t\tJoinRestarter head = new JoinRestarter(leftArg.expr, cvis.topksrcs, this.queryInfo);\n\t\tnode.replaceWith(head);\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> increaseOffsetBy(int additionalOffset);", "private Optional optionalToOptional(ElementOptional optional) throws SemQAException {\n\t\tElement elm = optional.getOptionalElement();\r\n\t\tGraphPattern gp;\r\n\t\tValueConstraint vc;\r\n\t\tif (elm instanceof ElementGroup) {\r\n\t\t\tList<Element> children = ((ElementGroup) elm).getElements();\r\n\t\t\tSet<GraphPattern> childSemQA = new LinkedHashSet<GraphPattern>();\r\n\t\t\tSet<Optional> optionals = new LinkedHashSet<Optional>();\r\n\t\t\tSet<ElementFilter> filters = new LinkedHashSet<ElementFilter>();\r\n\t\t\tfor (Element child : children) {\r\n\t\t\t\tif (child instanceof ElementFilter) {\r\n\t\t\t\t\tfilters.add((ElementFilter) child);\r\n\t\t\t\t}\r\n\t\t\t\telse if (child instanceof ElementOptional) {\r\n\t\t\t\t\t// if child is an optional, need to get the graph pattern for the optional\r\n\t\t\t\t\t// and add it to the list of optional graph patterns\r\n\t\t\t\t\toptionals.add(optionalToOptional((ElementOptional) child));\r\n//\t\t\t\t\tchildSemQA.add(optionalToOptional((ElementOptional) child));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tchildSemQA.add(sparqlToSemQA(child));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tGraphPattern baseGp = convertSetToJoin(childSemQA);\r\n\t\t\tif (childSemQA.size() == 0) {\r\n\t\t\t\tthrow new SemQAException(\"semQA: OPTIONAL without non-optional side not supported.\");\r\n\t\t\t}\r\n\t\t\tif (optionals.size() > 0) {\r\n\t\t\t\t// if there are optional elements, create a left join\r\n\t\t\t\t// convert the non-filter non-optional graph patterns to a Join if necessary\r\n\t\t\t\t// then, each optional element is part of a left join\r\n\t\t\t\tgp = new LeftJoin(baseGp, optionals);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// no optionals, just return the join of the graph patterns\r\n\t\t\t\tgp = baseGp;\r\n\t\t\t}\r\n\t\t\tif (filters.size() > 0) {\r\n\t\t\t\tvc = getConstraintFromFilters(filters);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvc = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgp = sparqlToSemQA(elm); // if it is not a group\r\n\t\t\tvc = null;\r\n\t\t}\r\n\t\treturn new Optional(gp, vc);\r\n\t\t\r\n\t}", "public boolean replaceResultVariableInOrderByClauseWithPosition() {\n \t\treturn false;\n \t}", "@Test\n public void testOrderByDesc() throws Exception {\n String sql = \"SELECT a FROM db.g WHERE b = aString ORDER BY c desc\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n verifyElementSymbol(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, \"b\");\n verifyElementSymbol(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, \"aString\"); \n\n Node orderByNode = verify(queryNode, QueryCommand.ORDER_BY_REF_NAME, OrderBy.ID);\n Node obItemNode = verify(orderByNode, OrderBy.ORDER_BY_ITEMS_REF_NAME, OrderByItem.ID);\n verifyElementSymbol(obItemNode, OrderByItem.SYMBOL_REF_NAME, \"c\");\n verifyProperty(obItemNode, OrderByItem.ASCENDING_PROP_NAME, false);\n\n verifySql(\"SELECT a FROM db.g WHERE b = aString ORDER BY c DESC\", fileNode);\n }", "@Test\n public void testMatchLimitOneBottomUp() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addMatchLimit( 1 );\n programBuilder.addMatchOrder( HepMatchOrder.BOTTOM_UP );\n programBuilder.addRuleInstance( UnionToDistinctRule.INSTANCE );\n\n checkPlanning( programBuilder.build(), UNION_TREE );\n }", "@Test\n \tpublic void whereClauseForNodeDirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t}", "public void addOrderingToQuery(ObjectLevelReadQuery theQuery, GenerationContext context) {\n if (theQuery.isReadAllQuery()) {\n Iterator iter = getOrderByItems().iterator();\n while (iter.hasNext()) {\n Node nextNode = (Node)iter.next();\n ((ReadAllQuery)theQuery).addOrdering(nextNode.generateExpression(context));\n }\n }\n }", "@Override\n\tpublic IElementsQuery addOrder(IElementsQuery iElementsQuery) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ASTWhereClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"where \");\n\t\tnode.childrenAccept(this, 0);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "SqlSelect wrapSelectAndPushOrderBy(SqlNode node) {\n assert node instanceof SqlJoin\n || node instanceof SqlIdentifier\n || node instanceof SqlMatchRecognize\n || node instanceof SqlCall\n && (((SqlCall) node).getOperator() instanceof SqlSetOperator\n || ((SqlCall) node).getOperator() == SqlStdOperatorTable.AS\n || ((SqlCall) node).getOperator() == SqlStdOperatorTable.VALUES)\n : node;\n\n // Migrate the order by clause to the wrapping select statement,\n // if there is no fetch or offset clause accompanying the order by clause.\n SqlNodeList pushUpOrderList = null;\n if ((this.node instanceof SqlSelect) && shouldPushOrderByOut()) {\n SqlSelect selectClause = (SqlSelect) this.node;\n if ((selectClause.getFetch() == null) && (selectClause.getOffset() == null)) {\n pushUpOrderList = selectClause.getOrderList();\n selectClause.setOrderBy(null);\n\n if (node.getKind() == SqlKind.AS && pushUpOrderList != null) {\n // Update the referenced tables of the ORDER BY list to use the alias of the sub-select.\n\n List<SqlNode> selectList = (selectClause.getSelectList() == null)?\n Collections.emptyList() : selectClause.getSelectList().getList();\n\n OrderByAliasProcessor processor = new OrderByAliasProcessor(\n pushUpOrderList, SqlValidatorUtil.getAlias(node, -1), selectList);\n pushUpOrderList = processor.processOrderBy();\n }\n }\n }\n\n SqlNodeList selectList = getSelectList(node);\n\n return new SqlSelect(POS, SqlNodeList.EMPTY, selectList, node, null, null, null,\n SqlNodeList.EMPTY, pushUpOrderList, null, null);\n }", "@Override\n\tpublic OmsOrderEntity queryOmsOrderByOrderNo(String orderNo) {\n\t\treturn null;\n\t}", "@Override\n public R visit(PropertyList n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);", "private ParseTree parseRemainingOptionalChainSegment(ParseTree optionalExpression) {\n // The optional chain's source info should cover the lhs operand also\n SourcePosition start = optionalExpression.location.start;\n while (peekOptionalChainSuffix()) {\n if (peekType() == TokenType.NO_SUBSTITUTION_TEMPLATE\n || peekType() == TokenType.TEMPLATE_HEAD) {\n reportError(\"template literal cannot be used within optional chaining\");\n break;\n }\n switch (peekType()) {\n case PERIOD:\n eat(TokenType.PERIOD);\n IdentifierToken id = eatIdOrKeywordAsId();\n optionalExpression =\n new OptionalMemberExpressionTree(\n getTreeLocation(start),\n optionalExpression,\n id,\n /*isStartOfOptionalChain=*/ false);\n break;\n case OPEN_PAREN:\n ArgumentListTree arguments = parseArguments();\n optionalExpression =\n new OptChainCallExpressionTree(\n getTreeLocation(start),\n optionalExpression,\n arguments,\n /* isStartOfOptionalChain = */ false,\n arguments.hasTrailingComma);\n break;\n case OPEN_SQUARE:\n eat(TokenType.OPEN_SQUARE);\n ParseTree member = parseExpression();\n eat(TokenType.CLOSE_SQUARE);\n optionalExpression =\n new OptionalMemberLookupExpressionTree(\n getTreeLocation(start),\n optionalExpression,\n member,\n /* isStartOfOptionalChain = */ false);\n break;\n default:\n throw new AssertionError(\"unexpected case: \" + peekType());\n }\n }\n return optionalExpression;\n }", "@Test\n \tpublic void whereClauseDirectDominanceNamedAndAnnotated() {\n \t\tnode23.addJoin(new Dominance(node42, NAME, 1));\n \t\tnode42.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \t\t);\n \t\tcheckWhereCondition(node42,\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation42.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation42.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "private ParseTree maybeParseOptionalExpression(ParseTree operand) {\n // The optional chain's source info should cover the lhs operand also\n SourcePosition start = operand.location.start;\n\n while (peek(TokenType.QUESTION_DOT)) {\n eat(TokenType.QUESTION_DOT);\n switch (peekType()) {\n case OPEN_PAREN:\n ArgumentListTree arguments = parseArguments();\n operand =\n new OptChainCallExpressionTree(\n getTreeLocation(start),\n operand,\n arguments,\n /* isStartOfOptionalChain = */ true,\n arguments.hasTrailingComma);\n break;\n case OPEN_SQUARE:\n eat(TokenType.OPEN_SQUARE);\n ParseTree member = parseExpression();\n eat(TokenType.CLOSE_SQUARE);\n operand =\n new OptionalMemberLookupExpressionTree(\n getTreeLocation(start), operand, member, /* isStartOfOptionalChain = */ true);\n break;\n case NO_SUBSTITUTION_TEMPLATE:\n case TEMPLATE_HEAD:\n reportError(\"template literal cannot be used within optional chaining\");\n break;\n default:\n if (peekIdOrKeyword()) {\n IdentifierToken id = eatIdOrKeywordAsId();\n operand =\n new OptionalMemberExpressionTree(\n getTreeLocation(start), operand, id, /* isStartOfOptionalChain = */ true);\n } else {\n reportError(\"syntax error: %s not allowed in optional chain\", peekType());\n }\n }\n operand = parseRemainingOptionalChainSegment(operand);\n }\n return operand;\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "private void constructOrder(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree orderBy) {\n \t\tfinal List<Order> orders = Lists.newArrayList();\n \n \t\tfor (int i = 0; i < orderBy.getChildCount(); i++) {\n \t\t\tfinal Tree orderByItem = orderBy.getChild(i);\n \t\t\tfinal Order order = orderByItem.getChildCount() == 2 ? //\n \t\t\t\tcb.desc(this.getExpression(cb, q, orderByItem.getChild(0), null)) : //\n \t\t\t\tcb.asc(this.getExpression(cb, q, orderByItem.getChild(0), null));\n \n \t\t\torders.add(order);\n \t\t}\n \n \t\tq.orderBy(orders);\n \t}", "private Position<E> position(Node<E> node) {\n\t\tif (node == header || node == trailer)\n\t\t\treturn null;\n\t\treturn node;\n\t}", "@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}", "@Transactional(readOnly = true)\n public void hqlExpressionExamples() {\n List<Customer> customers = getSession().createQuery(\"from Individual as individual where individual.firstName in ('Juan', 'Daniel', 'Maria')\").list();\n createDescription(\"HQL - IN Operator Test\", customers);\n List<Customer> customersNotIn = getSession().createQuery(\"from Individual as individual where individual.firstName not in ('Juan', 'Daniel', 'Maria')\").list();\n createDescription(\"HQL - IN Operator Test\", customersNotIn);\n\n //IS EMPTY and IS NOT EMPTY - operator test\n List<Order> orders = getSession().createQuery(\"from Order as ord where ord.orderDetails is empty\").list();\n createDescription(\"HQL - IS EMPTY Operator Test\", orders);\n List<Order> ordersNotEmpty = getSession().createQuery(\"from Order as ord where ord.orderDetails is not empty\").list();\n createDescription(\"HQL - IS EMPTY Operator Test\", ordersNotEmpty);\n\n //IS NULL and IS NOT NULL - operator test\n List<Order> shippedOrders = getSession().createQuery(\"from Order as ord where ord.shippedDate is not null\").list();\n createDescription(\"HQL - IS NULL Operator Test\", shippedOrders);\n List<Order> notShippedOrders = getSession().createQuery(\"from Order as ord where ord.shippedDate is null\").list();\n createDescription(\"HQL - IS NOT NULL Operator Test\", notShippedOrders);\n}", "@Override\n public R visit(Prologue n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public void visit(final OpOrder opOrder) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpOrder\");\n }\n addOp(new OpOrder(rewriteOp1(opOrder), opOrder.getConditions()));\n }", "private static boolean OrderModifier_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"OrderModifier_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, K_EMPTY);\n r = r && OrderModifier_1_0_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Test\n \tpublic void whereClauseForNodeLeftOverlap() {\n \t\tnode23.addJoin(new LeftOverlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.left\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\"),\n \t\t\t\tjoin(\"<=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}", "public Query advancedQuery() \n {\n return null;\n }", "public List<PlanNode> findAllAtOrBelow() {\n return findAllAtOrBelow(Traversal.PRE_ORDER);\n }", "private String getNext(\n final int offset,\n final int limit,\n String filter,\n String sortColumn,\n ResultOrder order,\n int previousReturn,\n int level\n ) {\n if (previousReturn != limit) {\n return null;\n }\n\n StringBuilder sb = getNext(offset, limit, level);\n if (filter != null) {\n sb.append(\"&filter=\");\n sb.append(esc(filter));\n }\n\n if (sortColumn != null) {\n sb.append(\"&sort=\");\n sb.append(esc(sortColumn));\n }\n\n if (order != null) {\n sb.append(\"&order=\");\n sb.append(order.name());\n }\n return sb.toString();\n }", "String getTopSelectClause(int top);", "void printpopulateInorderSucc(Node t){\n\t\n\n}", "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "public interface TradeoffRepository extends GraphRepository<Tradeoff> {\n\n /**\n * Problem occured here, because in the testdata there were multiple tradeoffs with the same over and under -> should not be possible\n * Limit 1 for making sure that only 1 Tradeoff is within the result set.\n * @param idTradeoffItemOver Which Tradeoffitem Over\n * @param idTradeoffItemUnder Which Tradeoffitem Under\n * @return\n */\n @Query(\"MATCH (t:Tradeoff)-[:UNDER]->(under:TradeoffItem), (t)-[:OVER]->(over:TradeoffItem) where id(under) = {1} and id(over) = {0} WITH t LIMIT 1 RETURN t\")\n Tradeoff findTradeoffByTradeoffItems(Long idTradeoffItemOver, Long idTradeoffItemUnder);\n\n}", "final public void OptionalGraphPattern(Exp stack) throws ParseException {\n Exp e;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OPTION:\n jj_consume_token(OPTION);\n deprecated(\"option\",\"optional\");\n break;\n default:\n jj_la1[176] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n e = GroupGraphPattern();\n e= Option.create(e);\n stack.add(e);\n }", "@Override\n\tpublic Void visit(ClauseModifier clause, Void ctx) {\n\t\treturn null;\n\t}", "String getTopWhereClause(int top);", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Test\n \tpublic void whereClauseForNodeRightAlignment() {\n \t\tnode23.addJoin(new RightAlignment(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeLeftAlignment() {\n \t\tnode23.addJoin(new LeftAlignment(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.left\", \"_node42.left\")\n \t\t);\n \t}", "public PlanNode findAtOrBelow( Traversal order,\n Type typeToFind ) {\n return findAtOrBelow(order, EnumSet.of(typeToFind));\n }", "public List<PlanNode> findAllAtOrBelow( Traversal order,\n Set<Type> typesToFind ) {\n assert order != null;\n LinkedList<PlanNode> results = new LinkedList<PlanNode>();\n LinkedList<PlanNode> queue = new LinkedList<PlanNode>();\n queue.add(this);\n while (!queue.isEmpty()) {\n PlanNode aNode = queue.poll();\n switch (order) {\n case LEVEL_ORDER:\n if (typesToFind.contains(aNode.getType())) {\n results.add(aNode);\n }\n queue.addAll(aNode.getChildren());\n break;\n case PRE_ORDER:\n if (typesToFind.contains(aNode.getType())) {\n results.add(aNode);\n }\n queue.addAll(0, aNode.getChildren());\n break;\n case POST_ORDER:\n queue.addAll(0, aNode.getChildren());\n if (typesToFind.contains(aNode.getType())) {\n results.addFirst(aNode);\n }\n break;\n }\n }\n return results;\n }", "default int getOrder() {\n\treturn 0;\n }", "public T caseOrderStatement(OrderStatement object) {\n\t\treturn null;\n\t}", "@Test\n \tpublic void whereClauseForNodeNamespace() {\n \t\tnode23.setNamespace(\"namespace\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.namespace\", \"'namespace'\"));\n \t}", "@Override\n public int getPositionSecondOperand() {\n return position + 2;\n }", "@Test\n \tpublic void whereClauseForNodeSibling() {\n \t\tnode23.addJoin(new Sibling(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_rank23.parent\", \"_rank42.parent\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n\t\t\t\t\"_component23.name IS NULL\"\n \t\t);\n \t}", "public abstract List<T> findWithOffsetFromPosition(int from, int amount);", "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "boolean calcOrdering(int node) {\n boolean isFull = false;\n if(searchOrderSeq.size() == queryGraphNodes.size())\n return true;\n if(!searchOrderSeq.contains(node)) {\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n isFull =calcOrdering(edge);\n }\n }\n\n return isFull;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> offset(int offset);", "public void inOrder(Node myNode){\n \n if (myNode != null){ //If my node is not null, excute the following\n \n inOrder(myNode.left); //Recurse with left nodes\n System.out.println(myNode.name); //Print node name \n inOrder(myNode.right); //Recurse with right nodes\n \n }\n }", "WindowingClauseOperandFollowing createWindowingClauseOperandFollowing();" ]
[ "0.6178917", "0.5793557", "0.5761556", "0.553982", "0.53101575", "0.5252934", "0.52412426", "0.5219065", "0.51724243", "0.51555395", "0.5121202", "0.50802803", "0.5047953", "0.50190437", "0.5005696", "0.50023025", "0.4947592", "0.49217898", "0.48708865", "0.48501056", "0.48266062", "0.48262203", "0.48057616", "0.48002136", "0.47978312", "0.47843185", "0.47813424", "0.47662038", "0.4760888", "0.47576493", "0.47454485", "0.47402304", "0.4684467", "0.46672451", "0.46653262", "0.4627919", "0.46272182", "0.4623571", "0.46224084", "0.46202233", "0.46187907", "0.46150693", "0.46136788", "0.46095267", "0.46003145", "0.45766246", "0.45687878", "0.45622718", "0.4555237", "0.45446548", "0.45372292", "0.4532434", "0.4530409", "0.45234942", "0.4498621", "0.44985646", "0.44976383", "0.44927892", "0.44672596", "0.44671023", "0.44564128", "0.44538072", "0.44488856", "0.44430357", "0.4429932", "0.44265312", "0.4425793", "0.44150805", "0.44081354", "0.44066796", "0.44053674", "0.4402976", "0.43985114", "0.4384099", "0.43773624", "0.43765768", "0.43593702", "0.43567568", "0.43447646", "0.4337052", "0.43336436", "0.432282", "0.43147537", "0.43042544", "0.43032694", "0.42959744", "0.42935264", "0.4292201", "0.42897105", "0.42878273", "0.42857087", "0.4278526", "0.42778456", "0.42747143", "0.42604783", "0.42512485", "0.42440966", "0.42433092", "0.42396408", "0.4230415" ]
0.4704781
32
nodeChoice > ( LimitClause() ( OffsetClause() )? | OffsetClause() ( LimitClause() )? )
@Override public R visit(LimitOffsetClauses n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(LimitClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "public final AstValidator.limit_clause_return limit_clause() throws RecognitionException {\n AstValidator.limit_clause_return retval = new AstValidator.limit_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree LIMIT282=null;\n CommonTree INTEGER284=null;\n CommonTree LONGINTEGER285=null;\n AstValidator.rel_return rel283 =null;\n\n AstValidator.expr_return expr286 =null;\n\n\n CommonTree LIMIT282_tree=null;\n CommonTree INTEGER284_tree=null;\n CommonTree LONGINTEGER285_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:14: ( ^( LIMIT rel ( INTEGER | LONGINTEGER | expr ) ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:16: ^( LIMIT rel ( INTEGER | LONGINTEGER | expr ) )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n LIMIT282=(CommonTree)match(input,LIMIT,FOLLOW_LIMIT_in_limit_clause2381); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LIMIT282_tree = (CommonTree)adaptor.dupNode(LIMIT282);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(LIMIT282_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_in_limit_clause2383);\n rel283=rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel283.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:29: ( INTEGER | LONGINTEGER | expr )\n int alt72=3;\n switch ( input.LA(1) ) {\n case INTEGER:\n {\n int LA72_1 = input.LA(2);\n\n if ( (synpred142_AstValidator()) ) {\n alt72=1;\n }\n else if ( (true) ) {\n alt72=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 1, input);\n\n throw nvae;\n\n }\n }\n break;\n case LONGINTEGER:\n {\n int LA72_2 = input.LA(2);\n\n if ( (synpred143_AstValidator()) ) {\n alt72=2;\n }\n else if ( (true) ) {\n alt72=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 2, input);\n\n throw nvae;\n\n }\n }\n break;\n case BIGDECIMALNUMBER:\n case BIGINTEGERNUMBER:\n case CUBE:\n case DIV:\n case DOLLARVAR:\n case DOUBLENUMBER:\n case FALSE:\n case FLOATNUMBER:\n case GROUP:\n case IDENTIFIER:\n case MINUS:\n case NULL:\n case PERCENT:\n case PLUS:\n case QUOTEDSTRING:\n case STAR:\n case TRUE:\n case BAG_VAL:\n case BIN_EXPR:\n case CASE_COND:\n case CASE_EXPR:\n case CAST_EXPR:\n case EXPR_IN_PAREN:\n case FUNC_EVAL:\n case INVOKER_FUNC_EVAL:\n case MAP_VAL:\n case NEG:\n case TUPLE_VAL:\n {\n alt72=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 72, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt72) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:31: INTEGER\n {\n _last = (CommonTree)input.LT(1);\n INTEGER284=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_limit_clause2387); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER284_tree = (CommonTree)adaptor.dupNode(INTEGER284);\n\n\n adaptor.addChild(root_1, INTEGER284_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:41: LONGINTEGER\n {\n _last = (CommonTree)input.LT(1);\n LONGINTEGER285=(CommonTree)match(input,LONGINTEGER,FOLLOW_LONGINTEGER_in_limit_clause2391); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LONGINTEGER285_tree = (CommonTree)adaptor.dupNode(LONGINTEGER285);\n\n\n adaptor.addChild(root_1, LONGINTEGER285_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:467:55: expr\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_limit_clause2395);\n expr286=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr286.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private static long getLimit(QueryModelNode node) {\n long offset = 0;\n if (node instanceof Slice) {\n Slice slice = (Slice) node;\n if (slice.hasOffset() && slice.hasLimit()) {\n return slice.getOffset() + slice.getLimit();\n } else if (slice.hasLimit()) {\n return slice.getLimit();\n } else if (slice.hasOffset()) {\n offset = slice.getOffset();\n }\n }\n QueryModelNode parent = node.getParentNode();\n if (parent instanceof Distinct || parent instanceof Reduced || parent instanceof Slice) {\n long limit = getLimit(parent);\n if (offset > 0L && limit < Long.MAX_VALUE) {\n return offset + limit;\n } else {\n return limit;\n }\n }\n return Long.MAX_VALUE;\n }", "String limitSubquery();", "String getLimitOffset(boolean hasWhereClause, long limit, long offset);", "public final CQLParser.limitOptions_return limitOptions() throws RecognitionException {\n CQLParser.limitOptions_return retval = new CQLParser.limitOptions_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token LIMIT20=null;\n List list_ld=null;\n RuleReturnScope ld = null;\n Object LIMIT20_tree=null;\n RewriteRuleTokenStream stream_LIMIT=new RewriteRuleTokenStream(adaptor,\"token LIMIT\");\n RewriteRuleSubtreeStream stream_limitDefinition=new RewriteRuleSubtreeStream(adaptor,\"rule limitDefinition\");\n errorMessageStack.push(\"LIMIT statement\"); \n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:244:2: ( LIMIT (ld+= limitDefinition )+ -> ^( LIMIT ( $ld)+ ) )\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:244:4: LIMIT (ld+= limitDefinition )+\n {\n LIMIT20=(Token)match(input,LIMIT,FOLLOW_LIMIT_in_limitOptions637); \n stream_LIMIT.add(LIMIT20);\n\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:244:12: (ld+= limitDefinition )+\n int cnt9=0;\n loop9:\n do {\n int alt9=2;\n int LA9_0 = input.LA(1);\n\n if ( ((LA9_0>=TOP && LA9_0<=RANDOM)) ) {\n alt9=1;\n }\n\n\n switch (alt9) {\n \tcase 1 :\n \t // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:244:12: ld+= limitDefinition\n \t {\n \t pushFollow(FOLLOW_limitDefinition_in_limitOptions641);\n \t ld=limitDefinition();\n\n \t state._fsp--;\n\n \t stream_limitDefinition.add(ld.getTree());\n \t if (list_ld==null) list_ld=new ArrayList();\n \t list_ld.add(ld.getTree());\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt9 >= 1 ) break loop9;\n EarlyExitException eee =\n new EarlyExitException(9, input);\n throw eee;\n }\n cnt9++;\n } while (true);\n\n\n\n // AST REWRITE\n // elements: ld, LIMIT\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: ld\n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_ld=new RewriteRuleSubtreeStream(adaptor,\"token ld\",list_ld);\n root_0 = (Object)adaptor.nil();\n // 245:3: -> ^( LIMIT ( $ld)+ )\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:245:6: ^( LIMIT ( $ld)+ )\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_LIMIT.nextNode(), root_1);\n\n if ( !(stream_ld.hasNext()) ) {\n throw new RewriteEarlyExitException();\n }\n while ( stream_ld.hasNext() ) {\n adaptor.addChild(root_1, stream_ld.nextTree());\n\n }\n stream_ld.reset();\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n errorMessageStack.pop(); \n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "@Test\n \tpublic void whereClauseForNodeRangedPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10, 20));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\t\"_node23.right_token BETWEEN SYMMETRIC _node42.left_token - 10 AND _node42.left_token - 20\"\n \t\t);\n \t}", "public void setLimitClauseStart(int limitClauseStart) {\n this.limitClauseStart=limitClauseStart;\n }", "public void setLimitClauseStart(int limitClauseStart) {\n this.limitClauseStart=limitClauseStart;\n }", "String getLimit(boolean hasWhereClause, long limit);", "Limit createLimit();", "String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);", "@Test\n public void testMatchLimitOneTopDown() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addMatchOrder( HepMatchOrder.TOP_DOWN );\n programBuilder.addMatchLimit( 1 );\n programBuilder.addRuleInstance( UnionToDistinctRule.INSTANCE );\n\n checkPlanning( programBuilder.build(), UNION_TREE );\n }", "@Override\n public R visit(AskQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n return _ret;\n }", "public NestedClause getXQueryClause();", "Range controlLimits();", "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeRangedDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10, 20));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\t\"_rank23.level BETWEEN SYMMETRIC _rank42.level - 10 AND _rank42.level - 20\"\n \n \t\t);\n \t}", "public final AstValidator.nested_limit_return nested_limit() throws RecognitionException {\n AstValidator.nested_limit_return retval = new AstValidator.nested_limit_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree LIMIT381=null;\n CommonTree INTEGER383=null;\n AstValidator.nested_op_input_return nested_op_input382 =null;\n\n AstValidator.expr_return expr384 =null;\n\n\n CommonTree LIMIT381_tree=null;\n CommonTree INTEGER383_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:603:14: ( ^( LIMIT nested_op_input ( INTEGER | expr ) ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:603:16: ^( LIMIT nested_op_input ( INTEGER | expr ) )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n LIMIT381=(CommonTree)match(input,LIMIT,FOLLOW_LIMIT_in_nested_limit3189); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n LIMIT381_tree = (CommonTree)adaptor.dupNode(LIMIT381);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(LIMIT381_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_nested_op_input_in_nested_limit3191);\n nested_op_input382=nested_op_input();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, nested_op_input382.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:603:41: ( INTEGER | expr )\n int alt107=2;\n int LA107_0 = input.LA(1);\n\n if ( (LA107_0==INTEGER) ) {\n int LA107_1 = input.LA(2);\n\n if ( (synpred192_AstValidator()) ) {\n alt107=1;\n }\n else if ( (true) ) {\n alt107=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 107, 1, input);\n\n throw nvae;\n\n }\n }\n else if ( (LA107_0==BIGDECIMALNUMBER||LA107_0==BIGINTEGERNUMBER||LA107_0==CUBE||LA107_0==DIV||LA107_0==DOLLARVAR||LA107_0==DOUBLENUMBER||LA107_0==FALSE||LA107_0==FLOATNUMBER||LA107_0==GROUP||LA107_0==IDENTIFIER||LA107_0==LONGINTEGER||LA107_0==MINUS||LA107_0==NULL||LA107_0==PERCENT||LA107_0==PLUS||LA107_0==QUOTEDSTRING||LA107_0==STAR||LA107_0==TRUE||(LA107_0 >= BAG_VAL && LA107_0 <= BIN_EXPR)||(LA107_0 >= CASE_COND && LA107_0 <= CASE_EXPR)||LA107_0==CAST_EXPR||LA107_0==EXPR_IN_PAREN||LA107_0==FUNC_EVAL||LA107_0==INVOKER_FUNC_EVAL||(LA107_0 >= MAP_VAL && LA107_0 <= NEG)||LA107_0==TUPLE_VAL) ) {\n alt107=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 107, 0, input);\n\n throw nvae;\n\n }\n switch (alt107) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:603:43: INTEGER\n {\n _last = (CommonTree)input.LT(1);\n INTEGER383=(CommonTree)match(input,INTEGER,FOLLOW_INTEGER_in_nested_limit3195); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n INTEGER383_tree = (CommonTree)adaptor.dupNode(INTEGER383);\n\n\n adaptor.addChild(root_1, INTEGER383_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:603:53: expr\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_expr_in_nested_limit3199);\n expr384=expr();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, expr384.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> limit(int limit);", "@Override\n public R visit(OffsetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "Limits limits();", "public int getLimitClauseStart() {\n return limitClauseStart;\n }", "public int getLimitClauseStart() {\n return limitClauseStart;\n }", "@NotNull\n List<Result> executeQueryWithRaisingLimits(LimitedQuery limitedQuery, int offset, Integer limit);", "protected void appendSelectRange(SQLBuffer buf, long start, long end) {\n buf.append(\" FETCH FIRST \").append(Long.toString(end)).\r\n append(\" ROWS ONLY\");\r\n }", "String getTopSelectClause(int top);", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> removeLimitAndOffset();", "public final CQLParser.limitDefinition_return limitDefinition() throws RecognitionException {\n CQLParser.limitDefinition_return retval = new CQLParser.limitDefinition_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token TOP21=null;\n Token BOTTOM22=null;\n Token RANDOM23=null;\n CQLParser.limitParameters_return lp = null;\n\n\n Object TOP21_tree=null;\n Object BOTTOM22_tree=null;\n Object RANDOM23_tree=null;\n RewriteRuleTokenStream stream_BOTTOM=new RewriteRuleTokenStream(adaptor,\"token BOTTOM\");\n RewriteRuleTokenStream stream_RANDOM=new RewriteRuleTokenStream(adaptor,\"token RANDOM\");\n RewriteRuleTokenStream stream_TOP=new RewriteRuleTokenStream(adaptor,\"token TOP\");\n RewriteRuleSubtreeStream stream_limitParameters=new RewriteRuleSubtreeStream(adaptor,\"rule limitParameters\");\n try {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:249:2: ( TOP lp= limitParameters -> ^( TOP $lp) | BOTTOM lp= limitParameters -> ^( BOTTOM $lp) | RANDOM lp= limitParameters -> ^( RANDOM $lp) )\n int alt10=3;\n switch ( input.LA(1) ) {\n case TOP:\n {\n alt10=1;\n }\n break;\n case BOTTOM:\n {\n alt10=2;\n }\n break;\n case RANDOM:\n {\n alt10=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 10, 0, input);\n\n throw nvae;\n }\n\n switch (alt10) {\n case 1 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:249:4: TOP lp= limitParameters\n {\n TOP21=(Token)match(input,TOP,FOLLOW_TOP_in_limitDefinition666); \n stream_TOP.add(TOP21);\n\n pushFollow(FOLLOW_limitParameters_in_limitDefinition670);\n lp=limitParameters();\n\n state._fsp--;\n\n stream_limitParameters.add(lp.getTree());\n\n\n // AST REWRITE\n // elements: TOP, lp\n // token labels: \n // rule labels: retval, lp\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_lp=new RewriteRuleSubtreeStream(adaptor,\"rule lp\",lp!=null?lp.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 249:28: -> ^( TOP $lp)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:249:31: ^( TOP $lp)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_TOP.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_lp.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:250:4: BOTTOM lp= limitParameters\n {\n BOTTOM22=(Token)match(input,BOTTOM,FOLLOW_BOTTOM_in_limitDefinition686); \n stream_BOTTOM.add(BOTTOM22);\n\n pushFollow(FOLLOW_limitParameters_in_limitDefinition690);\n lp=limitParameters();\n\n state._fsp--;\n\n stream_limitParameters.add(lp.getTree());\n\n\n // AST REWRITE\n // elements: lp, BOTTOM\n // token labels: \n // rule labels: retval, lp\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_lp=new RewriteRuleSubtreeStream(adaptor,\"rule lp\",lp!=null?lp.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 250:30: -> ^( BOTTOM $lp)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:250:33: ^( BOTTOM $lp)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_BOTTOM.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_lp.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:251:4: RANDOM lp= limitParameters\n {\n RANDOM23=(Token)match(input,RANDOM,FOLLOW_RANDOM_in_limitDefinition704); \n stream_RANDOM.add(RANDOM23);\n\n pushFollow(FOLLOW_limitParameters_in_limitDefinition708);\n lp=limitParameters();\n\n state._fsp--;\n\n stream_limitParameters.add(lp.getTree());\n\n\n // AST REWRITE\n // elements: RANDOM, lp\n // token labels: \n // rule labels: retval, lp\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n RewriteRuleSubtreeStream stream_lp=new RewriteRuleSubtreeStream(adaptor,\"rule lp\",lp!=null?lp.tree:null);\n\n root_0 = (Object)adaptor.nil();\n // 251:30: -> ^( RANDOM $lp)\n {\n // /home/chinaski/programming/agile_workspace/ExplorerCat/src/main/antlr3/net/explorercat/cql/parser/CQL.g:251:33: ^( RANDOM $lp)\n {\n Object root_1 = (Object)adaptor.nil();\n root_1 = (Object)adaptor.becomeRoot(stream_RANDOM.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_lp.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (Object)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n \t\n \tcatch(RecognitionException re)\n \t{\t\n \t\treportError(re);\n \t\tthrow re;\n \t}\n finally {\n }\n return retval;\n }", "@Override\n\tpublic String sqlSlice(long limit, long offset) {\n\t\treturn null;\n\t}", "@Test\n public void testMatchLimitOneBottomUp() throws Exception {\n\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addMatchLimit( 1 );\n programBuilder.addMatchOrder( HepMatchOrder.BOTTOM_UP );\n programBuilder.addRuleInstance( UnionToDistinctRule.INSTANCE );\n\n checkPlanning( programBuilder.build(), UNION_TREE );\n }", "@Test\n \tpublic void whereClauseForNodeExactPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -10));\n \t}", "@And(\"the number of children option is selected as none\")\r\n public void selectNoOfChildren(){\n }", "@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}", "public Long getLimitClauseStart() {\r\n\t\treturn limitClauseStart;\r\n\t}", "@Override\n\tpublic IElementsQuery addLimit(IElementsQuery iElementsQuery) {\n\t\treturn null;\n\t}", "public void setLimitClauseStart(Long limitClauseStart) {\r\n\t\tthis.limitClauseStart = limitClauseStart;\r\n\t}", "public void setLimitClauseCount(int limitClauseCount) {\n this.limitClauseCount=limitClauseCount;\n }", "public void setLimitClauseCount(int limitClauseCount) {\n this.limitClauseCount=limitClauseCount;\n }", "@Test\n \tpublic void whereClauseForNodeOverlap() {\n \t\tnode23.addJoin(new Overlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.right\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\")\n \t\t);\n \t}", "@Override\r\n\tpublic List<Byip> selectByExampleAndPage(ByipExample example,\r\n\t\t\tRowBounds rowBound) {\n\t\treturn null;\r\n\t}", "@UsesAdsUtilities({AdsUtility.SELECTOR_BUILDER})\n SelectorBuilderInterface<SelectorT> offset(int offset);", "public abstract void selectIndexRange(int min, int max);", "String getTopWhereClause(int top);", "public Query getTop(int limit){\n setLimit(limit);\n return this; //builder pattern allows users to chain methods\n }", "@Repository\npublic interface ArticleCategoryDao {\n\n @Select(\"select id, name from xx_article_category where grade=0 order by orders limit #{limit}\")\n List<ArticleCategory> findRootList(@Param(value = \"limit\") Integer limit);\n}", "public Relation select(Condition c) throws RelationException;", "void setLimit( Token t, int limit) {\r\n \tMExprToken tok = (MExprToken)t;\r\n \ttok.charEnd = limit;\r\n \ttok.charStart = limit;\r\n }", "public T caseLimit(Limit object) {\r\n\t\treturn null;\r\n\t}", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public interface In extends Clause {}", "@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeAnnotation() {\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace1\", \"name1\"));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace2\", \"name2\", \"value2\", TextMatching.EXACT_EQUAL));\n \t\tnode23.addNodeAnnotation(new Annotation(\"namespace3\", \"name3\", \"value3\", TextMatching.REGEXP_EQUAL));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_namespace\", \"'namespace1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_1.node_annotation_name\", \"'name1'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_namespace\", \"'namespace2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_name\", \"'name2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_2.node_annotation_value\", \"'value2'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_namespace\", \"'namespace3'\"),\n \t\t\t\tjoin(\"=\", \"_annotation23_3.node_annotation_name\", \"'name3'\"),\n \t\t\t\tjoin(\"~\", \"_annotation23_3.node_annotation_value\", \"'^value3$'\")\n \t\t);\n \t}", "@Test\n \tpublic void whereClauseForNodeExactDominance() {\n \t\tnode23.addJoin(new Dominance(node42, 10));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\"),\n \t\t\t\tjoin(\"=\", \"_rank23.level\", \"_rank42.level\", -10)\n \t\t);\n \t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n \tprivate CriteriaQueryImpl constructSelectQuery(CriteriaBuilderImpl cb, CommonTree tree) {\n \t\tfinal CriteriaQueryImpl q = new CriteriaQueryImpl(this.metamodel);\n \n \t\tthis.constructFrom(cb, q, tree.getChild(1));\n \n \t\tfinal Tree select = tree.getChild(0);\n \t\tfinal List<Selection<?>> selections = this.constructSelect(cb, q, select.getChild(select.getChildCount() - 1));\n \n \t\tif (selections.size() == 1) {\n \t\t\tq.select(selections.get(0));\n \t\t}\n \t\telse {\n \t\t\tq.multiselect(selections);\n \t\t}\n \n \t\tif (select.getChild(0).getType() == JpqlParser.DISTINCT) {\n \t\t\tq.distinct(true);\n \t\t}\n \n \t\tint i = 2;\n \t\twhile (true) {\n \t\t\tfinal Tree child = tree.getChild(i);\n \n \t\t\t// end of query\n \t\t\tif (child.getType() == JpqlParser.EOF) {\n \t\t\t\tbreak;\n \t\t\t}\n \n \t\t\t// where fragment\n \t\t\tif (child.getType() == JpqlParser.WHERE) {\n \t\t\t\tq.where(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// group by fragment\n \t\t\tif (child.getType() == JpqlParser.LGROUP_BY) {\n \t\t\t\tq.groupBy(this.constructGroupBy(cb, q, child));\n \t\t\t}\n \n \t\t\t// having fragment\n \t\t\tif (child.getType() == JpqlParser.HAVING) {\n \t\t\t\tq.having(this.constructJunction(cb, q, child.getChild(0)));\n \t\t\t}\n \n \t\t\t// order by fragment\n \t\t\tif (child.getType() == JpqlParser.LORDER) {\n \t\t\t\tthis.constructOrder(cb, q, child);\n \t\t\t}\n \n \t\t\ti++;\n \t\t\tcontinue;\n \t\t}\n \n \t\treturn q;\n \t}", "public ListClusterOperator limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }", "@Override\r\n public PlanNode makePlan(SelectClause selClause,\r\n List<SelectClause> enclosingSelects) {\r\n\r\n // For HW1, we have a very simple implementation that defers to\r\n // makeSimpleSelect() to handle simple SELECT queries with one table,\r\n // and an optional WHERE clause.\r\n\r\n PlanNode plan = null;\r\n\r\n if (enclosingSelects != null && !enclosingSelects.isEmpty()) {\r\n throw new UnsupportedOperationException(\r\n \"Not implemented: enclosing queries\");\r\n }\r\n\r\n FromClause fromClause = selClause.getFromClause();\r\n // case for when no From clause is present. Creates a ProjectNode.\r\n if (fromClause == null) {\r\n plan = new ProjectNode(selClause.getSelectValues());\r\n plan.prepare();\r\n return plan;\r\n }\r\n // implementation of our ExpressionProcessor\r\n AggregateFinder processor = new AggregateFinder();\r\n\r\n List<SelectValue> selectValues = selClause.getSelectValues();\r\n // call helper function to recursively handle From Clause\r\n plan = processFromClause(fromClause, selClause, processor);\r\n Expression whereExpr = selClause.getWhereExpr();\r\n if (whereExpr != null){\r\n whereExpr.traverse(processor);\r\n if (!processor.aggregates.isEmpty()) {\r\n throw new InvalidSQLException(\"Can't have aggregates in WHERE\\n\");\r\n }\r\n plan = PlanUtils.addPredicateToPlan(plan, whereExpr);\r\n }\r\n\r\n\r\n for (SelectValue sv : selectValues) {\r\n // Skip select-values that aren't expressions\r\n if (!sv.isExpression())\r\n continue;\r\n\r\n Expression e = sv.getExpression().traverse(processor);\r\n sv.setExpression(e);\r\n }\r\n\r\n Map<String, FunctionCall> colMap = processor.initMap();\r\n\r\n List<Expression> groupByExprs = selClause.getGroupByExprs();\r\n\r\n\r\n if (!groupByExprs.isEmpty() || !colMap.isEmpty()){\r\n plan = new HashedGroupAggregateNode(plan, groupByExprs, colMap);\r\n }\r\n\r\n Expression havingExpr = selClause.getHavingExpr();\r\n if (havingExpr != null){\r\n havingExpr.traverse(processor);\r\n selClause.setHavingExpr(havingExpr);\r\n plan = PlanUtils.addPredicateToPlan(plan, havingExpr);\r\n }\r\n\r\n\r\n\r\n List<OrderByExpression> orderByExprs = selClause.getOrderByExprs();\r\n if (orderByExprs.size() > 0){\r\n // need to do something about order by clause.\r\n plan = new SortNode(plan, orderByExprs);\r\n }\r\n\r\n if (!selClause.isTrivialProject())\r\n plan = new ProjectNode(plan, selectValues);\r\n\r\n plan.prepare();\r\n return plan;\r\n }", "public int getLimitClauseCount() {\n return limitClauseCount;\n }", "public int getLimitClauseCount() {\n return limitClauseCount;\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n \tpublic void whereClauseForNodeNamespace() {\n \t\tnode23.setNamespace(\"namespace\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.namespace\", \"'namespace'\"));\n \t}", "@Override\n\tpublic Object visit(ASTWhereClause node, Object data) {\n\t\tint indent = (Integer) data;\n\t\tprintIndent(indent);\n\t\tSystem.out.print(\"where \");\n\t\tnode.childrenAccept(this, 0);\n\t\tSystem.out.println();\n\t\treturn null;\n\t}", "public int askPermitToGetBetweenVisible();", "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 }", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "GeneralClause createGeneralClause();", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "protected Limit getLimit() {\n return new Limit(skip, limit);\n }", "@Test\n \tpublic void whereClauseForNodeRightOverlap() {\n \t\tnode23.addJoin(new RightOverlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\">=\", \"_node23.right\", \"_node42.right\"),\n \t\t\t\tjoin(\">=\", \"_node42.right\", \"_node23.left\"),\n \t\t\t\tjoin(\">=\", \"_node23.left\", \"_node42.left\")\n \t\t);\n \t}", "WindowingClauseOperandFollowing createWindowingClauseOperandFollowing();", "public final void mT__31() throws RecognitionException {\r\n try {\r\n final int _type = SparqlMarcoLexer.T__31;\r\n final int _channel = BaseRecognizer.DEFAULT_TOKEN_CHANNEL;\r\n this.match(\"LIMIT\");\r\n this.state.type = _type;\r\n this.state.channel = _channel;\r\n } finally {\r\n }\r\n }", "@Test\n public void learnToQueryWithDomainSpecificRangeParam() throws Exception {\n SqlSession session = null;\n\n List<Country> lc = session.selectList(\"getCountryRange3\", new Range(22, 33));\n\n assertEquals(12, lc.size());\n Country finland = lc.get(11);\n assertEquals(\"Finland\", finland.getCountry());\n\n }", "@Test\n \tpublic void whereClauseIndirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "@Test\n public void learnToQueryWithRowBounds() throws Exception {\n // TODO: open a session\n SqlSession session = null;\n\n // TODO: create a RowBounds object with an offset and limit\n // that cause 12 Countries to be returned starting with\n // country_id 22. (The last country returned from the\n // query should be Finland.)\n RowBounds rb = null;\n\n // TODO: get a List<Country> by calling the \"getCountries\" mapping.\n // Use the RowBounds object to limit / filter the returned results.\n // Note: in this koan test we are NOT using a mapper object,\n // so call one of the session \"select\" methods directly.\n List<Country> lc = null;\n\n assertEquals(12, lc.size());\n Country finland = lc.get(11);\n assertEquals(\"Finland\", finland.getCountry());\n }", "@Test\n public void testBetween1() throws Exception {\n String sql = \"SELECT a from db.g where a BETWEEN 1000 AND 2000\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, \"a\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, \"db.g\");\n\n Node criteriaNode = verify(queryNode, Query.CRITERIA_REF_NAME, BetweenCriteria.ID);\n verifyElementSymbol(criteriaNode, BetweenCriteria.EXPRESSION_REF_NAME, \"a\");\n verifyConstant(criteriaNode, BetweenCriteria.LOWER_EXPRESSION_REF_NAME, 1000);\n verifyConstant(criteriaNode, BetweenCriteria.UPPER_EXPRESSION_REF_NAME, 2000);\n \n verifySql(\"SELECT a FROM db.g WHERE a BETWEEN 1000 AND 2000\", fileNode);\n }", "int getLimit();", "int getLimit();", "@Override\n\tpublic Void visit(ClauseOperator clause, Void ctx) {\n\t\treturn null;\n\t}", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Test\n \tpublic void whereClauseForNodeName() {\n \t\tnode23.setName(\"name\");\n \t\tcheckWhereCondition(join(\"=\", \"_node23.name\", \"'name'\"));\n \t}", "final public Exp SelectQuery(Metadata la) throws ParseException {\n Exp stack;\n jj_consume_token(SELECT);\n Debug();\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case NOSORT:\n jj_consume_token(NOSORT);\n astq.setSorted(false);\n break;\n default:\n jj_la1[64] = jj_gen;\n ;\n }\n OneMoreListMerge();\n GroupCountSortDisplayVar();\n Max();\n label_14:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case FROM:\n ;\n break;\n default:\n jj_la1[65] = jj_gen;\n break label_14;\n }\n DatasetClause();\n }\n stack = WhereClause();\n SolutionModifier();\n astq.setResultForm(ASTQuery.QT_SELECT);\n astq.setAnnotation(la);\n {if (true) return stack;}\n throw new Error(\"Missing return statement in function\");\n }", "@Override\n\tpublic Void visit(ClauseModifier clause, Void ctx) {\n\t\treturn null;\n\t}", "Get<K, C> withColumnRange(C startColumn,\n boolean startColumnInclusive,\n C endColumn,\n boolean endColumnInclusive,\n int limit);", "public void setCurrentLimitAndOffset(int LIMIT, int OFFSET){\n\t\tthis.LIMIT = LIMIT;\n\t\tthis.OFFSET = OFFSET;\n\t}", "@Override\n\t\t\t\tprotected void operationSelectRange(PlaneXY planeXY) {\n\t\t\t\t\t\n\t\t\t\t}", "private List<T> findRange(RequestData requestData) {\n javax.persistence.criteria.CriteriaQuery cq = getEntityManager().getCriteriaBuilder().createQuery();\n cq.select(cq.from(getEntityClass()));\n javax.persistence.Query q = getEntityManager().createQuery(cq);\n q.setMaxResults(requestData.getLength());\n q.setFirstResult(requestData.getStart());\n return q.getResultList();\n }", "@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}", "public List getResult(String conditing, int begin, int max) {\n\t\treturn null;\r\n\t}", "@Override\n protected void onLimitOffsetNode(Node parent, LimitOffsetNode child, int index) {\n replaceChild(parent, index, new EmptyNode(), false);\n if(child.getLimit() > 0) {\n int limit = child.getLimit() + child.getOffset();\n // we have root actually as input for processor, but it's better to keep processor stateless\n // root shouldn't be far from limit's parent (likely it will be parent itself)\n Node root = getRoot(parent);\n int idx = 0;\n if(root.getChild(0).getType() == NodeType.DISTINCT) {\n idx = 1;\n }\n root.addChild(idx, new TopNode(limit));\n }\n }", "OrderByClauseArg createOrderByClauseArg();", "@Test\n \tpublic void whereClauseForNodeLeftOverlap() {\n \t\tnode23.addJoin(new LeftOverlap(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<=\", \"_node23.left\", \"_node42.left\"),\n \t\t\t\tjoin(\"<=\", \"_node42.left\", \"_node23.right\"),\n \t\t\t\tjoin(\"<=\", \"_node23.right\", \"_node42.right\")\n \t\t);\n \t}", "SubQueryOperand createSubQueryOperand();", "@SuppressWarnings(\"unchecked\")\n public Q limit(int limit) {\n this.limit = limit;\n return (Q) this;\n }", "public abstract List<T> findWithOffsetFromPosition(int from, int amount);", "public Limit get(int id);", "@Test\n \tpublic void whereClauseForNodeIndirectDominance() {\n \t\tnode23.addJoin(new Dominance(node42));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'d'\"),\n \t\t\t\t\"_component23.name IS NULL\",\n \t\t\t\tjoin(\"<\", \"_rank23.pre\", \"_rank42.pre\"),\n \t\t\t\tjoin(\"<\", \"_rank42.pre\", \"_rank23.post\")\n \t\t);\n \t}", "public T caseWhereClause(WhereClause object)\n {\n return null;\n }", "public String getDocRouteNodeSql(String documentTypeFullName, String routeNodeName, RouteNodeLookupLogic docRouteLevelLogic, String whereClausePredicatePrefix) {\n String returnSql = \"\";\n if (StringUtils.isNotBlank(routeNodeName)) {\n if (docRouteLevelLogic == null) {\n docRouteLevelLogic = RouteNodeLookupLogic.EXACTLY;\n }\n StringBuilder routeNodeCriteria = new StringBuilder(\"and \" + ROUTE_NODE_TABLE + \".NM \");\n if (RouteNodeLookupLogic.EXACTLY == docRouteLevelLogic) {\n \t\trouteNodeCriteria.append(\"= '\" + getDbPlatform().escapeString(routeNodeName) + \"' \");\n } else {\n routeNodeCriteria.append(\"in (\");\n // below buffer used to facilitate the addition of the string \", \" to separate out route node names\n StringBuilder routeNodeInCriteria = new StringBuilder();\n boolean foundSpecifiedNode = false;\n List<RouteNode> routeNodes = KEWServiceLocator.getRouteNodeService().getFlattenedNodes(getValidDocumentType(documentTypeFullName), true);\n for (RouteNode routeNode : routeNodes) {\n if (routeNodeName.equals(routeNode.getRouteNodeName())) {\n // current node is specified node so we ignore it outside of the boolean below\n foundSpecifiedNode = true;\n continue;\n }\n // below logic should be to add the current node to the criteria if we haven't found the specified node\n // and the logic qualifier is 'route nodes before specified'... or we have found the specified node and\n // the logic qualifier is 'route nodes after specified'\n if ( (!foundSpecifiedNode && RouteNodeLookupLogic.BEFORE == docRouteLevelLogic) ||\n (foundSpecifiedNode && RouteNodeLookupLogic.AFTER == docRouteLevelLogic) ) {\n if (routeNodeInCriteria.length() > 0) {\n routeNodeInCriteria.append(\", \");\n }\n routeNodeInCriteria.append(\"'\" + routeNode.getRouteNodeName() + \"'\");\n }\n }\n if (routeNodeInCriteria.length() > 0) {\n routeNodeCriteria.append(routeNodeInCriteria);\n } else {\n routeNodeCriteria.append(\"''\");\n }\n routeNodeCriteria.append(\") \");\n }\n returnSql = whereClausePredicatePrefix + \"DOC_HDR.DOC_HDR_ID = \" + ROUTE_NODE_INST_TABLE + \".DOC_HDR_ID and \" + ROUTE_NODE_INST_TABLE + \".RTE_NODE_ID = \" + ROUTE_NODE_TABLE + \".RTE_NODE_ID and \" + ROUTE_NODE_INST_TABLE + \".ACTV_IND = 1 \" + routeNodeCriteria.toString() + \" \";\n }\n return returnSql;\n }", "public ListOperatorHub limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }" ]
[ "0.60069054", "0.59679097", "0.5574842", "0.54273003", "0.53797144", "0.5194217", "0.51785415", "0.5174064", "0.5174064", "0.517093", "0.5170385", "0.51392263", "0.5116084", "0.5109831", "0.50612307", "0.50524694", "0.5012888", "0.49903315", "0.49683985", "0.4961381", "0.49067423", "0.4904894", "0.48896083", "0.48896083", "0.48663083", "0.483168", "0.48128864", "0.48092198", "0.47955683", "0.47639778", "0.47437653", "0.4723807", "0.46958002", "0.4655853", "0.46436557", "0.46387282", "0.46375167", "0.46333367", "0.46333367", "0.4601899", "0.45979026", "0.45839867", "0.45707417", "0.45636103", "0.4563323", "0.4563134", "0.45609668", "0.45599648", "0.4557779", "0.45542598", "0.45540816", "0.45506203", "0.4531403", "0.45310795", "0.45258215", "0.4515463", "0.45154443", "0.4513584", "0.4513584", "0.4510797", "0.45018175", "0.44992647", "0.4490899", "0.44825548", "0.44785658", "0.4477324", "0.4472163", "0.44587836", "0.44579214", "0.44572625", "0.44568545", "0.44557357", "0.44389907", "0.44366682", "0.4435343", "0.44337437", "0.4433245", "0.4433245", "0.44284698", "0.44197682", "0.441599", "0.4415104", "0.44096553", "0.44041604", "0.43937007", "0.43891725", "0.43828055", "0.43766478", "0.43700463", "0.43688726", "0.43673685", "0.43637693", "0.43548784", "0.43429542", "0.4340759", "0.4338348", "0.43370605", "0.43310547", "0.43237445", "0.43150607" ]
0.69344276
0
nodeToken > nodeToken1 > nodeList > ( OrderCondition() )+
@Override public R visit(OrderClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); n.nodeList.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validOrderResult() {\n TreeNode currentTreeNode = treeLeaf;\n TreeNode orderTreeNode = null;\n while (!(currentTreeNode instanceof SourceTreeNode)) {\n if (currentTreeNode instanceof OrderGlobalTreeNode) {\n orderTreeNode = currentTreeNode;\n break;\n } else {\n currentTreeNode = UnaryTreeNode.class.cast(currentTreeNode).getInputNode();\n }\n }\n if (null != orderTreeNode) {\n OrderGlobalTreeNode orderGlobalTreeNode = OrderGlobalTreeNode.class.cast(orderTreeNode);\n TreeNode aggTreeNode = orderTreeNode.getOutputNode();\n while (aggTreeNode != null && aggTreeNode.getNodeType() != NodeType.AGGREGATE) {\n aggTreeNode = aggTreeNode.getOutputNode();\n }\n if (null != aggTreeNode) {\n if (aggTreeNode instanceof FoldTreeNode) {\n TreeNode inputTreeNode = UnaryTreeNode.class.cast(aggTreeNode).getInputNode();\n if (inputTreeNode == orderTreeNode) {\n return;\n }\n UnaryTreeNode inputUnaryTreeNode = UnaryTreeNode.class.cast(inputTreeNode);\n if (inputUnaryTreeNode.getInputNode() == orderTreeNode &&\n (inputUnaryTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(inputUnaryTreeNode).getDirection() != Direction.BOTH)) {\n return;\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(inputUnaryTreeNode, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n OrderGlobalTreeNode addOrderTreeNode = new OrderGlobalTreeNode(inputUnaryTreeNode, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n UnaryTreeNode.class.cast(aggTreeNode).setInputNode(addOrderTreeNode);\n }\n } else {\n if (treeLeaf instanceof OrderGlobalTreeNode) {\n return;\n }\n TreeNode currTreeNode = orderTreeNode.getOutputNode();\n boolean hasSimpleShuffle = false;\n while (currTreeNode != null) {\n if (currTreeNode.getNodeType() == NodeType.FLATMAP\n || (currTreeNode instanceof PropertyNode &&\n !(UnaryTreeNode.class.cast(currTreeNode).getInputNode().getOutputValueType() instanceof EdgeValueType))) {\n hasSimpleShuffle = true;\n break;\n }\n currTreeNode = currTreeNode.getOutputNode();\n }\n if (!hasSimpleShuffle) {\n return;\n }\n\n UnaryTreeNode outputTreeNode = UnaryTreeNode.class.cast(treeLeaf);\n if (outputTreeNode.getInputNode() == orderTreeNode) {\n if (outputTreeNode instanceof EdgeVertexTreeNode &&\n EdgeVertexTreeNode.class.cast(outputTreeNode).getDirection() != Direction.BOTH) {\n return;\n }\n if (orderTreeNode.getOutputValueType() instanceof EdgeValueType && outputTreeNode instanceof PropertyNode) {\n return;\n }\n }\n String orderLabel = orderGlobalTreeNode.enableOrderFlag(labelManager);\n SelectOneTreeNode selectOneTreeNode = new SelectOneTreeNode(new SourceDelegateNode(treeLeaf, schema), orderLabel, Pop.last, Lists.newArrayList(), schema);\n selectOneTreeNode.setConstantValueType(new ValueValueType(Message.VariantType.VT_INTEGER));\n treeLeaf = new OrderGlobalTreeNode(treeLeaf, schema,\n Lists.newArrayList(Pair.of(selectOneTreeNode, Order.incr)));\n }\n }\n }", "@Override\n public R visit(OrderCondition n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public OrderByNode() {\n super();\n }", "public void inorderTraversal() \n { \n inorderTraversal(header.rightChild); \n }", "@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 }", "@Override\n public void visit(final OpOrder opOrder) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpOrder\");\n }\n addOp(new OpOrder(rewriteOp1(opOrder), opOrder.getConditions()));\n }", "public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }", "void printpopulateInorderSucc(Node t){\n\t\n\n}", "public void inOrder(Node myNode){\n \n if (myNode != null){ //If my node is not null, excute the following\n \n inOrder(myNode.left); //Recurse with left nodes\n System.out.println(myNode.name); //Print node name \n inOrder(myNode.right); //Recurse with right nodes\n \n }\n }", "private void inOrder(BSTNode node) {\r\n \r\n // if the node is NOT null, execute the if statement\r\n if (node != null) {\r\n \r\n // go to the left node\r\n inOrder(node.getLeft());\r\n \r\n // visit the node (increment the less than or equal counter)\r\n node.incrementLessThan();\r\n \r\n // go to the right node\r\n inOrder(node.getRight());\r\n }\r\n }", "public List<PlanNode> findAllAtOrBelow( Traversal order ) {\n assert order != null;\n LinkedList<PlanNode> results = new LinkedList<PlanNode>();\n LinkedList<PlanNode> queue = new LinkedList<PlanNode>();\n queue.add(this);\n while (!queue.isEmpty()) {\n PlanNode aNode = queue.poll();\n switch (order) {\n case LEVEL_ORDER:\n results.add(aNode);\n queue.addAll(aNode.getChildren());\n break;\n case PRE_ORDER:\n results.add(aNode);\n queue.addAll(0, aNode.getChildren());\n break;\n case POST_ORDER:\n queue.addAll(0, aNode.getChildren());\n results.addFirst(aNode);\n break;\n }\n }\n return results;\n }", "void orderNodes(Comparator<N> comparator);", "private void inOrder(Node root) {\r\n\t\t// inOrderCount++;\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// System.out.println(\" Count: \" + inOrderCount);\r\n\t\tinOrder(root.getlChild());\r\n\t\tif (inOrderCount < 20) {\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\tinOrderCount++;\r\n\t\t\t//System.out.println(\" Count: \" + inOrderCount);\r\n\t\t}\r\n\t\tinOrder(root.getrChild());\r\n\r\n\t}", "@Test public void posAsLastPredicate() {\n // return first\n query(\"//ul/li[''][1]\", \"\");\n query(\"//ul/li['x'][1]\", LI1);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][1]\", LI1);\n\n query(\"//ul/li[0][1]\", \"\");\n query(\"//ul/li[1][1]\", LI1);\n query(\"//ul/li[3][1]\", \"\");\n query(\"//ul/li[last()][1]\", LI2);\n\n // return second\n query(\"//ul/li[''][2]\", \"\");\n query(\"//ul/li['x'][2]\", LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][2]\", LI2);\n\n query(\"//ul/li[0][2]\", \"\");\n query(\"//ul/li[1][2]\", \"\");\n query(\"//ul/li[3][2]\", \"\");\n query(\"//ul/li[last()][2]\", \"\");\n\n // return last\n query(\"//ul/li[''][last()]\", \"\");\n query(\"//ul/li['x'][last()]\", LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][last()]\", LI2);\n\n query(\"//ul/li[0][last()]\", \"\");\n query(\"//ul/li[1][last()]\", LI1);\n query(\"//ul/li[3][last()]\", \"\");\n query(\"//ul/li[last()][last()]\", LI2);\n\n // multiple positions\n query(\"//ul/li[''][position() = 1 to 2]\", \"\");\n query(\"//ul/li['x'][position() = 1 to 2]\", LI1 + '\\n' + LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\"\n + \"[position() = 1 to 2]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[0][position() = 1 to 2]\", \"\");\n query(\"//ul/li[1][position() = 1 to 2]\", LI1);\n query(\"//ul/li[2][position() = 1 to 2]\", LI2);\n query(\"//ul/li[3][position() = 1 to 2]\", \"\");\n query(\"//ul/li[last()][position() = 1 to 2]\", 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['x'][$i]\", LI1 + '\\n' + LI2);\n query(\"for $i in 1 to 2 return //ul/li\"\n + \"[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][$i]\", LI1 + '\\n' + LI2);\n\n query(\"for $i in 1 to 2 return //ul/li[0][$i]\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[1][$i]\", LI1);\n query(\"for $i in 1 to 2 return //ul/li[2][$i]\", LI2);\n query(\"for $i in 1 to 2 return //ul/li[3][$i]\", \"\");\n query(\"for $i in 1 to 2 return //ul/li[last()][$i]\", 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['x'][$i]\", LI1 + '\\n' + LI1 + '\\n' + LI2);\n query(\"for $i in (1, 'a') return //ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>][$i]\",\n LI1 + '\\n' + LI1 + '\\n' + LI2);\n\n query(\"for $i in (1, 'a') return //ul/li[0][$i]\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[1][$i]\", LI1 + '\\n' + LI1);\n query(\"for $i in (1, 'a') return //ul/li[2][$i]\", LI2 + '\\n' + LI2);\n query(\"for $i in (1, 'a') return //ul/li[3][$i]\", \"\");\n query(\"for $i in (1, 'a') return //ul/li[last()][$i]\", LI2 + '\\n' + LI2);\n }", "boolean isOrdered();", "boolean isOrdered();", "void findSearchOrder() {\n boolean filled = false;\n for(int node: queryGraphNodes.keySet()) {\n\n vertexClass vc = queryGraphNodes.get(node);\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n filled = calcOrdering(edge);\n if (filled)\n break;\n }\n if(searchOrderSeq.size() == queryGraphNodes.size())\n break;\n\n }\n\n }", "private int order(TNode node, VariableLocator vl) {\n if (node == null) return 0;\n try {\n Object o = vl.getVariableValue(node.getName()+\".order\");\n if (!(o instanceof Float)) return 0;\n return ((Float)o).intValue();\n } catch (ParserException e) {\n return 0;\n }\n }", "@Test\n \tpublic void whereClauseForNodeDirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 1));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -1)\n \t\t);\n \t}", "boolean isIsOrdered();", "@Override\n\tpublic Tuple next(){\n\t\t//Delete the lines below and add your code here\n\t\tTuple temp;\n\t\tTuple t = child.next();\n\t\tint s = -1;\n\t\tString s1;\n\t\tString s2;\n\t\tif(sorted==false){\n\t\t\tif(t!=null){\n\t\t\t\tfor(s=0; s<t.attributeList.size(); s++){\n\t\t\t\t\tif(t.attributeList.get(s).attributeName.equals(orderPredicate)){\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\twhile(t!=null){\n\t\t\t\ttuplesResult.add(t);\n\t\t\t\tt = child.next();\n\t\t\t}\n\t\t\tfor(int i=0; i<tuplesResult.size(); i++){\n\t\t\t\ts1 = tuplesResult.get(i).attributeList.get(s).attributeValue.toString();\n\t\t\t\tfor(int j=i+1; j<tuplesResult.size(); j++){\n\t\t\t\t\ts2 = tuplesResult.get(j).attributeList.get(s).attributeValue.toString();\n\t\t\t\t\tif(s1.compareTo(s2) > 0){\n\t\t\t\t\t\ttemp=tuplesResult.get(i);\n\t\t\t\t\t\ttuplesResult.set(i, tuplesResult.get(j));\n\t\t\t\t\t\ttuplesResult.set(j, temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsorted=true;\n\t\t}\n\t\tif(tuplesResult.size()>0){\n\t\t\treturn tuplesResult.remove(0);\n\t\t}\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "public Boolean getOrdered() { \n\t\treturn getOrderedElement().getValue();\n\t}", "@Test\r\n void test_check_order_properly_increased_and_decreased() {\r\n graph.addVertex(\"A\");\r\n graph.addVertex(\"C\");\r\n graph.addVertex(\"D\");\r\n graph.addVertex(\"C\");\r\n if(graph.order() != 3) {\r\n fail();\r\n } \r\n graph.removeVertex(\"A\");\r\n graph.removeVertex(\"B\");\r\n graph.removeVertex(\"C\");\r\n if(graph.order() != 1) {\r\n fail();\r\n }\r\n \r\n }", "public void visit(ConditionElement1 conditionElement1) {\n\t\t\n\t\t// if a != 0, jmp true1\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc+Code.ne);\n\t\tCode.put2(11);\n\t\t\n\t\t// if b != 0, jmp true2\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.ne);\n\t\tCode.put2(8);\n\t\t\n\t\t// false: put 0,jmp next \n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jmp);\n\t\tCode.put2(5);\n\t\t\n\t\t// true1\n\t\tCode.put(Code.pop);\n\t\t\n\t\t// true2\n\t\tCode.loadConst(1);\n\t\t\n\t\t// next\n\t}", "@Test\n \tpublic void whereClauseForNodeIndirectPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"<\", \"_node23.right_token\", \"_node42.left_token\")\n \t\t);\n \t}", "public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }", "public static int compareOrder(SiblingCountingNode first, SiblingCountingNode second) {\n NodeInfo ow = second;\n \n // are they the same node?\n if (first.isSameNodeInfo(second)) {\n return 0;\n }\n \n NodeInfo firstParent = first.getParent();\n if (firstParent == null) {\n // first node is the root\n return -1;\n }\n \n NodeInfo secondParent = second.getParent();\n if (secondParent == null) {\n // second node is the root\n return +1;\n }\n \n // do they have the same parent (common case)?\n if (firstParent.isSameNodeInfo(secondParent)) {\n int cat1 = nodeCategories[first.getNodeKind()];\n int cat2 = nodeCategories[second.getNodeKind()];\n if (cat1 == cat2) {\n return first.getSiblingPosition() - second.getSiblingPosition();\n } else {\n return cat1 - cat2;\n }\n }\n \n // find the depths of both nodes in the tree\n int depth1 = 0;\n int depth2 = 0;\n NodeInfo p1 = first;\n NodeInfo p2 = second;\n while (p1 != null) {\n depth1++;\n p1 = p1.getParent();\n }\n while (p2 != null) {\n depth2++;\n p2 = p2.getParent();\n }\n // move up one branch of the tree so we have two nodes on the same level\n \n p1 = first;\n while (depth1 > depth2) {\n p1 = p1.getParent();\n if (p1.isSameNodeInfo(second)) {\n return +1;\n }\n depth1--;\n }\n \n p2 = ow;\n while (depth2 > depth1) {\n p2 = p2.getParent();\n if (p2.isSameNodeInfo(first)) {\n return -1;\n }\n depth2--;\n }\n \n // now move up both branches in sync until we find a common parent\n while (true) {\n NodeInfo par1 = p1.getParent();\n NodeInfo par2 = p2.getParent();\n if (par1 == null || par2 == null) {\n throw new NullPointerException(\"DOM/JDOM tree compare - internal error\");\n }\n if (par1.isSameNodeInfo(par2)) {\n return ((SiblingCountingNode)p1).getSiblingPosition() -\n ((SiblingCountingNode)p2).getSiblingPosition();\n }\n p1 = par1;\n p2 = par2;\n }\n }", "@Test\n void test04_checkOrder() {\n graph.addVertex(\"a\");\n graph.addVertex(\"b\");\n graph.addVertex(\"c\");\n graph.addVertex(\"d\");\n graph.addVertex(\"e\");\n graph.addVertex(\"f\"); // added 6 items\n if (graph.order() != 6) {\n fail(\"graph has counted incorrect number of vertices\");\n }\n }", "public abstract List<TreeNode> orderNodes(List<? extends TreeNode> nodes);", "int order();", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public void Inorder(Node p, List<Node> order_pointer){\n if(p == null){\n return;\n }\n Inorder(p.left, order_pointer);\n order_pointer.add(p);\n Inorder(p.right, order_pointer);\n }", "private void evaluateOrderRanks() {\n\t\t// First ensure that the order rank is respected if was provided\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\tArrayList<HLCondition> rankedConditions = new ArrayList<HLCondition>();\n\t\t\t// check order rank for each condition\n\t\t\tfor (HLCondition cond : choice.getConditions()) {\n\t\t\t\tif (cond.getExpression().getOrderRank() != -1) {\n\t\t\t\t\trankedConditions.add(cond);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (rankedConditions.size() > 1) {\n\t\t\t\tHashMap<HLDataExpression, HLCondition> exprCondMapping = new HashMap<HLDataExpression, HLCondition>();\n\t\t\t\tfor (HLCondition mappedCond : rankedConditions) {\n\t\t\t\t\texprCondMapping.put(mappedCond.getExpression(), mappedCond);\n\t\t\t\t}\n\t\t\t\tArrayList<HLDataExpression> exprList = new ArrayList<HLDataExpression>(exprCondMapping.keySet());\n\t\t\t\tObject[] sortedRanks = exprList.toArray();\n\t\t\t\tArrays.sort(sortedRanks);\n\t\t\t\tfor (int i=0; i<sortedRanks.length; i++) {\n\t\t\t\t\tArrayList<HLDataExpression> lowerRankExpressions = new ArrayList<HLDataExpression>();\n\t\t\t\t\tfor (int j=0; j<sortedRanks.length; j++) {\n\t\t\t\t\t\tif (j<i) {\n\t\t\t\t\t\t\tlowerRankExpressions.add((HLDataExpression) sortedRanks[j]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (lowerRankExpressions.size() > 0) {\n\t\t\t\t\t\t// connect lower rank conditions with OR and negate\n\t\t\t\t\t\tHLExpressionElement orConnected = HLExpressionManager.connectExpressionsWithOr(lowerRankExpressions);\n\t\t\t\t\t\tHLExpressionElement negatedOr = HLExpressionManager.negateExpression(new HLDataExpression(orConnected));\n\t\t\t\t\t\t// add own expression in front and connect with AND\n\t\t\t\t\t\tHLAndOperator andOp = new HLAndOperator();\t\t\n\t\t\t\t\t\tandOp.addSubExpression(((HLDataExpression) sortedRanks[i]).getRootExpressionElement().getExpressionNode());\n\t\t\t\t\t\tandOp.addSubExpression(negatedOr.getExpressionNode());\n\t\t\t\t\t\t// assign the expanded expression to the original condition\n\t\t\t\t\t\tHLCondition condition = exprCondMapping.get(sortedRanks[i]);\n\t\t\t\t\t\tcondition.setExpression(new HLDataExpression(andOp, ((HLDataExpression) sortedRanks[i]).getOrderRank()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Now, generate data expressions for \"default\" (i.e., \"else\") branch \n\t\tHLCondition defaultCond = null;\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\tArrayList<HLCondition> nonDefaultConditions = new ArrayList<HLCondition>(choice.getConditions());\n\t\t\tfor (HLCondition cond : choice.getConditions()) {\n\t\t\t\tif (cond.getExpression().getRootExpressionElement() == null && \n\t\t\t\t\t\tcond.getExpression().getExpressionString().equals(\"default\")) {\n\t\t\t\t\tnonDefaultConditions.remove(cond);\n\t\t\t\t\tdefaultCond = cond;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (defaultCond != null) {\n\t\t\t\tHLExpressionElement orConnected = HLExpressionManager.connectConditionsWithOr(nonDefaultConditions);\n\t\t\t\tHLExpressionElement negatedOr = HLExpressionManager.negateExpression(new HLDataExpression(orConnected));\n\t\t\t\tdefaultCond.setExpression(new HLDataExpression(negatedOr));\n\t\t\t}\n\t\t}\n\t}", "@objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();", "private void addOrderByItem(Object theNode) {\n getOrderByItems().add(theNode);\n }", "public void treeOrder ()\n {\n treeOrder (root, 0);\n }", "public final AstValidator.order_clause_return order_clause() throws RecognitionException {\n AstValidator.order_clause_return retval = new AstValidator.order_clause_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree ORDER304=null;\n AstValidator.rel_return rel305 =null;\n\n AstValidator.order_by_clause_return order_by_clause306 =null;\n\n AstValidator.func_clause_return func_clause307 =null;\n\n\n CommonTree ORDER304_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:14: ( ^( ORDER rel order_by_clause ( func_clause )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:16: ^( ORDER rel order_by_clause ( func_clause )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n ORDER304=(CommonTree)match(input,ORDER,FOLLOW_ORDER_in_order_clause2561); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n ORDER304_tree = (CommonTree)adaptor.dupNode(ORDER304);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(ORDER304_tree, root_1);\n }\n\n\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_rel_in_order_clause2563);\n rel305=rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, rel305.getTree());\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_order_by_clause_in_order_clause2565);\n order_by_clause306=order_by_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, order_by_clause306.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:45: ( func_clause )?\n int alt82=2;\n int LA82_0 = input.LA(1);\n\n if ( (LA82_0==FUNC||LA82_0==FUNC_REF) ) {\n alt82=1;\n }\n switch (alt82) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:487:45: func_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_func_clause_in_order_clause2567);\n func_clause307=func_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, func_clause307.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "public void inOrder(){\n inOrder(root);\n }", "public void inorder(Node source) {\n inorderRec(source);\n }", "void inOrder(TreeNode node) \n { \n if (node == null) \n return; \n \n inOrder(node.left); \n System.out.print(node.val + \" \"); \n \n inOrder(node.right); \n }", "private static void commonNodesInOrdSuc(Node r1, Node r2)\n {\n Node n1 = r1, n2 = r2;\n \n if(n1==null || n2==null)\n return;\n \n while(n1.left != null)\n n1 = n1.left;\n \n while(n2.left!= null)\n n2 = n2.left;\n \n while(n1!=null && n2!=null)\n {\n if(n1.data < n2.data)\n n1 = inOrdSuc(n1);\n \n else if(n1.data > n2.data)\n n2 = inOrdSuc(n2);\n \n else\n {\n System.out.print(n1.data+\" \"); n1 = inOrdSuc(n1); n2 = inOrdSuc(n2);\n }\n }\n \n System.out.println();\n }", "boolean calcOrdering(int node) {\n boolean isFull = false;\n if(searchOrderSeq.size() == queryGraphNodes.size())\n return true;\n if(!searchOrderSeq.contains(node)) {\n searchOrderSeq.add(node);\n for(int edge: queryGraphNodes.get(node).edges.keySet()) {\n isFull =calcOrdering(edge);\n }\n }\n\n return isFull;\n }", "boolean isOrderCertain();", "@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}", "public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }", "@Test\n public void generate_correctOrderOfPrecedenceWithoutParentheses() throws Exception {\n ConditionGenerator conditionGenerator = initGenerator(PREFIX_TAG_TOKEN, STRING_ONE_TOKEN, OR_TOKEN,\n PREFIX_TAG_TOKEN, STRING_TWO_TOKEN, AND_TOKEN, PREFIX_TAG_TOKEN, STRING_THREE_TOKEN, EOF_TOKEN);\n Predicate<Coin> condition = conditionGenerator.generate();\n\n assertFalse(condition.test(COIN_0));\n assertFalse(condition.test(COIN_1));\n assertFalse(condition.test(COIN_2));\n assertTrue(condition.test(COIN_3));\n assertFalse(condition.test(COIN_4));\n assertTrue(condition.test(COIN_5));\n assertFalse(condition.test(COIN_6));\n assertTrue(condition.test(COIN_7));\n }", "public int getOrder();", "void inOrderTraversal(Node node){\r\n\t\tif( node == null ) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tinOrderTraversal( node.left );\r\n\t\tSystem.out.print( node.value + \" \");\r\n\t\tinOrderTraversal( node.right );\r\n\t}", "private void inOrder(Node<T> node){\n if(node != null){\n inOrder(node.left);\n System.out.print(node.data + \" ,\");\n inOrder(node.right);\n }\n }", "boolean ordered() {\n\t\treturn (this.left == null || (this.value > this.left.max().value && this.left.ordered()))\n\t\t\t\t&& (this.right == null || (this.value < this.right.min().value && this.right.ordered()));\n\t}", "private static Order.OrderType nextNodeAsOrderType(Iterator<JsonNode> iterator) {\n if (iterator == null || !iterator.hasNext()) {\n return null;\n }\n return KrakenAdapters.adaptOrderType(KrakenType.fromString(iterator.next().textValue()));\n }", "void preOrderOperation(PortfolioNode parentNode, Position position);", "public Object order(Object[] subs, int direction) {\n\t\tObject subscript = \"\";\n\n\t\tif (subs.length == 1 && \"\".equals(subs[0])) {\n\t\t\tsubscript = this.hasSubnodes() ? this.getSubnode().getSubscript() : \"\";\n\t\t} else {\n\n\t\t\tObject lastSubscript = subs[subs.length - 1];\n\n\t\t\tfinal boolean isEmptyLastSubs = lastSubscript == null || lastSubscript.toString().length() == 0;\n\n\t\t\tfinal boolean isFoward = direction > 0;\n\t\t\t// Condition to return to first element on list of subnodes.\n\t\t\tif (isEmptyLastSubs) {\n\t\t\t\tsubs = Arrays.copyOf(subs, subs.length - 1);\n\t\t\t}\n\n\t\t\tNode node = findNode(subs);\n\n\t\t\tboolean nullNodeAdded = false;\n\t\t\tif (node == null) {\n\t\t\t\tnode = setting(subs, null);\n\t\t\t\tnullNodeAdded = true;\n\t\t\t}\n\n\t\t\tif (isEmptyLastSubs && isFoward && node != null) {\n\t\t\t\tsubscript = node.hasSubnodes() ? node.getSubnode().getSubscript() : \"\";\n\t\t\t} else if (isEmptyLastSubs && !isFoward && node != null) {\n\t\t\t\tsubscript = node.hasSubnodes() ? findLastNode(node.getSubnode()).getSubscript() : \"\";\n\t\t\t} else if (isFoward && node != null) {\n\t\t\t\tsubscript = node.hasNext() ? node.getNext().getSubscript() : \"\";\n\t\t\t} else if (node != null) {\n\t\t\t\tsubscript = node.hasPrevious() ? node.getPrevious().getSubscript() : \"\";\n\t\t\t}\n\n\t\t\tif (nullNodeAdded) {\n\t\t\t\tkill(node);\n\t\t\t}\n\t\t}\n\t\t// Caso seja $order nas variáveis do processo, desconsidera variáveis\n\t\t// especiais ($ZTrap,$Zerror,etc..)\n\t\tif (subs.length == 1) {\n\t\t\tObject[] newSubs = new Object[] { subscript };\n\t\t\tif (subscript.toString().startsWith(\"$\")) {\n\t\t\t\treturn order(newSubs, direction);\n\t\t\t}\n\t\t\tNode newNode = findNode(newSubs);\n\t\t\tif ((newNode != null) && (!newNode.hasSubnodes() && (newNode.getValue() == null))) {\n\t\t\t\treturn order(newSubs, direction);\n\t\t\t}\n\t\t}\n\t\treturn subscript;\n\t}", "@Override\n\tpublic void visit(AllComparisonExpression arg0) {\n\t\t\n\t}", "@Test\n \tpublic void whereClauseForNodeExactPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\tjoin(\"=\", \"_node23.right_token\", \"_node42.left_token\", -10));\n \t}", "@Override\n\tpublic void visit(AllComparisonExpression arg0) {\n\n\t}", "public void visit(OrderBy obj) {\n for (int i = 0; i < obj.getVariableCount(); i++) {\n SingleElementSymbol element = obj.getVariable(i);\n String name = visitor.namingContext.getElementName(element, false);\n if (name != null) {\n \t boolean needsAlias = true;\n \t \n \t Expression expr = SymbolMap.getExpression(element);\n \t \n \t if (!(expr instanceof SingleElementSymbol)) {\n \t expr = new ExpressionSymbol(element.getShortName(), expr);\n \t } else if (expr instanceof ElementSymbol) {\n \t needsAlias = needsAlias(name, (ElementSymbol)expr);\n \t } \n \t \n \t if (needsAlias) {\n \t element = new AliasSymbol(element.getShortName(), (SingleElementSymbol)expr);\n \t obj.getOrderByItems().get(i).setSymbol(element);\n \t }\n \t element.setOutputName(name);\n }\n \n visitNode(element);\n \n if (name != null && element instanceof ElementSymbol) {\n \t\telement.setOutputName(SingleElementSymbol.getShortName(element.getOutputName()));\n \t}\n }\n }", "@Override\r\n\tpublic List<Node<T>> getInOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\tlista = auxiliarRecorridoIn(raiz, lista, raiz);\r\n\t\treturn lista;\r\n\t}", "public void inOrder(MyBinNode<Type> r){\n if(r != null){\n this.inOrder(r.left);\n System.out.print(r.value.toString() + \" \");\n this.inOrder(r.right);\n }\n }", "@org.junit.Test\n public void constrCompelemNodeid3() {\n final XQuery query = new XQuery(\n \"for $x in <!--comment-->, $y in element elem {$x} return exactly-one($y/comment()) is $x\",\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 assertBoolean(false)\n );\n }", "@org.junit.Test\n public void constrCompelemNodeid2() {\n final XQuery query = new XQuery(\n \"for $x in <a b=\\\"b\\\"/>, $y in element elem {$x/@b} return $y/@b is $x/@b\",\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 assertBoolean(false)\n );\n }", "@Test\n \tpublic void whereClauseForNodeIsToken() {\n \t\tnode23.setToken(true);\n \t\tcheckWhereCondition(\"_node23.is_token IS TRUE\");\n \t}", "private static void linkComparisons() {\n\t\tif (state.currentConditionNode == null || state.currentRVIndex == -1) return;\n\t\t\n\t\tlinkComparisonNode(state.currentConditionNode.root);\n\t\tif (state.whereCondition != null)\n\t\t\tlinkComparisonNode(state.whereCondition);\n\t}", "void preOrderOperation(PortfolioNode portfolioNode);", "public Integer getOrder();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}", "@org.junit.Test\n public void constrCompelemNodeid1() {\n final XQuery query = new XQuery(\n \"for $x in <a/>, $y in element elem {$x} return exactly-one($y/a) is $x\",\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 assertBoolean(false)\n );\n }", "public ExpressionNode getCondition();", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(2836);\n JavaParser javaParser0 = new JavaParser(\"ConditionalAndExpression\");\n SimpleNode simpleNode1 = new SimpleNode(javaParser0, 2836);\n simpleNode0.jjtSetParent(simpleNode1);\n Node node0 = simpleNode0.jjtGetParent();\n simpleNode1.jjtSetParent(node0);\n assertSame(node0, simpleNode1);\n }", "@Override\r\n\tpublic List<Order> getOrder(ParamCondition paramCondition) {\n\t\tList<Order> orders = new ArrayList<Order>();\r\n\t\treturn orders;\r\n\t}", "@Override\r\n\tpublic List<Order> getOrder(ParamCondition paramCondition) {\n\t\tList<Order> orders = new ArrayList<Order>();\r\n\t\treturn orders;\r\n\t}", "default int getOrder() {\n\treturn 0;\n }", "@Test\n \tpublic void whereClauseForNodeRangedPrecedence() {\n \t\tnode23.addJoin(new Precedence(node42, 10, 20));\n \t\tcheckWhereCondition(\n \t\t\t\tjoin(\"=\", \"_node23.text_ref\", \"_node42.text_ref\"),\n \t\t\t\t\"_node23.right_token BETWEEN SYMMETRIC _node42.left_token - 10 AND _node42.left_token - 20\"\n \t\t);\n \t}", "private Node insert(Order ord2) {\n\t\treturn null;\n\t}", "private static boolean OrderByClause_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"OrderByClause_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = OrderByClause_0_0(b, l + 1);\n if (!r) r = OrderByClause_0_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Test public void onePredicate() {\n query(\"//ul/li['']\", \"\");\n query(\"//ul/li['x']\", LI1 + '\\n' + LI2);\n query(\"//ul/li[<a b='{\" + _RANDOM_INTEGER.args() + \" }'/>]\", LI1 + '\\n' + LI2);\n\n query(\"//ul/li[0]\", \"\");\n query(\"//ul/li[1]\", LI1);\n query(\"//ul/li[2]\", LI2);\n query(\"//ul/li[3]\", \"\");\n query(\"//ul/li[last()]\", LI2);\n }", "@Override\r\n\tpublic int getOrder() {\n\t\treturn 0;\r\n\t}", "private static boolean processSiblings(OMElement omElement) {\n OMNode nextSibling = omElement.getNextOMSibling();\n if (nextSibling != null) {\n if (nextSibling instanceof OMElement) {\n return true;\n } else if (nextSibling instanceof OMText) {\n if (getNextOMElement((OMText) nextSibling) != null) {\n return true;\n } else {\n return false;\n }\n }\n }\n return false;\n }", "int getPriorityOrder();", "private <E> void inOrder(Node root, Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\tinOrder(root.left,action);\n\t\t//System.out.println(root.value);\n\t\taction.execute(root.value);\n\t\t\n\t\tinOrder(root.right,action);\n\t\t\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "public static void removeNotRequiredSiblings(GroupConditions gc){\r\n\t\tif(gc == null){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tgc.getChildren().forEach(sn->{\r\n\t\t\tif(sn instanceof GroupConditions){\r\n\t\t\t\tGroupConditions child = GroupConditions.class.cast(sn);\r\n\t\t\t\tremoveNotRequiredSiblings(child);\r\n\t\t\t}\r\n\t\t\tif(sn instanceof FilterCondition){\r\n\t\t\t\tFilterCondition fc = FilterCondition.class.cast(sn);\r\n\t\t\t\tSelectExpression se = fc.findFirstByType(SelectExpression.class);\r\n\t\t\t\tif(se != null){\r\n\t\t\t\t\tremoveNotRequiredSiblings(se.findFirstByType(Where.class));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tgc.getChildren().removeIf(sn->sn instanceof GroupConditions && sn.getChildren().isEmpty());\r\n\t\t\r\n\t\tint size = gc.getChildren().size();\r\n\t\tint endIdx = size-1;\r\n\t\tList<int[]> found = childrenOperatorIndex(gc);\r\n\t\t// start with Operator, or end with, or within middle but there are multiple\r\n\t\tList<int[]> match = found.stream().filter(i-> i[0] == 0 || i[1] == endIdx || i[1] - i[0] > 0).collect(Collectors.toList());\r\n\t\tSet<Integer> set = new LinkedHashSet<>();\r\n\t\tmatch.forEach(i->{\r\n\t\t\tint start = i[0];\r\n\t\t\tint end = i[1];\r\n\t\t\tif(i[0] == 0 || i[1] == endIdx){\r\n\t\t\t\tfor(; start <= end; start++){\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tfor(; start < end; start++){// last one not included\r\n\t\t\t\t\tset.add(start);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tList<Integer> idx = new LinkedList<>(set);\r\n\t\tCollections.reverse(idx);\r\n\t\tSystem.out.println(idx);\r\n\t\tidx.forEach(i->{\r\n\t\t\tgc.getChildren().remove(i.intValue());\r\n\t\t});\r\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n @Test\n\tpublic void testNodeProcessing()\n\t{\n\t\tLogicalCompareToConstant<Integer> oper = new LogicalCompareToConstant<Integer>()\n\t\t{\n\t\t};\n\t\tCollectorTestSink eSink = new CollectorTestSink();\n\t\tCollectorTestSink neSink = new CollectorTestSink();\n\t\tCollectorTestSink gtSink = new CollectorTestSink();\n\t\tCollectorTestSink gteSink = new CollectorTestSink();\n\t\tCollectorTestSink ltSink = new CollectorTestSink();\n\t\tCollectorTestSink lteSink = new CollectorTestSink();\n\n\t\toper.equalTo.setSink(eSink);\n\t\toper.notEqualTo.setSink(neSink);\n\t\toper.greaterThan.setSink(gtSink);\n\t\toper.greaterThanOrEqualTo.setSink(gteSink);\n\t\toper.lessThan.setSink(ltSink);\n\t\toper.lessThanOrEqualTo.setSink(lteSink);\n\t\toper.setConstant(2);\n\n\t\toper.beginWindow(0); //\n\t\toper.input.process(1);\n\t\toper.input.process(2);\n\t\toper.input.process(3);\n\n\t\toper.endWindow(); //\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 1,\n\t\t\t\teSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", eSink.collectedTuples.get(0).equals(2),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 2,\n\t\t\t\tneSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", neSink.collectedTuples.get(0).equals(1),\n\t\t\t\ttrue);\n\t\tAssert.assertEquals(\"tuples were\", neSink.collectedTuples.get(1).equals(3),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 1,\n\t\t\t\tgtSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", gtSink.collectedTuples.get(0).equals(1),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 2,\n\t\t\t\tgteSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tgteSink.collectedTuples.get(0).equals(1), true);\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tgteSink.collectedTuples.get(1).equals(2), true);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 1,\n\t\t\t\tltSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\", ltSink.collectedTuples.get(0).equals(3),\n\t\t\t\ttrue);\n\n\t\tAssert.assertEquals(\"number emitted tuples\", 2,\n\t\t\t\tlteSink.collectedTuples.size());\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tlteSink.collectedTuples.get(0).equals(2), true);\n\t\tAssert.assertEquals(\"tuples were\",\n\t\t\t\tlteSink.collectedTuples.get(1).equals(3), true);\n\t}", "private List<Node<T>> nodeInOrder (Node<T> curr, List<Node<T>> list) {\n if (curr == null) {\n return list;\n }\n nodeInOrder(curr.left, list);\n list.add(curr);\n nodeInOrder(curr.right, list);\n return list;\n }", "@Override\n\tpublic void visit(AnyComparisonExpression arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(AnyComparisonExpression arg0) {\n\n\t}", "void visitElement_priority(org.w3c.dom.Element element) { // <priority>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <priority name=\"???\">\n list.priorities.add(attr.getValue());\n }\n }\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 }\n }\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public Ordering<Element> enclosedBy(Element element) {\n return (Ordering<Element>) Ordering.explicit(element.getEnclosedElements());\n }", "@Override\n public NodeType ExecuteOperation()\n {\n //if the first child is an operator\n if(this.childNodes[0].isOperator==true)\n {\n BasicOperator basicOperator=(BasicOperator)this.childNodes[0]; \n if(basicOperator.operands==1)\n {\n UnaryOperator unaryOperator=(UnaryOperator)childNodes[0];\n return unaryOperator.PerformOperation(childNodes[1]);\n }\n else if(basicOperator.operands==2)\n {\n BinaryOperator binaryOperator=(BinaryOperator)childNodes[0];\n return binaryOperator.PerformOperation(childNodes[1], childNodes[2]);\n }\n else if(basicOperator.operands==3)\n {\n TernaryOperator ternaryOperator=(TernaryOperator)childNodes[0];\n return ternaryOperator.PerformOperation(childNodes[1], childNodes[2], childNodes[3]);\n }\n }\n //if not an operator\n else\n {\n return this.childNodes[0].ExecuteOperation();\n }\n return null;\n }", "public static Node sortElements\r\n (Node xmlXML, \r\n String strParentElementXPath,\r\n String strSortKeyXPath,\r\n SortDataType dataType,\r\n SortOrder order,\r\n SortCaseOrder caseOrder,\r\n Node xmlResult)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException\r\n \r\n {\r\n DOMResult domResult = xmlResult == null \r\n ? new DOMResult()\r\n : new DOMResult(xmlResult);\r\n return sortElements\r\n (xmlXML, \r\n strParentElementXPath, \r\n strSortKeyXPath, \r\n dataType,\r\n order,\r\n caseOrder,\r\n domResult); \r\n }", "public interface StartTreeNodeComparator\n{\n public boolean compare (StartTreeNode node);\n}", "protected List topologicalSort() {\r\n LinkedList order = new LinkedList();\r\n HashSet knownNodes = new HashSet();\r\n LinkedList nextNodes = new LinkedList();\r\n\r\n for (Iterator i = graph.getNodes().iterator(); i.hasNext(); ) {\r\n BBNNode node = (BBNNode) i.next();\r\n if (node.getChildren().size() == 0) {\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n order.addFirst(node);\r\n }\r\n }\r\n\r\n while (nextNodes.size() > 0) {\r\n BBNNode node = (BBNNode) nextNodes.removeFirst();\r\n if (knownNodes.contains(node)) continue;\r\n\r\n List children = node.getChildren();\r\n if (knownNodes.containsAll(children)) {\r\n order.addFirst(node);\r\n nextNodes.addAll(node.getParents());\r\n knownNodes.add(node);\r\n }\r\n }\r\n return order;\r\n }", "private void parseCondition() {\n Struct type1 = parseExpr().type;\n\n int op;\n if (RELATIONAL_OPERATORS.contains(nextToken.kind)) {\n scan();\n op = token.kind;\n } else {\n error(\"Relational operator expected\");\n op = Token.NONE;\n }\n\n int opcode;\n switch (token.kind) {\n case Token.GTR:\n opcode = Code.OP_JGT;\n break;\n case Token.GEQ:\n opcode = Code.OP_JGE;\n break;\n case Token.LESS:\n opcode = Code.OP_JLT;\n break;\n case Token.LEQ:\n opcode = Code.OP_JLE;\n break;\n case Token.EQL:\n opcode = Code.OP_JEQ;\n break;\n case Token.NEQ:\n opcode = Code.OP_JNE;\n break;\n default:\n opcode = Code.OP_TRAP;\n error(\"Illegal comparison operator\");\n break;\n }\n\n Struct type2 = parseExpr().type;\n\n if (!type1.compatibleWith(type2)) {\n error(\"Incompatible types in comparison\");\n }\n if (type1.isRefType() && type2.isRefType()) {\n if (op != Token.EQL && op != Token.NEQ) {\n error(\"Reference types can only be compared \"\n + \"for equality and inequality\");\n }\n }\n\n code.putFalseJump(opcode, 42); // Will be fixed later\n }", "@org.junit.Test\n public void constrCompelemNodeid4() {\n final XQuery query = new XQuery(\n \"for $x in <?pi content?>, $y in element elem {$x} return exactly-one($y/processing-instruction()) is $x\",\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 assertBoolean(false)\n );\n }", "public static void main(String[] args) {\n\t\tList<List<Integer>> res = new ArrayList<List<Integer>>();\n\t\t\n\t\tList<Integer> list = new ArrayList<>();\n\t\tlist.add(2);\n\t\tlist.add(3);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(4);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(5);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(6);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(7);\n\t\tlist.add(8);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(9);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(10);\n\t\tlist.add(11);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tlist = new ArrayList<>();\n\t\tlist.add(-1);\n\t\tlist.add(-1);\n\t\tres.add(list);\n\t\tSystem.out.println(res);\n\t\tSystem.out.println(Inorder(res));\n\t\tList<Integer> queries = new ArrayList<>();\n\t\tqueries.add(2);\n\t\tqueries.add(4);\n\t\tswapNodes(res, queries);\n\n\t}", "@Test\n public void generate_correctOrderOfPrecedenceWithParentheses() throws Exception {\n ConditionGenerator conditionGenerator = initGenerator(PREFIX_TAG_TOKEN, STRING_ONE_TOKEN, OR_TOKEN,\n LEFT_PAREN_TOKEN, PREFIX_TAG_TOKEN, STRING_TWO_TOKEN, AND_TOKEN, PREFIX_TAG_TOKEN, STRING_THREE_TOKEN,\n RIGHT_PAREN_TOKEN, EOF_TOKEN);\n Predicate<Coin> condition = conditionGenerator.generate();\n\n assertFalse(condition.test(COIN_0));\n assertFalse(condition.test(COIN_1));\n assertFalse(condition.test(COIN_2));\n assertTrue(condition.test(COIN_3));\n assertTrue(condition.test(COIN_4));\n assertTrue(condition.test(COIN_5));\n assertTrue(condition.test(COIN_6));\n assertTrue(condition.test(COIN_7));\n }", "public void inOrderTraverseIterative();", "public Boolean order(LA param1, LA param2) {\n return param1.equals(this.meet(param1, param2));\n }", "@Override\n public int getOrder() {\n return 0;\n }", "public void inOrder() {\r\n\t\tSystem.out.print(\"IN: \");\r\n\t\tinOrder(root);\r\n\t\tSystem.out.println();\r\n\t}" ]
[ "0.62190706", "0.5928565", "0.58873856", "0.5690952", "0.56805843", "0.5462516", "0.5454124", "0.54509807", "0.5440885", "0.5397713", "0.53710705", "0.53683037", "0.5343998", "0.53229415", "0.53162825", "0.53162825", "0.53076863", "0.53029746", "0.53024626", "0.52765983", "0.52750635", "0.5263101", "0.5228245", "0.5220667", "0.5219188", "0.5189548", "0.5183554", "0.51814735", "0.51791596", "0.51755416", "0.51565427", "0.5130543", "0.5126496", "0.5125652", "0.51027894", "0.5072853", "0.506983", "0.50627077", "0.5056286", "0.50529796", "0.50314945", "0.503116", "0.50302386", "0.50196636", "0.5018974", "0.5007453", "0.5007445", "0.4997618", "0.499196", "0.49872997", "0.49857053", "0.4977703", "0.49738967", "0.49677485", "0.49598676", "0.49566033", "0.49304003", "0.49296603", "0.49271494", "0.49166423", "0.49152163", "0.4910003", "0.49009067", "0.49009067", "0.48979416", "0.489433", "0.48814544", "0.48753345", "0.48721465", "0.4867155", "0.4867155", "0.48667088", "0.48643437", "0.48624462", "0.4856716", "0.48562127", "0.48410192", "0.48356846", "0.48339486", "0.48282436", "0.48273763", "0.48247066", "0.48160392", "0.4813926", "0.48138106", "0.4813726", "0.4813703", "0.48105857", "0.4810531", "0.48060682", "0.47998875", "0.479974", "0.47865388", "0.478078", "0.47796008", "0.47782657", "0.47767618", "0.47763595", "0.47762144", "0.47751707" ]
0.6302188
0
nodeChoice > ( ( | ) BrackettedExpression() ) | ( Constraint() | Var() )
@Override public R visit(OrderCondition n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrimaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(DatasetClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "public Snippet visit(ExplodedSpecification n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTParen node, Object data)\n\t{\n\t\treturn singleChildValid(node, data);\n\t}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTCondOr node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" or \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Snippet visit(Type n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "public Snippet visit(Expression n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n\tpublic Object visit(ASTPCGenBracket node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "public interface Constraint extends TOSCAObject<Constraint> {\n\n\tpublic String name();\n\n\tpublic default Constraint.Type type() {\n\t\treturn Type.valueOf(Type.class, name());\n\t}\n\n\t/* this is a one entry map so here we pick the single \n\t */\n\tpublic default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}\n\n\tpublic enum Type {\n\t\tequal,\n\t\tgreater_than,\n\t\tgreater_or_equal,\n\t\tless_than,\n\t\tless_or_equal,\n\t\tin_range,\n\t\tvalid_values,\n\t\tlength,\n\t\tmin_length,\n\t\tmax_length,\n\t\tpattern\n\t}\n}", "@Override\n public R visit(UnaryExpression n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private void addConstraint(String tok) throws SyntaxError {\n assert(tok.startsWith(PREFIX_OP_STR));\n \n if (!tok.endsWith(\")\")) {\n throw new SyntaxError(String.format(\"Wrong format for the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT));\n }\n int pos = tok.indexOf('(');\n if (pos == -1) {\n throw new SyntaxError(String.format(\"Missing '(' in the constraint '%s', expected format: %s\",\n tok, CONSTR_FMT)); \n }\n String op = tok.substring(1, pos);\n ConstraintType type = ConstraintType.CONSTRAINT_PARENT;\n if (op.equalsIgnoreCase(CONSTR_CONTAINS)) {\n type = ConstraintType.CONSTRAINT_CONTAINS;\n } else if (!op.equalsIgnoreCase(CONSTR_PARENT)) {\n throw new SyntaxError(String.format(\"Wrong constraint name '%s' in the element '%s'\", op, tok));\n }\n // Labels cannot contain commas\n String parts[] = tok.substring(pos + 1, tok.length() - 1).split(\",\");\n if (parts.length < 2) {\n throw new SyntaxError(String.format(\n \"There should be at least 2 elements between '(' and ')'\" + \n \" in the constraint '%s', expected format %s\",\n tok, CONSTR_FMT));\n }\n String headLabel = parts[0].trim();\n Integer headId = mLabel2Id.get(headLabel);\n if (null == headId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", headLabel, tok)); \n }\n\n ArrayList<ConstraintType> constr = mConstrType.get(headId);\n ArrayList<Integer> dependIds = mDependId.get(headId);\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(headId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"The parent in the constraint '%s' should be an annotation\", tok));\n }\n }\n \n for (int i = 1; i < parts.length; ++i) {\n String depLabel = parts[i].trim();\n Integer depId = mLabel2Id.get(depLabel);\n if (null == depId) {\n throw new SyntaxError(String.format(\"Cannot find a lexical entry \" +\n \" for the label '%s', constraint '%s'\", depLabel, tok)); \n }\n \n if (ConstraintType.CONSTRAINT_PARENT == type) {\n if (mTypes.get(depId) != FieldType.FIELD_ANNOTATION) {\n throw new SyntaxError(String.format(\n \"A child (label '%s') in the constraint '%s' should be an annotation\", \n depLabel, tok));\n }\n } \n \n constr.add(type);\n dependIds.add(depId);\n\n /*\n * This is a potentially horrible linear-time complexity search\n * in an array. However, for a reasonable-size user query \n * these arrays are going to be tiny and, in practice, \n * such a linear search be as fast as or likely even faster than \n * a hash/tree map lookup.\n */\n if (!mEdges.get(depId).contains(headId))\n mEdges.get(depId).add(headId);\n if (!mEdges.get(headId).contains(depId))\n mEdges.get(headId).add(depId);\n\n }\n }", "@Override\n public R visit(NumericLiteral n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(BrackettedExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "public Snippet visit(ReturnType n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "private void parseOr(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (ok || in > saveIn) return;\r\n parse(node.right());\r\n }", "@Override\n\tpublic Object visit(ASTParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Override\n public Node visit(BinaryExpression nd, Void v) {\n if (\"??\".equals(nd.getOperator())) return nd;\n return nd.getLeft().accept(this, v);\n }", "@Override\n\tpublic Object visit(ASTLogical node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "@Override\n\tpublic void visit(OrExpression arg0) {\n\t\t\n\t}", "@Test\n public void test_accepts_parens() {\n List<FARule> rules = Arrays.asList(\n new FARule(STATE0, '(', STATE1), new FARule(STATE1, ')', STATE0),\n new FARule(STATE1, '(', STATE2), new FARule(STATE2, ')', STATE1),\n new FARule(STATE2, '(', STATE3), new FARule(STATE3, ')', STATE2));\n NFARulebook rulebook = new NFARulebook(rules);\n\n NFADesign nfaDesign = new NFADesign(STATE0, Arrays.asList(STATE0), rulebook);\n assertFalse(nfaDesign.accepts(\"(()\"));\n assertFalse(nfaDesign.accepts(\"())\"));\n assertTrue(nfaDesign.accepts(\"(())\"));\n assertTrue(nfaDesign.accepts(\"(()(()()))\"));\n\n // Here is a flaw though - we can't make rules out to infinity - these brackets are balanced, but our rulebook\n // does not go out enough levels to recognize it:\n assertFalse(nfaDesign.accepts(\"(((())))\")); // Should be TRUE!\n // We can always add more levels, but there is no real solution to this problem with an NFA (no matter how many\n // rules we provide, nesting could always go 1 level deeper).\n }", "@Override\r\n\tpublic boolean visit(VariableDeclarationFragment node) {\r\n//\t\toperator(node);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic Object visit(ASTRelational node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}", "Expression expression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = orExpression();\r\n\t\tif (isKind(OP_QUESTION)) {\r\n\t\t\tconsume();\r\n\t\t\tExpression e1 = expression();\r\n\t\t\tmatch(OP_COLON);\r\n\t\t\tExpression e2 = expression();\r\n\t\t\te0 = new ExpressionConditional(first, e0, e1, e2);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "SigLitNode SigLitNode(Token t, OpNode op, PayElemList pay);", "public Snippet visit(TypeAnnotation n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n\tpublic void visit(OrExpression arg0) {\n\n\t}", "@Override\n\tpublic Object visit(FuncNode funcNode) {\n\t\tif (funcNode.getChild(0) != null) \n\t\t\tfuncNode.getChild(0).accept(this);\t\n\t\t\n\t\t//Variables\n\t\tif (funcNode.getChild(1) != null)\n\t\t\tfuncNode.getChild(1).accept(this);\n\t\n\t\t//Compstmt\n\t\tfuncNode.getChild(2).accept(this);\n\t\t\n\treturn null; }", "@Override\n public R visit(SelectQuery n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n n.nodeChoice.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n n.whereClause.accept(this, argu);\n n.solutionModifier.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(BuiltInCall n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "Node getVariable();", "public R visit(Operator n) {\n R _ret=null;\n int which = n.f0.which;\n String s = \" \";\n switch (which)\n {\n case 0 : {s=\"LT\"; break;}\n case 1 : {s= \"PLUS\"; break;}\n case 2 : {s= \"MINUS\";break;}\n case 3 : {s= \"TIMES\"; break;}\n }\n \t return (R)s;\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public Snippet visit(NonArrayType n, Snippet argu) {\n\t Snippet _ret=null;\n\t \n\t _ret =n.nodeChoice.accept(this, argu); \n\t\t\t_ret.expType.typeName = _ret.returnTemp;\n\t return _ret;\n\t }", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "private Operation selector(Scope scope, Vector queue)\r\n {\r\n Operation root;\r\n\r\n root = new Operation();\r\n\r\n if (nextSymbol == Keyword.DOTSY)\r\n {\r\n lookAhead();\r\n\r\n root.operator = nextSymbol;\r\n\r\n if (nextSymbol == Keyword.IDENTSY)\r\n {\r\n root.name = nextToken;\r\n lookAhead();\r\n root.left = argumentsOpt(scope, null, queue);\r\n }\r\n else if (nextSymbol == Keyword.SUPERSY)\r\n {\r\n matchKeyword(Keyword.SUPERSY);\r\n root.left = arguments(scope, null, queue);\r\n }\r\n else\r\n {\r\n matchKeyword(Keyword.NEWSY);\r\n root.left = innerCreator(scope, queue);\r\n }\r\n }\r\n else\r\n {\r\n root.operator = nextSymbol;\r\n matchKeyword(Keyword.LBRACKETSY);\r\n follower.add(Keyword.RBRACKETSY);\r\n unresolved.add(\"JavaArray\");\r\n root.left = expression(scope, queue);\r\n follower.remove(follower.size() - 1);\r\n matchKeyword(Keyword.RBRACKETSY);\r\n }\r\n\r\n return root;\r\n }", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "@Override \n\tpublic void caseAOpExpr(AOpExpr node){\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tswitch (expType){\n\t\t\tcase AND :\n\t\t\tcreateShortCircuitAnd(node);\n\t\t\t\tbreak;\n\t\t\tcase OR :\n\t\t\tcreateShortCircuiteOR(node);\n\t\t\t\tbreak;\n\t\t\tcase ADD :\n\t\t\t\tType left = nodeTypes.get(node.getLeft()); \n\t\t\t\tif (left == Type.STRING_TYPE){\n\t\t\t\t\tthis.createStringConcat(node);\n\t\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tdefault : \n\t\t\t\tsuper.caseAOpExpr(node); \n\t\t}\n\t}", "@Override\n public Expression visit(LogicalOpNode node) {\n\n Label trueLabel = new Label ();\n Label falseLabel = new Label ();\n Label endLabel = new Label ();\n\n process(node, trueLabel, falseLabel);\n\n cat.footoredo.mx.entity.Variable variable = tmpVariable(node.getType());\n\n label (trueLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 1));\n jump (endLabel);\n\n label (falseLabel);\n assign (node.getLocation(), ref(variable), new Integer(Type.INT8, 0));\n jump (endLabel);\n\n label (endLabel);\n\n return isStatement() ? null : ref (variable);\n }", "private InfixExpression getNode()\n{\n return (InfixExpression) ast_node;\n}", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public SCondition(Node node) {\n super(node);\n }", "@Override\n\tpublic Object visit(ASTFParen node, Object data)\n\t{\n\t\t//Should be stripped by the function\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\"Parse Error: Invalid Class: \" + node.getClass().getName()\n\t\t\t\t+ \" found in operable location (class cannot be evaluated)\");\n\t\treturn semantics;\n\t}", "ParenthesisExpr createParenthesisExpr();", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "@Override\n public R visit(Bind n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n n.var.accept(this, argu);\n n.nodeToken3.accept(this, argu);\n return _ret;\n }", "public Snippet visit(TopLevelDeclaration n, Snippet argu) {\n\t Snippet _ret=null;\n\t n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public R visit(NumericLiteralPositive n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "private Term parseBtwiseXOr(final boolean required) throws ParseException {\n Term t1 = parseBitwiseAnd(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '^') {\n Term t2 = parseBitwiseAnd(true);\n if ((t1.isI() && t2.isI()) || !isTypeChecking()) {\n t1 = new Term.XOrI(t1, t2);\n } else {\n reportTypeErrorI2(\"'^'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public Expression differentiate(String var) {\r\n // var might be a differentiate of other variable\r\n if (!this.toString().equalsIgnoreCase(var)) {\r\n return (Expression) new Num(0);\r\n }\r\n return (Expression) new Num(1);\r\n\r\n }", "@Override\n\tpublic Object visit(ASTCondEq node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" eq \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n\tpublic void outAOpExpr(AOpExpr node) {\n\t\tExpressionType expType = (ExpressionType) nodeTypes.get(node.getOp()); \n\t\tType left = nodeTypes.get(node.getLeft()); \n\t\tswitch (expType){\n\t\t\tcase DIV :\n\t\t\t\tcreateBinArithmetic(\"/\"); \n\t\t\t\tbreak; \n\t\t\tcase MINUS: \n\t\t\t\tcreateBinArithmetic(\"-\"); \n\t\t\t\tbreak; \n\t\t\tcase MOD: \n\t\t\t\tcreateBinArithmetic(\"%\"); \n\t\t\t\tbreak;\n\t\t\tcase MUL:\n\t\t\t\tcreateBinArithmetic(\"*\"); \n\t\t\t\tbreak; \n\t\t\tcase ADD : \n\t\t\t\tif ( left != Type.STRING_TYPE ){\n\t\t\t\t\tcreateBinArithmetic(\"+\"); \n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AINVERSE : \n\t\t\t\til.append(new INEG()); \n\t\t\t\tbreak;\n\t\t\t\t//TODO comparison \n\t\t\tcase LOWEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGT);\n\t\t\t\tbreak; \n\t\t\tcase LOWER :\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPGE); \n\t\t\t\tbreak; \n\t\t\tcase BIGGEREQ:\n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLT);\n\t\t\t\tbreak; \n\t\t\tcase BIGGER : \n\t\t\t\tcreateCmpOp(Constants.IF_ICMPLE); \n\t\t\t\tbreak; \n\t\t\tcase EQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPNE);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPNE); \n\t\t\t\tbreak;\n\t\t\tcase NEQ :\n\t\t\t\tif (left == Type.BOOLEAN_TYPE || left == Type.INTEGER_TYPE)\n\t\t\t\t\tcreateCmpOp(Constants.IF_ICMPEQ);\n\t\t\t\telse\n\t\t\t\t\tcreateCmpOp(Constants.IF_ACMPEQ); \n\t\t\t\tbreak; \n\t\t\tcase NOT : \n\t\t\t\tcreateCmpOp(Constants.IFNE); \n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic Object visit(ASTFilterParen node, Object data) {\n\t\tSystem.out.print(\"(\");\n\t\tnode.childrenAccept(this, data);\n\t\tSystem.out.print(\")\");\n\t\treturn null;\n\t}", "@Override\n\tpublic String visitArExpr(ArExprContext ctx) {\n\t\tint chNo=ctx.children.size();\n\t\tif(chNo == 3){\n\t\t\tParseTree cur = ctx.getChild(1);\n\t\t\tif(cur==ctx.MULT() || cur==ctx.DIV()|| cur==ctx.PLUS() || cur==ctx.MINUS()){\n\t\t\t\tString left = visit(ctx.getChild(0));\n\t\t\t\tString right = visit(ctx.getChild(2));\n\t\t\t\tif(!(right.equals(left) && right.equals(\"int\")) ){throw new RuntimeException(\"Arithmetic operations only with integers\");}\n\t\t\t\treturn(\"int\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn(visit(cur));\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tParseTree cur=ctx.getChild(0);\n\t\t\tif (cur instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (cur==ctx.INTEG()) return \"int\";\n\t\t\t\telse if (cur==ctx.CH()) return \"char\";\n\t\t\t\telse if(cur==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "public VariType visit(BracketExpression n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t _ret = n.f1.accept(this, argu);\n\t n.f2.accept(this, argu);\n\t return _ret;\n\t }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public void visit(Literal literal) {}", "public Node(){\r\n primarySequence = null;\r\n dotBracketString = null;\r\n validity = false;\r\n prev = null;\r\n next = null;\r\n }", "@Override\n\tpublic Object visit(ASTFilterOr node, Object data) {\n\t\tSystem.out.print(node.jjtGetChild(0).jjtAccept(this, data));\n\t\tSystem.out.print(\" or \");\n\t\tSystem.out.print(node.jjtGetChild(1).jjtAccept(this, data));\n\t\treturn null;\n\t}", "@Override\n\tpublic Object visit(ProcNode procNode) {\n\t\tif (procNode.getChild(0) != null) \n\t\t\tprocNode.getChild(0).accept(this);\n\t\t\n\t\t//Variables\n\t\tif (procNode.getChild(1) != null)\n\t\t\tprocNode.getChild(1).accept(this);\n\t\n\t\t//Compstmt\n\t\tprocNode.getChild(2).accept(this);\n\treturn null; }", "public interface ATypeCheckNode {}", "public Snippet visit(SwitchLabel n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "void visit(Object node, String command);", "@Override\n public R visit(NumericLiteralUnsigned n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic Object visit(ASTExpon node, Object data)\n\t{\n\t\tFormulaSemantics semantics = (FormulaSemantics) data;\n\t\tif (node.getOperator() == null)\n\t\t{\n\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\"Parse Error: Object of type \" + node.getClass()\n\t\t\t\t\t+ \" expected to have an operator, none was found\");\n\t\t\treturn semantics;\n\t\t}\n\t\tfor (int i = 0; i < node.jjtGetNumChildren(); i++)\n\t\t{\n\t\t\tnode.jjtGetChild(i).jjtAccept(this, semantics);\n\t\t\t//Consistent with the \"fail fast\" behavior in the implementation note\n\t\t\tif (!semantics.getInfo(FormulaSemanticsUtilities.SEM_VALID)\n\t\t\t\t.isValid())\n\t\t\t{\n\t\t\t\treturn semantics;\n\t\t\t}\n\t\t\t/*\n\t\t\t * Note: We only implement ^ for Number.class today. This is a\n\t\t\t * \"known\" limitation, but would be nice to escape. However, this\n\t\t\t * means we can't shortcut the item in evaluate... (see\n\t\t\t * EvaluationVisitor)\n\t\t\t */\n\t\t\tClass<?> format =\n\t\t\t\t\tsemantics.getInfo(FormulaSemanticsUtilities.SEM_FORMAT)\n\t\t\t\t\t\t.getFormat();\n\t\t\tif (!format.equals(NUMBER_CLASS))\n\t\t\t{\n\t\t\t\tFormulaSemanticsUtilities.setInvalid(semantics,\n\t\t\t\t\t\"Parse Error: Invalid Value Format: \" + format\n\t\t\t\t\t\t+ \" found in \"\n\t\t\t\t\t\t+ node.jjtGetChild(i).getClass().getName()\n\t\t\t\t\t\t+ \" found in location requiring a\"\n\t\t\t\t\t\t+ \" Number (class cannot be evaluated)\");\n\t\t\t}\n\t\t}\n\t\treturn semantics;\n\t}", "Expr expr();", "private CalculatableNode nextNode() throws IOException {\n\t\tint ttype;\n\t\tttype = tokenizer.nextToken();\n\t\tif (ttype == StreamTokenizer.TT_NUMBER) {\n\t\t\treturn new NumericalNode((int) tokenizer.nval);\n\t\t}\n\t\tif (ttype >= 0) {\n\t\t\t// sign character such as +-*/()\n\t\t\tchar sign = (char) tokenizer.ttype;\n\t\t\tif (sign == '(') {\n\t\t\t\tCalculatableNode node = parseNode();\n\t\t\t\treturn node;\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalFormulaException(\"数式が不正です\");\n\t}", "@Override\r\n\tpublic void visit(VariableExpression variableExpression) {\n\r\n\t}", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "public interface BranchNode extends StatementNode\n{\n\t/**\n\t * Set the branching condition.\n\t * \n\t * @param condition\n\t * the condition of the branch.\n\t */\n\tpublic void setCondition(ExpressionNode condition);\n\n\t/**\n\t * Get the branching condition.\n\t * \n\t * @return the condition of the branch.\n\t */\n\tpublic ExpressionNode getCondition();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to true.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to true.\n\t */\n\tpublic void setStatementNodeOnTrue(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition evaluates to true.\n\t * \n\t * @return The statement to execute when the condition evaluates to true.\n\t */\n\tpublic StatementNode getStatementNodeOnTrue();\n\n\t/**\n\t * Set the statement that is executed when the condition evaluates to false.\n\t * This is the else statement. If there is no else set to null.\n\t * \n\t * @param statement\n\t * The statement to execute when the condition evaluates to false or\n\t * null if no else branch is needed.\n\t */\n\tpublic void setStatementNodeOnFalse(StatementNode statement);\n\n\t/**\n\t * The statement that is executed when the condition is false. This is the else\n\t * branch. If no else branch exists this will return null.\n\t * \n\t * @return The statement to execute when the condition evaluates to false.\n\t */\n\tpublic StatementNode getStatementNodeOnFalse();\n}", "public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }", "@Override\n\tpublic void visit(CaseExpression arg0) {\n\t\t\n\t}", "public final void rule__AstExpression__OperatorAlternatives_1_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2784:1: ( ( '||' ) | ( 'or' ) | ( '..' ) )\n int alt12=3;\n switch ( input.LA(1) ) {\n case 14:\n {\n alt12=1;\n }\n break;\n case 15:\n {\n alt12=2;\n }\n break;\n case 16:\n {\n alt12=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n }\n\n switch (alt12) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2785:1: ( '||' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2785:1: ( '||' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2786:1: '||'\n {\n before(grammarAccess.getAstExpressionAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0_0()); \n match(input,14,FOLLOW_14_in_rule__AstExpression__OperatorAlternatives_1_1_06010); \n after(grammarAccess.getAstExpressionAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2793:6: ( 'or' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2793:6: ( 'or' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2794:1: 'or'\n {\n before(grammarAccess.getAstExpressionAccess().getOperatorOrKeyword_1_1_0_1()); \n match(input,15,FOLLOW_15_in_rule__AstExpression__OperatorAlternatives_1_1_06030); \n after(grammarAccess.getAstExpressionAccess().getOperatorOrKeyword_1_1_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2801:6: ( '..' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2801:6: ( '..' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2802:1: '..'\n {\n before(grammarAccess.getAstExpressionAccess().getOperatorFullStopFullStopKeyword_1_1_0_2()); \n match(input,16,FOLLOW_16_in_rule__AstExpression__OperatorAlternatives_1_1_06050); \n after(grammarAccess.getAstExpressionAccess().getOperatorFullStopFullStopKeyword_1_1_0_2()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "@Test\n public void defaultOperatorsEvaluteTrueTest() throws Exception {\n\n assertThat(getNode(\"1 == 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 != 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <> 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 < 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 > 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"2 >= 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 2\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1 <= 1\", \"expr\").render(null), is((Object)true));\n\n // negative numbers\n assertThat(getNode(\"1 > -1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1 < 1\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"1.0 > -1.0\", \"expr\").render(null), is((Object)true));\n assertThat(getNode(\"-1.0 < 1.0\", \"expr\").render(null), is((Object)true));\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.minus();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(6, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "private Term parseLogicalOr(final boolean required) throws ParseException {\n Term t1 = parseLogicalAnd(required);\n while (t1 != null) {\n /*int tt =*/ _tokenizer.next();\n if (isSpecial(\"||\") || isKeyword(\"or\")) {\n Term t2 = parseLogicalAnd(true);\n if ((t1.isB() && t2.isB()) || !isTypeChecking()) {\n t1 = new Term.OrB(t1, t2);\n } else {\n reportTypeErrorB2(\"'||' or 'or'\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public String getElement()\n {\n return nodeChoice;\n }", "private ExpSem choose(AST.Expression exp, QvarSem qvar, ExpSem none, FunExpSem some)\n {\n if (qvar instanceof QvarSem.Single &&\n (none == null || none instanceof ExpSem.Single) &&\n some instanceof FunExpSem.Single)\n {\n QvarSem.Single qvar0 = (QvarSem.Single)qvar;\n ExpSem.Single none0 = (ExpSem.Single)none;\n FunExpSem.Single some0 = (FunExpSem.Single)some;\n if (translator.nondeterministic)\n return (ExpSem.Multiple)(Context c)-> \n {\n Seq<Value[]> v = qvar0.apply(c);\n // if (v.get() == null)\n // {\n // if (none0 == null)\n // return Seq.empty();\n // else\n // return Seq.cons(none0.apply(c), Seq.empty());\n // }\n // return v.apply((Value[] v1)->some0.apply(v1).apply(c));\n if (none0 == null)\n return v.apply((Value[] v1)->some0.apply(v1).apply(c));\n else\n return Seq.append(v.apply((Value[] v1)->some0.apply(v1).apply(c)),\n Seq.supplier(()->new Seq.Next<Value>(none0.apply(c), Seq.empty())));\n };\n else\n return (ExpSem.Single)(Context c)-> \n {\n Main.performChoice();\n Seq<Value[]> v = qvar0.apply(c);\n Seq.Next<Value[]> next = v.get();\n if (next == null) \n {\n if (none0 == null)\n {\n translator.runtimeError(exp, \"no choice possible\");\n return null;\n }\n else\n return none0.apply(c);\n }\n else\n return some0.apply(next.head).apply(c);\n };\n }\n else\n {\n QvarSem.Multiple qvar0 = qvar.toMultiple();\n FunExpSem.Multiple some0 = some.toMultiple();\n ExpSem.Multiple none0 = none == null ? null : none.toMultiple();\n return (ExpSem.Multiple)(Context c)->\n {\n Seq<Seq<Value[]>> result = qvar0.apply(c);\n return result.applyJoin((Seq<Value[]> v)->\n {\n if (v.get() == null) \n {\n if (none0 == null)\n return Seq.empty();\n else\n return none0.apply(c);\n }\n return v.applyJoin((Value[] v1)->some0.apply(v1).apply(c));\n });\n };\n }\n }", "@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public T caseCompoundExpr(CompoundExpr object)\n {\n return null;\n }" ]
[ "0.6327877", "0.6100306", "0.57161903", "0.5665153", "0.5616439", "0.5480234", "0.54705334", "0.5419993", "0.5318963", "0.53113294", "0.5301332", "0.5266095", "0.526116", "0.52517724", "0.5247323", "0.5232419", "0.520277", "0.52003396", "0.5194323", "0.5192214", "0.5182684", "0.51674014", "0.5133686", "0.5107718", "0.51044047", "0.510381", "0.5089277", "0.50186574", "0.5016623", "0.5011069", "0.5006766", "0.50050867", "0.49990427", "0.49838296", "0.49775264", "0.49748623", "0.49712166", "0.49635708", "0.4956667", "0.49372134", "0.49216518", "0.49134037", "0.4905599", "0.48798466", "0.48758414", "0.48535252", "0.4847983", "0.4836816", "0.48231742", "0.48218408", "0.4814462", "0.48073387", "0.47921783", "0.47845086", "0.47837907", "0.47652555", "0.47647208", "0.4758533", "0.47483963", "0.47452846", "0.4739236", "0.47374108", "0.47208267", "0.47062624", "0.47055465", "0.4696188", "0.4688343", "0.46842998", "0.46787676", "0.4677393", "0.46754497", "0.46733385", "0.4661802", "0.4660879", "0.46312985", "0.4630426", "0.46229294", "0.46184456", "0.4614455", "0.46093395", "0.46066368", "0.46062642", "0.46042013", "0.45975694", "0.4597469", "0.45930374", "0.45848486", "0.4581884", "0.45804903", "0.4576188", "0.45670575", "0.45586047", "0.45573547", "0.4553516", "0.45515046", "0.4547226", "0.45429084", "0.4542675", "0.45292628", "0.45285153" ]
0.47034895
65
nodeToken > nodeToken1 >
@Override public R visit(LimitClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "@AutoEscape\n\tpublic String getNode_2();", "public void setNode_2(String node_2);", "Term getNodeTerm();", "@AutoEscape\n\tpublic String getNode_1();", "public interface QuotedL1Node {\n\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();", "public void setNode_1(String node_1);", "Token next();", "abstract Node split();", "abstract Node split();", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Override\n public R visit(BaseDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrefixDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n return _ret;\n }", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }", "protected int getNextToken(){\n if( currentToken == 1){\n currentToken = -1;\n }else{\n currentToken = 1;\n }\n return currentToken;\n }", "@Test\n public void parseToken() {\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "Node currentNode();", "abstract protected void parseNextToken();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes);", "List<Node> getNode(String str);", "String getIdNode1();", "String getIdNode2();", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@AutoEscape\n\tpublic String getNode_5();", "@AutoEscape\n\tpublic String getNode_3();", "final public Token getNextToken() {\r\n if (token.next != null) token = token.next;\r\n else token = token.next = token_source.getNextToken();\r\n jj_ntk = -1;\r\n return token;\r\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\r\n\tpublic void testProcessPass1Other()\r\n\t{\r\n\t\tToken t3 = new Token(TokenTypes.EXP5.name(), 1, null);\r\n\t\tt3.setType(\"INT\");\r\n\t\tArrayList<Token> tkns = new ArrayList<Token>();\t\t\t\r\n\t\ttkns.add(t3);\r\n\t\t\r\n\t\tToken t4 = new Token(TokenTypes.EXP4.name(), 1, tkns);\r\n\t\tClass c1 = new Class(\"ClassName\", null, null);\r\n\t\tPublicMethod pm = new PublicMethod(\"MethodName\", null, VariableType.BOOLEAN, null);\r\n\t\tt4.setParentMethod(pm);\r\n\t\tt4.setParentClass(c1);\r\n\r\n\t\tToken.pass1(t4);\r\n\t\t\r\n\t\tfor(int i = 0; i < t4.getChildren().size(); i++){\r\n\t\t\tToken child = t4.getChildren().get(i);\r\n\t\t\t\r\n\t\t\tassertEquals(child.getParentClass().getName(), t4.getParentClass().getName());\r\n\t\t\tassertEquals(child.getParentMethod(), t4.getParentMethod());\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(t4.getType(), \"INT\");\r\n\t}", "OperationNode getNode();", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "org.apache.xmlbeans.XmlToken xgetRef();", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">Uuu/X==mpx'Q N+\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Uuu\", token1.getTokenText());\n }", "private LeafNode(Token newToken) {\r\n\t\tthis.token = newToken;\r\n\t}", "public HuffmanNode (HuffmanToken token) {\n \ttotalFrequency = token.getFrequency();\n \ttokens = new ArrayList<HuffmanToken>();\n \ttokens.add(token);\n \tleft = null;\n \tright = null;\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "Node getNode();", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z uKBSX,^\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"Z\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\" u\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"KBSX\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public char getNextToken(){\n\t\treturn token;\n\t}", "@Test\n public void findRightDefinition() {\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 21, 42))).isPresent());\n // Clearly reference the first:\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // Reference the first:\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // So that this will fail:\n assertFalse(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n }", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "final public Token getNextToken() {\n if (token.next != null) token = token.next;\n else token = token.next = token_source.getNextToken();\n jj_ntk = -1;\n return token;\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "@AutoEscape\n\tpublic String getNode_4();", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(\"oo\", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"fT\", token1.getTokenText());\n }", "int getTokenStart();", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "void putToken(String name, String value);", "NNode(String[] tokenized) {\r\n\t\tthis(NodeTypeEnum.valueOf(tokenized[3]), Integer.parseInt(tokenized[1]), NodeLabelEnum.valueOf(tokenized[4]));\t\t\r\n\t\tfType = NodeFuncEnum.valueOf(tokenized[2]);\r\n\t\tif (tokenized.length > 5) System.out.println(\"ERROR: Too many segments on reading node from file.\");\r\n\t}", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.getPreviousToken();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.doubleColon();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\">6\", token0.getTokenText());\n assertEquals(19, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"_XdrPl\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public Token nextToken(){\n if(currentToken+1 >= tokens.size())\n return null; \n return tokens.get(++currentToken);\n }", "NDLMapEntryNode<T> traverse(String tokens[]) { \n\t\tNDLMapEntryNode<T> node = rootNode;\n\t\tboolean found = true;\n\t\tfor(String token : tokens) {\n\t\t\t// traverse\n\t\t\tif(StringUtils.isNotBlank(token)) {\n\t\t\t\t// valid\n\t\t\t\tnode = node.get(token);\n\t\t\t\tif(node == null) {\n\t\t\t\t\tfound = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(found) {\n\t\t\treturn node;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public String getNodeValue ();", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "private boolean performRearrange(List<CommonToken> tokens) throws BadLocationException\n\t{\n\t\tList<TagHolder> topLevelTags=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tint tagLevel=0;\n\t\tfor (int tokenIndex=0;tokenIndex<tokens.size();tokenIndex++)\n\t\t{\n\t\t\tCommonToken token=tokens.get(tokenIndex);\n\t\t\tSystem.out.println(token.getText());\n\t\t\tswitch (token.getType())\n\t\t\t{\n\t\t\t\tcase MXMLLexer.TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttagLevel++;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.END_TAG_OPEN:\n\t\t\t\t\ttagLevel--;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.EMPTY_TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.EMPTYTAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.COMMENT:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n//\t\t\t\tcase MXMLLexer.DECL_START:\n//\t\t\t\tcase MXMLLexer.CDATA:\n//\t\t\t\tcase MXMLLexer.PCDATA:\n//\t\t\t\tcase MXMLLexer.EOL:\n//\t\t\t\tcase MXMLLexer.WS:\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<TagHolder> unsortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tunsortedList.addAll(topLevelTags);\n\t\t\n\t\t//sort the elements in the tag list based on the supplied ordering\n\t\tString ordering=mPrefs.getString(PreferenceConstants.MXMLRearr_RearrangeTagOrdering);\n\t\tString[] tagNames=ordering.split(PreferenceConstants.AS_Pref_Line_Separator);\n\t\tSet<String> usedTags=new HashSet<String>();\n\t\tfor (String tagName : tagNames) {\n\t\t\tif (!tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant))\n\t\t\t\tusedTags.add(tagName);\n\t\t}\n\t\tList<TagHolder> sortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tfor (String tagName : tagNames) \n\t\t{\n\t\t\tboolean isSpecOther=tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant);\n\t\t\t//find all the items that match\n\t\t\tfor (int i=0;i<topLevelTags.size();i++)\n\t\t\t{\n\t\t\t\tTagHolder tagHolder=topLevelTags.get(i);\n\t\t\t\t\n\t\t\t\t//if the tagname matches the current specification \n\t\t\t\t//OR if the current spec is the \"other\" and the current tag doesn't match any in the list\n\t\t\t\tboolean tagMatches=false;\n\t\t\t\tif (!isSpecOther)\n\t\t\t\t{\n\t\t\t\t\tSet<String> testTag=new HashSet<String>();\n\t\t\t\t\ttestTag.add(tagName);\n\t\t\t\t\ttagMatches=matchesRegEx(tagHolder.mTagName, testTag);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttagMatches=(!matchesRegEx(tagHolder.mTagName, usedTags));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (tagMatches)\n\t\t\t\t{\n\t\t\t\t\ttopLevelTags.remove(i);\n\t\t\t\t\tsortedList.add(tagHolder);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsortedList.addAll(topLevelTags);\n\t\t\n\t\t//check for changes: if no changes, do nothing\n\t\tif (sortedList.size()!=unsortedList.size())\n\t\t{\n\t\t\t//error, just kick out\n\t\t\tSystem.out.println(\"Error performing mxml rearrange; tag count doesn't match\");\n\t\t\tmInternalError=\"Internal error replacing text: tag count doesn't match\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean differences=false;\n\t\tfor (int i=0;i<sortedList.size();i++)\n\t\t{\n\t\t\tif (sortedList.get(i)!=unsortedList.get(i))\n\t\t\t{\n\t\t\t\tdifferences=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!differences)\n\t\t\treturn true; //succeeded, just nothing done\n\t\t\n\t\t//reconstruct document in the sorted order\n\t\tString source=mSourceDocument.get();\n\t\tStringBuffer newText=new StringBuffer();\n\t\tfor (TagHolder tagHolder : sortedList) \n\t\t{\n\t\t\tCommonToken startToken=tokens.get(tagHolder.mStartTokenIndex);\n\t\t\tCommonToken endToken=tokens.get(tagHolder.mEndTokenIndex);\n\t\t\tString data=source.substring(startToken.getStartIndex(), endToken.getStopIndex()+1);\n\t\t\tnewText.append(data);\n\t\t}\n\t\t\n\t\tint startOffset=tokens.get(unsortedList.get(0).mStartTokenIndex).getStartIndex();\n\t\tint endOffset=tokens.get(unsortedList.get(unsortedList.size()-1).mEndTokenIndex).getStopIndex()+1;\n\t\tString oldData=mSourceDocument.get(startOffset, endOffset-startOffset);\n\t\tif (!ActionScriptFormatter.validateNonWhitespaceCharCounts(oldData, newText.toString()))\n\t\t{\n\t\t\tmInternalError=\"Internal error replacing text: new text doesn't match replaced text(\"+oldData+\")!=(\"+newText.toString()+\")\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tmSourceDocument.replace(startOffset, endOffset-startOffset, newText.toString());\n\t\t\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"z8I-qq3BBV%.C. *\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"8\", token1.getTokenText());\n }", "public Node setNextNode(Node node);", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "Iterator<String> getTokenIterator();", "Token current();", "private static String getSingleText(CommonToken token, String name1, String name2) {\n String input = token.getText();\n\n if (StringUtils.containsWhitespace(input)) return input;\n if (\",\".equals(input)) return \" AND \";\n return name1 + \".\" + input + \"=\" + name2 + \".\" + input;\n }", "private void addTagName(TagHolder holder, List<CommonToken> tokens, int tokenIndex) \n\t{\n\t\ttokenIndex++;\n\t\tfor (;tokenIndex<tokens.size(); tokenIndex++)\n\t\t{\n\t\t\tCommonToken tok=tokens.get(tokenIndex);\n\t\t\tif (tok.getType()==MXMLLexer.GENERIC_ID)\n\t\t\t{\n\t\t\t\tholder.setTagName(tok.getText());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (tok.getText()!=null && tok.getText().trim().length()>0)\n\t\t\t{\n\t\t\t\t//kick out if non whitespace hit; ideally, we shouldn't ever hit here\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test139() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(18, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"E\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "TokenTypes.TokenName getName();", "public void setNode_4(String node_4);", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "private static void commonNodesInOrdSuc(Node r1, Node r2)\n {\n Node n1 = r1, n2 = r2;\n \n if(n1==null || n2==null)\n return;\n \n while(n1.left != null)\n n1 = n1.left;\n \n while(n2.left!= null)\n n2 = n2.left;\n \n while(n1!=null && n2!=null)\n {\n if(n1.data < n2.data)\n n1 = inOrdSuc(n1);\n \n else if(n1.data > n2.data)\n n2 = inOrdSuc(n2);\n \n else\n {\n System.out.print(n1.data+\" \"); n1 = inOrdSuc(n1); n2 = inOrdSuc(n2);\n }\n }\n \n System.out.println();\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"^r\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"^r\", token0.getTokenText());\n }", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }", "public static String extractTokens(KSuccessorRelation<NetSystem, Node> rel) {\n\t\t\n\t\tString tokens = \"\";\n\t\tfor (Node[] pair : rel.getSuccessorPairs()) {\n\t\t\t\n\t\t\tString l1 = pair[0].getLabel();\n\t\t\tString l2 = pair[1].getLabel();\n\t\t\t\n\t\t\tif (NodeAlignment.isValidLabel(l1) && NodeAlignment.isValidLabel(l2)) {\n\t\t\t\ttokens += join(processLabel(l1),WORD_SEPARATOR) + \n\t\t\t\t\t\t RELATION_SYMBOL + \n\t\t\t\t\t\t join(processLabel(l2),WORD_SEPARATOR) + \n\t\t\t\t\t\t WHITESPACE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// no relations have been found (because the query contained only single activities)\n\t\t//if (tokens.isEmpty()) {\n\t\t\tfor (Node n : rel.getEntities()) {\n\t\t\t\tString l = n.getLabel();\n\t\t\t\tif (NodeAlignment.isValidLabel(l)) {\n\t\t\t\t\ttokens += join(processLabel(l), WORD_SEPARATOR) + WHITESPACE;\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t\t\n\t\treturn tokens;\n\t}" ]
[ "0.6374211", "0.581317", "0.5707435", "0.57067865", "0.56543434", "0.5648253", "0.5552249", "0.5530768", "0.5513369", "0.54341465", "0.54341465", "0.5321393", "0.53087145", "0.5299456", "0.528124", "0.5225912", "0.5224379", "0.5220148", "0.52033365", "0.51950675", "0.518211", "0.51412076", "0.5122298", "0.51114243", "0.5104408", "0.509144", "0.5090301", "0.5069867", "0.50497", "0.50425506", "0.50374025", "0.503478", "0.50325906", "0.5025343", "0.50248134", "0.50246906", "0.50205797", "0.5006634", "0.500612", "0.50031537", "0.50018096", "0.5001363", "0.49973276", "0.498992", "0.49874297", "0.49779373", "0.49708486", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.497004", "0.49688372", "0.49634844", "0.49625117", "0.49504066", "0.49450615", "0.4937999", "0.49310666", "0.4913282", "0.48893312", "0.48872012", "0.48861268", "0.48854774", "0.4884581", "0.48825726", "0.48825726", "0.48765224", "0.4876386", "0.48753294", "0.48741552", "0.48726502", "0.48721147", "0.48709393", "0.48667023", "0.48640347", "0.4863642", "0.48597524", "0.48568898", "0.48542425", "0.48480117", "0.48470768", "0.48440447", "0.48434818", "0.4843104", "0.48403233", "0.48280576", "0.48278958", "0.48278958", "0.48278958", "0.48278958", "0.48278958", "0.4826242", "0.4825777", "0.48199055" ]
0.0
-1
nodeToken > nodeToken1 >
@Override public R visit(OffsetClause n, A argu) { R _ret = null; n.nodeToken.accept(this, argu); n.nodeToken1.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void token(TokenNode node);", "@AutoEscape\n\tpublic String getNode_2();", "public void setNode_2(String node_2);", "Term getNodeTerm();", "@AutoEscape\n\tpublic String getNode_1();", "public interface QuotedL1Node {\n\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();", "public void setNode_1(String node_1);", "Token next();", "abstract Node split();", "abstract Node split();", "@Test(timeout = 4000)\n public void test146() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(2><\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"(\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"2\", token1.getTokenText());\n assertEquals(30, token1.getTokenType());\n }", "@Override\n public R visit(BaseDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(PrefixDecl n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n n.nodeToken2.accept(this, argu);\n return _ret;\n }", "private String node(String name) { return prefix + \"AST\" + name + \"Node\"; }", "public Token(Token other) {\n __isset_bitfield = other.__isset_bitfield;\n this.token_num = other.token_num;\n if (other.isSetToken()) {\n this.token = other.token;\n }\n if (other.isSetOffsets()) {\n Map<OffsetType,Offset> __this__offsets = new HashMap<OffsetType,Offset>();\n for (Map.Entry<OffsetType, Offset> other_element : other.offsets.entrySet()) {\n\n OffsetType other_element_key = other_element.getKey();\n Offset other_element_value = other_element.getValue();\n\n OffsetType __this__offsets_copy_key = other_element_key;\n\n Offset __this__offsets_copy_value = new Offset(other_element_value);\n\n __this__offsets.put(__this__offsets_copy_key, __this__offsets_copy_value);\n }\n this.offsets = __this__offsets;\n }\n this.sentence_pos = other.sentence_pos;\n if (other.isSetLemma()) {\n this.lemma = other.lemma;\n }\n if (other.isSetPos()) {\n this.pos = other.pos;\n }\n if (other.isSetEntity_type()) {\n this.entity_type = other.entity_type;\n }\n this.mention_id = other.mention_id;\n this.equiv_id = other.equiv_id;\n this.parent_id = other.parent_id;\n if (other.isSetDependency_path()) {\n this.dependency_path = other.dependency_path;\n }\n if (other.isSetLabels()) {\n Map<String,List<Label>> __this__labels = new HashMap<String,List<Label>>();\n for (Map.Entry<String, List<Label>> other_element : other.labels.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Label> other_element_value = other_element.getValue();\n\n String __this__labels_copy_key = other_element_key;\n\n List<Label> __this__labels_copy_value = new ArrayList<Label>();\n for (Label other_element_value_element : other_element_value) {\n __this__labels_copy_value.add(new Label(other_element_value_element));\n }\n\n __this__labels.put(__this__labels_copy_key, __this__labels_copy_value);\n }\n this.labels = __this__labels;\n }\n if (other.isSetMention_type()) {\n this.mention_type = other.mention_type;\n }\n }", "protected int getNextToken(){\n if( currentToken == 1){\n currentToken = -1;\n }else{\n currentToken = 1;\n }\n return currentToken;\n }", "@Test\n public void parseToken() {\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "Node currentNode();", "abstract protected void parseNextToken();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "@Test(timeout = 4000)\n public void test135() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"d>%NV0\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"d\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\">\", token1.getTokenText());\n assertEquals(9, token1.getTokenType());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token2.getTokenType());\n assertEquals(\"\", token2.getTokenText());\n }", "Node[] merge(List<Node> nodeList1, List<Node> nodeList2, List<Node> exhaustedNodes);", "List<Node> getNode(String str);", "String getIdNode1();", "String getIdNode2();", "@Test(timeout = 4000)\n public void test159() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"g\\\"K@1\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals((-1), token1.getTokenType());\n }", "@AutoEscape\n\tpublic String getNode_5();", "@AutoEscape\n\tpublic String getNode_3();", "final public Token getNextToken() {\r\n if (token.next != null) token = token.next;\r\n else token = token.next = token_source.getNextToken();\r\n jj_ntk = -1;\r\n return token;\r\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"yN}H8h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"y\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"N\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test\r\n\tpublic void testProcessPass1Other()\r\n\t{\r\n\t\tToken t3 = new Token(TokenTypes.EXP5.name(), 1, null);\r\n\t\tt3.setType(\"INT\");\r\n\t\tArrayList<Token> tkns = new ArrayList<Token>();\t\t\t\r\n\t\ttkns.add(t3);\r\n\t\t\r\n\t\tToken t4 = new Token(TokenTypes.EXP4.name(), 1, tkns);\r\n\t\tClass c1 = new Class(\"ClassName\", null, null);\r\n\t\tPublicMethod pm = new PublicMethod(\"MethodName\", null, VariableType.BOOLEAN, null);\r\n\t\tt4.setParentMethod(pm);\r\n\t\tt4.setParentClass(c1);\r\n\r\n\t\tToken.pass1(t4);\r\n\t\t\r\n\t\tfor(int i = 0; i < t4.getChildren().size(); i++){\r\n\t\t\tToken child = t4.getChildren().get(i);\r\n\t\t\t\r\n\t\t\tassertEquals(child.getParentClass().getName(), t4.getParentClass().getName());\r\n\t\t\tassertEquals(child.getParentMethod(), t4.getParentMethod());\r\n\t\t}\r\n\t\t\r\n\t\tassertEquals(t4.getType(), \"INT\");\r\n\t}", "OperationNode getNode();", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifier();\n assertEquals(\"E\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(7, token2.getTokenType());\n assertEquals(\"<\", token2.getTokenText());\n }", "org.apache.xmlbeans.XmlToken xgetRef();", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">Uuu/X==mpx'Q N+\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\">\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"Uuu\", token1.getTokenText());\n }", "private LeafNode(Token newToken) {\r\n\t\tthis.token = newToken;\r\n\t}", "public HuffmanNode (HuffmanToken token) {\n \ttotalFrequency = token.getFrequency();\n \ttokens = new ArrayList<HuffmanToken>();\n \ttokens.add(token);\n \tleft = null;\n \tright = null;\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"ml'}{GbV%Y&X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"m\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"l\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"qgS3&9T,:6UK}hF\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"q\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"gS3\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "Node getNode();", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"_V)2V93#c=~\\\")I\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"_\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"V\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"Z uKBSX,^\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"Z\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\" u\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"KBSX\", token2.getTokenText());\n assertEquals(15, token2.getTokenType());\n }", "public char getNextToken(){\n\t\treturn token;\n\t}", "@Test\n public void findRightDefinition() {\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n assertTrue(createNamedTokens(\"out\", \"in\", \"in\").parse(env(stream(21, 21, 21, 42))).isPresent());\n // Clearly reference the first:\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"out\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // Reference the first:\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42))).isPresent());\n assertTrue(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 42, 21, 42))).isPresent());\n // So that this will fail:\n assertFalse(createNamedTokens(\"in\", \"in\", \"in\").parse(env(stream(21, 21, 42))).isPresent());\n }", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "String getShortToken();", "Optional<Node<UnderlyingData>> prevNode(Node<UnderlyingData> node);", "final public Token getNextToken() {\n if (token.next != null) token = token.next;\n else token = token.next = token_source.getNextToken();\n jj_ntk = -1;\n return token;\n }", "@Test(timeout = 4000)\n public void test133() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P@,DtvglU*(KV:16h\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"P\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"@\", token1.getTokenText());\n assertEquals(16, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test161() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") T/\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"T\", token1.getTokenText());\n }", "@AutoEscape\n\tpublic String getNode_4();", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"oofT'b.HnXtsd.\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(\"oo\", token0.getTokenText());\n assertEquals(22, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"fT\", token1.getTokenText());\n }", "int getTokenStart();", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "void putToken(String name, String value);", "NNode(String[] tokenized) {\r\n\t\tthis(NodeTypeEnum.valueOf(tokenized[3]), Integer.parseInt(tokenized[1]), NodeLabelEnum.valueOf(tokenized[4]));\t\t\r\n\t\tfType = NodeFuncEnum.valueOf(tokenized[2]);\r\n\t\tif (tokenized.length > 5) System.out.println(\"ERROR: Too many segments on reading node from file.\");\r\n\t}", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n Token token0 = xPathLexer0.getPreviousToken();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.doubleColon();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\">6\", token0.getTokenText());\n assertEquals(19, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(\"_XdrPl\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "public Token nextToken(){\n if(currentToken+1 >= tokens.size())\n return null; \n return tokens.get(++currentToken);\n }", "NDLMapEntryNode<T> traverse(String tokens[]) { \n\t\tNDLMapEntryNode<T> node = rootNode;\n\t\tboolean found = true;\n\t\tfor(String token : tokens) {\n\t\t\t// traverse\n\t\t\tif(StringUtils.isNotBlank(token)) {\n\t\t\t\t// valid\n\t\t\t\tnode = node.get(token);\n\t\t\t\tif(node == null) {\n\t\t\t\t\tfound = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(found) {\n\t\t\treturn node;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public String getNodeValue ();", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"gQFm^#}*F\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"g\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"QFm\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "private boolean performRearrange(List<CommonToken> tokens) throws BadLocationException\n\t{\n\t\tList<TagHolder> topLevelTags=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tint tagLevel=0;\n\t\tfor (int tokenIndex=0;tokenIndex<tokens.size();tokenIndex++)\n\t\t{\n\t\t\tCommonToken token=tokens.get(tokenIndex);\n\t\t\tSystem.out.println(token.getText());\n\t\t\tswitch (token.getType())\n\t\t\t{\n\t\t\t\tcase MXMLLexer.TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttagLevel++;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.END_TAG_OPEN:\n\t\t\t\t\ttagLevel--;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.EMPTY_TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.EMPTYTAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.COMMENT:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n//\t\t\t\tcase MXMLLexer.DECL_START:\n//\t\t\t\tcase MXMLLexer.CDATA:\n//\t\t\t\tcase MXMLLexer.PCDATA:\n//\t\t\t\tcase MXMLLexer.EOL:\n//\t\t\t\tcase MXMLLexer.WS:\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<TagHolder> unsortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tunsortedList.addAll(topLevelTags);\n\t\t\n\t\t//sort the elements in the tag list based on the supplied ordering\n\t\tString ordering=mPrefs.getString(PreferenceConstants.MXMLRearr_RearrangeTagOrdering);\n\t\tString[] tagNames=ordering.split(PreferenceConstants.AS_Pref_Line_Separator);\n\t\tSet<String> usedTags=new HashSet<String>();\n\t\tfor (String tagName : tagNames) {\n\t\t\tif (!tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant))\n\t\t\t\tusedTags.add(tagName);\n\t\t}\n\t\tList<TagHolder> sortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tfor (String tagName : tagNames) \n\t\t{\n\t\t\tboolean isSpecOther=tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant);\n\t\t\t//find all the items that match\n\t\t\tfor (int i=0;i<topLevelTags.size();i++)\n\t\t\t{\n\t\t\t\tTagHolder tagHolder=topLevelTags.get(i);\n\t\t\t\t\n\t\t\t\t//if the tagname matches the current specification \n\t\t\t\t//OR if the current spec is the \"other\" and the current tag doesn't match any in the list\n\t\t\t\tboolean tagMatches=false;\n\t\t\t\tif (!isSpecOther)\n\t\t\t\t{\n\t\t\t\t\tSet<String> testTag=new HashSet<String>();\n\t\t\t\t\ttestTag.add(tagName);\n\t\t\t\t\ttagMatches=matchesRegEx(tagHolder.mTagName, testTag);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttagMatches=(!matchesRegEx(tagHolder.mTagName, usedTags));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (tagMatches)\n\t\t\t\t{\n\t\t\t\t\ttopLevelTags.remove(i);\n\t\t\t\t\tsortedList.add(tagHolder);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsortedList.addAll(topLevelTags);\n\t\t\n\t\t//check for changes: if no changes, do nothing\n\t\tif (sortedList.size()!=unsortedList.size())\n\t\t{\n\t\t\t//error, just kick out\n\t\t\tSystem.out.println(\"Error performing mxml rearrange; tag count doesn't match\");\n\t\t\tmInternalError=\"Internal error replacing text: tag count doesn't match\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean differences=false;\n\t\tfor (int i=0;i<sortedList.size();i++)\n\t\t{\n\t\t\tif (sortedList.get(i)!=unsortedList.get(i))\n\t\t\t{\n\t\t\t\tdifferences=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!differences)\n\t\t\treturn true; //succeeded, just nothing done\n\t\t\n\t\t//reconstruct document in the sorted order\n\t\tString source=mSourceDocument.get();\n\t\tStringBuffer newText=new StringBuffer();\n\t\tfor (TagHolder tagHolder : sortedList) \n\t\t{\n\t\t\tCommonToken startToken=tokens.get(tagHolder.mStartTokenIndex);\n\t\t\tCommonToken endToken=tokens.get(tagHolder.mEndTokenIndex);\n\t\t\tString data=source.substring(startToken.getStartIndex(), endToken.getStopIndex()+1);\n\t\t\tnewText.append(data);\n\t\t}\n\t\t\n\t\tint startOffset=tokens.get(unsortedList.get(0).mStartTokenIndex).getStartIndex();\n\t\tint endOffset=tokens.get(unsortedList.get(unsortedList.size()-1).mEndTokenIndex).getStopIndex()+1;\n\t\tString oldData=mSourceDocument.get(startOffset, endOffset-startOffset);\n\t\tif (!ActionScriptFormatter.validateNonWhitespaceCharCounts(oldData, newText.toString()))\n\t\t{\n\t\t\tmInternalError=\"Internal error replacing text: new text doesn't match replaced text(\"+oldData+\")!=(\"+newText.toString()+\")\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tmSourceDocument.replace(startOffset, endOffset-startOffset, newText.toString());\n\t\t\n\t\treturn true;\n\t}", "@Test(timeout = 4000)\n public void test141() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"z8I-qq3BBV%.C. *\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"z\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(30, token1.getTokenType());\n assertEquals(\"8\", token1.getTokenText());\n }", "public Node setNextNode(Node node);", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\")\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(73);\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"{\");\n Node node0 = simpleNode0.parent;\n simpleNode0.setIdentifier(\"{\");\n StringWriter stringWriter0 = new StringWriter(73);\n simpleNode0.dump(\"{nt@W\\bYpd9U=VG\", stringWriter0);\n simpleNode0.setIdentifier(\"NameList\");\n simpleNode0.setIdentifier(\"^eRGLNy;\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"C\");\n StringReader stringReader0 = new StringReader(\"zp@:cn>UP\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n simpleNode0.setIdentifier(\"NameList\");\n SimpleNode simpleNode1 = new SimpleNode(68);\n Node[] nodeArray0 = new Node[0];\n simpleNode1.children = nodeArray0;\n Node[] nodeArray1 = new Node[1];\n nodeArray1[0] = null;\n simpleNode1.children = nodeArray1;\n simpleNode1.toString(\"LT\\\"PgE')tE0cI%&Dl\");\n simpleNode0.setIdentifier(\"AllocationExpression\");\n simpleNode1.dump(\"NameList\", stringWriter0);\n simpleNode0.toString();\n simpleNode0.toString(\">=\");\n simpleNode0.dump(\"<SkoVR *\", stringWriter0);\n assertEquals(\"<Block>\\n</Block>\\n<AllocationExpression></AllocationExpression>\\n<Block>\\n <identifier>NameList</identifier>\\n <identifier>^eRGLNy;</identifier>\\n <identifier>C</identifier>\\n <identifier>AllocationExpression</identifier>\\n <identifier>NameList</identifier>\\n <identifier>AllocationExpression</identifier>\\n</Block>\\n\", stringWriter0.toString());\n }", "Iterator<String> getTokenIterator();", "Token current();", "private static String getSingleText(CommonToken token, String name1, String name2) {\n String input = token.getText();\n\n if (StringUtils.containsWhitespace(input)) return input;\n if (\",\".equals(input)) return \" AND \";\n return name1 + \".\" + input + \"=\" + name2 + \".\" + input;\n }", "private void addTagName(TagHolder holder, List<CommonToken> tokens, int tokenIndex) \n\t{\n\t\ttokenIndex++;\n\t\tfor (;tokenIndex<tokens.size(); tokenIndex++)\n\t\t{\n\t\t\tCommonToken tok=tokens.get(tokenIndex);\n\t\t\tif (tok.getType()==MXMLLexer.GENERIC_ID)\n\t\t\t{\n\t\t\t\tholder.setTagName(tok.getText());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (tok.getText()!=null && tok.getText().trim().length()>0)\n\t\t\t{\n\t\t\t\t//kick out if non whitespace hit; ideally, we shouldn't ever hit here\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test139() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(18, token0.getTokenType());\n assertEquals(\":\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"E\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"LW>$p??\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"L\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"W\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "TokenTypes.TokenName getName();", "public void setNode_4(String node_4);", "@Test(timeout = 4000)\n public void test132() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"3APV;W&5C\\\"!eSgJk*X\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(1, token0.getTokenType());\n assertEquals(\"3\", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"APV\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "private static void commonNodesInOrdSuc(Node r1, Node r2)\n {\n Node n1 = r1, n2 = r2;\n \n if(n1==null || n2==null)\n return;\n \n while(n1.left != null)\n n1 = n1.left;\n \n while(n2.left!= null)\n n2 = n2.left;\n \n while(n1!=null && n2!=null)\n {\n if(n1.data < n2.data)\n n1 = inOrdSuc(n1);\n \n else if(n1.data > n2.data)\n n2 = inOrdSuc(n2);\n \n else\n {\n System.out.print(n1.data+\" \"); n1 = inOrdSuc(n1); n2 = inOrdSuc(n2);\n }\n }\n \n System.out.println();\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"^r\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(\"^r\", token0.getTokenText());\n }", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "String getToken();", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "public String newToken(){\n String line = getLine(lines);\n String token = getToken(line);\n return token;\n }", "public static String extractTokens(KSuccessorRelation<NetSystem, Node> rel) {\n\t\t\n\t\tString tokens = \"\";\n\t\tfor (Node[] pair : rel.getSuccessorPairs()) {\n\t\t\t\n\t\t\tString l1 = pair[0].getLabel();\n\t\t\tString l2 = pair[1].getLabel();\n\t\t\t\n\t\t\tif (NodeAlignment.isValidLabel(l1) && NodeAlignment.isValidLabel(l2)) {\n\t\t\t\ttokens += join(processLabel(l1),WORD_SEPARATOR) + \n\t\t\t\t\t\t RELATION_SYMBOL + \n\t\t\t\t\t\t join(processLabel(l2),WORD_SEPARATOR) + \n\t\t\t\t\t\t WHITESPACE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// no relations have been found (because the query contained only single activities)\n\t\t//if (tokens.isEmpty()) {\n\t\t\tfor (Node n : rel.getEntities()) {\n\t\t\t\tString l = n.getLabel();\n\t\t\t\tif (NodeAlignment.isValidLabel(l)) {\n\t\t\t\t\ttokens += join(processLabel(l), WORD_SEPARATOR) + WHITESPACE;\n\t\t\t\t}\n\t\t\t}\n\t\t//}\n\t\t\n\t\treturn tokens;\n\t}" ]
[ "0.6374211", "0.581317", "0.5707435", "0.57067865", "0.56543434", "0.5648253", "0.5552249", "0.5530768", "0.5513369", "0.54341465", "0.54341465", "0.5321393", "0.53087145", "0.5299456", "0.528124", "0.5225912", "0.5224379", "0.5220148", "0.52033365", "0.51950675", "0.518211", "0.51412076", "0.5122298", "0.51114243", "0.5104408", "0.509144", "0.5090301", "0.5069867", "0.50497", "0.50425506", "0.50374025", "0.503478", "0.50325906", "0.5025343", "0.50248134", "0.50246906", "0.50205797", "0.5006634", "0.500612", "0.50031537", "0.50018096", "0.5001363", "0.49973276", "0.498992", "0.49874297", "0.49779373", "0.49708486", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.49707827", "0.497004", "0.49688372", "0.49634844", "0.49625117", "0.49504066", "0.49450615", "0.4937999", "0.49310666", "0.4913282", "0.48893312", "0.48872012", "0.48861268", "0.48854774", "0.4884581", "0.48825726", "0.48825726", "0.48765224", "0.4876386", "0.48753294", "0.48741552", "0.48726502", "0.48721147", "0.48709393", "0.48667023", "0.48640347", "0.4863642", "0.48597524", "0.48568898", "0.48542425", "0.48480117", "0.48470768", "0.48440447", "0.48434818", "0.4843104", "0.48403233", "0.48280576", "0.48278958", "0.48278958", "0.48278958", "0.48278958", "0.48278958", "0.4826242", "0.4825777", "0.48199055" ]
0.0
-1
triplesSameSubject > TriplesSameSubject() nodeOptional > ( "." ( TriplesBlock() )? )?
@Override public R visit(TriplesBlock n, A argu) { R _ret = null; n.triplesSameSubject.accept(this, argu); n.nodeOptional.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void TriplesSameSubject(Exp stack) throws ParseException {\n Expression expression1;\n if (jj_2_12(2)) {\n expression1 = VarOrTerm(stack);\n stack = PropertyListNotEmpty(expression1, stack);\n } else {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case LBRACKET:\n case AT:\n expression1 = TriplesNode(stack);\n stack = PropertyList(expression1, stack);\n break;\n case TUPLE:\n stack = tuple(stack);\n break;\n default:\n jj_la1[187] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(ConstructTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Override\r\n public void insertTripleDistributedBySubject(Triple triple) {\n\r\n }", "@Test\n public void performKTails1Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 2);\n // Only the two b nodes should be merged.\n assertTrue(pGraph.getNodes().size() == 6);\n }", "private void phaseTwo(){\r\n\r\n\t\tCollections.shuffle(allNodes, random);\r\n\t\tList<Pair<Node, Node>> pairs = new ArrayList<Pair<Node, Node>>();\r\n\t\t\r\n\t\t//For each node in allNode, get all relationshpis and iterate through each relationship.\r\n\t\tfor (Node n1 : allNodes){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//If a node n1 is related to any other node in allNodes, add those relationships to rels.\r\n\t\t\t\t//Avoid duplication, and self loops.\r\n\t\t\t\tIterable<Relationship> ite = n1.getRelationships(Direction.BOTH);\t\t\t\t\r\n\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\tNode n2 = rel.getOtherNode(n1);\t//Get the other node\r\n\t\t\t\t\tif (allNodes.contains(n2) && !n1.equals(n2)){\t\t\t\t\t//If n2 is part of allNodes and n1 != n2\r\n\t\t\t\t\t\tif (!rels.contains(rel)){\t\t\t\t\t\t\t\t\t//If the relationship is not already part of rels\r\n\t\t\t\t\t\t\tPair<Node, Node> pA = new Pair<Node, Node>(n1, n2);\r\n\t\t\t\t\t\t\tPair<Node, Node> pB = new Pair<Node, Node>(n2, n1);\r\n\r\n\t\t\t\t\t\t\tif (!pairs.contains(pA)){\r\n\t\t\t\t\t\t\t\trels.add(rel);\t\t\t\t\t\t\t\t\t\t\t//Add the relationship to the lists.\r\n\t\t\t\t\t\t\t\tpairs.add(pA);\r\n\t\t\t\t\t\t\t\tpairs.add(pB);\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\ttx.success();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn;\r\n\t}", "@Override\n boolean isSameTransitTrip(TransitNode transitNode) {\n if (transitNode instanceof SubwayStation) {\n return this.startLocation.getLine().equals(((SubwayStation) transitNode).getLine());\n }\n return false;\n }", "@Test\n public void performKTails0Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 1);\n // All a's and b's should be merged + initial + terminal.\n assertTrue(pGraph.getNodes().size() == 4);\n }", "TripleGraph createTripleGraph();", "public Set<Tuple<Vec3i, PartSlot>> multipartTransConnections();", "@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 void fourNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pB(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\"), pO(\"n1:5\")));\n n(tx, true, \"n2\", Stream.of(pB(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\"), pI(\"n2:5\")));\n n(tx, true, \"n3\", Stream.of(pB(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pO(\"n3:4\"), pI(\"n3:5\")));\n n(tx, true, \"n4\", Stream.of(pB(\"n4:1\"), pB(\"n4:2\"), pI(\"n4:3\"), pI(\"n4:4\"), pO(\"n4:5\")));\n l(tx, \"n1\", \"n1:5\", \"n2\", \"n2:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n4\", \"n4:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n2\", \"n2:3\", \"n4\", \"n4:3\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n3\", \"n3:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n4\", \"n4:5\", \"n3\", \"n3:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void performKTails2Test() throws InternalSynopticException,\n ParseException {\n PartitionGraph pGraph = KTails.performKTails(makeSimpleGraph(), 3);\n // Only the b nodes should be merged.\n assertTrue(pGraph.getNodes().size() == 6);\n }", "public boolean hasCycle(Node<T> first) {\n Iterator itOne = this.iterator();\n Iterator itTwo = this.iterator();\n try {\n while (true) {\n T one = (T) itOne.next();\n itTwo.next();\n T two = (T) itTwo.next();\n if (one.equals(two)) {\n return true;\n }\n }\n } catch (NullPointerException ex) {\n ex.printStackTrace();\n }\n return false;\n }", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "private ScheduleGrph initializeIdenticalTaskEdges(ScheduleGrph input) {\n\n\t\tScheduleGrph correctedInput = (ScheduleGrph) SerializationUtils.clone(input);\n\t\t// FORKS AND TODO JOINS\n\t\t/*\n\t\t * for (int vert : input.getVertices()) { TreeMap<Integer, List<Integer>> sorted\n\t\t * = new TreeMap<Integer, List<Integer>>(); for (int depend :\n\t\t * input.getOutNeighbors(vert)) { int edge = input.getSomeEdgeConnecting(vert,\n\t\t * depend); int weight = input.getEdgeWeightProperty().getValueAsInt(edge); if\n\t\t * (sorted.get(weight) != null) { sorted.get(weight).add(depend); } else {\n\t\t * ArrayList<Integer> a = new ArrayList(); a.add(depend); sorted.put(weight, a);\n\t\t * }\n\t\t * \n\t\t * } int curr = -1; for (List<Integer> l : sorted.values()) { for (int head : l)\n\t\t * {\n\t\t * \n\t\t * if (curr != -1) { correctedInput.addDirectedSimpleEdge(curr, head); } curr =\n\t\t * head; }\n\t\t * \n\t\t * } }\n\t\t */\n\n\t\tfor (int vert : input.getVertices()) {\n\t\t\tfor (int vert2 : input.getVertices()) {\n\t\t\t\tint vertWeight = input.getVertexWeightProperty().getValueAsInt(vert);\n\t\t\t\tint vert2Weight = input.getVertexWeightProperty().getValueAsInt(vert2);\n\n\t\t\t\tIntSet vertParents = input.getInNeighbors(vert);\n\t\t\t\tIntSet vert2Parents = input.getInNeighbors(vert2);\n\n\t\t\t\tIntSet vertChildren = input.getOutNeighbors(vert);\n\t\t\t\tIntSet vert2Children = input.getOutNeighbors(vert2);\n\n\t\t\t\tboolean childrenEqual = vertChildren.containsAll(vert2Children)\n\t\t\t\t\t\t&& vert2Children.containsAll(vertChildren);\n\n\t\t\t\tboolean parentEqual = vertParents.containsAll(vert2Parents) && vert2Parents.containsAll(vertParents);\n\n\t\t\t\tboolean inWeightsSame = true;\n\t\t\t\tfor (int parent : vertParents) {\n\t\t\t\t\tfor (int parent2 : vert2Parents) {\n\t\t\t\t\t\tif (parent == parent2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent, vert)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(parent2, vert2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tinWeightsSame = false;\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\tif (!inWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tboolean outWeightsSame = true;\n\t\t\t\tfor (int child : vertChildren) {\n\t\t\t\t\tfor (int child2 : vert2Children) {\n\t\t\t\t\t\tif (child == child2 && input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert, child)) == input.getEdgeWeightProperty()\n\t\t\t\t\t\t\t\t.getValue(input.getSomeEdgeConnecting(vert2, child2))) {\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\toutWeightsSame = false;\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\tif (!outWeightsSame) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tboolean alreadyEdge = correctedInput.areVerticesAdjacent(vert, vert2)\n\t\t\t\t\t\t|| correctedInput.areVerticesAdjacent(vert2, vert);\n\n\t\t\t\tif (vert != vert2 && vertWeight == vert2Weight && parentEqual && childrenEqual && inWeightsSame\n\t\t\t\t\t\t&& outWeightsSame && !alreadyEdge) {\n\t\t\t\t\tint edge = correctedInput.addDirectedSimpleEdge(vert, vert2);\n\t\t\t\t\tcorrectedInput.getEdgeWeightProperty().setValue(edge, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn correctedInput;\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 }", "private void phaseOne(){\r\n\r\n\t\twhile (allNodes.size() < endSize){\r\n\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\t//Pick a random node from allNodes\r\n\t\t\t\tint idx = random.nextInt(allNodes.size());\r\n\t\t\t\tNode node = allNodes.get(idx);\r\n\r\n\t\t\t\t//Get all relationships of node\t\t\t\t\r\n\t\t\t\tIterable<Relationship> ite = node.getRelationships(Direction.BOTH);\r\n\t\t\t\tList<Relationship> tempRels = new ArrayList<Relationship>();\r\n\r\n\t\t\t\t//Pick one of the relationships uniformly at random.\r\n\t\t\t\tfor (Relationship rel : ite){\r\n\t\t\t\t\ttempRels.add(rel);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tidx = random.nextInt(tempRels.size());\r\n\t\t\t\tRelationship rel = tempRels.get(idx);\r\n\t\t\t\tNode neighbour = rel.getOtherNode(node);\r\n\r\n\t\t\t\t//Add the neighbour to allNodes\r\n\t\t\t\tif (!allNodes.contains(neighbour)){\r\n\t\t\t\t\tallNodes.add(neighbour);\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttx.success();\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t//If reached here, then phase one completed successfully.\r\n\t\treturn;\r\n\t}", "@Test\n public void testDataStructuresWithSubnetwork() {\n if (!PhreakBuilder.isEagerSegmentCreation()) return;\n\n InternalKnowledgeBase kbase1 = buildKnowledgeBase(\"r\",\n \" a : A() B() exists ( C() and C(1;) ) E() X()\\n\");\n\n InternalWorkingMemory wm = (InternalWorkingMemory) kbase1.newKieSession();\n ObjectTypeNode aotn = getObjectTypeNode(kbase1.getRete(), A.class);\n ObjectTypeNode botn = getObjectTypeNode(kbase1.getRete(), B.class);\n\n LeftInputAdapterNode lian = (LeftInputAdapterNode) aotn.getSinks()[0];\n\n insertAndFlush(wm);\n\n SegmentPrototype smemProto0 = kbase1.getSegmentPrototype(lian);\n\n PathEndNode endNode0 = smemProto0.getPathEndNodes()[0];\n assertThat(endNode0.getType()).isEqualTo(NodeTypeEnums.RightInputAdapterNode);\n assertThat(endNode0.getPathMemSpec().allLinkedTestMask()).isEqualTo(2);\n assertThat(endNode0.getPathMemSpec().smemCount()).isEqualTo(2);\n\n PathEndNode endNode1 = smemProto0.getPathEndNodes()[1];\n assertThat(endNode1.getType()).isEqualTo(NodeTypeEnums.RuleTerminalNode);\n assertThat(endNode1.getPathMemSpec().allLinkedTestMask()).isEqualTo(3);\n assertThat(endNode1.getPathMemSpec().smemCount()).isEqualTo(2);\n }", "@Test\n public void tr3()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(1,0);\n assertFalse(graph.reachable(sources, targets));\n }", "@Test\n public void testParallelPropagationLoopBack3SitesNtoNTopologyPutFromOneDS() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n Integer tkPort = vm2.invoke(() -> WANTestBase.createFirstRemoteLocator(3, lnPort));\n\n createCacheInVMs(lnPort, vm3, vm6);\n createCacheInVMs(nyPort, vm4, vm7);\n createCacheInVMs(tkPort, vm5);\n vm3.invoke(WANTestBase::createReceiver);\n vm4.invoke(WANTestBase::createReceiver);\n vm5.invoke(WANTestBase::createReceiver);\n\n // site1\n vm3.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n\n // site2\n vm4.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n\n vm4.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n\n // site3\n vm5.invoke(() -> WANTestBase.createSender(\"tk1\", 1, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"tk2\", 2, true, 100, 10, false, false, null, true));\n\n // create PR\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"tk1,tk2\", 0,\n 1, isOffHeap()));\n\n // start all the senders\n vm3.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.startSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.startSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.startSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.startSender(\"tk2\"));\n\n // pause senders on all the sites\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk2\"));\n\n // this is required since sender pause doesn't take effect immediately\n Wait.pause(1000);\n\n // do puts on site1\n vm3.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site1 and site3\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln1\", 100));\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln2\", 100));\n\n // resume sender (from site1 to site2) on site1\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as the events from site1 should not go back to site1\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as events from site1 will reach site3 directly..site2 need not send to\n // site3 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // do more puts on site3\n vm5.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n\n // resume sender (from site3 to site2) on site3\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk2\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as the events from site3 should not go back to site3\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as events from site3 will reach site1 directly..site2 need not send to\n // site1 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // resume all senders\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk1\"));\n\n // validate region size on all sites\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }", "@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}", "public void testConvertTopo (Topology tp)\n {\n Node root = tp.getNodes().get(0);\n //root.setColor(Color.green);\n parcours(root, visitedlist, compo1);\n set.addAll(composante);\n ArrayList distinctList = new ArrayList(set);\n System.out.println(distinctList.size());\n for ( int i = 0; i < distinctList.size(); i++ )\n System.out.println(distinctList.get(i));\n ArrayList<Link> liste = connectedL(tp);\n /*for (int i = 0; i < liste.size(); i++)\n System.out.println(liste.get(i));*/\n Convert(liste);\n /*for ( int i = 0; i < listConvert.size(); i++ )\n System.out.println(listConvert.get(i));*/\n ConvertMinimiz(listConvert);\n minimisationConvCompo(distinctList);\n minimisationAllNeighbor(listConvert,tp);\n //minimisation4(listConvert,tp);\n }", "public TrieDifferentCombinations() {\n this.root = new TrieDifferentCombinationsNode();\n }", "@Test\r\n void test_remove_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"C\");\r\n graph.removeEdge(\"A\", \"B\");\r\n graph.removeEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n } \r\n }", "@Override\n public R visit(DeleteTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "@Test\r\n void test_insert_same_vertex_twice() {\r\n graph.addVertex(\"1\");\r\n graph.addVertex(\"1\"); \r\n graph.addVertex(\"1\"); \r\n vertices = graph.getAllVertices();\r\n if(vertices.size() != 1 ||graph.order() != 1) {\r\n fail();\r\n }\r\n }", "@Test\n public void multipleNetServers() throws Exception {\n String gNode1 = \"graphNode1\";\n String gNode2 = \"graphNode2\";\n\n Map<String, String> rcaConfTags = new HashMap<>();\n rcaConfTags.put(\"locus\", RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n IntentMsg msg = new IntentMsg(gNode1, gNode2, rcaConfTags);\n wireHopper2.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n wireHopper1.sendIntent(msg);\n\n WaitFor.waitFor(() ->\n wireHopper2.getSubscriptionManager().getSubscribersFor(gNode2).size() == 1,\n 10,\n TimeUnit.SECONDS);\n GenericFlowUnit flowUnit = new SymptomFlowUnit(System.currentTimeMillis());\n DataMsg dmsg = new DataMsg(gNode2, Lists.newArrayList(gNode1), Collections.singletonList(flowUnit));\n wireHopper2.sendData(dmsg);\n wireHopper1.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n WaitFor.waitFor(() -> {\n List<FlowUnitMessage> receivedMags = wireHopper1.getReceivedFlowUnitStore().drainNode(gNode2);\n return receivedMags.size() == 1;\n }, 10, TimeUnit.SECONDS);\n }", "public String getPrefix() { return \"linknode\"; }", "@Test\n public void tr2()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n graph.addEdge(0,1);\n assertTrue(graph.reachable(sources, targets));\n\n\n }", "@Test\n public void tr1()\n {\n Graph graph = new Graph(2);\n Set<Integer> sources = new TreeSet<Integer>();\n Set<Integer> targets = new TreeSet<Integer>();\n sources.add(0);\n targets.add(1);\n assertFalse(graph.reachable(sources, targets));\n }", "private boolean isNoteworthy(ThingTimeTriple firstTriple, ThingTimeTriple previousTriple)\r\n/* 129: */ {\r\n/* 130:137 */ Mark.say(\r\n/* 131: */ \r\n/* 132: */ \r\n/* 133: */ \r\n/* 134: */ \r\n/* 135: */ \r\n/* 136: */ \r\n/* 137: */ \r\n/* 138: */ \r\n/* 139: */ \r\n/* 140: */ \r\n/* 141: */ \r\n/* 142: */ \r\n/* 143: */ \r\n/* 144: */ \r\n/* 145: */ \r\n/* 146: */ \r\n/* 147: */ \r\n/* 148: */ \r\n/* 149: */ \r\n/* 150: */ \r\n/* 151: */ \r\n/* 152: */ \r\n/* 153: */ \r\n/* 154: */ \r\n/* 155: */ \r\n/* 156: */ \r\n/* 157: */ \r\n/* 158: */ \r\n/* 159: */ \r\n/* 160: */ \r\n/* 161: */ \r\n/* 162: */ \r\n/* 163: */ \r\n/* 164: */ \r\n/* 165: */ \r\n/* 166: */ \r\n/* 167: */ \r\n/* 168: */ \r\n/* 169: */ \r\n/* 170: */ \r\n/* 171: */ \r\n/* 172: */ \r\n/* 173: */ \r\n/* 174:181 */ new Object[] { \"Inputs to isNoteworthy\", firstTriple.english, previousTriple.english });\r\n/* 175:138 */ if (previousTriple == null)\r\n/* 176: */ {\r\n/* 177:139 */ resetReference(firstTriple);\r\n/* 178:140 */ return true;\r\n/* 179: */ }\r\n/* 180:143 */ if (previousTriple.english.equals(firstTriple.english))\r\n/* 181: */ {\r\n/* 182:144 */ Mark.say(new Object[] {\"English is the same\" });\r\n/* 183: */ }\r\n/* 184: */ else\r\n/* 185: */ {\r\n/* 186:147 */ String type = firstTriple.t.getType();\r\n/* 187:148 */ Mark.say(new Object[] {\"Significant types\", type, this.significantEvents });\r\n/* 188:150 */ if (this.significantEvents.contains(type))\r\n/* 189: */ {\r\n/* 190:151 */ Mark.say(new Object[] {firstTriple.english, \"is significant\" });\r\n/* 191: */ \r\n/* 192: */ \r\n/* 193: */ \r\n/* 194:155 */ ThingTimeTriple previousEventOfSameType = (ThingTimeTriple)this.previousTriples.get(type);\r\n/* 195:157 */ if (previousEventOfSameType == null)\r\n/* 196: */ {\r\n/* 197:158 */ resetReference(firstTriple);\r\n/* 198:159 */ return true;\r\n/* 199: */ }\r\n/* 200:162 */ if (overlaps(firstTriple, previousEventOfSameType))\r\n/* 201: */ {\r\n/* 202:167 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", Html.line(\"Events overlap [\" + \r\n/* 203:168 */ previousEventOfSameType.from / 1000L + \" \" + previousEventOfSameType.to / 1000L + \"] [\" + firstTriple.from / 1000L + \" \" + \r\n/* 204:169 */ firstTriple.to / 1000L + \"] \") }));\r\n/* 205: */ }\r\n/* 206: */ else\r\n/* 207: */ {\r\n/* 208:172 */ resetReference(firstTriple);\r\n/* 209:173 */ return true;\r\n/* 210: */ }\r\n/* 211: */ }\r\n/* 212: */ else\r\n/* 213: */ {\r\n/* 214:177 */ Mark.say(new Object[] {firstTriple.english, \"NOT significant\" });\r\n/* 215: */ }\r\n/* 216: */ }\r\n/* 217:180 */ return false;\r\n/* 218: */ }", "@Test\r\n void test_insert_same_edge_twice() {\r\n // Add two vertices with one edge\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"A\", \"B\");\r\n if (graph.size() != 1) {\r\n fail();\r\n }\r\n if (!graph.getAdjacentVerticesOf(\"A\").contains(\"B\")) {\r\n fail();\r\n }\r\n\r\n }", "@Test\n public void TestIfNoCycle() {\n final int NUMBER_OF_ELEMENTS = 100;\n TripleList<Integer> tripleList = new TripleList<>();\n for (int i = 0; i < NUMBER_OF_ELEMENTS; ++i) {\n tripleList.add(i);\n }\n /**\n * Created 2 TripleLists, first jumps every single element, another\n * every two elements, in out case every two elements means every\n * NextElement*\n */\n TripleList<Integer> tripleListEverySingleNode = tripleList;\n TripleList<Integer> tripleListEveryTwoNodes = tripleList.getNext();\n for (int i = 0; i < NUMBER_OF_ELEMENTS * NUMBER_OF_ELEMENTS; ++i) {\n Assert.assertNotSame(tripleListEverySingleNode, tripleListEveryTwoNodes);\n //JumpToNextElement(ref tripleListEverySingleNode);\n if (null == tripleListEveryTwoNodes.getNext()) {\n // if list has end means there are no cycles\n break;\n } else {\n tripleListEveryTwoNodes = tripleListEveryTwoNodes.getNext();\n }\n }\n }", "private void go(Network n1) {\n\t\t\n\t\tNetwork n2 = new Network(2, n1);\n\t\tNetwork n3 = new Network(2, n2);\n\t\tSystem.out.println(\"\\tn3.p.p.id = \" + n3.p.p.id);\n\t}", "@Test\n public void cyclicalGraphs3Test() throws Exception {\n // Test graphs with multiple loops. g1 has two different loops, which\n // have to be correctly matched to g2 -- which is build in a different\n // order but is topologically identical to g1.\n\n ChainsTraceGraph g1 = new ChainsTraceGraph();\n List<EventNode> g1Nodes = addNodesToGraph(g1, new String[] { \"a\", \"b\",\n \"c\", \"d\", \"b\", \"c\" });\n\n // Create loop1 in g1, with the first 4 nodes.\n g1Nodes.get(0).addTransition(g1Nodes.get(1), Event.defTimeRelationStr);\n g1Nodes.get(1).addTransition(g1Nodes.get(2), Event.defTimeRelationStr);\n g1Nodes.get(2).addTransition(g1Nodes.get(3), Event.defTimeRelationStr);\n g1Nodes.get(3).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n\n // Create loop2 in g1, with the last 2 nodes, plus the initial node.\n g1Nodes.get(0).addTransition(g1Nodes.get(4), Event.defTimeRelationStr);\n g1Nodes.get(4).addTransition(g1Nodes.get(5), Event.defTimeRelationStr);\n g1Nodes.get(5).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n\n exportTestGraph(g1, 0);\n\n // //////////////////\n // Now create g2, by generating the two identical loops in the reverse\n // order.\n\n ChainsTraceGraph g2 = new ChainsTraceGraph();\n List<EventNode> g2Nodes = addNodesToGraph(g2, new String[] { \"a\", \"b\",\n \"c\", \"d\", \"b\", \"c\" });\n\n // Create loop2 in g2, with the last 2 nodes, plus the initial node.\n g2Nodes.get(0).addTransition(g2Nodes.get(4), Event.defTimeRelationStr);\n g2Nodes.get(4).addTransition(g2Nodes.get(5), Event.defTimeRelationStr);\n g2Nodes.get(5).addTransition(g2Nodes.get(0), Event.defTimeRelationStr);\n\n // Create loop1 in g2, with the first 4 nodes.\n g2Nodes.get(0).addTransition(g2Nodes.get(1), Event.defTimeRelationStr);\n g2Nodes.get(1).addTransition(g2Nodes.get(2), Event.defTimeRelationStr);\n g2Nodes.get(2).addTransition(g2Nodes.get(3), Event.defTimeRelationStr);\n g2Nodes.get(3).addTransition(g2Nodes.get(0), Event.defTimeRelationStr);\n\n exportTestGraph(g2, 1);\n\n // //////////////////\n // Now test that the two graphs are identical for all k starting at the\n // initial node.\n\n for (int k = 1; k < 7; k++) {\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), k);\n }\n }", "boolean outputClaimedInSameBranch(BlockChainLink link, TransactionInput in);", "public boolean checkEGJoin(List<String> queryTriplets) {\n\n boolean flagEG = false;\n boolean foundEG = false;\n List<List<String>> newEGpair = null;\n List<List<String>> newEGpair2 = null;\n List<String> innerDTP = null;\n List<String> outerDTP = null;\n List<String> currEG = null;\n\n if (queryTriplets.size() >= 6) {\n\n for (int key : mapTmpEGtoAllTPs.keySet()) {\n\n currEG = mapTmpEGtoAllTPs.get(key);\n int commElems = myBasUtils.candidateTPcomElems(currEG, queryTriplets);\n\n if (currEG.size() == queryTriplets.size()) {\n\n // the second condition, is used to capture Nested Loop with EG operator, made by FedX\n if (commElems == currEG.size() || commElems == currEG.size() - 1) {\n\n if (commElems == currEG.size() - 1) {\n\n mapEGtoCancel.put(key, 1);\n mapEGtoOccurs.put(currEG, 2);\n }\n\n foundEG = true;\n break;\n }\n\n }\n\n }\n\n //If it's the first time we see this EG or NLEG, we save each pairWise join as EG\n if (!foundEG) {\n\n int indEG = mapTmpEGtoAllTPs.size();\n mapTmpEGtoAllTPs.put(indEG, queryTriplets);\n mapEGtoOccurs.put(currEG, 1);\n\n for (int i = 0; i < queryTriplets.size(); i += 3) {\n\n outerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(i, i + 3)));\n for (int f = i + 3; f < queryTriplets.size(); f += 3) {\n\n flagEG = true;\n innerDTP = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n newEGpair = Arrays.asList(innerDTP, outerDTP);\n newEGpair2 = Arrays.asList(outerDTP, innerDTP);\n myDedUtils.setNewEGInfo(outerDTP, innerDTP, newEGpair, newEGpair2, indEG);\n }\n\n }\n }\n\n }\n\n return flagEG;\n }", "public static void main(String args[]) throws CloneNotSupportedException\n\t{\n\t\tSystem.out.println(getRandomNumber(2, 2));\n\t\t//Node n1 = org.apache.commons.lang3.SerializationUtils.clone(n);\n\t\t//n.getNextNodes().get(\"1\").getNextNodes().put(\"1\", null);\n\t\t//System.out.println(n1.getNextNodes().get(\"1\").getNextNodes().get(\"1\"));\n\t}", "@Override\r\n\t\tpublic boolean isSameNode(Node other)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "private void fiveNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pI(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\")));\n n(tx, true, \"n2\", Stream.of(pI(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\")));\n n(tx, true, \"n3\", Stream.of(pO(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pI(\"n3:4\")));\n n(tx, true, \"n4\", Stream.of(pO(\"n4:1\"), pI(\"n4:2\"), pB(\"n4:3\"), pB(\"n4:4\")));\n n(tx, true, \"n5\", Stream.of(pI(\"n5:1\"), pB(\"n5:2\"), pB(\"n5:3\"), pO(\"n5:4\")));\n l(tx, \"n2\", \"n2:3\", \"n3\", \"n3:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:1\", \"n1\", \"n1:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:3\", \"n5\", \"n5:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n4\", \"n4:1\", \"n1\", \"n1:3\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n5\", \"n5:4\", \"n4\", \"n4:2\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }", "public void makePreferredOTTOLRelationshipsConflicts(){\n \t\tTransaction tx;\n \t\tString name = \"life\";\n \t\tIndexHits<Node> foundNodes = findTaxNodeByName(name);\n Node firstNode = null;\n if (foundNodes.size() < 1){\n System.out.println(\"name '\" + name + \"' not found. quitting.\");\n return;\n } else if (foundNodes.size() > 1) {\n System.out.println(\"more than one node found for name '\" + name + \"'not sure how to deal with this. quitting\");\n } else {\n for (Node n : foundNodes)\n firstNode = n;\n }\n \t\tTraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t\t\t.relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tint count = 0;\n \t\ttx = graphDb.beginTx();\n \t\ttry{\n \t\t\tfor(Node friendnode : CHILDOF_TRAVERSAL.traverse(firstNode).nodes()){\n \t\t\t\tboolean conflict = false;\n \t\t\t\tString endNode = \"\";\n \t\t\t\tRelationship ncbirel = null;\n \t\t\t\tRelationship ottolrel = null;\n \t\t\t\tfor(Relationship rel : friendnode.getRelationships(Direction.OUTGOING)){\n \t\t\t\t\tif (rel.getEndNode() == rel.getStartNode()){\n \t\t\t\t\t\tcontinue;\n \t\t\t\t\t}else{\n \t\t\t\t\t\tif (endNode == \"\")\n \t\t\t\t\t\t\tendNode = (String) rel.getEndNode().getProperty(\"name\");\n \t\t\t\t\t\tif ((String)rel.getEndNode().getProperty(\"name\") != endNode){\n \t\t\t\t\t\t\tconflict = true;\n \t\t\t\t\t\t}\n \t\t\t\t\t\tif(((String)rel.getProperty(\"source\")).compareTo(\"ncbi\")==0)\n \t\t\t\t\t\t\tncbirel = rel;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif (conflict && ncbirel != null){\n \t\t\t\t\tcount += 1;\n //\t\t\t\t\tSystem.out.println(\"would make one from \"+ncbirel.getStartNode().getProperty(\"name\")+\" \"+ncbirel.getEndNode().getProperty(\"name\"));\n \t\t\t\t\tif(ncbirel.getStartNode()!=ncbirel.getEndNode()){\n \t\t\t\t\t\tncbirel.getStartNode().createRelationshipTo(ncbirel.getEndNode(), RelTypes.PREFTAXCHILDOF);\n \t\t\t\t\t\tRelationship newrel2 = ncbirel.getStartNode().createRelationshipTo(ncbirel.getEndNode(), RelTypes.TAXCHILDOF);\n \t\t\t\t\t\tnewrel2.setProperty(\"source\", \"ottol\");\n \t\t\t\t\t}else{\n \t\t\t\t\t\tSystem.out.println(\"would make cycle from \"+ncbirel.getEndNode().getProperty(\"name\"));\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\tif(count % transaction_iter == 0)\n \t\t\t\t\tSystem.out.println(count);\n \t\t\t}\n \t\t\ttx.success();\n \t\t}finally{\n \t\t\ttx.finish();\n \t\t}\n \t}", "BlockChainLink getCommonLink(byte[] first, byte[] second);", "public boolean equals(LinearNode<T> node) {\t\r\n\t\t\r\n\t\tboolean result = true; \r\n\r\n\t\tif (this.getElement() == node.getElement())\r\n\t\t\tresult = true;\r\n\t\telse\r\n\t\t\tresult = false;\r\n\t\t\r\n\t\treturn result;\r\n\t\r\n\t}", "public static Boolean getAppositivePrs(PairInstance inst) {\n if (inst.getAnaphor().getSentId()!=inst.getAntecedent().getSentId()) \n return false;\n\n// exclude pairs where anaphor is an NE -- this might be a bad idea though..\n if (inst.getAnaphor().isEnamex()) \n return false;\n\n\n if (inst.getAntecedent().isEnamex() &&\n inst.getAnaphor().isEnamex()) {\n\n// exclude pairs of NE that have different type\n\n if (!(inst.getAntecedent().getEnamexType().equals(\n inst.getAnaphor().getEnamexType())))\n return false;\n\n// exclude pairs of LOC-ne\n if (inst.getAntecedent().getEnamexType().toLowerCase().startsWith(\"gpe\"))\n return false;\n if (inst.getAntecedent().getEnamexType().toLowerCase().startsWith(\"loc\"))\n return false;\n }\n\n// should have not-null maxnp-trees (otherwise -- problematic mentions)\n\nTree sentenceTree=inst.getAnaphor().getSentenceTree();\nTree AnaTree=inst.getAnaphor().getMaxNPParseTree();\nTree AnteTree=inst.getAntecedent().getMaxNPParseTree();\nif (sentenceTree==null) return false;\nif (AnaTree==null) return false;\nif (AnteTree==null) return false;\n\n\n// the structure should be ( * (,) (ANA)) or ( * (,) (ANTE)) -- depends on the ordering, annotation, mention extraction etc\n\n if (AnteTree.parent(sentenceTree)==AnaTree) {\n Tree[] chlds=AnaTree.children();\n Boolean lastcomma=false;\n for (int i=0; i<chlds.length && chlds[i]!=AnteTree; i++) {\n lastcomma=false;\n if (chlds[i].value().equalsIgnoreCase(\",\")) lastcomma=true;\n }\n return lastcomma;\n }\n if (AnaTree.parent(sentenceTree)==AnteTree) {\n\n Tree[] chlds=AnteTree.children();\n Boolean lastcomma=false;\n for (int i=0; i<chlds.length && chlds[i]!=AnaTree; i++) {\n lastcomma=false;\n if (chlds[i].value().equalsIgnoreCase(\",\")) lastcomma=true;\n }\n return lastcomma;\n\n }\n\n return false;\n\n }", "public void minimisation4( ArrayList<Node>convrt1, Topology tp)\n {\n for ( int i=0; i<tp.getNodes().size(); i++ )\n {\n Node n= tp.getNodes().get(i);\n List<Link>allLinks = n.getLinks();\n boolean allLinksConnected= true;\n for ( int j=0; j<allLinks.size();j++ )\n {\n Link l= allLinks.get(j);\n if ( l.getColor()!=Color.orange)\n allLinksConnected=false;\n }\n List<Node> neighbors= n.getNeighbors();\n boolean allNeighborsConvert=true;\n for ( int j=0; j<neighbors.size();j++ )\n {\n Node n1= neighbors.get(j);\n if ( (convrt1.contains(n1))== false )\n {\n allNeighborsConvert=false;\n }\n }\n if ( allLinksConnected==true && allNeighborsConvert==true )\n {\n if ( n instanceof Ipv6)\n {\n ((Ipv6) n).setType(\"Conv\");\n n.setIcon(\"./src/img/Conv.png\");\n convrt1.add(n);\n }\n else if ( n instanceof Ipv4)\n {\n ((Ipv4) n).setType(\"Conv\");\n n.setIcon(\"./src/img/Conv.png\");\n convrt1.add(n);\n }\n\n for ( int m=0; m< n.getNeighbors().size(); m++ )\n {\n Node n2= n.getNeighbors().get(m);\n if ( n2 instanceof Ipv6)\n {\n ((Ipv6) n2).setType(\"IPV6\");\n n2.setIcon(\"./src/img/ipv6.png\");\n convrt1.remove(n2);\n }\n else if ( n2 instanceof Ipv4)\n {\n ((Ipv4) n2).setType(\"IPV4\");\n n2.setIcon(\"./src/img/ipv4.png\");\n convrt1.remove(n2);\n }\n }\n }\n }\n }", "public GraphNode firstEndpoint(){\r\n return first;\r\n }", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "NodeChain createNodeChain();", "public void test_ck_03() {\n // part A - surprising reification\n OntModel model1 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM, null);\n OntModel model2 = ModelFactory.createOntologyModel(OntModelSpec.DAML_MEM_RULE_INF, null);\n \n Individual sub = model1.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n OntProperty pred = model1.createOntProperty(\"http://mytest#\");\n Individual obj = model1.createIndividual(\"http://mytest#i2\", model1.getProfile().CLASS());\n OntProperty probabilityP = model1.createOntProperty(\"http://mytest#prob\");\n \n Statement st = model1.createStatement(sub, pred, obj);\n model1.add(st);\n st.createReifiedStatement().addProperty(probabilityP, 0.9);\n assertTrue(\"st should be reified\", st.isReified());\n \n Statement st2 = model2.createStatement(sub, pred, obj);\n model2.add(st2);\n st2.createReifiedStatement().addProperty(probabilityP, 0.3);\n assertTrue(\"st2 should be reified\", st2.isReified());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP).addProperty(probabilityP, 0.3); //!!!\n // exception\n \n // Part B - exception in remove All\n Individual sub2 = model2.createIndividual(\"http://mytest#i1\", model1.getProfile().CLASS());\n \n sub.addProperty(probabilityP, 0.3);\n sub.removeAll(probabilityP); //!!! exception\n \n sub2.addProperty(probabilityP, 0.3);\n sub2.removeAll(probabilityP); //!!! exception\n \n }", "private BasicBlock getUniqueNext(ControlFlowGraph graph, HashSet<BasicBlock[]> setNext) {\n\t\t\n\t\tBasicBlock next = null;\n\t\tboolean multiple = false;\n\t\t\n\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\n\t\t\tif(arr[2] != null) {\n\t\t\t\tnext = arr[1];\n\t\t\t\tmultiple = false;\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif(next == null) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t} else if(next != arr[1]) {\n\t\t\t\t\tmultiple = true;\n\t\t\t\t}\n\n\t\t\t\tif(arr[1].getPreds().size() == 1) {\n\t\t\t\t\tnext = arr[1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(multiple) { // TODO: generic solution\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tBasicBlock block = arr[1];\n\t\t\t\t\n\t\t\t\tif(block != next) {\n\t\t\t\t\tif(InterpreterUtil.equalSets(next.getSuccs(), block.getSuccs())) {\n\t\t\t\t\t\tInstructionSequence seqNext = next.getSeq();\n\t\t\t\t\t\tInstructionSequence seqBlock = block.getSeq();\n\n\t\t\t\t\t\tif(seqNext.length() == seqBlock.length()) {\n\t\t\t\t\t\t\tfor(int i=0;i<seqNext.length();i++) {\n\t\t\t\t\t\t\t\tInstruction instrNext = seqNext.getInstr(i);\n\t\t\t\t\t\t\t\tInstruction instrBlock = seqBlock.getInstr(i);\n\n\t\t\t\t\t\t\t\tif(instrNext.opcode != instrBlock.opcode || instrNext.wide != instrBlock.wide\n\t\t\t\t\t\t\t\t\t\t|| instrNext.operandsCount() != instrBlock.operandsCount()) {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tfor(int j=0;i<instrNext.getOperands().length;j++) {\n\t\t\t\t\t\t\t\t\tif(instrNext.getOperand(j) != instrBlock.getOperand(j)) {\n\t\t\t\t\t\t\t\t\t\treturn null;\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} else {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n//\t\t\ttry {\n//\t\t\t\tDotExporter.toDotFile(graph, new File(\"c:\\\\Temp\\\\fern5.dot\"), true);\n//\t\t\t} catch(IOException ex) {\n//\t\t\t\tex.printStackTrace();\n//\t\t\t}\n\t\t\t\n\t\t\tfor(BasicBlock[] arr : setNext) {\n\t\t\t\tif(arr[1] != next) {\n\t\t\t\t\t// FIXME: exception edge possible?\n\t\t\t\t\tarr[0].removeSuccessor(arr[1]);\n\t\t\t\t\tarr[0].addSuccessor(next);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tDeadCodeHelper.removeDeadBlocks(graph);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn next;\n\t}", "@Test\n public void cyclicalGraphs1Test() throws Exception {\n // NOTE: we can't use the parser to create a circular graph because\n // vector clocks are partially ordered and do not admit cycles. So we\n // have to create circular graphs manually.\n ChainsTraceGraph g1 = new ChainsTraceGraph();\n List<EventNode> g1Nodes = addNodesToGraph(g1, new String[] { \"a\", \"a\",\n \"a\" });\n // Create a loop in g1, with 3 nodes\n g1Nodes.get(0).addTransition(g1Nodes.get(1), Event.defTimeRelationStr);\n g1Nodes.get(1).addTransition(g1Nodes.get(2), Event.defTimeRelationStr);\n g1Nodes.get(2).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g1, 0);\n\n ChainsTraceGraph g2 = new ChainsTraceGraph();\n List<EventNode> g2Nodes = addNodesToGraph(g2, new String[] { \"a\", \"a\" });\n // Create a loop in g2, with 2 nodes\n g2Nodes.get(0).addTransition(g2Nodes.get(1), Event.defTimeRelationStr);\n g2Nodes.get(1).addTransition(g2Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g2, 1);\n\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 1);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 2);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 3);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 4);\n\n ChainsTraceGraph g3 = new ChainsTraceGraph();\n List<EventNode> g3Nodes = addNodesToGraph(g2, new String[] { \"a\" });\n // Create a loop in g3, from a to itself\n g3Nodes.get(0).addTransition(g3Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g3, 2);\n\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 1);\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 2);\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 3);\n\n ChainsTraceGraph g4 = new ChainsTraceGraph();\n List<EventNode> g4Nodes = addNodesToGraph(g2, new String[] { \"a\" });\n exportTestGraph(g4, 2);\n\n testKEqual(g4Nodes.get(0), g2Nodes.get(0), 1);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 2);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 3);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 4);\n }", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "public void GossipalgorithmwithP() {\n\t\tStartime = System.nanoTime();\n\t\tint T = numofConnections();\n\t\tint t = 0;\n\t\tint rounds = 0;\n\t\tint iterr = 0;\n\t\tint size = Sizeofnetwork();\n\t\tint connections;\n\t\tdouble value = 0;\n\t\tString[] nodeswithMessage, nodetorecieve;\n\t\tnodeswithMessage = new String [size];\n\t\tArrays.fill(nodeswithMessage, \"null\");\n\t\t\n\t\t//while the probability is less the 1\n\t\twhile (probability <= 1) {\n\t\t\t//while the number of nodes with message is not equal to the number of nodes\n\t\t\twhile ((rounds != size)) {\n\t\t\t\tconnections = 0;\n\t\t\t\tnumofnodewithmessage = 0;\n\t\t\t\tint ab = 0;\n\t\t\t\t//update on which nodes has recieved the message\n\t\t\t\tArrays.fill(nodeswithMessage, \"null\");\n\t\t\t\tfor (String nodes : Push.outputNodes) {\n\t\t\t\t\tnodeswithMessage[ab] = nodes;\n\t\t\t\t\tab++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//how many nodes has recieved message\n\t\t\t\tfor (int l=0; l<nodeswithMessage.length; l++) {\n\t\t\t\t\tif(!nodeswithMessage[l].equals(\"null\")) {\n\t\t\t\t\t\tnumofnodewithmessage++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//set array to host nodes with message\n\t\t\t\tnodetorecieve = new String[numofnodewithmessage];\n\t\t\t\tint flip = 0;\n\t\t\t\tfor (int a = 0; a < nodeswithMessage.length; a++) {\n\t\t\t\t\tif (!nodeswithMessage[a].equals(\"null\")) {\n\t\t\t\t\t\tnodetorecieve[flip] = nodeswithMessage[a];\n\t\t\t\t\t\tflip++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//for all the nodes with message, randomly choose a node in its connected nodes mapping, specified in the \n\t\t\t\t//Nodeswithconnect Hashmap to send the message to\n\t\t\t\tfor (int i = 0; i < nodetorecieve.length; i++) {\n\t\t\t\t\tconnections = 0;\n\t\t\t\t\tfor (int p=0; p < (Nodeswithconnect.get(nodetorecieve[i])).length; p++) {\n\t\t\t\t\t\t\tString validnode = Nodeswithconnect.get(nodetorecieve[i])[p];\n\t\t\t\t\t\t\tif(!validnode.equals(\"null\")) {\n\t\t\t\t\t\t\t\tconnections++;\n\t\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\t//for the specified probability\n\t\t\t\t\t//if the random value out of 100, chosen is not greater than the probabilty, dont send\n\t\t\t\t\t//until true, send message\n\t\t\t\t\tdouble probableValue = 100 * probability;\n\t\t\t\t\tint probablesending = (int) Math.round(probableValue);\n\t\t\t\t\tint send = new Random().nextInt(100);\n\t\t\t\t\tif(send > probablesending) {\n\t\t\t\t\t\tint rand = new Random().nextInt(connections);\n\t\t\t\t\t\tnetworkk.setMessage(Nodeswithconnect.get(nodetorecieve[i])[rand]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//wait for some interval\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//update the number of nodes with message.\n\t\t\t\trounds = numofnodewithmessage;\n\t\t\t}\n\t\t\t//for the specified probability, print out the node ID in the order in which the nodes received message\n\t\t\tSystem.out.println(\"For Probability of: \" +probability);\n\t\t\tfor(String nodes : Push.outputNodes) {\n\t\t\t\tSystem.out.println(nodes);\n\t\t\t}\n\t\t\t//clear the outoutNode arrayList and start-over\n\t\t\tPush.outputNodes.clear();\n\t\t\tEndtime = System.nanoTime();\n\t\t\toutputer = Endtime - Startime;\n\t\t\tdouble time = outputer/1000000;\n\t\t\t//get the time each process ended and its probability\n\t\t\t//add it to array data for scatter plot\n\t\t\tdataforPlot [0][iterr] = probability;\n\t\t\tdataforPlot [1][iterr] = time;\n\t\t\trounds = 0;\n\t\t\tprobability = probability + 0.05;\n\t\t\t//set start node again to have message\n\t\t\tStartNode(startnode, MESSAGE);\n\t\t\t\n\t\t\titerr++;\n\t\t}\n\t\t//when the algorithm has finished, plot scatter-plot\n\t\tplot = new ScatterPlot(dataforPlot);\n\t}", "public boolean equals(PatternChainNode node){\n\t\t// equal if they are the same pattern in the same pattern set\n\t\tif ( this.indexPattern == node.getPatternIndex() && \n\t\t\t\tthis.indexPatternSet == node.getPatternSetIndex() )\n\t\t\treturn true;\n\t\treturn false;\n\t}", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "public void getCTPfromQuery(List<String> queryTriplets, int dedGraphId, int indxLogCleanQuery) {\n\n int indxValue = -1;\n int indxLogQueryDedGraph = mapLogClQueryToDedGraph.get(indxLogCleanQuery);\n int indxNewTPDedGraph = -1;\n List<String> tmpTripletClean = null;\n List<Integer> allIdPats = null;\n List<Integer> deducedTPnotCoveredTimestamp = new LinkedList<>();\n String strDedQueryId = Integer.toString(dedGraphId);\n boolean flagTriplePatternOutOfTimeRange = false;\n\n //For all triple patterns\n for (int f = 0; f < queryTriplets.size(); f += 3) {\n\n tmpTripletClean = myDedUtils.getCleanTP(new LinkedList<>(queryTriplets.subList(f, f + 3)));\n\n //Check if query is an Exclusive Group\n checkTPinEG(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //Check if query is a Bound Join implementation or it's a single TP query\n checkSingleTPorBoundJ(queryTriplets, tmpTripletClean, indxLogCleanQuery);\n\n //[CASE A] When both subjects and objects are variables, or inverseMapping is disabled\n if (tmpTripletClean.get(0).contains(\"?\") && tmpTripletClean.get(2).contains(\"?\") || !inverseMapping) {\n\n //A_(i) It's the frist time we see this CTP\n allIdPats = myDedUtils.getIdemCTPs(DTPCandidates, tmpTripletClean.get(0), tmpTripletClean.get(1), tmpTripletClean.get(2));\n\n if (allIdPats.isEmpty()) {\n\n myDedUtils.setNewCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"\");\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n } //A_(ii) It's not the first time we identify it\n else {\n\n //Then, we must be sure that it's not an existing CTP\n for (int l = allIdPats.size() - 1; l >= 0; l--) {\n\n indxNewTPDedGraph = mapCTPtoDedGraph.get(allIdPats.get(l));\n\n //First we check it belongs to the same graph with previous identified CTP\n if (indxNewTPDedGraph != indxLogQueryDedGraph) {\n\n flagTriplePatternOutOfTimeRange = true;\n myDedUtils.setNewCTPInfo(tmpTripletClean, tmpTripletClean.get(0), indxLogCleanQuery, indxLogQueryDedGraph, strDedQueryId, \"_\" + allIdPats.size());\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", DTPCandidates.size() - 1);\n deducedTPnotCoveredTimestamp.add(DTPCandidates.size() - 1);\n break;\n } //if not, it's a new CTP (we distinguish them with \"_#number\")\n //This happens when Tjoin is not big enough to merge some subqueries\n //with same characteristics\n else {\n\n myDedUtils.updateCTPInfo(tmpTripletClean, \"\", indxLogCleanQuery, indxLogQueryDedGraph, allIdPats.get(l));\n myDedUtils.setTPtoSrcAns(tmpTripletClean, indxLogCleanQuery, \"\", allIdPats.get(l));\n\n if ((DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(0).contains(\"_\"))\n || (DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"?\") && DTPCandidates.get(allIdPats.get(l)).get(2).contains(\"_\"))) {\n\n deducedTPnotCoveredTimestamp.add(allIdPats.get(l));\n }\n\n break;\n }\n\n }\n\n }\n\n } //If subject or object is a constant, we repeat the procedure depending \n //on if it is a Single TP or part of BoundJoin\n else {\n\n if (inverseMapping) {\n\n indxValue = myDedUtils.getIndxConstant(tmpTripletClean);\n }\n\n setOrUpdateCTPList(tmpTripletClean, indxValue, strDedQueryId, indxLogCleanQuery);\n }\n\n }\n\n //check for an exclusive group relation between CTP\n //It could be a EG or NLEG\n if (queryTriplets.size() >= 6 && !flagTriplePatternOutOfTimeRange && !queries.get(indxLogCleanQuery).contains(\"UNION\")) {\n\n if (checkEGJoin(queryTriplets)) {\n for (int i = 0; i < deducedTPnotCoveredTimestamp.size(); i++) {\n if (mapDTPToAnyJoin.get(deducedTPnotCoveredTimestamp.get(i)) == null) {\n\n mapDTPToDeducedID.put(DTPCandidates.get(deducedTPnotCoveredTimestamp.get(i)), deducedTPnotCoveredTimestamp.get(i));\n mapDTPToAnyJoin.put(deducedTPnotCoveredTimestamp.get(i), -1);\n }\n }\n }\n }\n\n }", "@Test\n public void differentLinearGraphsTest() throws Exception {\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"d\" });\n\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"e\" });\n\n // ///////////////////\n // g1 and g2 are k-equivalent at first three nodes for k=1,2,3\n // respectively, but no further. Subsumption follows the same pattern.\n\n // \"INITIAL\" not at root:\n testKEqual(g1Nodes[0], g2Nodes[0], 1);\n testKEqual(g1Nodes[0], g2Nodes[0], 2);\n testKEqual(g1Nodes[0], g2Nodes[0], 3);\n testKEqual(g1Nodes[0], g2Nodes[0], 4);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 5);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 6);\n\n // \"a\" node at root:\n testKEqual(g1Nodes[1], g2Nodes[1], 1);\n testKEqual(g1Nodes[1], g2Nodes[1], 2);\n testKEqual(g1Nodes[1], g2Nodes[1], 3);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 4);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 5);\n\n // \"b\" node at root:\n testKEqual(g1Nodes[2], g2Nodes[2], 1);\n testKEqual(g1Nodes[2], g2Nodes[2], 2);\n testNotKEqual(g1Nodes[2], g2Nodes[2], 3);\n\n // \"c\" node at root:\n testKEqual(g1Nodes[3], g2Nodes[3], 1);\n testNotKEqual(g1Nodes[3], g2Nodes[3], 2);\n\n // \"d\" and \"e\" nodes at root:\n testNotKEqual(g1Nodes[4], g2Nodes[4], 1);\n }", "private void getSigNodes(SkeletonNode[][] stationary_nodes) {\r\n\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\tFileWriter fw = null;\r\n\t\ttry {fw = new FileWriter(\"y.txt\");}\r\n\t\tcatch (IOException e) {e.printStackTrace();System.out.println(\"C8923\");System.exit(1);}\r\n\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\r\n\t\tfor(int i = 0; i < skeletonNodes.length; i++) {\r\n\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**Find the leaves for this skeleton**/\r\n\t\t\tLinkedList<SkeletonNode> leaf_nodes = new LinkedList<SkeletonNode>();\r\n\t\t\tSkeletonNode [] root_iter = skeletonNodes[i].getIterator();\r\n\t\t\tfor(int k = 0; k < root_iter.length; k++)\r\n\t\t\t\tif( root_iter[k].getChildren().length == 0)\r\n\t\t\t\t\tleaf_nodes.push(root_iter[k]);\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/**Calculate the significant nodes, starting from each leaf**/\r\n\t\t\twhile(leaf_nodes.size() > 0) {\r\n\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\tSkeletonNode next_leaf_node = leaf_nodes.removeLast();\r\n\t\t\t\tboolean continue_onto_parent = true;\r\n\t\t\t\tif(next_leaf_node.isStationary())\r\n\t\t\t\t\tcontinue_onto_parent = false;\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\tif(next_leaf_node.getMotionValue() == -1) {\r\n\r\n\t\t\t\t\t/**Compute the angle size for the motion value**/\r\n\t\t\t\t\tdouble motion_val = getAngleDisplacement(next_leaf_node, i);\r\n\t\t\t\t\tif(next_leaf_node.getChildren().length > 0) {\r\n\r\n\t\t\t\t\t\tSkeletonNode[]children = next_leaf_node.getChildren();\r\n\t\t\t\t\t\tfor(int j = 0; j < children.length; j++) {\r\n\r\n\t\t\t\t\t\t\tdouble child_motion_val = children[j].getMotionValue();\r\n\t\t\t\t\t\t\tif(children[j].isStationary()) {\r\n\t\t\t\t\t\t\t\tchild_motion_val = 0;\r\n\t\t\t\t\t\t\t\tcontinue_onto_parent = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmotion_val += child_motion_val;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnext_leaf_node.setMotionValue(motion_val);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tnext_leaf_node.setMotionValue(motion_val);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\telse if(next_leaf_node.getMotionValue() == -1)\r\n\t\t\t\t\tcontinue_onto_parent = false;\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t\tif(continue_onto_parent)\r\n\t\t\t\t\tif(next_leaf_node.getParent() != null)\r\n\t\t\t\t\t\tleaf_nodes.push(next_leaf_node.getParent());\r\n\r\n\t\t\t\ttry {bw.write(next_leaf_node.getMotionValue()+\"\\t\\t\");}\r\n\t\t\t\tcatch (IOException e) {e.printStackTrace();System.out.println(\"A1287\");System.exit(1);}\r\n\t\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t\t/**-------------------------------------------------------**/\r\n\t\t\t}\r\n\t\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t\t/**---------------------------------------------------------------**/\r\n\t\t\ttry {bw.write(\";\\n\");}\r\n\t\t\tcatch (IOException e) {System.out.println(\"P70234\");System.exit(1);e.printStackTrace();}\r\n\t\t}\r\n\t\t/**=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=|=**/\r\n\t\t/**-----------------------------------------------------------------------**/\r\n\t}", "private static void demo_WordNetOps() throws Exception {\n\n RoWordNet r1, r2, result;\n Synset s;\n Timer timer = new Timer();\n String time = \"\";\n\n IO.outln(\"Creating two RoWN objects R1 and R2\");\n timer.start();\n r1 = new RoWordNet();\n r2 = new RoWordNet();\n\n // adding synsets to O1\n s = new Synset();\n s.setId(\"S1\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L1\"))));\n r1.addSynset(s, false); // adding synset S1 to O2;\n\n s = new Synset();\n s.setId(\"S2\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L2\"))));\n r1.addSynset(s, false); // adding synset S2 to O1;\n\n // adding synsets to O2\n s = new Synset();\n s.setId(\"S1\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L1\"))));\n r2.addSynset(s, false); // adding synset S1 to O2;\n\n s = new Synset();\n s.setId(\"S2\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L4\"))));\n r2.addSynset(s, false); // adding synset S2 to O2, but with literal L4\n // not L2;\n\n s = new Synset();\n s.setId(\"S3\");\n s.setLiterals(new ArrayList<Literal>(asList(new Literal(\"L3\"))));\n r2.addSynset(s, false); // adding synset S3 to O2;\n time = timer.mark();\n\n // print current objects\n IO.outln(\"\\n Object R1:\");\n for (Synset syn : r1.synsets) {\n IO.outln(syn.toString());\n }\n\n IO.outln(\"\\n Object R2:\");\n for (Synset syn : r2.synsets) {\n IO.outln(syn.toString());\n }\n IO.outln(\"Done: \" + time);\n\n // DIFFERENCE\n IO.outln(\"\\nOperation DIFFERENCE(R1,R2) (different synsets in R1 and R2 having the same id):\");\n timer.start();\n String[] diff = Operation.diff(r1, r2);\n time = timer.mark();\n\n for (String id : diff) {\n IO.outln(\"Different synset having the same id in both RoWN objects: \" + id);\n }\n\n IO.outln(\"Done: \" + time);\n\n // UNION\n IO.outln(\"\\nOperation UNION(R1,R2):\");\n timer.start();\n try {\n result = new RoWordNet(r1);// we copy-construct the result object\n // after r1 because the union and merge\n // methods work in-place directly on the\n // first parameter of the methods\n result = Operation.union(result, r2);\n IO.outln(\" Union object:\");\n for (Synset syn : result.synsets) {\n IO.outln(syn.toString());\n }\n } catch (Exception ex) {\n IO.outln(\"Union operation failed (as it should, as synset S2 is in both objects but has a different literal and are thus two different synsets having the same id that cannot reside in a single RoWN object). \\nException message: \" + ex\n .getMessage());\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // MERGE\n IO.outln(\"\\nOperation MERGE(R1,R2):\");\n\n result = new RoWordNet(r1);\n timer.start();\n result = Operation.merge(result, r2);\n time = timer.mark();\n\n IO.outln(\" Merged object (R2 overwritten on R1):\");\n for (Synset syn : result.synsets) {\n IO.outln(syn.toString());\n }\n IO.outln(\"Done: \" + time);\n\n // COMPLEMENT\n IO.outln(\"\\nOperation COMPLEMENT(R2,R1) (compares only synset ids):\");\n timer.start();\n String[] complement = Operation.complement(r2, r1);\n time = timer.mark();\n IO.outln(\" Complement ids:\");\n for (String id : complement) {\n IO.outln(\"Synset that is in R2 but not in R1: \" + id);\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // INTERSECTION\n IO.outln(\"\\nOperation INTERSECTION(R1,R2) (fully compares synsets):\");\n timer.start();\n String[] intersection = Operation.intersection(r1, r2);\n time = timer.mark();\n IO.outln(\" Intersection ids:\");\n for (String id : intersection) {\n IO.outln(\"Equal synset in both R1 and R2: \" + id);\n }\n IO.outln(\"Done: \" + timer.mark());\n\n // IO.outln(((Synset) r1.getSynsetById(\"S1\")).equals((Synset)\n // r2.getSynsetById(\"S1\")));\n\n }", "public void testConjunctionResolvesWhenFirstPathRevisitsSecond() throws Exception\n {\n resolveAndAssertSolutions(\"[[g, (h :- g), (f :- h, g)], (?- f), [[]]]\");\n }", "public void buildPointPetriNet(){\n\t\tcreatePlace(pnet, \"int\", 3);\n\t\tcreatePlace(pnet, \"Point\", 2);\n\t\tcreatePlace(pnet, \"MyPoint\", 2);\n\t\tcreatePlace(pnet, \"void\", 2);\n\t\t\n\t\t// Create transitions for the petri-net\n\t\tpnet.createTransition(\"int<-getX(Point)\");\n\t\tpnet.createTransition(\"int<-getY(Point)\");\n\t\tpnet.createTransition(\"void<-setX(Point,int)\");\n\t\tpnet.createTransition(\"void<-setY(Point,int)\");\n\t\tpnet.createTransition(\"Point<-Point(void)\");\n\t\t\n\t\tpnet.createTransition(\"int<-getX(MyPoint)\");\n\t\tpnet.createTransition(\"int<-getY(MyPoint)\");\n\t\tpnet.createTransition(\"MyPoint<-MyPoint(int,int)\");\n\t\t\n\t\t// Create clone transitions for the petri-net\n\t\tpnet.createTransition(\"int<-clone(int)\");\n\t\tpnet.createTransition(\"Point<-clone(Point)\");\n\t\tpnet.createTransition(\"MyPoint<-clone(MyPoint)\");\n\t\tpnet.createTransition(\"void<-clone(void)\");\n\t\t\n\t\t// Create flows for the petri-net\n\t\tpnet.createFlow(\"Point\",\"int<-getX(Point)\",1);\n\t\tpnet.createFlow(\"int<-getX(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"int<-getY(Point)\",1);\n\t\tpnet.createFlow(\"int<-getY(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setX(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setY(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"void\",\"Point<-Point(void)\",1);\n\t\tpnet.createFlow(\"Point<-Point(void)\",\"Point\",1);\n\t\t\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getX(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getX(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getY(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getY(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"int\",\"MyPoint<-MyPoint(int,int)\",2);\n\t\tpnet.createFlow(\"MyPoint<-MyPoint(int,int)\",\"MyPoint\",1);\n\t\t\n\t\t// Create flows for the clone edges\n\t\tpnet.createFlow(\"int\",\"int<-clone(int)\",1);\n\t\tpnet.createFlow(\"int<-clone(int)\",\"int\",2);\n\t\tpnet.createFlow(\"Point\",\"Point<-clone(Point)\",1);\n\t\tpnet.createFlow(\"Point<-clone(Point)\",\"Point\",2);\n\t\tpnet.createFlow(\"MyPoint\",\"MyPoint<-clone(MyPoint)\",1);\n\t\tpnet.createFlow(\"MyPoint<-clone(MyPoint)\",\"MyPoint\",2);\n\t\tpnet.createFlow(\"void\",\"void<-clone(void)\",1);\n\t\tpnet.createFlow(\"void<-clone(void)\",\"void\",2);\n\t\t\n\t}", "@Override\n public R visit(InsertTriples n, A argu) {\n R _ret = null;\n n.triplesSameSubject.accept(this, argu);\n n.nodeOptional.accept(this, argu);\n return _ret;\n }", "public boolean isEqualNode(int xcoords, int ycoords){ \n boolean ret = false;\n Node N = head;\n for (int i = 1; i < numItems; i++){\n if (xcoords == N.x && ycoords == N.y){\n ret = true;\n }else { \n ret = false;\n }\n N = N.next;\n }\n return ret;\n }", "public static void main(String[] args) {\n\t\tNode test = new Node(1);\n\t\t\n\t\tlogger.info(String.valueOf(hasCycle(test)));\n\t\t\n\t\t//Test second list - 1 -> 2 -> 3 -> 2 -> 3 [...]\n\t\tNode head = new Node(1);\n\t\tNode next = new Node(2);\n\t head.setNext(next); \n\t head.getNext().setNext(new Node(3));\n\t head.getNext().getNext().setNext(next);\n\t \n\t logger.info(String.valueOf(hasCycle(head)));\n\t}", "@Test\n public void cyclicalGraphs2Test() throws Exception {\n // Test history tracking -- the \"last a\" in g1 and g2 below and\n // different kinds of nodes topologically. At k=4 this becomes apparent\n // with kTails, if we start at the first 'a'.\n\n ChainsTraceGraph g1 = new ChainsTraceGraph();\n List<EventNode> g1Nodes = addNodesToGraph(g1, new String[] { \"a\", \"b\",\n \"c\", \"d\" });\n // Create a loop in g1, with 4 nodes\n g1Nodes.get(0).addTransition(g1Nodes.get(1), Event.defTimeRelationStr);\n g1Nodes.get(1).addTransition(g1Nodes.get(2), Event.defTimeRelationStr);\n g1Nodes.get(2).addTransition(g1Nodes.get(3), Event.defTimeRelationStr);\n g1Nodes.get(3).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g1, 0);\n\n // g1.a is k-equivalent to g1.a for all k\n for (int k = 1; k < 6; k++) {\n testKEqual(g1Nodes.get(0), g1Nodes.get(0), k);\n }\n\n ChainsTraceGraph g2 = new ChainsTraceGraph();\n List<EventNode> g2Nodes = addNodesToGraph(g2, new String[] { \"a\", \"b\",\n \"c\", \"d\", \"a\" });\n // Create a chain from a to a'.\n g2Nodes.get(0).addTransition(g2Nodes.get(1), Event.defTimeRelationStr);\n g2Nodes.get(1).addTransition(g2Nodes.get(2), Event.defTimeRelationStr);\n g2Nodes.get(2).addTransition(g2Nodes.get(3), Event.defTimeRelationStr);\n g2Nodes.get(3).addTransition(g2Nodes.get(4), Event.defTimeRelationStr);\n exportTestGraph(g2, 1);\n\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 1);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 2);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 3);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 4);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 5);\n\n testNotKEqual(g1Nodes.get(0), g2Nodes.get(0), 6);\n testNotKEqual(g1Nodes.get(0), g2Nodes.get(0), 7);\n }", "public void testConjunctionResolvesWhenSecondPathRevisitsFirst() throws Exception\n {\n resolveAndAssertSolutions(\"[[g, (h :- g), (f :- g, h)], (?- f), [[]]]\");\n }", "boolean isTransitive();", "@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }", "public void insertTripleDistributedByObject(Triple triple) {\n\r\n }", "@Test\n\tpublic void testMultipleAddConsistency() {\n\n\t\tcontroller.addNewNodes(2);\n\t\tSignalNode first = controller.getNodesToTest().getFirst();\n\t\tSignalNode last = controller.getNodesToTest().getLast();\n\n\t\tcontroller.addSignalsToNode(first, 10000);\n\n\t\ttry {\n\t\t\tSignal sig = src.next();\n\t\t\tResult r1 = first.findSimilarTo(sig);\n\t\t\tResult r2 = last.findSimilarTo(sig);\n\t\t\tAssert.assertEquals(r1, r2);\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public boolean inSamePseudoNode(Edge e) {\n\t\tthrow new RuntimeException(\"Unimplemented\");\r\n\t}", "entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();", "entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();", "@Test\n public void shouldNotConsiderTriangleDependencyAsCyclic(){\n\n String a = \"A\";\n String b = \"B\";\n String c = \"C\";\n String d = \"D\";\n ValueStreamMap valueStreamMap = new ValueStreamMap(c, null);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(a, a), null, c);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(b, b), null, c);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(d, d), null, b);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(a, a), null, d);\n valueStreamMap.addUpstreamMaterialNode(new SCMDependencyNode(\"g\", \"g\", \"git\"), null, a, new MaterialRevision(null));\n\n assertThat(valueStreamMap.hasCycle(), is(false));\n }", "@Test\n\tpublic void circleLeastStationTest() {\n\t\tList<String> newTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\tList<TimeBetweenStop> timeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\tTimeBetweenStop timeBetweenStop = new TimeBetweenStop(\"1\", \"4\", 20);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"B\", timeBetweenStops);\n\t\t\n\t\tList<String> answer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"3\");\n\t\tanswer.add(\"4\");\n\t\tTrip trip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(9, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, least time\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"1\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"1\", \"4\", 8);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"C\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(8, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, more stop but even less time\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"2\");\n\t\tnewTrain.add(\"5\");\n\t\tnewTrain.add(\"6\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"2\", \"5\", 2);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"5\", \"6\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"6\", \"4\", 2);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"D\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"5\");\n\t\tanswer.add(\"6\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(7, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\n\t\t//Add a new train, less time than above\n\t\tnewTrain = new ArrayList<String>();\n\t\tnewTrain.add(\"7\");\n\t\tnewTrain.add(\"2\");\n\t\tnewTrain.add(\"3\");\n\t\tnewTrain.add(\"4\");\n\t\ttimeBetweenStops = new ArrayList<TimeBetweenStop>();\n\t\ttimeBetweenStop = new TimeBetweenStop(\"7\", \"2\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"2\", \"3\", 3);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\ttimeBetweenStop = new TimeBetweenStop(\"3\", \"4\", 1);\n\t\ttimeBetweenStops.add(timeBetweenStop);\n\t\tsubwaySystem.addTrainLine(newTrain, \"E\", timeBetweenStops);\n\n\t\tanswer = new ArrayList<String>();\n\t\tanswer.add(\"1\");\n\t\tanswer.add(\"2\");\n\t\tanswer.add(\"3\");\n\t\tanswer.add(\"4\");\n\t\ttrip = subwaySystem.takeTrain(\"1\", \"4\");\n\t\tAssert.assertTrue(trip.isTripFound());\n\t\tAssert.assertEquals(6, trip.getDuration());\n\t\tAssert.assertTrue(TestHelper.checkAnswer(answer, trip.getStops()));\n\t}", "public void testBandwith() {\n\t\t\n\t\tlong timeOffset = 0;\n\t\t\n\t\tTransInfo addressOfNode1 = this.node1.getTransLayer().getLocalTransInfo(this.node1.getPort());\n\t\tint messageSize = 1024 * 1024;\n\t\t\n\t\t//Nacheinander\n\t\tDummyMessage message1 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage message2 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage message3 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tthis.node2.sendTestMessage(0 * Simulator.MINUTE_UNIT + timeOffset, message1, addressOfNode1);\n\t\tthis.node3.sendTestMessage(2 * Simulator.MINUTE_UNIT + timeOffset, message2, addressOfNode1);\n\t\tthis.node4.sendTestMessage(4 * Simulator.MINUTE_UNIT + timeOffset, message3, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\t//Um 1 Tick verschoben:\n\t\tDummyMessage message4 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage message5 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage message6 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, message4, addressOfNode1);\n\t\tthis.node3.sendTestMessage(1 + timeOffset, message5, addressOfNode1);\n\t\tthis.node4.sendTestMessage(2 + timeOffset, message6, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\t//Um 45 Sekunden verschoben:\n\t\tDummyMessage message7 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage message8 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage message9 = new DummyMessage(messageSize, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tthis.node2.sendTestMessage( 0 * Simulator.SECOND_UNIT + timeOffset, message7, addressOfNode1);\n\t\tthis.node3.sendTestMessage(45 * Simulator.SECOND_UNIT + timeOffset, message8, addressOfNode1);\n\t\tthis.node4.sendTestMessage(90 * Simulator.SECOND_UNIT + timeOffset, message9, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\tDummyMessage messageA = new DummyMessage(1024 * 1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tthis.node2.sendTestMessage(timeOffset, messageA, addressOfNode1);\n\t\t\n\t\ttimeOffset += (5 * 24 * Simulator.HOUR_UNIT);\n\t\t\n\t\tDummyMessage messageB = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageC = new DummyMessage( 100, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageD = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tDummyMessage messageE = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageF = new DummyMessage( 1, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageG = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tDummyMessage messageH = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageI = new DummyMessage( 0, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageJ = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tDummyMessage messageK = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageL = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageM = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageB, addressOfNode1);\n\t\tthis.node2.sendTestMessage(1 + timeOffset, messageC, addressOfNode1);\n\t\tthis.node2.sendTestMessage(2 + timeOffset, messageD, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageE, addressOfNode1);\n\t\tthis.node2.sendTestMessage(1 + timeOffset, messageF, addressOfNode1);\n\t\tthis.node2.sendTestMessage(2 + timeOffset, messageG, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageH, addressOfNode1);\n\t\tthis.node2.sendTestMessage(1 + timeOffset, messageI, addressOfNode1);\n\t\tthis.node2.sendTestMessage(2 + timeOffset, messageJ, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageK, addressOfNode1);\n\t\tthis.node2.sendTestMessage(1 + timeOffset, messageL, addressOfNode1);\n\t\tthis.node2.sendTestMessage(2 + timeOffset, messageM, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\t\n\t\tDummyMessage messageN = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageO = new DummyMessage( 100, this.node3.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageP = new DummyMessage(1024 * 1024, this.node4.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tDummyMessage messageQ = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageR = new DummyMessage( 1, this.node3.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageS = new DummyMessage(1024 * 1024, this.node4.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tDummyMessage messageT = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageU = new DummyMessage( 0, this.node3.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageV = new DummyMessage(1024 * 1024, this.node4.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\tDummyMessage messageW = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageX = new DummyMessage(1024 * 1024, this.node3.getOverlayID(), this.node1.getOverlayID());\n\t\tDummyMessage messageY = new DummyMessage(1024 * 1024, this.node4.getOverlayID(), this.node1.getOverlayID());\n\t\t\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageN, addressOfNode1);\n\t\tthis.node3.sendTestMessage(1 + timeOffset, messageO, addressOfNode1);\n\t\tthis.node4.sendTestMessage(2 + timeOffset, messageP, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageQ, addressOfNode1);\n\t\tthis.node3.sendTestMessage(1 + timeOffset, messageR, addressOfNode1);\n\t\tthis.node4.sendTestMessage(2 + timeOffset, messageS, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageT, addressOfNode1);\n\t\tthis.node3.sendTestMessage(1 + timeOffset, messageU, addressOfNode1);\n\t\tthis.node4.sendTestMessage(2 + timeOffset, messageV, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\tthis.node2.sendTestMessage(0 + timeOffset, messageW, addressOfNode1);\n\t\tthis.node3.sendTestMessage(1 + timeOffset, messageX, addressOfNode1);\n\t\tthis.node4.sendTestMessage(2 + timeOffset, messageY, addressOfNode1);\n\t\t\n\t\ttimeOffset += Simulator.HOUR_UNIT;\n\t\t\n\t\t\n\t\tint numberOfMessages = 100;\n\t\tDummyMessage messages[] = new DummyMessage[numberOfMessages];\n\t\tfor (int i = 0; i < numberOfMessages; i++) {\n\t\t\tmessages[i] = new DummyMessage(1024 * 1024, this.node2.getOverlayID(), this.node1.getOverlayID());\n\t\t\tthis.node2.sendTestMessage(timeOffset + i, messages[i], addressOfNode1);\n\t\t}\n\t\t\n\t\ttimeOffset += numberOfMessages * Simulator.HOUR_UNIT;\n\t\t\n\t\trunSimulation(timeOffset);\n\t\t\n\t\tSystem.out.println(\"\\nBandbreite in Byte pro Sekunde: \" + bandwith);\n\t\t\n\t\tSystem.out.println(\"\\nNacheinander mit gen�gend Abstand:\");\n\t\tSystem.out.println(message1);\n\t\tSystem.out.println(message2);\n\t\tSystem.out.println(message3);\n\t\t\n\t\tSystem.out.println(\"\\nMit einem Tick Abstand:\");\n\t\tSystem.out.println(message4);\n\t\tSystem.out.println(message5);\n\t\tSystem.out.println(message6);\n\t\t\n\t\tSystem.out.println(\"\\nUm 1 Sekunde verschoben:\");\n\t\tSystem.out.println(message7);\n\t\tSystem.out.println(message8);\n\t\tSystem.out.println(message9);\n\t\t\n\t\tSystem.out.println('\\n');\n\t\tSystem.out.println(\"\\nEin Gigabyte:\");\n\t\tSystem.out.println(messageA);\n\t\t\n\t\tSystem.out.println('\\n');\n\t\tSystem.out.println(\"\\nVier mal drei Nachrichten, alle drei von Node2 nach Node1:\");\n\t\tSystem.out.println(\"\\nEin MiByte, 100 Byte, ein MiByte:\");\n\t\tSystem.out.println(messageB);\n\t\tSystem.out.println(messageC);\n\t\tSystem.out.println(messageD);\n\t\t\n\t\tSystem.out.println(\"\\nEin MiByte, 1 Byte, ein MiByte:\");\n\t\tSystem.out.println(messageE);\n\t\tSystem.out.println(messageF);\n\t\tSystem.out.println(messageG);\n\t\t\n\t\tSystem.out.println(\"\\nEin MiByte, 0 Byte, ein MiByte:\");\n\t\tSystem.out.println(messageH);\n\t\tSystem.out.println(messageI);\n\t\tSystem.out.println(messageJ);\n\t\t\n\t\tSystem.out.println(\"\\nEin MiByte, ein MiByte, ein MiByte:\");\n\t\tSystem.out.println(messageK);\n\t\tSystem.out.println(messageL);\n\t\tSystem.out.println(messageM);\n\t\t\n\t\tSystem.out.println('\\n');\n\t\tSystem.out.println(\"\\nVier mal drei Nachrichten, je eine von Node2, Node3 und Node4, alle zu Node1:\");\n\t\tSystem.out.println(\"\\nEin MiByte, 100 Byte, ein MiByte:\");\n\t\tSystem.out.println(messageN);\n\t\tSystem.out.println(messageO);\n\t\tSystem.out.println(messageP);\n\t\t\n\t\tSystem.out.println(\"\\nEin MiByte, 1 Byte, ein MiByte:\");\n\t\tSystem.out.println(messageQ);\n\t\tSystem.out.println(messageR);\n\t\tSystem.out.println(messageS);\n\t\t\n\t\tSystem.out.println(\"\\nEin MiByte, 0 Byte, ein MiByte:\");\n\t\tSystem.out.println(messageT);\n\t\tSystem.out.println(messageU);\n\t\tSystem.out.println(messageV);\n\t\t\n\t\tSystem.out.println(\"\\nEin MiByte, ein MiByte, ein MiByte:\");\n\t\tSystem.out.println(messageW);\n\t\tSystem.out.println(messageX);\n\t\tSystem.out.println(messageY);\n\t\t\n\t\t\n\t\tSystem.out.println('\\n');\n\t\tSystem.out.println(\"\\nMehrere Nachrichten sehr kurz hintereinander (1 Tick Abstand); alle von Node2 zu Node1:\");\n\t\tfor (int i = 0; i < numberOfMessages; i++) {\n\t\t\tSystem.out.println(messages[i]);\n\t\t}\n\t\t\n\t}", "boolean Symmetric(Node t)\n {\n return isMirror(t,t);\n }", "@Override\n\tpublic boolean insertOneEdge(NodeRelation nodeRelation) {\n\t\treturn false;\n\t}", "private boolean isMirror1(BinaryNode<AnyType> t, BinaryNode<AnyType> t1)\r\n\t{\r\n\t\tBinaryNode mirnode=mirror(t1);\r\n\t\tif(mirnode==t)\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "boolean hasNarratorChain();", "private void generateRDFTriplesFromReferencingRow(\n \t\t\tSesameDataSet sesameDataSet, TriplesMap triplesMap, SubjectMap sm,\n \t\t\tSubjectMap psm, Set<GraphMap> pogm, Set<GraphMap> sgm,\n \t\t\tPredicateObjectMap predicateObjectMap, int n) throws SQLException,\n \t\t\tR2RMLDataError, UnsupportedEncodingException {\n \t\tMap<ColumnIdentifier, byte[]> smFromRow = applyValueToChildRow(sm, n);\n \t\tboolean nullFound = false;\n \t\tfor (ColumnIdentifier value : smFromRow.keySet())\n \t\t\tif (smFromRow.get(value) == null) {\n \t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\tnullFound = true;\n \t\t\t\tbreak;\n \t\t\t}\n \t\tif (nullFound)\n \t\t\treturn;\n \t\tResource subject = (Resource) extractValueFromTermMap(sm, smFromRow,\n \t\t\t\ttriplesMap);\n \t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate subject : \"\n \t\t\t\t+ subject.stringValue());\n \t\t// 4. Let predicates be the set of generated RDF terms that result from\n \t\t// applying each of the predicate-object map's predicate maps to\n \t\t// child_row\n \t\tSet<URI> predicates = new HashSet<URI>();\n \t\tfor (PredicateMap pm : predicateObjectMap.getPredicateMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> pmFromRow = applyValueToChildRow(pm, n);\n \t\t\tURI predicate = (URI) extractValueFromTermMap(pm, pmFromRow,\n \t\t\t\t\ttriplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate predicate : \"\n \t\t\t\t\t+ predicate);\n \t\t\tpredicates.add(predicate);\n \t\t}\n \t\t// 5. Let object be the generated RDF term that results from applying\n \t\t// psm to parent_row\n \t\tMap<ColumnIdentifier, byte[]> omFromRow = applyValueToParentRow(psm, n);\n \t\tResource object = (Resource) extractValueFromTermMap(psm, omFromRow,\n \t\t\t\tpsm.getOwnTriplesMap());\n \t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate object : \"\n \t\t\t\t+ object);\n \t\t// 6. Let subject_graphs be the set of generated RDF terms that result\n \t\t// from applying each graph map of sgm to child_row\n \t\tSet<URI> subject_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : sgm) {\n \t\t\tMap<ColumnIdentifier, byte[]> sgmFromRow = applyValueToChildRow(graphMap, n);\n \t\t\tURI subject_graph = (URI) extractValueFromTermMap(graphMap,\n \t\t\t\t\tsgmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate subject graph : \"\n \t\t\t\t\t+ subject_graph);\n \t\t\tsubject_graphs.add(subject_graph);\n \t\t}\n \t\t// 7. Let predicate-object_graphs be the set of generated RDF terms\n \t\t// that result from applying each graph map in pogm to child_row\n \t\tSet<URI> predicate_object_graphs = new HashSet<URI>();\n \t\tfor (GraphMap graphMap : pogm) {\n \t\t\tMap<ColumnIdentifier, byte[]> pogmFromRow = applyValueToChildRow(graphMap, n);\n \t\t\tURI predicate_object_graph = (URI) extractValueFromTermMap(\n \t\t\t\t\tgraphMap, pogmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:generateRDFTriplesFromReferencingRow] Generate predicate object graph : \"\n \t\t\t\t\t+ predicate_object_graph);\n \t\t\tpredicate_object_graphs.add(predicate_object_graph);\n \t\t}\n \t\t// 8. For each predicate in predicates, add triples to the output\n \t\t// dataset\n \t\tfor (URI predicate : predicates) {\n \t\t\t// If neither sgm nor pogm has any graph maps: rr:defaultGraph;\n \t\t\t// otherwise: union of subject_graphs and predicate-object_graphs\n \t\t\tSet<URI> targetGraphs = new HashSet<URI>();\n \t\t\ttargetGraphs.addAll(subject_graphs);\n \t\t\ttargetGraphs.addAll(predicate_object_graphs);\n \t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\tobject, targetGraphs);\n \t\t}\n \t}", "@Test\n public void identicalLinearGraphsTest() throws Exception {\n // Create two a->b->c->d graphs\n String events[] = new String[] { \"a\", \"b\", \"c\", \"d\" };\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(events);\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(events);\n\n // Check that g1 and g2 are equivalent for all k at every corresponding\n // node, regardless of subsumption.\n\n // NOTE: both graphs have an additional INITIAL and TERMINAL nodes, thus\n // the +2 in the loop condition.\n EventNode e1, e2;\n for (int i = 0; i < (events.length + 2); i++) {\n e1 = g1Nodes[i];\n e2 = g2Nodes[i];\n for (int k = 1; k < 6; k++) {\n testKEqual(e1, e2, k);\n testKEqual(e1, e1, k);\n }\n }\n }", "public abstract int numOfSameTypeNeighbourToReproduce();", "public Triplet(F first, S second, T third) {\n this.first = first;\n this.second = second;\n this.third = third;\n }", "public static void main(String[] args) {\n\t\tNode n = new Node(0);\r\n\t\tNode dummy = n;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tn.next = new Node(1);\r\n\t\tn = n.next;\r\n\t\tfor (int i = 1; i < 10; i ++) {\r\n\t\t\tn.next = new Node(i);\r\n\t\t\tn = n.next;\r\n\t\t}\r\n\t\tremoveDuplicate(dummy);\r\n\t\twhile(dummy != null) {\r\n\t\t\tSystem.out.println(dummy.val);\r\n\t\t\tdummy = dummy.next;\r\n\t\t}\r\n\t\t\r\n\t}", "@Test\n public void checkIfNullandPassportRecord() {\n triplets.add(null);\n triplets.add(new Triplets<String, Integer, Double>(\"passport\", 1, 90.00));\n triplets.add(new Triplets<String, Integer, Double>(\"iddocument\", 1, 90.00));\n Triplets<String, Integer, Double> resultTriplet = Triplets.rankRecords(triplets);\n Assert.assertEquals(\"passport\", resultTriplet.getLabel());\n Assert.assertEquals(new Integer(1), resultTriplet.getImageNumber());\n Assert.assertEquals(new Double(90.0), resultTriplet.getMatchConfidence());\n }", "public void testCreateAndSetOnSameVertexShouldCreateOnlyVertexOnly() {\n }", "public void connect(ASNode node) {\n\n\t\t/* Create new paths for this node and other node */\n\t\tArrayList<ASNode> newPath1 = new ArrayList<ASNode>();\n\t\tArrayList<ASNode> newPath2 = new ArrayList<ASNode>();\n\t\tnewPath1.add(node);\n\t\tnewPath2.add(this);\n\t\t/* Adds the Node to each others maps to get ready for exchange */\n\t\tMap<Integer, ArrayList<ASNode>> map1 = addNodeToTable(this, paths);\n\t\tMap<Integer, ArrayList<ASNode>> map2 = addNodeToTable(node,\n\t\t\t\tnode.getPaths());\n\n\t\t/* put new path into this node */\n\t\tpaths.put(node.getASNum(), newPath1);\n\t\tmap1.put(this.ASNum, newPath2);\n\t\t/* put new path into other node */\n\t\tnode.setPathsCombine(map1);\n\t\t/* exchange maps and see if any path if shorter, if shorter than adjust */\n\t\tsetPathsCombine(map2);\n\t\t/* Add each other as neighbors */\n\t\tneighbors.add(node);\n\t\tnode.getNeighbors().add(this);\n\t\t\n\t\t/* Announce each other's paths */\n\t\tnode.announce(this);\n\t\tannounce(node);\n\t\t\n\t\t// Exchange IP tables\n\t\tfor (PrefixPair p : IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(this, IPTable.get(p).length);\n\t\t\tannounceIP(p, n);\n\t\t}\n\t\tfor (PrefixPair p : node.IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(node, node.IPTable.get(p).length);\n\t\t\tnode.announceIP(p, n);\n\t\t}\n\t\tfor (PrefixPair p : IPTable.keySet()) {\n\t\t\tNextPair n = new NextPair(this, IPTable.get(p).length);\n\t\t\tannounceIP(p, n);\n\t\t}\n\t}", "void testNAN (Tester t){\n\n ANode<Integer> s1 = new Sentinel<Integer>();\n ANode<Integer> s2 = new Sentinel<Integer>();\n\n ANode<Integer> n1 = new Node<Integer>(1); \n ANode<Integer> n2 = new Node<Integer>(2, n1, s1);\n\n t.checkExpect(n1.getData(), 1);\n t.checkExpect(n2.getData(), 2);\n\n t.checkExpect(n2.size(n2), 2); \n\n }", "protected boolean isGoedTrio(Speler s1, Speler s2, Speler s3, int ignore) {\r\n if ((s1 != null) && (s2 != null) && (s3 != null)) {\r\n return !s1.isGespeeldTegen(s2, ignore) && !s1.isGespeeldTegen(s3, ignore) && !s2.isGespeeldTegen(s1, ignore)\r\n && !s2.isGespeeldTegen(s3, ignore) && !s3.isGespeeldTegen(s1, ignore)\r\n && !s3.isGespeeldTegen(s2, ignore);\r\n } else {\r\n return false;\r\n }\r\n }", "private void compressLeftSingleTonPairs(final S a) {\n Function<Pair<S, S>, Consumer<GPairRecord<S, S>>> consumerFunction = p -> new ArrayList<>()::add;\n Predicate<S> leftPredicate = nonTerminal -> doLeftPop(nonTerminal, head -> head.isTerminal() && !head.equals(a));\n Predicate<S> rightPredicate = nonTerminal -> doRightPop(nonTerminal, tail -> tail.isTerminal() && tail.equals(a));\n pop(phase + 1, leftPredicate, rightPredicate, consumerFunction);\n List<GPairRecord<S, S>> records = getPairs(p -> p.a.equals(a) && !p.b.equals(a));\n sortPairs(records);\n compressNonCrossingPairs(records);\n }", "public static void main(String[] args) {\n Trip diving = new Trip(\"ScubaDiving\", new Money(2000.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n LocalDate.of(2021, 5, 3),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER)));\n\n // trip 2 - freediving trip\n // price per person\n Trip freeDiving = new Trip(\"FreeDiving\",\n new Money(500.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.FREEDIVING_FINS, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_MASK)),\n LocalDate.of(2021, 8, 18),\n new HashSet<Qualification>(Arrays.asList(Qualification.AIDA_2)));\n\n // Lynn person detail\n Person lynn = new Person(\"Lynn\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n new Money(2000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 5, 1), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER)));\n\n // Tao person detail\n Person tao = new Person(\"TAO\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS, Gear.FREEDIVING_MASK, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_FINS)),\n new Money(10000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 8, 18), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER, Qualification.AIDA_2, Qualification.AIDA_3)));\n\n HashSet<Person> persons = new HashSet<>();\n HashSet<Trip> trips = new HashSet<>();\n\n persons.add(lynn);\n persons.add(tao);\n trips.add(diving);\n trips.add(freeDiving);\n\n// findTrip(persons, trips);\n\n Trip tripToGo = tripWithMaxPersons(persons, trips);\n\n System.out.println(\"Trip to go: \" + tripToGo.getName());\n System.out.println(\"=================================\");\n\n\n HashMap<Trip, HashSet<Person>> tripsAndPersons = findWhoReady(persons, trips);\n for(Trip trip: tripsAndPersons.keySet()){\n System.out.println(\"Trip \" + trip.getName() + \" ready: \" );\n HashSet<Person> personPerTrip = tripsAndPersons.get(trip);\n for(Person person: personPerTrip) {\n System.out.println(person.getName());\n }\n System.out.println(\"-------------------------------\");\n\n }\n\n\n // currency EURO\n // exchange rate?\n\n\n\n }", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Trips)) {\n return false;\n }\n Trips other = (Trips) object;\n if ((this.tripId == null && other.tripId != null) || (this.tripId != null && !this.tripId.equals(other.tripId))) {\n return false;\n }\n return true;\n }", "public static void main(String[] args) {\n\n ListNode head = new ListNode(1);\n ListNode node2 = new ListNode(1);\n ListNode node3 = new ListNode(1);\n ListNode node4 = new ListNode(1);\n ListNode node5 = new ListNode(1);\n ListNode node6 = new ListNode(2);\n\n node5.next = node6;\n node4.next = node5;\n node3.next = node4;\n node2.next = node3;\n head.next = node2;\n\n removeDuplicateNodes(head);\n\n return;\n }", "private static void test02() {\n\t ListNode n1 = new ListNode(1);\n\t ListNode n2 = new ListNode(2);\n\t ListNode n3 = new ListNode(3);\n\t ListNode n4 = new ListNode(4);\n\t ListNode n5 = new ListNode(5);\n\t ListNode n6 = new ListNode(6);\n\n\t n1.next = n2;\n\t n2.next = n3;\n\t n3.next = n4;\n\t n4.next = n5;\n\t n5.next = n6;\n\t n6.next = n3;\n\n\t System.out.println(meetingNode(n1));\n\t }", "public static void main(String[] args) {\n graph.addEdge(\"Mumbai\",\"Warangal\");\n graph.addEdge(\"Warangal\",\"Pennsylvania\");\n graph.addEdge(\"Pennsylvania\",\"California\");\n //graph.addEdge(\"Montevideo\",\"Jameka\");\n\n\n String sourceNode = \"Pennsylvania\";\n\n if(graph.isGraphConnected(sourceNode)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "@Override\n public String toString() {\n if (!leaves.isEmpty()) {\n out.append(\" { rank=same;\").append(System.lineSeparator());\n leaves.forEach(out::append);\n out.append(\" }\").append(System.lineSeparator());\n }\n\n // end of dot-file\n out.append(\"}\");\n return out.toString();\n }" ]
[ "0.6612344", "0.56003803", "0.5575319", "0.50902957", "0.505952", "0.4923248", "0.49211192", "0.4916841", "0.48743105", "0.48677015", "0.48347095", "0.4792952", "0.47920373", "0.47544247", "0.4748227", "0.47184804", "0.47120833", "0.46920708", "0.46800902", "0.46658063", "0.46419284", "0.4630435", "0.46208405", "0.46207917", "0.4612301", "0.45926735", "0.45913386", "0.45833427", "0.45729938", "0.45600626", "0.4549932", "0.45086205", "0.4504187", "0.44743404", "0.4469624", "0.44655055", "0.44633436", "0.44616356", "0.44491607", "0.44362992", "0.4430303", "0.4429899", "0.44293758", "0.44205213", "0.44167978", "0.4406714", "0.44058833", "0.43964362", "0.43950817", "0.43906838", "0.43856123", "0.43797314", "0.43779328", "0.4376174", "0.43726304", "0.43597952", "0.43571925", "0.4349548", "0.43474576", "0.43460047", "0.4341586", "0.43411845", "0.43402186", "0.43384647", "0.4337034", "0.4330213", "0.43265548", "0.43233174", "0.43229923", "0.4321298", "0.43212804", "0.4321143", "0.43207157", "0.43201977", "0.43201977", "0.43174982", "0.43157163", "0.4307993", "0.43065873", "0.4306312", "0.43031162", "0.43015465", "0.4297991", "0.42979538", "0.4297843", "0.4295604", "0.42903516", "0.42897776", "0.42886323", "0.42788142", "0.42787284", "0.4278138", "0.42765087", "0.4272769", "0.42718533", "0.42707738", "0.4267227", "0.42628118", "0.42626125", "0.4258252" ]
0.6674143
0
nodeChoice > OptionalGraphPattern() | GroupOrUnionGraphPattern() | GraphGraphPattern() | Filter() | Bind()
@Override public R visit(GraphPatternNotTriples n, A argu) { R _ret = null; n.nodeChoice.accept(this, argu); return _ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public R visit(GraphNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(OptionalGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GroupOrUnionGraphPattern n, A argu) {\n R _ret = null;\n n.groupGraphPattern.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(GraphTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "protected abstract Graph filterGraph();", "public abstract Multigraph buildMatchedGraph();", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(WhereClause n, A argu) {\n R _ret = null;\n n.nodeOptional.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "LogicalGraph callForGraph(GraphsToGraphOperator operator, LogicalGraph... otherGraphs);", "final public void OptionalGraphPattern(Exp stack) throws ParseException {\n Exp e;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case OPTIONAL:\n jj_consume_token(OPTIONAL);\n break;\n case OPTION:\n jj_consume_token(OPTION);\n deprecated(\"option\",\"optional\");\n break;\n default:\n jj_la1[176] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n e = GroupGraphPattern();\n e= Option.create(e);\n stack.add(e);\n }", "public interface Node {\n public int arityOfOperation();\n public String getText(int depth) throws CalculationException;\n public double getResult() throws CalculationException;\n public boolean isReachable(int depth);\n public List<Node> getAdjacentNodes();\n public String getTitle();\n public void setDepth(int depth);\n}", "@Override\n public R visit(SparqlString n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(TriplesSameSubject n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface DirectedGraph {\n\n /**\n * Set a graph label\n * @param label a graph label\n */\n void setGraphLabel(String label);\n\n /**\n * @return the graph label\n */\n String getGraphLabel();\n\n /**\n * Add a node in graph\n * @param node\n * @throws IllegalArgumentException if node is negative\n */\n void addNode(int node);\n\n /**\n * Associating metadata to node\n * @param node the node id\n * @param key the metadata key\n * @param value the metadata value\n */\n void addNodeMetadata(int node, String key, String value);\n\n /**\n * Get the value of the metadata associated with the given node\n * @param node the node to get metadata for\n * @param key the metadata key\n * @return the value or null if not found\n */\n String getNodeMetadataValue(int node, String key);\n\n /**\n * @return the node given the label or -1 if not found\n */\n int getNodeFromMetadata(String metadata);\n\n /**\n * Add an edge in graph from tail to head and return its index\n * @param tail predecessor node\n * @param head successor node\n * @return the edge id or -1 if already exists\n */\n int addEdge(int tail, int head);\n\n /**\n * Set an edge label\n * @param edge a edge id\n * @param label a node label\n */\n void setEdgeLabel(int edge, String label);\n\n /**\n * @return the edge label\n */\n String getEdgeLabel(int edge);\n\n /**\n * @return an array of graph nodes\n */\n int[] getNodes();\n\n /**\n * @return an array of graph edges\n */\n int[] getEdges();\n\n /**\n * @return the edge id from end points or -1 if not found\n */\n int getEdge(int tail, int head);\n\n /**\n * Get the incoming and outcoming edges for the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getEdgesIncidentTo(int... nodes);\n\n /**\n * Get the incoming edges to the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getInEdges(int... nodes);\n\n /**\n * Get the outcoming edges from the given nodes\n * @param nodes the nodes\n * @return edge indices\n */\n int[] getOutEdges(int... nodes);\n\n /**\n * @return the tail node of the given edge or -1 if not found\n */\n int getTailNode(int edge);\n\n /**\n * @return the head node of the given edge or -1 if not found\n */\n int getHeadNode(int edge);\n\n /**\n * @return true if node belongs to graph else false\n */\n boolean containsNode(int node);\n\n /**\n * @return true if edge belongs to graph else false\n */\n boolean containsEdge(int edge);\n\n /**\n * @return true if tail -> head edge belongs to graph else false\n */\n boolean containsEdge(int tail, int head);\n\n /**\n * @return ancestors of the given node\n */\n int[] getAncestors(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node);\n\n /**\n * @return descendants of the given node\n */\n int[] getDescendants(int node, int maxDepth);\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n boolean isAncestorOf(int queryAncestor, int queryDescendant);\n\n /**\n * @return the predecessors of the given node\n */\n int[] getPredecessors(int node);\n\n /**\n * @return the successors of the given node\n */\n int[] getSuccessors(int node);\n\n /**\n * @return the number of head ends adjacent to the given node\n */\n int getInDegree(int node);\n\n /**\n * @return the number of tail ends adjacent to the given node\n */\n int getOutDegree(int node);\n\n /**\n * @return the sources (indegree = 0) of the graph\n */\n int[] getSources();\n\n /**\n * @return the sinks (outdegree = 0) of the graph\n */\n int[] getSinks();\n\n /**\n * @return the subgraph of this graph composed of given nodes\n */\n DirectedGraph calcSubgraph(int... nodes);\n\n /**\n * @return the total number of graph nodes\n */\n default int countNodes() {\n\n return getNodes().length;\n }\n\n /**\n * @return the total number of graph edges\n */\n default int countEdges() {\n\n return getEdges().length;\n }\n\n /**\n * @return true if queryDescendant is a descendant of queryAncestor\n */\n default boolean isDescendantOf(int queryDescendant, int queryAncestor) {\n\n return isAncestorOf(queryAncestor, queryDescendant);\n }\n\n default boolean isSource(int node) {\n return getInDegree(node) == 0 && getOutDegree(node) > 0;\n }\n\n default boolean isSink(int node) {\n return getInDegree(node) > 0 && getOutDegree(node) == 0;\n }\n\n /**\n * The height of a rooted tree is the length of the longest downward path to a leaf from the root.\n *\n * @return the longest path from the root or -1 if it is not a tree\n */\n default int calcHeight() throws NotATreeException {\n\n int[] roots = getSources();\n\n if (roots.length == 0) {\n throw new NotATreeException();\n }\n\n class WrappedCalcLongestPath {\n private int calcLongestPath(int node, TIntList path) throws CycleDetectedException {\n\n if (!containsNode(node)) {\n throw new IllegalArgumentException(\"node \"+ node + \" was not found\");\n }\n\n if (isSink(node)) {\n return path.size()-1;\n }\n\n TIntList lengths = new TIntArrayList();\n for (int edge : getOutEdges(node)) {\n\n int nextNode = getHeadNode(edge);\n\n TIntList newPath = new TIntArrayList(path);\n newPath.add(nextNode);\n\n if (path.contains(nextNode)) {\n throw new CycleDetectedException(newPath);\n }\n\n lengths.add(calcLongestPath(nextNode, newPath));\n }\n\n return lengths.max();\n }\n }\n\n // it is ok if there are multiple roots (see example of enzyme-classification-cv where it misses the root that\n // connect children EC 1.-.-.-, EC 2.-.-.-, ..., EC 6.-.-.-)\n /*if (roots.length > 1) {\n throw new NotATreeMultipleRootsException(roots);\n }*/\n\n return new WrappedCalcLongestPath().calcLongestPath(roots[0], new TIntArrayList(new int[] {roots[0]}));\n }\n\n class NotATreeException extends Exception {\n\n public NotATreeException() {\n\n super(\"not a tree\");\n }\n }\n\n class NotATreeMultipleRootsException extends NotATreeException {\n\n private final int[] roots;\n\n public NotATreeMultipleRootsException(int[] roots) {\n\n super();\n this.roots = roots;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", roots=\" + Arrays.toString(this.roots);\n }\n }\n\n class CycleDetectedException extends NotATreeException {\n\n private final TIntList path;\n\n public CycleDetectedException(TIntList path) {\n\n super();\n\n this.path = path;\n }\n\n @Override\n public String getMessage() {\n\n return super.getMessage() + \", path=\" + this.path;\n }\n }\n}", "@Override\n public R visit(TriplesNode n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "final public void GroupOrUnionGraphPattern(Exp stack) throws ParseException {\n Exp temp, res;\n res = GroupGraphPattern();\n label_36:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n case OR:\n ;\n break;\n default:\n jj_la1[179] = jj_gen;\n break label_36;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case UNION:\n jj_consume_token(UNION);\n break;\n case OR:\n jj_consume_token(OR);\n deprecated(\"or\",\"union\");\n break;\n default:\n jj_la1[180] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n temp = res;\n res = Or.create();\n res.add(temp);\n temp = GroupGraphPattern();\n res.add(temp);\n }\n stack.add(res);\n }", "@Override\n public R visit(IRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public static void main(String[] args) {\n graph.addEdge(\"Mumbai\",\"Warangal\");\n graph.addEdge(\"Warangal\",\"Pennsylvania\");\n graph.addEdge(\"Pennsylvania\",\"California\");\n //graph.addEdge(\"Montevideo\",\"Jameka\");\n\n\n String sourceNode = \"Pennsylvania\";\n\n if(graph.isGraphConnected(sourceNode)){\n System.out.println(\"Yes\");\n } else {\n System.out.println(\"No\");\n }\n }", "public interface Graph<V> {\n /**\n * F??gt neuen Knoten zum Graph dazu.\n * @param v Knoten\n * @return true, falls Knoten noch nicht vorhanden war.\n */\n boolean addVertex(V v);\n\n /**\n * F??gt neue Kante (mit Gewicht 1) zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w);\n\n /**\n * F??gt neue Kante mit Gewicht weight zum Graph dazu.\n * @param v Startknoten\n * @param w Zielknoten\n * @param weight Gewicht\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist oder Knoten identisch sind.\n * @return true, falls Kante noch nicht vorhanden war.\n */\n boolean addEdge(V v, V w, double weight);\n\n /**\n * Pr??ft ob Knoten v im Graph vorhanden ist.\n * @param v Knoten\n * @return true, falls Knoten vorhanden ist.\n */\n boolean containsVertex(V v);\n\n /**\n * Pr??ft ob Kante im Graph vorhanden ist.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return true, falls Kante vorhanden ist.\n */\n boolean containsEdge(V v, V w);\n \n /**\n * Liefert Gewicht der Kante zur??ck.\n * @param v Startknoten\n * @param w Endknoten\n * @throws IllegalArgumentException falls einer der Knoten\n * nicht im Graph vorhanden ist.\n * @return Gewicht, falls Kante existiert, sonst 0.\n */\n double getWeight(V v, V w);\n\n /**\n * Liefert Anzahl der Knoten im Graph zur??ck.\n * @return Knotenzahl.\n */\n int getNumberOfVertexes();\n\n /**\n * Liefert Anzahl der Kanten im Graph zur??ck.\n * @return Kantenzahl.\n */\n int getNumberOfEdges();\n\n /**\n * Liefert Liste aller Knoten im Graph zur??ck.\n * @return Knotenliste\n */\n List<V> getVertexList();\n \n /**\n * Liefert Liste aller Kanten im Graph zur??ck.\n * @return Kantenliste.\n */\n List<Edge<V>> getEdgeList();\n\n /**\n * Liefert eine Liste aller adjazenter Knoten zu v.\n * Genauer: g.getAdjacentVertexList(v) liefert eine Liste aller Knoten w,\n * wobei (v, w) eine Kante des Graphen g ist.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Knotenliste\n */\n List<V> getAdjacentVertexList(V v);\n\n /**\n * Liefert eine Liste aller inzidenten Kanten.\n * Genauer: g.getIncidentEdgeList(v) liefert\n * eine Liste aller Kanten im Graphen g mit v als Startknoten.\n * @param v Knoten\n * @throws IllegalArgumentException falls Knoten v\n * nicht im Graph vorhanden ist.\n * @return Kantenliste\n */\n List<Edge<V>> getIncidentEdgeList(V v);\n}", "public interface Graph\n{\n int getNumV();\n boolean isDirected();\n void insert(Edge edge);\n boolean isEdge(int source, int dest);\n Edge getEdge(int source, int dest);\n Iterator<Edge> edgeIterator(int source);\n}", "private GraphPattern translateToGP(){\r\n\r\n\t\t//Generate the graph pattern object\r\n\t\tGraphPattern gp = new GraphPattern();\r\n\r\n\r\n\t\t//For each Node object, create an associated MyNode object\r\n\t\tint nodeCount = 0;\r\n\t\tfor (Node n : allNodes){\r\n\t\t\tMyNode myNode = new MyNode(nodeCount, \"PERSON\");\r\n\t\t\tnodesMap.put(n, myNode);\r\n\t\t\tgp.addNode(myNode);\r\n\r\n\t\t\tnodeCount++;\r\n\t\t}\r\n\r\n\t\t//For k random MyNodes add the id as an attribute/property.\r\n\t\t//This id is used for cypher queries.\r\n\t\t//This process uses simple random sampling\r\n\t\tif (rooted > allNodes.size()){\r\n\t\t\trooted = allNodes.size();\r\n\t\t}\r\n\r\n\t\tList<Node> allNodesClone = new ArrayList<Node>();\r\n\t\tallNodesClone.addAll(allNodes);\r\n\r\n\t\tfor (int i = 0; i < rooted; i++){\r\n\t\t\t//Pick a random node from allNodes and get it's corresponding MyNode\r\n\t\t\tint idx = random.nextInt(allNodesClone.size());\r\n\t\t\tNode node = allNodesClone.get(idx);\r\n\t\t\tMyNode myNode = nodesMap.get(node);\r\n\r\n\t\t\t//Add the property to myNode\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tmyNode.addAttribute(\"id\", node.getProperty(\"id\")+\"\");\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\t\t\t//Remove the node from allNodesClone list.\r\n\t\t\tallNodesClone.remove(idx);\r\n\t\t}\r\n\r\n\t\t//Process the relationships\r\n\t\tint relCount = 0;\r\n\t\tString relPrefix = \"rel\";\r\n\r\n\t\tfor (Relationship r : rels){\r\n\r\n\t\t\tMyNode source = null, target = null;\r\n\t\t\tRelType type = null;\r\n\r\n\t\t\t//For each relationship in rels, create a corresponding relationship in gp.\r\n\t\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t\tsource = nodesMap.get(r.getStartNode());\r\n\t\t\t\ttarget = nodesMap.get(r.getEndNode());\r\n\t\t\t\ttype = GPUtil.translateRelType(r.getType());\r\n\t\t\t\ttx.success();\r\n\t\t\t}\r\n\r\n\t\t\tMyRelationship rel = new MyRelationship(source, target, type, relCount);\r\n\t\t\trelCount++;\r\n\r\n\t\t\tif (relCount >= 25){\r\n\t\t\t\trelCount = 0;\r\n\t\t\t\trelPrefix = relPrefix + \"l\";\r\n\t\t\t}\r\n\r\n\t\t\tgp.addRelationship(rel);\r\n\t\t\trelsMap.put(r, rel);\r\n\t\t}\r\n\r\n\t\t//Set the attribute requirements\r\n\t\tattrsReq(gp, true);\r\n\t\tattrsReq(gp, false);\r\n\t\treturn gp;\r\n\t}", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "public T caseGraphicalNode(GraphicalNode object) {\n\t\treturn null;\n\t}", "public boolean isDynamicGraph();", "public interface Node extends Serializable {\n\n\tvoid setOwner(Object owner);\n Object getOwner();\n\n String getName();\n Node getChild(int i);\n List<Node> childList();\n\n Node attach(int id, Node n) throws VetoTypeInduction;\n void induceOutputType(Class type) throws VetoTypeInduction;\n int getInputCount();\n\tClass getInputType(int id);\n List<Class> getInputTypes();\n Class getOutputType();\n Tuple.Two<Class,List<Class>> getType();\n\n Object evaluate();\n\n boolean isTerminal();\n\n <T extends Node> T copy();\n String debugString(Set<Node> set);\n}", "public void setGraph(Graph<V,E> graph);", "@Override\n public R visit(Constraint n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "private static QueryIterator execute(NodeTupleTable nodeTupleTable, Node graphNode, BasicPattern pattern, \n QueryIterator input, Predicate<Tuple<NodeId>> filter,\n ExecutionContext execCxt)\n {\n if ( Quad.isUnionGraph(graphNode) )\n graphNode = Node.ANY ;\n if ( Quad.isDefaultGraph(graphNode) )\n graphNode = null ;\n \n List<Triple> triples = pattern.getList() ;\n boolean anyGraph = (graphNode==null ? false : (Node.ANY.equals(graphNode))) ;\n\n int tupleLen = nodeTupleTable.getTupleTable().getTupleLen() ;\n if ( graphNode == null ) {\n if ( 3 != tupleLen )\n throw new TDBException(\"SolverLib: Null graph node but tuples are of length \"+tupleLen) ;\n } else {\n if ( 4 != tupleLen )\n throw new TDBException(\"SolverLib: Graph node specified but tuples are of length \"+tupleLen) ;\n }\n \n // Convert from a QueryIterator (Bindings of Var/Node) to BindingNodeId\n NodeTable nodeTable = nodeTupleTable.getNodeTable() ;\n \n Iterator<BindingNodeId> chain = Iter.map(input, SolverLib.convFromBinding(nodeTable)) ;\n List<Abortable> killList = new ArrayList<>() ;\n \n for ( Triple triple : triples )\n {\n Tuple<Node> tuple = null ;\n if ( graphNode == null )\n // 3-tuples\n tuple = tuple(triple.getSubject(), triple.getPredicate(), triple.getObject()) ;\n else\n // 4-tuples.\n tuple = tuple(graphNode, triple.getSubject(), triple.getPredicate(), triple.getObject()) ;\n // Plain RDF\n //chain = solve(nodeTupleTable, tuple, anyGraph, chain, filter, execCxt) ;\n // RDF-star\n chain = SolverRX.solveRX(nodeTupleTable, tuple, anyGraph, chain, filter, execCxt) ;\n chain = makeAbortable(chain, killList) ; \n }\n \n // DEBUG POINT\n if ( false )\n {\n if ( chain.hasNext())\n chain = Iter.debug(chain) ;\n else\n System.out.println(\"No results\") ;\n }\n \n // Timeout wrapper ****\n // QueryIterTDB gets called async.\n // Iter.abortable?\n // Or each iterator has a place to test.\n // or pass in a thing to test?\n \n \n // Need to make sure the bindings here point to parent.\n Iterator<Binding> iterBinding = convertToNodes(chain, nodeTable) ;\n \n // \"input\" will be closed by QueryIterTDB but is otherwise unused.\n // \"killList\" will be aborted on timeout.\n return new QueryIterTDB(iterBinding, killList, input, execCxt) ;\n }", "public abstract void accept0(IASTNeoVisitor visitor);", "String targetGraph();", "public interface Node extends TreeComponent {\n /**\n * The types of decision tree nodes available.\n */\n enum NodeType {\n Internal,\n Leaf\n }\n\n /**\n * Gets the type of this node.\n * @return The type of node.\n */\n NodeType getType();\n\n void print();\n\n String getClassLabel(DataTuple tuple);\n}", "public static void runTest() {\n Graph mnfld = new Graph();\n float destTank = 7f;\n\n // Adding Tanks\n mnfld.addPipe( new Node( 0f, 5.0f ) );\n mnfld.addPipe( new Node( 1f, 5.0f ) );\n mnfld.addPipe( new Node( 7f, 5.0f ) );\n\n // Adding Pipes\n mnfld.addPipe( new Node( 2f, 22f, 100f ) );\n mnfld.addPipe( new Node( 3f, 33f, 150f ) );\n mnfld.addPipe( new Node( 4f, 44f, 200f ) );\n mnfld.addPipe( new Node( 5f, 55f, 250f ) );\n mnfld.addPipe( new Node( 6f, 66f, 300f ) );\n mnfld.addPipe( new Node( 8f, 88f, 200f ) );\n mnfld.addPipe( new Node( 9f, 99f, 150f ) );\n mnfld.addPipe( new Node( 10f, 1010f, 150f ) );\n mnfld.addPipe( new Node( 20f, 2020f, 150f ) );\n\n // Inserting Edges to the graph\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 3f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 22f ), mnfld.getPipe( 4f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 7f ), 500f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 55f ), mnfld.getPipe( 6f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 7f ), 100f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 8f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 88f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 9f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 99f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 1010f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1010f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 20f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 2020f ), mnfld.getPipe( 3f ), 1f ) );\n\n // -- Running Dijkstra & Finding shortest Paths -- //\n// Dijkstra.findPaths( mnfld, 10, \"0.0\", destTank );\n//\n// mnfld.restoreDroppedConnections();\n//\n// System.out.println( \"\\n\\n\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( 0f ) );\n Dijkstra.mergePaths( mnfld, 1f, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n\n }", "public interface Graph {\n\n /** @return The number of vertices in the graph. */\n int getNumVertices();\n\n /** @return The number of edges in the graph. */\n int getNumEdges();\n\n /** @return A read-only set of all the vertices in the graph. */\n Set<Vertex> getVertices();\n\n /** @return A read-only set of all edges (directed or undirected) in the graph. */\n Set<Edge> getEdges();\n\n /** Removes all vertices and edges from the graph. */\n void clear();\n\n /** Adds a vertex to this graph. */\n void add(Vertex vertex);\n\n /** Adds an edge to the graph. */\n void add(Edge edge);\n\n /** Adds all the vertices and edges in another graph to this graph. */\n void addAll(Graph graph);\n\n /** Removes vertex from the graph and any edges attached to it. */\n void remove(Vertex vertex);\n\n /** Removes an existing edge from the graph. */\n void remove(Edge edge);\n\n /** Checks if the graph contains a given vertex. */\n boolean contains(Vertex vertex);\n\n /** Checks if the graph contains a given edge. */\n boolean contains(Edge edge);\n\n /** @return An unmodifiable set of all directed edges entering vertex. */\n Set<Edge> getInEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all directed edges coming out of vertex. */\n Set<Edge> getOutEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all undirected edges connected to vertex. */\n Set<Edge> getUndirectedEdges(Vertex vertex);\n\n /** @return An unmodifiable set of all edges (directed and undirected) connected to vertex. */\n Set<Edge> getMixedEdges(Vertex vertex);\n\n /** @return The number of undirected edges connected to vertex. */\n int getUndirectedDegree(Vertex vertex);\n\n /** @return The number of directed edges coming into vertex. */\n int getInDegree(Vertex vertex);\n\n /** @return The number of directed edges coming out of vertex. */\n int getOutDegree(Vertex vertex);\n\n /**\n * @return The number of directed and undirected edges connected to this vertex. Equivalent to\n * inDegree + outDegree + undirectedDegree.\n */\n int getMixedDegree(Vertex vertex);\n\n /** Registers a listener for changes in the graph model. */\n void addListener(GraphListener listener);\n\n /** Unregisters a listener for changes in the graph model. */\n void removeListener(GraphListener listener);\n\n /** @return Attributes that apply to the entire graph. */\n Attributes getAttributes();\n\n /** Creates a new vertex, adds it to the graph, and returns a reference to it. */\n Vertex createVertex();\n\n /** Creates a new edge, adds it to the graph, and returns a reference to it. */\n Edge createEdge(Vertex src, Vertex tgt, boolean directed);\n}", "private Node chooseNode(Identity identity) {\n\t\treturn availableNodes.peek();\n\t}", "public abstract Node apply(Node node);", "GraphFactory getGraphFactory();", "void graphSelectionChanged(Mode mode);", "public interface IGraph extends IGraphRepresentation, IId, ITag, IDisposable, Iterable<IVertex>\n{\n /**\n * get the graph engine\n *\n * @return IGraphEngine\n * @see IGraphEngine\n */\n IGraphEngine getGraphEngine();\n\n /**\n * the graph engine instantiation factory\n *\n * @return a graph engine\n *\n * @see IGraphEngine\n * @see AbstractGraphEngine\n */\n IGraphEngine graphEngineFactory();\n\n /**\n * does this graph support multi edges\n *\n * @return {@code true, false}\n */\n boolean hasMultiEdges();\n\n /**\n * does this graph support self loops\n *\n * @return {@code true, false}\n */\n boolean hasSelfLoops();\n\n void print();\n}", "public interface Node {\n Oper oper();\n CNFOrdinal toCNF();\n}", "public Graph getGraph();", "void processGraphData(Graph aNodes);", "Graph testGraph();", "@Override\n public R visit(ArgList n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }", "public abstract boolean isUsing(Long graphNode);", "public void parseGraph(IGraph graph, TreeItem<Object> root, String filter) {\n\n\n TreeItem<Object> graphItem = new TreeItem<>(graph\n // .getID()\n );\n\n root.getChildren().add(graphItem);\n if (this.showNodes) {\n TreeItem<Object> nodeTI = new TreeItem<>(graph + \" Nodes (\"\n + graph.getNodes().size() + \")\");\n graphItem.getChildren().add(nodeTI);\n\n for (INode node : graph.getNodes()) {\n\n if (node.getID().contains(filter)) {\n\n this.parseNode(node, nodeTI, filter);\n }\n }\n }\n\n if (this.showEdges) {\n\n TreeItem<Object> edgeTI = new TreeItem<>(graph + \" Edges (\"\n + graph.getEdges().size() + \")\");\n graphItem.getChildren().add(edgeTI);\n\n for (IEdge edge : graph.getEdges()) {\n\n if (edge.toString().contains(filter)) {\n\n this.parseEdge(edge, edgeTI, filter);\n }\n }\n }\n if (this.showHyperEdges) {\n TreeItem<Object> hyperTI = new TreeItem<>(graph\n + \"Hyperedges (\" + graph.getHyperEdges().size() + \")\");\n graphItem.getChildren().add(hyperTI);\n for (IHyperEdge he : graph.getHyperEdges()) {\n\n if (he.getID().contains(filter)) {\n\n this.parseHyperEdge(he, hyperTI, filter);\n }\n }\n }\n }", "@Override\n\tpublic Graph<String> emptyInstance() {\n\t\treturn new ConcreteEdgesGraph();\n\t}", "public void buildGraph(){\n\t}", "@Override\n public InfGraph bind( Graph data ) throws ReasonerException {\n RETERuleInfGraph graph = new RETERuleInfGraph(this, rules, schemaGraph, data);\n return graph;\n }", "@Override\n public R visit(VarOrIRIref n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }", "@Test\n public void streamDefaultGraphNameByPattern() throws Exception {\n final Optional<? extends Quad> aliceTopic = dataset.stream(Optional.empty(), null, null, null).findAny();\n assertTrue(aliceTopic.isPresent());\n // COMMONSRDF-55: should not be <urn:x-arq:defaultgraph> or similar\n assertNull(aliceTopic.get().getGraphName().orElse(null));\n assertFalse(aliceTopic.get().getGraphName().isPresent());\n }", "public interface Pie {\n Pie accept(PieVisitor visitor);\n\n public static void main(String[] args) {\n Pie p = new Top(new Integer(3), new Top(new Integer(2), new Top(new Integer(3), new Bot())));\n System.out.println(p);//Top{t=3, p=Top{t=2, p=Top{t=3, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Integer(2))));//Top{t=3, p=Top{t=3, p=Bot{}}}\n System.out.println(p.accept(new Subst(new Integer(5), new Integer(3))));//Top{t=5, p=Top{t=2, p=Top{t=5, p=Bot{}}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Integer(3), new Top(new Zero(), new Bot())));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=3, p=Top{t=Zero{}, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Zero())));//Top{t=Anchovy{}, p=Top{t=3, p=Bot{}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Bot())))));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(p.accept(new LtdSubst(new Integer(2), new Salmon(), new Anchovy())));//Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(\"--------------\");\n }\n}", "@Override\n public R visit(Verb n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface Graph extends Container {\n\n /**\n * returns how many elements are in the container.\n *\n * @return int = number of elements in the container.\n */\n public int size();\n\n /**\n * returns true if the container is empty, false otherwise.\n *\n * @return boolean true if container is empty\n */\n public boolean isEmpty();\n\n /**\n * return the number of vertices in the graph\n * \n * @return number of vertices in the graph\n */\n public int numVertices();\n\n /**\n * returns the number for edges in the graph\n * \n * @return number of edges in the graph\n */\n public int numEdges();\n\n /**\n * returns an Enumeration of the vertices in the graph\n * \n * @return vertices in the graph\n */\n public Enumeration vertices();\n\n \n /**\n * returns an Enumeration of the edges in the graph\n * \n * @return edges in the graph\n */\n public Enumeration edges();\n\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration directedEdges();\n\n /**\n * Returns an enumeration of the directed edges in the Graph\n * \n * @return an enumeration of the directed edges in the Graph\n */\n public Enumeration undirectedEdges();\n\n /**\n * returns the degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the degree of\n * @return degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int degree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the in degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the in degree of\n * @return in degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int inDegree(Position vp) throws InvalidPositionException;\n\n /**\n * returns the out degree of the passed in Vertex vp\n * \n * @param vp Vertex to return the out degree of\n * @return out degree of Vertex vp\n * @exception InvalidPositionException\n * thrown when vp is invalid for Vertex container V\n */\n public int outDegree(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the adjacent vertices of\n * @return enumeration of vertices adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration adjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices in adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the in adjacent vertices of\n * @return enumeration of vertices in adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration inAdjacentVertice(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an enumeration of vertices out adjacent to Vertex vp\n * \n * @param vp Position of Vertex to return the out adjacent vertices of\n * @return enumeration of vertices out adjacent to Vertex vp\n * @exception InvalidPositionException\n * thrown if vp is not a valid Vertex for this Graph\n */\n public Enumeration outAdjacentVertices(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration incidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges in incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges in incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration inIncidentEdges(Position vp) throws InvalidPositionException;\n\n /**\n * Returns an Enumeration of the edges out incident upon the\n * Vertex in Position vp\n * \n * @param vp the Position to holding the Vertex to return the\n * Enumeration of\n * @return the Enumeration of edges out incident upon vp\n * @exception InvalidPositionException\n */\n public Enumeration outIncidentEdges(Position vp) throws InvalidPositionException;\n\n public Position[] endVertices(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the Vertex on Edge ep opposite from Vertex vp\n * \n * @param vp Vertex to find opposite of\n * @param ep Edge containing the vertices\n * @return \n * @exception InvalidPositionException\n */\n public Position opposite(Position vp, Position ep) throws InvalidPositionException;\n\n /**\n * Determine whether or not two vertices are adjacent\n * \n * @param vp Position of one Vertex to check\n * @param wp Position of other Vertex to check\n * @return true if they are adjacent, false otherwise\n * @exception InvalidPositionException\n * thrown if either Position is invalid for this container\n */\n public boolean areAdjacent(Position vp, Position wp) throws InvalidPositionException;\n\n /**\n * Returns the destination Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the destination Vertex of\n * @return the destination Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position destination(Position ep) throws InvalidPositionException;\n\n /**\n * Returns the origin Vertex of the given Edge Position\n * \n * @param ep Edge Position to return the origin Vertex of\n * @return the origin Vertex of the given Edge Position\n * @exception InvalidPositionException\n * thrown if the Edge Position is invalid\n */\n public Position origin(Position ep) throws InvalidPositionException;\n\n /**\n * Returns true if the given Edge Position is directed,\n * otherwise false\n * \n * @param ep Edge Position to check directed on\n * @return true if directed, otherwise false\n * @exception InvalidPositionException\n */\n public boolean isDirected(Position ep) throws InvalidPositionException;\n\n /**\n * Inserts a new undirected Edge into the graph with end\n * Vertices given by Positions vp and wp storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding one Vertex endpoint\n * @param wp Position holding the other Vertex endpoint\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new directed Edge into the graph with end\n * Vertices given by Positions vp, the origin, and wp,\n * the destination, storing Object o,\n * returns a Position object for the new Edge\n * \n * @param vp Position holding the origin Vertex\n * @param wp Position holding the destination Vertex\n * @param o Object to store at the new Edge\n * @return Position containing the new Edge object\n * @exception InvalidPositionException\n * thrown if either of the given vertices are invalid for\n * this container\n */\n public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;\n\n /**\n * Inserts a new Vertex into the graph holding Object o\n * and returns a Position holding the new Vertex\n * \n * @param o the Object to hold in this Vertex\n * @return the Position holding the Vertex\n */\n public Position insertVertex(Object o);\n\n /**\n * This method removes the Vertex held in the passed in\n * Position from the Graph\n * \n * @param vp the Position holding the Vertex to remove\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void removeVertex(Position vp) throws InvalidPositionException;\n\n /**\n * Used to remove the Edge held in Position ep from the Graph\n * \n * @param ep the Position holding the Edge to remove\n * @exception InvalidPositionException\n * thrown if Position ep is invalid for this container\n */\n public void removeEdge(Position ep) throws InvalidPositionException;\n\n /**\n * This routine is used to change a directed Edge into an\n * undirected Edge\n * \n * @param ep a Position holding the Edge to change from directed to\n * undirected\n * @exception InvalidPositionException\n */\n public void makeUndirected(Position ep) throws InvalidPositionException;\n\n /**\n * This routine can be used to reverse the diretion of a \n * directed Edge\n * \n * @param ep a Position holding the Edge to reverse\n * @exception InvalidPositionException\n * thrown if the given Position is invalid for this container\n */\n public void reverseDirection(Position ep) throws InvalidPositionException;\n\n /**\n * Changes the direction of the given Edge to be out incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be out incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionFrom(Position ep, Position vp) throws InvalidPositionException;\n\n\n /**\n * Changes the direction of the given Edge to be in incident\n * upone the Vertex held in the given Position\n * \n * @param ep the Edge to change the direction of\n * @param vp the Position holding the Vertex that the Edge is going\n * to be in incident upon\n * @exception InvalidPositionException\n * thrown if either of the given positions are invalid for this container\n */\n public void setDirectionTo(Position ep, Position vp) throws InvalidPositionException;\n\n}", "@Test\n public void test_shortcut_needed_basic() {\n CHPreparationGraph graph = CHPreparationGraph.edgeBased(5, 4, (in, via, out) -> in == out ? 10 : 0);\n int edge = 0;\n graph.addEdge(0, 1, edge++, 10, Double.POSITIVE_INFINITY);\n graph.addEdge(1, 2, edge++, 10, Double.POSITIVE_INFINITY);\n graph.addEdge(2, 3, edge++, 10, Double.POSITIVE_INFINITY);\n graph.addEdge(3, 4, edge++, 10, Double.POSITIVE_INFINITY);\n graph.prepareForContraction();\n EdgeBasedWitnessPathSearcher searcher = new EdgeBasedWitnessPathSearcher(graph);\n searcher.initSearch(0, 1, 2, new EdgeBasedWitnessPathSearcher.Stats());\n double weight = searcher.runSearch(3, 6, 20.0, 100);\n assertTrue(Double.isInfinite(weight));\n }", "void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}", "public static QueryIterator testForGraphName(DatasetGraphTDB ds, Node graphNode, QueryIterator input,\n Predicate<Tuple<NodeId>> filter, ExecutionContext execCxt) {\n NodeId nid = TDBInternal.getNodeId(ds, graphNode) ;\n boolean exists = !NodeId.isDoesNotExist(nid) ;\n if ( exists ) {\n // Node exists but is it used in the quad position?\n NodeTupleTable ntt = ds.getQuadTable().getNodeTupleTable() ;\n // Don't worry about abortable - this iterator should be fast\n // (with normal indexing - at least one G???).\n // Either it finds a starting point, or it doesn't. We are only \n // interested in the first .hasNext.\n Iterator<Tuple<NodeId>> iter1 = ntt.find(nid, NodeId.NodeIdAny, NodeId.NodeIdAny, NodeId.NodeIdAny) ;\n if ( filter != null )\n iter1 = Iter.filter(iter1, filter) ;\n exists = iter1.hasNext() ;\n }\n\n if ( exists )\n return input ;\n else {\n input.close() ;\n return QueryIterNullIterator.create(execCxt) ;\n }\n }", "public DefaultGraphDecorator(Color backgroundColor, Color nodeColor, Color nodeOutlineColor, Color edgeColor, Color nodeSelectionColor) {\n\t\t\n\t\tthis.backgroundColor = backgroundColor;\n\t\tthis.nodeColor = nodeColor;\n\t\tthis.nodeOutlineColor = nodeOutlineColor;\n\t\tthis.edgeColor = edgeColor;\n\t\t\n\t\tthis.nodeSelectionColor = nodeSelectionColor;\n\t\tthis.nodeSelectionWeightFill = 0.75;\n\t\tthis.nodeSelectionWeightText = 0.25;\n\t\tthis.nodeSelectionWeightOutline = 0.75;\n\t\t\n\t\tthis.nodeHighlightColor = nodeSelectionColor;\n\t\tthis.nodeHighlightWeightFill = 0.30;\n\t\tthis.nodeHighlightWeightText = 0.10;\n\t\tthis.nodeHighlightWeightOutline = 0.30;\n\t}", "@Override\n public R visit(Consequent n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public interface SinkNode extends AbstractNode {\r\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "public void addNodeFilter (INodeFilter filter);", "public interface IGraph {\n\t// Adds a new edge between 'from' and 'to' nodes with a cost obeying the\n\t// triangle in-equality\n\tpublic IEdge addEdge(String from, String to, Double cost);\n\t\n\t// Returns a node, creates if not exists, corresponding to the label\n\tpublic INode addOrGetNode(String label);\n\t\n\t// Returns a list of all nodes present in the graph\n\tpublic List<INode> getAllNodes();\n\t\n\t// Returns a list of all edges present in the graph\n\tpublic List<IEdge> getAllEdges();\n\t\n\t// Joins two graphs that operate on the same cost interval and \n\t// disjoint sets of nodes\n\tpublic void joinGraph(IGraph graph);\n\t\n\t// Returns the maximum cost allowed for the edges\n\tpublic Double getCostInterval();\n\t\n\t// Returns a Path with cost between 'from' and 'to' nodes\n\tpublic String getPath(String from, String to, String pathAlgo);\n}", "public boolean isMultiGraph();", "public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}", "public Graph1 (Constraints C, Interface source, Interface target, int controlIn, int controlOut) {\n this.C = C;\n this.source = source;\n this.target = target;\n this.controlIn = controlIn;\n this.controlOut = controlOut;\n left = C.newHVar ();\n right = C.newHVar ();\n bot = C.newVVar ();\n top = C.newVVar ();\n C.gap2 (left,right);\n C.gap1 (controlIn,top);\n C.gap2 (source.topOr(bot),controlIn);\n C.gap1 (bot,source.botOr(controlIn));\n C.gap1 (controlOut,top);\n C.gap2 (target.topOr(bot),controlOut);\n C.gap1 (bot,target.botOr(controlOut));\n }", "public GraphEdgeFilter() {\r\n this(true);\r\n }", "public abstract double accept(TopologyVisitor visitor);", "public interface ProgramDependenceGraph extends MutableEdgeLabelledDirectedGraph {\n\n\t/**\n\t * @return A List of weak regions, generated by RegionAnalysis for the corresponding\n\t * control flow graph (These are Regions and not PDGRegions.)\n\t */\n\tpublic List<Region> getWeakRegions();\n\t/**\n\t * @return A List of strong regions, generated when constructing the program dependence graph\n\t * (These are Regions and not PDGRegions.)\n\t */\n\tpublic List<Region> getStrongRegions();\n\t/**\n\t * This method returns the list of PDGRegions computed by the construction method.\n\t * @return The list of PDGRegions\n\t */\n\tpublic List<PDGRegion> getPDGRegions();\n\t/**\n\t * @return The root region of the PDG.\n\t */\n\tpublic IRegion GetStartRegion();\n\n\t/**\n\t * @return The root node of the PDG, which is essentially the same as the start region\n\t * but packaged in its PDGNode, which can be used to traverse the graph, etc.\n\t */\n\tpublic PDGNode GetStartNode();\n\n\t/**\n\t * This method determines if node1 is control-dependent on node2 in this PDG.\n\t * @param node1\n\t * @param node2\n\t * @return returns true if node1 is dependent on node2\n\t */\n\tpublic boolean dependentOn(PDGNode node1, PDGNode node2);\n\t/**\n\t * This method returns the list of all dependents of a node in the PDG.\n\t * @param node is the PDG node whose dependents are desired.\n\t * @return a list of dependent nodes\n\t */\n\t@SuppressWarnings(\"unchecked\")\n\tpublic List getDependents(PDGNode node);\n\n\n\t/**\n\t * This method returns the PDGNode in the PDG corresponding to the given\n\t * CFG node. Note that currently the CFG node has to be a Block.\n\t * @param cfgNode is expected to be a node in CFG (currently only Block).\n\t * @return The node in PDG corresponding to cfgNode.\n\t */\n\n\tpublic PDGNode getPDGNode(Object cfgNode);\n\n\t/**\n\t *\n\t * @return A human readable description of the PDG.\n\t */\n\tpublic String toString();\n\n}", "public interface Graph<V> {\n\t/** Return the number of vertices in the graph */\n\tpublic int getSize();\n\n\t/** Return the vertices in the graph */\n\tpublic java.util.List<V> getVertices();\n\n\t/** Return the object for the specified vertex index */\n\tpublic V getVertex(int index);\n\n\t/** Return the index for the specified vertex object */\n\tpublic int getIndex(V v);\n\n\t/** Return the neighbors of vertex with the specified index */\n\tpublic java.util.List<Integer> getNeighbors(int index);\n\n\t/** Return the degree for a specified vertex */\n\tpublic int getDegree(int v);\n\n\t/** Return the adjacency matrix */\n\tpublic int[][] getAdjacencyMatrix();\n\n\t/** Print the adjacency matrix */\n\tpublic void printAdjacencyMatrix();\n\n\t/** Print the edges */\n\tpublic void printEdges();\n\n\t/** Obtain a depth-first search tree */\n\tpublic AbstractGraph<V>.Tree dfs(int v);\n\n\t/** Obtain a breadth-first search tree */\n\tpublic AbstractGraph<V>.Tree bfs(int v);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex Return null if the\n\t * graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(V vertex);\n\n\t/**\n\t * Return a Hamiltonian path from the specified vertex label Return null if\n\t * the graph does not contain a Hamiltonian path\n\t */\n\tpublic java.util.List<Integer> getHamiltonianPath(int inexe);\n}", "public static QueryIterator graphNames(DatasetGraphTDB ds, Node graphNode, QueryIterator input,\n Predicate<Tuple<NodeId>> filter, ExecutionContext execCxt) {\n List<Abortable> killList = new ArrayList<>() ;\n Iterator<Tuple<NodeId>> iter1 = ds.getQuadTable().getNodeTupleTable().find(NodeId.NodeIdAny, NodeId.NodeIdAny,\n NodeId.NodeIdAny, NodeId.NodeIdAny) ;\n if ( filter != null )\n iter1 = Iter.filter(iter1, filter) ;\n\n Iterator<NodeId> iter2 = Iter.map(iter1, (t) -> t.get(0)) ;\n iter2 = makeAbortable(iter2, killList) ;\n\n Iterator<NodeId> iter3 = Iter.distinct(iter2) ;\n iter3 = makeAbortable(iter3, killList) ;\n\n Iterator<Node> iter4 = NodeLib.nodes(ds.getQuadTable().getNodeTupleTable().getNodeTable(), iter3) ;\n\n final Var var = Var.alloc(graphNode) ;\n Iterator<Binding> iterBinding = Iter.map(iter4, node -> BindingFactory.binding(var, node)) ;\n return new QueryIterTDB(iterBinding, killList, input, execCxt) ;\n }", "@Test\n public void test_shortcut_needed_bidirectional() {\n CHPreparationGraph graph = CHPreparationGraph.edgeBased(5, 4, (in, via, out) -> in == out ? 10 : 0);\n int edge = 0;\n graph.addEdge(0, 1, edge++, 10, 10);\n graph.addEdge(1, 2, edge++, 10, 10);\n graph.addEdge(2, 3, edge++, 10, 10);\n graph.addEdge(3, 4, edge++, 10, 10);\n graph.prepareForContraction();\n EdgeBasedWitnessPathSearcher searcher = new EdgeBasedWitnessPathSearcher(graph);\n searcher.initSearch(0, 1, 2, new EdgeBasedWitnessPathSearcher.Stats());\n double weight = searcher.runSearch(3, 6, 20.0, 100);\n assertTrue(Double.isInfinite(weight));\n }", "void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}", "@Override\n public R visit(VarOrTerm n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }", "@Test\n\tpublic void testDAG() {\n\t\tDirectedGraph<Integer, DirectedEdge<Integer>> directedGraph = new DirectedGraph<Integer, DirectedEdge<Integer>>();\n\t\tdirectedGraph.addNode(1);\n\t\tdirectedGraph.addNode(2);\n\t\tdirectedGraph.addNode(3);\n\t\tdirectedGraph.addNode(4);\n\t\tdirectedGraph.addNode(5);\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 2));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(2, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(4, 5));\n\t\t\n\t\t// tested method calls\n\t\tSet<Integer> reachableNodesFrom1 = service.getReachableNodes(directedGraph, 1);\n\t\tSet<Integer> reachableNodesFrom2 = service.getReachableNodes(directedGraph, 2);\n\t\tSet<Integer> reachableNodesFrom3 = service.getReachableNodes(directedGraph, 3);\n\t\tSet<Integer> reachableNodesFrom4 = service.getReachableNodes(directedGraph, 4);\n\t\tSet<Integer> reachableNodesFrom5 = service.getReachableNodes(directedGraph, 5);\n\t\t\n\t\t// assertions\n\t\tassertEquals(ImmutableSet.of(2, 3), reachableNodesFrom1);\n\t\tassertEquals(ImmutableSet.of(3), reachableNodesFrom2);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom3);\n\t\tassertEquals(ImmutableSet.of(5), reachableNodesFrom4);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom5);\n\t}", "public interface Graph<V>\n{\n /**\n * Adds the specified vertex to this graph. The given vertex will not be\n * added to this graph if this graph contains the vertex. In other words\n * this graph does not allow duplicate vertices. The way this graph\n * concludes if the specified vertex is a duplicate is through the equals\n * convention. For example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to add to this graph.\n *\n * @return <tt>true</tt> of the specified vertex is added to this\n * graph; otherwise <tt>false</tt>.\n */\n public boolean addVertex(V vertex);\n\n /**\n * Removes the specified vertex from this graph if the vertex actually\n * exists in this graph. Any edges that are connected to the given\n * vertex will also be removed from this graph. If the specified vertex\n * is not contained within this graph then the graph is unchanged and this\n * operation return <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to remove from this graph.\n * \n * @return <tt>true</tt> if the given vertex is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeVertex(V vertex);\n\n /**\n * Gets the set of vertices contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of vertices. \n *\n * @return a read-only view of the vertices contained withing this graph.\n */\n public Set<V> getVertices();\n\n /**\n * Checks if this graph contains the specified vertex. If the given\n * vertex is present in this graph, this operation returns <tt>true</tt>\n * ;otherwise <tt>false</tt>. The way this graph concludes if the\n * specified vertex is a present is through the equals convention. For\n * example <code>element.equals(vertex)</code>.\n *\n * <p>This method will return false if the given vertex is <code>null\n * </code></p>.\n * \n * @param vertex the vertex to verify is present within this graph.\n * \n * @return <tt>true</tt> if the specified vertex is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsVertex(V vertex);\n\n /**\n * Adds an edge (based on the specified vertices) to this graph. The edge\n * will not be added to this graph if this graph already contains an edge\n * between the specified vertices. In other words this graph does not allow\n * duplicate edges.\n * \n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to add to this graph.\n * @param target the target vertex for the edge to add to this graph.\n *\n * @return <tt>true</tt> of the edge is added to this graph; otherwise\n * <tt>false</tt>.\n */\n public Edge<V> addEdge(V source, V target);\n\n /**\n * Removes the edge (based on the given vertices) from this graph if the\n * edge actually exists in this graph. If the specified vertices are not\n * contained within this graph then the graph is unchanged and this\n * operation returns <tt>false</tt>; otherwise <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to remove.\n * @param target the target vertex for the edge to remove.\n *\n * @return <tt>true</tt> if the edge that contains the specified vertices\n * is removed; otherwise <tt>\n * false</false>\n */\n public boolean removeEdge(V source, V target);\n\n /**\n * Gets the edge connected by the given source and target vertices. If\n * either of the specified vertices are not present in this graph, then\n * this operation returns null. If any of the specified vertices are\n * <code>null</code> then <code>null</code> is returned.\n *\n * <p>The order of vertices in the resulting edge is not guaranteed if this\n * graph is an undirected graph.</p> \n *\n * @param source the source vertex for the edge to lookup in this graph.\n * @param target the target vertex for the edge to lookup in this graph.\n *\n * @return an edge that connects the specified vertices.\n */\n public Edge<V> getEdge(V source, V target);\n\n /**\n * Gets a set of edges connected to the specified vertex that are contained\n * within this graph. The set is an unmodifiable view so modifications to\n * the set do not affect this graph's internal set of edges.\n *\n * @param vertex the vertex connected to the set of edges to lookup.\n * \n * @return a read-only view of the edges connected to the given vertex that\n * are withing this graph.\n */\n public Set<Edge<V>> getEdges(V vertex);\n\n /**\n * Gets the set of edges contained within this graph. The set is\n * an unmodifiable view so modifications to the set do not affect this\n * graph's internal set of edges.\n *\n * @return a read-only view of the edges contained withing this graph.\n */\n public Set<Edge<V>> edgeSet();\n\n /**\n * Checks if this graph contains an edge based on the specified vertices.\n * If either of the given vertices are not present in this graph, this\n * operation returns <tt>false</tt>. Both specified vertices have to exists\n * in this graph and have a defined edge in order for this method to return\n * <tt>true</tt>.\n *\n * <p>This method will return false if any of the given vertices are\n * <code>null</code></p>.\n *\n * @param source the source vertex for the edge to verify is present within\n * this graph.\n * @param target the target vertex for the edge to verify is present within \n * this graph.\n *\n * @return <tt>true</tt> if the edge is present in this graph; otherwise\n * <tt>false</tt>.\n */\n public boolean containsEdge(V source, V target);\n\n /**\n * Checks if this graph contains the specified edge. If the given edge is\n * not present in this graph, this operation returns <tt>false</tt>.\n *\n * <p>This method will return false if the given edge is <code>null</code>\n * </p>.\n *\n * @param edge the edge to verify is present within this graph.\n *\n * @return <tt>true</tt> if the specified edge is present in this graph;\n * otherwise <tt>false</tt>.\n */\n public boolean containsEdge(Edge<V> edge);\n\n /**\n *\n * @return\n */\n public Set<V> breadthFirstSearch();\n\n /**\n *\n * @return\n */\n public Set<V> depthFirstSearch();\n\n /**\n * \n * @return\n */\n public Set<Edge<V>> minSpanningTree();\n}", "public interface ObjectGraph {\n\n\t\n\t/**\n\t * As in neo4j, starts a new transaction and associates it with the current thread.\n\t * @return a transaction from NeoService.\n\t */\n\tTransaction beginTx();\n\n\t/**\n\t * Mirror a java object within the neo4j graph. Only fields annotated with {@code}neo\n\t * will be considered.\n\t * @param o\n\t */\n\t<A> void persist(A... o);\n\n\t/**\n\t * removes all data representing an object from the graph.\n\t * \n\t * @param o an object retrieved from this {@link ObjectGraph}\n\t */\n\tvoid delete(Object... o);\n\t\n\t\n\t/**\n\t * Looks up a neo4j graph node using it's java object\n\t * mirror. \n\t * @param o an object retrieved from this {@link ObjectGraph}\n\t * @return neo4j node represented by o\n\t */\n\tNode get(Object o);\n\t\n\t/**\n\t * Looks up all instances of {@code}type in the graph.\n\t * \n\t * @param type a type previously stored in the graph\n\t * @return a Collection of {@code}type instances.\n\t */\n\t<T> Collection<T> get(Class<T> type);\n\n\t/**\n\t * Type safe lookup of object given it's neo4j nodeid.\n\t * Your domain classes may use {@link Nodeid#id()} to discover\n\t * their neo4j nodeid. \n\t * \n\t * @param t\n\t * @param key neo4j node id.\n\t * @return\n\t */\n\t<T> T get(Class<T> t, long key);\n\n\t\n\t/**\n\t * Return an object represented by <code>node</code> provided\n\t * the node was created by jo4neo.\n\t * \n\t * @param node\n\t * @return an object that mirrors node.\n\t */\n\tObject get(Node node);\n\t\n\t/**\n\t * Looks up the node representation of a given \n\t * uri. This method may update your graph if no node\n\t * was previously allocated for the uri.\n\t * \n\t * @return the node representation of uri.\n\t */\n\tNode get(URI uri);\n\n\n\t/**\n\t * Unmarshal a collections of nodes into objects.\n\t * \n\t */\n\t<T> Collection<T> get(Class<T> type, Iterable<Node> nodes);\n\n\t/**\n\t * Closes this ObjectGraph after which it will be unavailable \n\t * for use. Calling close is necessary, and should be called even\n\t * if the application is halted suddenly. ObjectGraph's maintain \n\t * a lucene index which may become corrupt without proper shutdown.\n\t * \n\t */\n\tvoid close();\n\n\t/**\n\t * Begin fluent interface find. <code>a</code> should be \n\t * a newly constructed instance as it's contents will be modified/initialized\n\t * by this call.\n\t * <pre>\n\t * <code>\n\t * Customer customer = new Customer();\n\t * customer = graph.find(customer).where(customer.id).is(123).result();\n\t * </code>\n\t * </pre>\n\t * \n\t * @param a\n\t * @return\n\t */\n\t<A> Where<A> find(A a);\n\n\t/**\n\t * Counts child entities without loading objects into memory. This is preferable to \n\t * using Collection.size(), which would load the full collection into memory.\n\t * <pre>\n\t * <code>\n\t * Customer customer = new Customer();\n\t * customer = graph.find(customer).where(customer.id).is(123).result();\n\t * long numOrders = graph.count(customer.orders);\n\t * </code>\n\t * </pre>\n\t * \n\t * @param values a collection value from a jo4neo annotated field.\n\t * @return\n\t */\n\tlong count(Collection<? extends Object> values);\n\n\t/**\n\t * Returns a collection of entities added since <code>d</code>.\n\t * Type <code>t</code> must be annotated with {@link Timeline}\n\t * \n\t * @see Timeline\n\t * \n\t */\n\t<T> Collection<T> getAddedSince(Class<T> t, Date d);\n\n\t/**\n\t * Returns a collection of entities added bewteen dates from and to.\n\t * Type <code>t</code> must be annotated with {@link Timeline}.\n\t * \n\t * @see Timeline\n\t */\n\t<T> Collection<T> getAddedBetween(Class<T> t, Date from,\n\t\t\tDate to);\n\n\t\n\t/**\n\t * Returns up to <code>max</code> most recently added instances of type <code>t</code>\n\t * \n\t * @param max limit the number of instances returned\n\t * @see neo#recency()\n\t */\n\t<T> Collection<T> getMostRecent(Class<T> t, int max);\n\t\n\t\n\t<T> T getSingle(Class<T> t, String indexname, Object value);\n\t\n\t<T> Collection<T> get(Class<T> t, String indexname, Object value);\n\t\n\t<T> Collection<T> fullTextQuery(Class<T> t, String indexname, Object value);\n\n}", "public void explore(Node node, int nchoices) {\n /**\n * Solution strategy: recursive backtracking.\n */\n\n if (nchoices == graphSize) {\n //\n // BASE CASE\n //\n if (this.this_distance < this.min_distance || this.min_distance < 0) {\n // if this_distance < min_distance, this is our new minimum distance\n // if min_distance < 0, this is our first minimium distance\n this.min_distance = this.this_distance;\n\n\n printSolution();\n\n\n } else {\n printFailure();\n }\n\n } else {\n //\n // RECURSIVE CASE\n //\n Set<Node> neighbors = graph.adjacentNodes(node);\n for (Node neighbor : neighbors) {\n if (neighbor.visited == false) {\n\n int distance_btwn = 0;\n\n for (Edge edge : graph.edgesConnecting(node, neighbor)) {\n distance_btwn = edge.value;\n\n\n }\n\n\n // Make a choice\n\n this.route[nchoices] = neighbor;\n neighbor.visit();\n this.this_distance += distance_btwn;\n\n // Explore the consequences\n explore(neighbor, nchoices+ 1);\n\n // Unmake the choice\n\n this.route[nchoices] = null;\n neighbor.unvisit();\n this.this_distance -= distance_btwn;\n\n }\n\n // Move on to the next choice (continue loop)\n }\n\n\n } // End base/recursive case\n\n\n }", "public static interface DiGraphNode<N, E> extends GraphNode<N, E> {\n\n public List<? extends DiGraphEdge<N, E>> getOutEdges();\n\n public List<? extends DiGraphEdge<N, E>> getInEdges();\n\n /** Returns whether a priority has been set. */\n boolean hasPriority();\n\n /**\n * Returns a nonnegative integer priority which can be used to order nodes.\n *\n * <p>Throws if a priority has not been set.\n */\n int getPriority();\n\n /** Sets a node priority, must be non-negative. */\n void setPriority(int priority);\n }", "private Shape drawNodeGraphInfo(Graphics2D g2d, String node_coord, Shape shape) {\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n\t // Get the graph info sources\n\t Set<String> cuts = bcc.getCutVertices(),\n\t cuts_2p = bcc_2p.getCutVertices();\n\t Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n\n\t // Determine if we have a set of nodes or a single node\n Set<String> set = node_coord_set.get(node_coord);\n\t if (set.size() == 1) {\n\t String node = set.iterator().next();\n\t if (cuts.contains(node)) {\n g2d.setColor(RTColorManager.getColor(\"background\", \"default\")); g2d.fill(shape); g2d.setColor(RTColorManager.getColor(\"background\", \"reverse\")); g2d.draw(shape);\n\t if (cuts_2p.contains(node)) {\n\t g2d.setColor(RTColorManager.getColor(\"annotate\", \"cursor\"));\n\t\tdouble cx = shape.getBounds().getCenterX(),\n\t\t cy = shape.getBounds().getCenterY(),\n\t\t dx = shape.getBounds().getMaxX() - cx;\n\t\tg2d.draw(new Ellipse2D.Double(cx-1.8*dx,cy-1.8*dx,3.6*dx,3.6*dx));\n\t }\n\t } else {\n\t MyGraph mg = v_to_b.get(node).iterator().next();\n if (mg.getNumberOfEntities() <= 2) g2d.setColor(RTColorManager.getColor(\"background\", \"nearbg\"));\n\t else g2d.setColor(RTColorManager.getColor(mg.toString())); \n\t g2d.fill(shape);\n\t }\n\t } else {\n\t boolean lu_miss = false;\n\t Set<MyGraph> graphs = new HashSet<MyGraph>();\n\t Iterator<String> it = set.iterator();\n\t while (it.hasNext()) {\n\t String node = it.next();\n\t if (v_to_b.containsKey(node)) graphs.addAll(v_to_b.get(node));\n\t else { System.err.println(\"No V-to-B Lookup For Node \\\"\" + node + \"\\\"\"); lu_miss = true; }\n }\n\t if (graphs.size() == 1) {\n\t MyGraph mg = graphs.iterator().next();\n\t g2d.setColor(RTColorManager.getColor(mg.toString()));\n\t } else {\n\t g2d.setColor(RTColorManager.getColor(\"set\", \"multi\"));\n\t }\n\t g2d.fill(shape);\n\t if (lu_miss) {\n\t g2d.setColor(RTColorManager.getColor(\"label\", \"errorfg\"));\n\t Rectangle2D rect = shape.getBounds();\n\t g2d.drawLine((int) rect.getMinX() - 5, (int) rect.getMinY() - 5, \n\t (int) rect.getMaxX() + 5, (int) rect.getMaxY() + 5);\n\t g2d.drawLine((int) rect.getMaxX() + 5, (int) rect.getMinY() - 5, \n\t (int) rect.getMinX() - 5, (int) rect.getMaxY() + 5);\n\t }\n\t }\n\t}\n\treturn shape;\n }", "protected Graph filterGraph(final Collection<Object> roots) {\n final Set<Relation> edges = graph.getEdges();\n // crate object->relations mapping\n final Map<cz.cuni.mff.ufal.textan.core.Object, Set<Relation>> objRels = new HashMap<>();\n for (Relation relation : edges) {\n for (Triple<Integer, String, cz.cuni.mff.ufal.textan.core.Object> triple : relation.getObjects()) {\n final cz.cuni.mff.ufal.textan.core.Object obj = triple.getThird();\n if (!ignoredObjectTypes.contains(obj.getType())) {\n Set<Relation> rels = objRels.get(obj);\n if (rels == null) {\n rels = new HashSet<>();\n objRels.put(obj, rels);\n }\n rels.add(new Relation(relation));\n }\n }\n }\n //initilization\n final Map<Long, cz.cuni.mff.ufal.textan.core.Object> newNodes = new HashMap<>();\n final Set<Relation> newEdges = new HashSet<>();\n final Set<Relation> doneRelations = new HashSet<>(); //processed relations\n final Set<cz.cuni.mff.ufal.textan.core.Object> doneObjects = new HashSet<>(); //processed objects\n final Deque<cz.cuni.mff.ufal.textan.core.Object> stack = new ArrayDeque<>(); //objects whose relations need processing\n for (Object root : roots) {\n newNodes.put(root.getId(), root);\n doneObjects.add(root);\n stack.add(root);\n }\n //filtering\n while (!stack.isEmpty()) {\n final cz.cuni.mff.ufal.textan.core.Object obj = stack.pop();\n final Set<Relation> rels = objRels.get(obj);\n if (rels == null) {\n continue;\n }\n for (Relation rel : rels) {\n if (doneRelations.contains(rel)) {\n continue;\n }\n doneRelations.add(rel);\n if (ignoredRelationTypes.contains(rel.getType())) {\n continue;\n }\n final Set<Triple<Integer, String, cz.cuni.mff.ufal.textan.core.Object>> newObjs = new HashSet<>();\n for (Triple<Integer, String, cz.cuni.mff.ufal.textan.core.Object> triple : rel.getObjects()) {\n if (!ignoredObjectTypes.contains(triple.getThird().getType())) {\n newObjs.add(triple);\n if (!doneObjects.contains(triple.getThird())) {\n doneObjects.add(triple.getThird());\n newNodes.put(triple.getThird().getId(), triple.getThird());\n stack.add(triple.getThird());\n }\n }\n }\n //add only if there are more objects connected\n //or if the original relation was unary too\n if (newObjs.size() > 1 || rel.getObjects().size() == 1) {\n newEdges.add(rel);\n rel.getObjects().clear();\n rel.getObjects().addAll(newObjs);\n }\n }\n }\n //use new nodes and edges\n return new Graph(newNodes, newEdges);\n }", "@Override\npublic final void accept(TreeVisitor visitor) {\n visitor.visitWord(OpCodes.OR_NAME);\n if (ops != null) {\n for (int i = 0; i < ops.length; i++) {\n ops[i].accept(visitor);\n }\n } else {\n visitor.visitConstant(null, \"?\");\n }\n visitor.visitEnd();\n }", "public interface IDirectedAcyclicGraph<T> extends Serializable {\n\n /**\n * Adds an edge to the graph.\n *\n * @param from the starting point.\n * @param to the ending point.\n * @return true if the edge was actually added (i.e. not present and didn't\n * create a cycle)\n * @throws NullPointerException if from or to is null\n */\n boolean add(T from, T to) throws NullPointerException;\n\n /**\n * Returns all the nodes that can be reached following the directed edges\n * starting from the selected node. It is guaranteed that the elements are\n * partially ordered by increasing distance from the selected node. If the\n * starting point is not a node in the graph, an empty iterable is returned.\n *\n * @param start the starting point.\n * @return an iterable with all the nodes that can be reached from the\n * starting node.\n * @throws NullPointerException if start is null.\n */\n Iterable<T> followNode(T start) throws NullPointerException;\n\n /**\n * Returns the selected node, followed by all the nodes that can be reached\n * following the directed edges starting from the selected node. It is\n * guaranteed that the elements are partially ordered by increasing distance\n * from the selected node. If the starting point is not a node in the graph,\n * an iterable containing only the starting node is returned.\n *\n * @param start the starting point.\n * @return an iterable which starts with the selected node and is followed\n * by all the connected nodes.\n * @throws NullPointerException if start is null.\n */\n Iterable<T> followNodeAndSelef(T start) throws NullPointerException;\n\n}", "abstract Shape nodeShape(String node, Graphics2D g2d);", "NetworkNodeType getIsA();", "public abstract void setSelectedNode(String n);", "public void filterNodes(String filter) {\n\n\n tree_graphs.getChildren().clear();\n populate(universe, filter, this.showNodes, this.showEdges,\n this.showHyperEdges);\n\n\n tree_nodes.getChildren().clear();\n for (INode node : universe.getNodes()) {\n if (node.getID().contains(filter)) {\n parseNode(node, tree_nodes, filter);\n }\n }\n\n }", "public weighted_graph getGraph();", "private GraphNode getGraphNode(String name, Graph graph) {\n\t\tGraphNode node = graph.nodeMap.get(name);\n\t\tif (node == null) {\n\t\t\tServiceNode n;\n\t\t\tif (name.equals(\"Input\"))\n\t\t\t\tn = inputNode;\n\t\t\telse if (name.equals(\"Output\"))\n\t\t\t\tn = outputNode;\n\t\t\telse\n\t\t\t\tn = serviceMap.get(name);\n\t\t\tnode = new GraphNode(n, this);\n\t\t\tgraph.nodeMap.put(name, node);\n\t\t}\n\t\treturn node;\n\t}", "public abstract int getNodeType();", "private Agent getRecommenderFromNode()\n\t{\n\t\tMap<String,ComputationOutputBuffer> nodeInputs =\n\t\t\t\tcomputationNode.getInputs();\n\n\t\tAgent agent = new Agent();\n\t\tagent.setType(computationNode.getRecommenderClass());\n if (options == null) {\n \tOptionEdge optionEdge = (OptionEdge)\n \t\t\tnodeInputs.get(\"options\").getNext();\n nodeInputs.get(\"options\").block();\n options = new NewOptions(optionEdge.getOptions());\n }\n\t\tagent.setOptions(options.getOptions());\n\t\treturn agent;\n\t}", "public MultiGraph(boolean directed) {\r\n\t\tsuper(directed ? Type.DIRECTED : Type.UNDIRECTED);\r\n\t}", "void visit(Object node, String command);", "@Test\n public void simpleGraph() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n\n // source edge does not exist -> no path\n assertNotFound(calcPath(0, 2, 5, 0));\n // target edge does not exist -> no path\n assertNotFound(calcPath(0, 2, 0, 5));\n // using NO_EDGE -> no path\n assertNotFound(calcPath(0, 2, NO_EDGE, 0));\n assertNotFound(calcPath(0, 2, 0, NO_EDGE));\n // using ANY_EDGE -> no restriction\n assertPath(calcPath(0, 2, ANY_EDGE, 1), 0.2, 2, 200, nodes(0, 1, 2));\n assertPath(calcPath(0, 2, 0, ANY_EDGE), 0.2, 2, 200, nodes(0, 1, 2));\n // edges exist -> they are used as restrictions\n assertPath(calcPath(0, 2, 0, 1), 0.2, 2, 200, nodes(0, 1, 2));\n }", "public interface NodeConverter {\n Chain convertAndSetCurrentNode(Chain currentChain, CtMethod ctMethod);\n}", "public Graph subGraph(final Collection<Node> nodeSet) {\n final Graph newG = new Graph();\n newG.metrics = null;\n \n for(Attributes a : this.getAllAttributes())\n newG.addAttributes(a);\n for(EdgeType et : this.getEdgeTypes())\n newG.addEdgeType(et);\n \n final Map<Node,Node> map = new HashMap<Node,Node>();\n \n for(final Node n : nodeSet)\n {\n final NodeTypeHolder nth = newG.ntMap.get(n.getAttributes().getName());\n final Node newN = n.copy(nth.numNodes());\n final String nodeName = newN.getName();\n nth.nodeMap.put(nodeName, newN);\n map.put(n,newN);\n }\n for(final Map.Entry<Node,Node> pair : map.entrySet())\n {\n for(final Edge e : pair.getKey().getEdges())\n {\n final Node dst = map.get(e.getDest());\n if(dst != null) {\n newG.addEdge(e.getEdgeType(),pair.getValue(),dst,e.getWeight());\n }\n }\n }\n \n return newG;\n }", "public abstract boolean isUsing(Edge graphEdge);", "private interface OperationOverNodes {\n\t\tvoid operate(Node node);\n\t}" ]
[ "0.61412793", "0.60311884", "0.59001815", "0.58211106", "0.5668438", "0.5493821", "0.54330266", "0.53609776", "0.5346687", "0.53145576", "0.52446896", "0.52382004", "0.52283496", "0.51905376", "0.5154667", "0.5143367", "0.5135186", "0.512573", "0.51255375", "0.510132", "0.5098182", "0.5089802", "0.5086262", "0.5072429", "0.505248", "0.503592", "0.50302494", "0.50213474", "0.501357", "0.5009332", "0.49717152", "0.49592742", "0.4955652", "0.49236277", "0.49214196", "0.49213696", "0.49127355", "0.491148", "0.4890299", "0.48900992", "0.48879346", "0.48838678", "0.48829168", "0.48767987", "0.4856621", "0.48506123", "0.48303488", "0.48210907", "0.48191193", "0.48128083", "0.48126575", "0.4808319", "0.4804587", "0.47908247", "0.4775879", "0.477117", "0.47704422", "0.47617334", "0.47559193", "0.4754399", "0.47428235", "0.47370166", "0.4736014", "0.4733719", "0.47322363", "0.4730499", "0.47191805", "0.47148818", "0.47085205", "0.46917635", "0.46875012", "0.46871457", "0.4676462", "0.46664932", "0.46624744", "0.46517724", "0.4650876", "0.46449715", "0.4643017", "0.4640113", "0.4639587", "0.46317726", "0.462983", "0.4629539", "0.46261346", "0.46259022", "0.4625267", "0.46242642", "0.46221942", "0.46195775", "0.46187708", "0.46173263", "0.4613207", "0.46055982", "0.46017638", "0.45962116", "0.45961952", "0.45950255", "0.45848936", "0.45754427" ]
0.64297956
0